1 2 3 4 5 6 7 8 9 10 11
| DROP TABLE IF EXISTS `app_users`; CREATE TABLE `app_users` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '用户编号', `username` varchar(64) NOT NULL DEFAULT '' COMMENT '用户名', `password` varchar(256) NOT NULL DEFAULT '' COMMENT '密码', `status` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态:0-禁用;1-启用', `update_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `username` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8mb4 COMMENT '用户信息表';
|