| | |
| | | --insert into lf.sys_role_menu_auth (roleid,menu_auth_id) values (1,1); |
| | | |
| | | select * from lf.sys_role_menu_auth; |
| | | ----------------------------------------------------------------------------------------------------- 16.源数据表 |
| | | ----------------------------------------------------------------------------------------------------- 16.元数据表 |
| | | -- DROP TABLE IF EXISTS lf.sys_meta; |
| | | create table lf.sys_meta ( |
| | | id serial primary key, |
| | |
| | | ); |
| | | -- drop index index_sys_meta_geom; |
| | | create index index_sys_meta_geom on lf.sys_meta using GIST (geom); |
| | | comment on table lf.sys_meta is '源数据表'; |
| | | comment on table lf.sys_meta is '元数据表'; |
| | | comment on column lf.sys_meta.id is '主键ID'; |
| | | comment on column lf.sys_meta.eventid is 'GUID'; |
| | | comment on column lf.sys_meta.metaid is '父源数据ID:0-没有'; |
| | | comment on column lf.sys_meta.metaid is '父元数据ID:0-没有'; |
| | | comment on column lf.sys_meta.ismeta is '是否为元数据'; |
| | | comment on column lf.sys_meta.dirid is '目录ID'; |
| | | comment on column lf.sys_meta.depid is '单位ID'; |
| | |
| | | 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-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告'; |
| | | comment on column lf.sys_download.type is '类型:1-Shp文件,2-专题图,3-元数据,4-业务数据,5-管道分析,6-统计报告'; |
| | | comment on column lf.sys_download.depid is '单位ID'; |
| | | comment on column lf.sys_download.sizes is '文件大小:单位MB'; |
| | | comment on column lf.sys_download.dcount is '下载次数'; |
| | |
| | | comment on column lf.sys_coord.remarks is '备注'; |
| | | |
| | | select * from lf.sys_coord; |
| | | ----------------------------------------------------------------------------------------------------- 35.源数据-下载表 |
| | | ----------------------------------------------------------------------------------------------------- 35.元数据-下载表 |
| | | -- drop table if exists lf.sys_meta_down; |
| | | create table lf.sys_meta_down( |
| | | id serial primary key, |
| | |
| | | create_user integer default 1, |
| | | create_time timestamp(6) without time zone default now() |
| | | ); |
| | | comment on table lf.sys_meta_down is '源数据-下载表'; |
| | | comment on table lf.sys_meta_down is '元数据-下载表'; |
| | | comment on column lf.sys_meta_down.id is '主键ID'; |
| | | comment on column lf.sys_meta_down.metaid is '源数据ID'; |
| | | comment on column lf.sys_meta_down.metaid is '元数据ID'; |
| | | comment on column lf.sys_meta_down.downid is '下载ID'; |
| | | comment on column lf.sys_meta_down.create_user is '创建人ID'; |
| | | comment on column lf.sys_meta_down.create_time is '创建时间'; |