1
This commit is contained in:
@@ -134,7 +134,7 @@ CREATE INDEX idx_user_id ON user_cart (user_id);
|
||||
alter table user_cart
|
||||
owner to yicha1lu;
|
||||
|
||||
CREATE TABLE user_address
|
||||
CREATE TABLE common_user_address
|
||||
(
|
||||
id int8 NOT NULL PRIMARY KEY,
|
||||
user_id int8 NULL,
|
||||
@@ -157,25 +157,25 @@ CREATE TABLE user_address
|
||||
);
|
||||
|
||||
|
||||
COMMENT ON TABLE user_address IS '用户地址表';
|
||||
COMMENT ON COLUMN user_address.id IS '主键';
|
||||
COMMENT ON COLUMN user_address.user_id IS '用户id';
|
||||
COMMENT ON COLUMN user_address.regions_info_id IS '地区信息id';
|
||||
COMMENT ON COLUMN user_address.province IS '省份';
|
||||
COMMENT ON COLUMN user_address.city IS '城市';
|
||||
COMMENT ON COLUMN user_address.district IS '区县';
|
||||
COMMENT ON COLUMN user_address.street IS '街道';
|
||||
COMMENT ON COLUMN user_address.detail IS '详细地址';
|
||||
COMMENT ON COLUMN user_address.consignee IS '收货人';
|
||||
COMMENT ON COLUMN user_address.phone IS '联系电话';
|
||||
COMMENT ON COLUMN user_address.is_default IS '是否默认地址(0=否,1=是)';
|
||||
COMMENT ON COLUMN user_address.create_user IS '创建人';
|
||||
COMMENT ON COLUMN user_address.create_dept IS '创建部门';
|
||||
COMMENT ON COLUMN user_address.create_time IS '创建时间';
|
||||
COMMENT ON COLUMN user_address.update_user IS '修改人';
|
||||
COMMENT ON COLUMN user_address.update_time IS '修改时间';
|
||||
COMMENT ON COLUMN user_address.status IS '状态';
|
||||
COMMENT ON COLUMN user_address.is_deleted IS '是否已删除';
|
||||
COMMENT ON TABLE common_user_address IS '用户地址表';
|
||||
COMMENT ON COLUMN common_user_address.id IS '主键';
|
||||
COMMENT ON COLUMN common_user_address.user_id IS '用户id';
|
||||
COMMENT ON COLUMN common_user_address.regions_info_id IS '地区信息id';
|
||||
COMMENT ON COLUMN common_user_address.province IS '省份';
|
||||
COMMENT ON COLUMN common_user_address.city IS '城市';
|
||||
COMMENT ON COLUMN common_user_address.district IS '区县';
|
||||
COMMENT ON COLUMN common_user_address.street IS '街道';
|
||||
COMMENT ON COLUMN common_user_address.detail IS '详细地址';
|
||||
COMMENT ON COLUMN common_user_address.consignee IS '收货人';
|
||||
COMMENT ON COLUMN common_user_address.phone IS '联系电话';
|
||||
COMMENT ON COLUMN common_user_address.is_default IS '是否默认地址(0=否,1=是)';
|
||||
COMMENT ON COLUMN common_user_address.create_user IS '创建人';
|
||||
COMMENT ON COLUMN common_user_address.create_dept IS '创建部门';
|
||||
COMMENT ON COLUMN common_user_address.create_time IS '创建时间';
|
||||
COMMENT ON COLUMN common_user_address.update_user IS '修改人';
|
||||
COMMENT ON COLUMN common_user_address.update_time IS '修改时间';
|
||||
COMMENT ON COLUMN common_user_address.status IS '状态';
|
||||
COMMENT ON COLUMN common_user_address.is_deleted IS '是否已删除';
|
||||
|
||||
alter table user_address
|
||||
alter table common_user_address
|
||||
owner to yicha1lu;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user