test_push/sql/app.sql

19 lines
1.0 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
id bigint not null auto_increment primary key comment '用户ID',
username varchar(30) not null comment '用户账号',
nickname varchar(30) not null comment '用户昵称',
mobile varchar(11) null default '' comment '手机号码',
sex int null DEFAULT 0 comment '用户性别0男 1女 2未知',
avatar varchar(100) null default '' comment '头像地址',
password varchar(100) null default '' comment '密码',
status int null default 0 comment '帐号状态0正常 1停用',
role varchar(20) not null comment '角色 admin管理员',
creator bigint null default 1 comment '创建者',
create_time datetime null default null comment '创建时间',
updater bigint null default 1 comment '更新者',
update_time datetime null default null comment '更新时间',
remark varchar(500) null default null comment '备注',
deleted tinyint null default 0 comment '删除标识'
) comment = '用户';