|
@@ -0,0 +1,93 @@
|
|
|
+drop table if exists "eco-boot".system_user_t;
|
|
|
+create table "eco-boot"."system_user_t"
|
|
|
+(
|
|
|
+ "id" bigint not null,
|
|
|
+ "dept_id" bigint,
|
|
|
+ "account" varchar(30),
|
|
|
+ "user_name" varchar(30),
|
|
|
+ "nick_name" varchar(30),
|
|
|
+ "user_type" varchar(10),
|
|
|
+ "email" varchar(50),
|
|
|
+ "phone_number" varchar(11),
|
|
|
+ "gender" int,
|
|
|
+ "avatar" bigint,
|
|
|
+ "password" varchar(100),
|
|
|
+ "login_ip" varchar(128),
|
|
|
+ "login_date" timestamp(6),
|
|
|
+ "tenant_id" bigint,
|
|
|
+ "status" char(10) default 1,
|
|
|
+ "version" int,
|
|
|
+ "del_flag" bit,
|
|
|
+ "create_by" bigint,
|
|
|
+ "create_time" timestamp(6),
|
|
|
+ "update_by" bigint,
|
|
|
+ "update_time" timestamp(6),
|
|
|
+ "remark" VARCHAR2(1000)) storage(on "main", clusterbtr) ;
|
|
|
+
|
|
|
+comment on table "eco-boot".system_user_t is '用户表';
|
|
|
+comment on column "eco-boot".system_user_t."id" is '用户id';
|
|
|
+comment on column "eco-boot".system_user_t."dept_id" is '部门id';
|
|
|
+comment on column "eco-boot".system_user_t."account" is '账号';
|
|
|
+comment on column "eco-boot".system_user_t."user_name" is '姓名';
|
|
|
+comment on column "eco-boot".system_user_t."nick_name" is '昵称';
|
|
|
+comment on column "eco-boot".system_user_t."user_type" is '类型(sys_user系统用户)';
|
|
|
+comment on column "eco-boot".system_user_t."email" is '邮箱';
|
|
|
+comment on column "eco-boot".system_user_t."phone_number" is '手机号码';
|
|
|
+comment on column "eco-boot".system_user_t."gender" is '性别(0男 1女 2未知)';
|
|
|
+comment on column "eco-boot".system_user_t."avatar" is '头像';
|
|
|
+comment on column "eco-boot".system_user_t."password" is '密码';
|
|
|
+comment on column "eco-boot".system_user_t."login_ip" is '最后登陆ip';
|
|
|
+comment on column "eco-boot".system_user_t."login_date" is '最后登陆时间';
|
|
|
+comment on column "eco-boot".system_user_t."tenant_id" is '租户编号';
|
|
|
+comment on column "eco-boot".system_user_t."status" is '状态(1正常 0停用)';
|
|
|
+comment on column "eco-boot".system_user_t."version" is '乐观锁';
|
|
|
+comment on column "eco-boot".system_user_t."del_flag" is '删除标志(1已删除 0存在)';
|
|
|
+comment on column "eco-boot".system_user_t."create_by" is '创建者';
|
|
|
+comment on column "eco-boot".system_user_t."create_time" is '创建时间';
|
|
|
+comment on column "eco-boot".system_user_t."update_by" is '更新者';
|
|
|
+comment on column "eco-boot".system_user_t."update_time" is '更新时间';
|
|
|
+comment on column "eco-boot".system_user_t."remark" is '备注';
|
|
|
+
|
|
|
+create or replace unique index "eco-boot"."system_user_index" on "eco-boot"."system_user_t"("id" asc) storage(on "main", clusterbtr) ;
|
|
|
+
|
|
|
+
|
|
|
+drop table if exists "eco-boot".system_dept_t;
|
|
|
+create table "eco-boot"."system_dept_t"
|
|
|
+(
|
|
|
+ "id" bigint not null,
|
|
|
+ "parent_id" bigint,
|
|
|
+ "dept_name" varchar(30),
|
|
|
+ "leader_id" bigint,
|
|
|
+ "phone" varchar(11),
|
|
|
+ "email" varchar(50),
|
|
|
+ "sort_code" int,
|
|
|
+ "tenant_id" bigint,
|
|
|
+ "status" char(10) default 1,
|
|
|
+ "version" int,
|
|
|
+ "del_flag" bit,
|
|
|
+ "create_by" bigint,
|
|
|
+ "create_time" timestamp(6),
|
|
|
+ "update_by" bigint,
|
|
|
+ "update_time" timestamp(6),
|
|
|
+ "remark" VARCHAR2(1000)) storage(on "main", clusterbtr) ;
|
|
|
+
|
|
|
+comment on table "eco-boot".system_dept_t is '部门表';
|
|
|
+comment on column "eco-boot".system_dept_t."id" is '部门id';
|
|
|
+comment on column "eco-boot".system_dept_t."parent_id" is '父id';
|
|
|
+comment on column "eco-boot".system_dept_t."dept_name" is '部门名称';
|
|
|
+comment on column "eco-boot".system_dept_t."leader_id" is '负责人';
|
|
|
+comment on column "eco-boot".system_dept_t."phone" is '部门电话';
|
|
|
+comment on column "eco-boot".system_dept_t."email" is '邮箱';
|
|
|
+comment on column "eco-boot".system_dept_t."sort_code" is '排序';
|
|
|
+comment on column "eco-boot".system_dept_t."tenant_id" is '租户编号';
|
|
|
+comment on column "eco-boot".system_dept_t."status" is '状态(1正常 0停用)';
|
|
|
+comment on column "eco-boot".system_dept_t."version" is '乐观锁';
|
|
|
+comment on column "eco-boot".system_dept_t."del_flag" is '删除标志(1已删除 0存在)';
|
|
|
+comment on column "eco-boot".system_dept_t."create_by" is '创建者';
|
|
|
+comment on column "eco-boot".system_dept_t."create_time" is '创建时间';
|
|
|
+comment on column "eco-boot".system_dept_t."update_by" is '更新者';
|
|
|
+comment on column "eco-boot".system_dept_t."update_time" is '更新时间';
|
|
|
+comment on column "eco-boot".system_dept_t."remark" is '备注';
|
|
|
+
|
|
|
+
|
|
|
+create or replace unique index "eco-boot"."system_dept_index" on "eco-boot"."system_dept_t"("id" asc) storage(on "main", clusterbtr) ;
|