| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- -- table order_list
- -- 购物车
- create table order_list(
- olId varchar(20) not null comment '购物车ID',
- channelId varchar(20) not null comment '渠道ID,对应渠道表channel',
- custId varchar(20) not null comment '客户ID,对应客户表cust',
- olTypeCd varchar(10) not null comment '购物车类型,网站 1 微信 2 APP 3 对应 order_list_type',
- extSystemId varchar(20) not null comment '对应外部系统 关联ID,方便维护',
- status_cd varchar(10) default '0' COMMENT '数据状态 对应 status',
- create_dt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- remark varchar(200) comment '备注'
- );
- -- 订单项
- create table busi_order(
- boId varchar(20) not null comment '业务动作ID',
- olId varchar(20) not null comment '购物车ID',
- actionTypeCd varchar(10) not null comment '购物车动作,对应表action_type',
- status_cd varchar(10) default '0' COMMENT '数据状态 对应 status',
- create_dt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- start_dt timestamp NOT NULL COMMENT '开始时间',
- end_dt timestamp NOT NULL COMMENT '结束时间',
- remark varchar(200) comment '备注'
- );
- --购物车属性表
- create table order_list_attr(
- olId varchar(20) not null COMMENT '客户ID',
- attrCd varchar(50) not null COMMENT '属性编码,对应 Attr 表',
- value varchar(200) not null COMMENT '属性编码对应值',
- create_dt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
- );
- --购物车属性表
- create table busi_order_attr(
- boId varchar(20) not null COMMENT '订单项ID',
- attrCd varchar(50) not null COMMENT '属性编码,对应 Attr 表',
- value varchar(200) not null COMMENT '属性编码对应值',
- create_dt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
- );
- -- 动作类型表
- create table action_type(
- id int not null,
- actionTypeCd varchar(10) not null comment '业务动作编码',
- name varchar(200) not null comment '业务动作名称',
- describe varchar(500) not null comment '业务动作描述',
- serviceCd varchar(10) not null comment '业务动作隶属于那个服务,U1 客户服务,M2 账户服务',
- create_dt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
- );
- -- 数据状态字典表
- create table status(
- id int not null,
- status_cd varchar(20),
- name varchar(200) not null comment '状态名称',
- describe varchar(500) not null comment '状态描述',
- create_dt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
- );
- -- 属性字典表
- create table attr(
- id int not null,
- domain varchar(20) not null comment '属性域,CUST 客户域 ORDER_LIST 购物车域 BUSI_ORDER 订单项域'
- attrCd varchar(20) not null comment '属性编码',
- name varchar(200) not null comment '属性名称',
- describe varchar(500) not null comment '属性描述',
- create_dt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
- );
|