提交宿管代码
This commit is contained in:
1 parent
49899ca537
commit
225a268e32
80 files changed
+6931
-15
No files matched your search
@@ -0,0 +1,29 @@
|
||||
-- ----------------------------
|
||||
-- 宿舍管理员表
|
||||
-- ----------------------------
|
||||
drop table if exists xg_dorm_manager;
|
||||
create table xg_dorm_manager (
|
||||
id bigint(20) not null comment '主键',
|
||||
name varchar(100) not null comment '管理员姓名',
|
||||
phone varchar(11) not null comment '手机号码',
|
||||
sex int(1) default 0 comment '性别(0男 1女 2未知)',
|
||||
manager_type int(1) default 0 comment '管理类型(0全校 1校区 2宿舍区 3宿舍楼)',
|
||||
scope varchar(100) comment '管理范围(校区/宿舍区/宿舍楼)',
|
||||
user_id bigint(20) comment '关联用户ID',
|
||||
remark varchar(500) comment '备注',
|
||||
create_by bigint(20) comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by bigint(20) comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
deleted char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
||||
tenant_id varchar(20) default '000000' comment '租户编号',
|
||||
primary key (id)
|
||||
) engine=innodb comment = '宿舍管理员信息表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始数据
|
||||
-- ----------------------------
|
||||
INSERT INTO xg_dorm_manager(id, name, phone, sex, manager_type, scope, user_id, remark, create_by, create_time, update_by, update_time, deleted, tenant_id)
|
||||
VALUES (1, '张三', '13800000001', 0, 0, null, 2, '全校主管', 1, sysdate(), 1, sysdate(), '0', '000000');
|
||||
INSERT INTO xg_dorm_manager(id, name, phone, sex, manager_type, scope, user_id, remark, create_by, create_time, update_by, update_time, deleted, tenant_id)
|
||||
VALUES (2, '李四', '13800000002', 1, 0, null, 3, '全校副主管', 1, sysdate(), 1, sysdate(), '0', '000000');
|
||||
Reference in new issue
Block a user