管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-12-23 17abb629a1921058e1a6ed5562e9d94e74b8dffc
data/db_tab.sql
@@ -1035,6 +1035,64 @@
-- insert into lf.sys_downlog(downid,ip,create_user) values (100,'192.168.20.39',1);
select * from lf.sys_downlog;
----------------------------------------------------------------------------------------------------- 30.数据申请表
-- drop table if exists lf.sys_apply;
create table lf.sys_apply (
    id serial primary key,
   userid integer default 0,
   depids varchar(100),
   tables varchar(1000),
   wkt varchar(4000),
   status integer default 0,
   count integer default 0,
   descr varchar(50),
    create_user integer default 1,
    create_time timestamp(6) without time zone default now(),
    update_user integer,
    update_time timestamp(6) without time zone
);
comment on table lf.sys_apply is '数据申请表';
comment on column lf.sys_apply.id is '主键ID';
comment on column lf.sys_apply.userid is '用户ID';
comment on column lf.sys_apply.depids is '单位ID';
comment on column lf.sys_apply.tables is '表名';
comment on column lf.sys_apply.wkt is 'WKT';
comment on column lf.sys_apply.status is '状态:-10-作废,-1-打回,0-申请中,1~9,审核中,10-通过';
comment on column lf.sys_apply.count is '审核总数';
comment on column lf.sys_apply.descr is '描述';
comment on column lf.sys_apply.create_user is '创建人id';
comment on column lf.sys_apply.create_time is '创建时间';
comment on column lf.sys_apply.update_user is '更新人id';
comment on column lf.sys_apply.update_time is '更新时间';
select * from lf.sys_apply;
----------------------------------------------------------------------------------------------------- 31.申请流程表
-- drop table if exists lf.sys_flow;
create table lf.sys_flow (
    id serial primary key,
   applyid integer,
   depid integer,
   userid integer,
   status integer default 0,
   descr varchar(50),
    create_user integer default 1,
    create_time timestamp(6) without time zone default now(),
    update_user integer,
    update_time timestamp(6) without time zone
);
comment on table lf.sys_flow is '申请流程表';
comment on column lf.sys_flow.id is '主键id';
comment on column lf.sys_flow.applyid is '申请ID';
comment on column lf.sys_flow.depid is '单位ID';
comment on column lf.sys_flow.userid is '用户ID';
comment on column lf.sys_flow.status is '状态:-1-打回,0-申请中,1-通过';
comment on column lf.sys_flow.descr is '描述';
comment on column lf.sys_flow.create_user is '创建人id';
comment on column lf.sys_flow.create_time is '创建时间';
comment on column lf.sys_flow.update_user is '更新人id';
comment on column lf.sys_flow.update_time is '更新时间';
select * from lf.sys_flow;
----------------------------------------------------------------------------------------------------- 元数据测试表 *
-- drop table if exists md.md_zxcg;
create table md.md_zxcg(