1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
-- 阔一张业务属性的地理信息
|
||||
CREATE TABLE regions_info
|
||||
CREATE TABLE common_regions_info
|
||||
(
|
||||
id int4 PRIMARY KEY,
|
||||
name VARCHAR(50) NULL,
|
||||
@@ -17,23 +17,23 @@ CREATE TABLE regions_info
|
||||
create_dept int8 NULL
|
||||
);
|
||||
|
||||
COMMENT ON TABLE regions_info IS '地区详情表';
|
||||
COMMENT ON COLUMN regions_info.id IS '主键';
|
||||
COMMENT ON COLUMN regions_info.name IS '名称';
|
||||
COMMENT ON COLUMN regions_info.level IS '层级';
|
||||
COMMENT ON COLUMN regions_info.pid IS '父主键';
|
||||
COMMENT ON COLUMN regions_info.coordinates IS '坐标';
|
||||
COMMENT ON COLUMN regions_info.region_code IS '地区编码';
|
||||
COMMENT ON COLUMN regions_info.full_name IS '全称';
|
||||
COMMENT ON COLUMN regions_info.is_deleted IS '是否删除';
|
||||
COMMENT ON COLUMN regions_info.create_user IS '创建人';
|
||||
COMMENT ON COLUMN regions_info.create_dept IS '创建部门';
|
||||
COMMENT ON COLUMN regions_info.create_time IS '创建时间';
|
||||
COMMENT ON COLUMN regions_info.update_user IS '修改人';
|
||||
COMMENT ON COLUMN regions_info.update_time IS '修改时间';
|
||||
COMMENT ON COLUMN regions_info.status IS '状态';
|
||||
COMMENT ON TABLE common_regions_info IS '地区详情表';
|
||||
COMMENT ON COLUMN common_regions_info.id IS '主键';
|
||||
COMMENT ON COLUMN common_regions_info.name IS '名称';
|
||||
COMMENT ON COLUMN common_regions_info.level IS '层级';
|
||||
COMMENT ON COLUMN common_regions_info.pid IS '父主键';
|
||||
COMMENT ON COLUMN common_regions_info.coordinates IS '坐标';
|
||||
COMMENT ON COLUMN common_regions_info.region_code IS '地区编码';
|
||||
COMMENT ON COLUMN common_regions_info.full_name IS '全称';
|
||||
COMMENT ON COLUMN common_regions_info.is_deleted IS '是否删除';
|
||||
COMMENT ON COLUMN common_regions_info.create_user IS '创建人';
|
||||
COMMENT ON COLUMN common_regions_info.create_dept IS '创建部门';
|
||||
COMMENT ON COLUMN common_regions_info.create_time IS '创建时间';
|
||||
COMMENT ON COLUMN common_regions_info.update_user IS '修改人';
|
||||
COMMENT ON COLUMN common_regions_info.update_time IS '修改时间';
|
||||
COMMENT ON COLUMN common_regions_info.status IS '状态';
|
||||
|
||||
alter table regions_info
|
||||
alter table common_regions_info
|
||||
owner to yicha1lu;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user