1 changed files with 26 additions and 0 deletions
@ -0,0 +1,26 @@ |
|||
# |
|||
``` |
|||
用户表 |
|||
DROP TABLE IF EXISTS `ea_user`; |
|||
CREATE TABLE `ea_user` ( |
|||
`uid` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID', |
|||
`mobile` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户手机号', |
|||
`password` varchar(140) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户密码', |
|||
`nick_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户昵称', |
|||
`avatar` varchar(120) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '头像文件', |
|||
`gender` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '性别', |
|||
`country` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '国家', |
|||
`province` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '省份', |
|||
`city` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '城市', |
|||
`balance` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '用户可用余额', |
|||
`points` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户可用积分', |
|||
`grade_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '会员等级ID', |
|||
`last_login_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最后登录时间', |
|||
`is_delete` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除', |
|||
`store_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '商城ID', |
|||
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', |
|||
`update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', |
|||
PRIMARY KEY (`uid`), |
|||
KEY `mobile` (`mobile`) |
|||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户表'; |
|||
``` |
|||
Loading…
Reference in new issue