管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-12 4d8dd71b7d13fa41132c46831090c6282af502cb
data/db_tab.sql
@@ -686,6 +686,11 @@
  create_time timestamp(6) without time zone default now(),
  update_user integer,
  update_time timestamp(6) without time zone,
  tabletype varchar(20),
  unit varchar(50),
  domain_na varchar(100),
  showtype smallint,
  editable smallint,
  bak varchar(1024) 
);
comment on table lf.sys_dict is '附件表';
@@ -703,6 +708,11 @@
comment on column lf.sys_dict.create_time is '创建时间';
comment on column lf.sys_dict.update_user is '更新人ID';
comment on column lf.sys_dict.update_time is '更新时间';
comment on column lf.sys_dict.tabletype is '表类型';
comment on column lf.sys_dict.unit is '单位';
comment on column lf.sys_dict.domain_na is '值域名称';
comment on column lf.sys_dict.showtype is '显示类型';
comment on column lf.sys_dict.editable is '是否可编辑';
comment on column lf.sys_dict.bak is '备注';
/* alter sequence lf.sys_dict_id_seq restart with 300;
update lf.sys_dict set create_user=1,create_time=now() where 1=1;
@@ -710,6 +720,7 @@
select count(*) from lf.sys_dict where tab='sys_user';
select * from lf.sys_dict order by ns,tab,order_num limit 10 offset 0;
select distinct ns,tab,fn_get_entity(tab) entity,tab_desc,tabletype from lf.sys_dict order by tab;
----------------------------------------------------------------------------------------------------- 21.样式表
-- DROP TABLE IF EXISTS lf.sys_style;
create table lf.sys_style(
@@ -777,7 +788,7 @@
comment on table lf.sys_download is '下载记录表';
comment on column lf.sys_download.id is '主键ID';
comment on column lf.sys_download.name is '名称';
comment on column lf.sys_download.type is '类型:1-下载数据,2-下载专题图';
comment on column lf.sys_download.type is '类型:1-ShapeFile,2-专题图';
comment on column lf.sys_download.depid is '单位ID';
comment on column lf.sys_download.dcount is '下载次数';
comment on column lf.sys_download.pwd is 'MD5';
@@ -906,4 +917,37 @@
comment on column lf.sys_mark.update_time is '更新时间';
select * from lf.sys_mark;
----------------------------------------------------------------------------------------------------- 27.值域表
-- drop table if exists lf.sys_domain;
create table if not exists lf.sys_domain(
    id serial primary key,
    dom_desc varchar(100),
    dom_name varchar(50),
    dom_code varchar(50),
    code_desc varchar(50),
    level integer,
    orderid integer,
    bsm 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,
    bak varchar(1024)
);
comment on table lf.sys_domain is '值域表';
comment on column lf.sys_domain.id is '主键id';
comment on column lf.sys_domain.dom_desc is '值域表描述';
comment on column lf.sys_domain.dom_name is '值域表名';
comment on column lf.sys_domain.dom_code is '编码';
comment on column lf.sys_domain.code_desc is '编码描述';
comment on column lf.sys_domain.level is '层级';
comment on column lf.sys_domain.orderid is '序号';
comment on column lf.sys_domain.bsm is '标识码';
comment on column lf.sys_domain.create_user is '创建人id';
comment on column lf.sys_domain.create_time is '创建时间';
comment on column lf.sys_domain.update_user is '更新人id';
comment on column lf.sys_domain.update_time is '更新时间';
comment on column lf.sys_domain.bak is '备注';
select * from lf.sys_domain order by dom_name,orderid;
-----------------------------------------------------------------------------------------------------