|
@@ -1,115 +0,0 @@
|
|
|
-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 AUTO_INCREMENT,
|
|
|
|
|
- actionTypeCd varchar(10) not null comment '业务动作编码',
|
|
|
|
|
- name varchar(200) not null comment '业务动作名称',
|
|
|
|
|
- describe varchar(500) not null comment '业务动作描述',
|
|
|
|
|
- create_dt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|
|
|
|
- primary key (id)
|
|
|
|
|
-);
|
|
|
|
|
-
|
|
|
|
|
-insert into action_type(actionTypeCd,name,describe) values('C1','添加客户信息','添加客户信息');
|
|
|
|
|
-insert into action_type(actionTypeCd,name,describe) values('C2','修改客户信息','修改客户信息');
|
|
|
|
|
-insert into action_type(actionTypeCd,name,describe) values('C3','删除客户信息','删除客户信息');
|
|
|
|
|
-insert into action_type(actionTypeCd,name,describe) values('A1','添加账户信息','添加账户信息');
|
|
|
|
|
-insert into action_type(actionTypeCd,name,describe) values('A2','修改账户信息','修改账户信息');
|
|
|
|
|
-insert into action_type(actionTypeCd,name,describe) values('A3','删除账户信息','删除账户信息');
|
|
|
|
|
-insert into action_type(actionTypeCd,name,describe) values('M1','增加商户信息','增加商户信息');
|
|
|
|
|
-insert into action_type(actionTypeCd,name,describe) values('M2','编辑商户信息','编辑商户信息');
|
|
|
|
|
-insert into action_type(actionTypeCd,name,describe) values('M3','删除商户信息','删除商户信息');
|
|
|
|
|
-insert into action_type(actionTypeCd,name,describe) values('D','撤单','撤单');
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-create table status(
|
|
|
|
|
- id int not null AUTO_INCREMENT,
|
|
|
|
|
- domain varchar(20) not null comment '属性域,CUST 客户域 ORDER_LIST 购物车域 BUSI_ORDER 订单项域'
|
|
|
|
|
- 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 '创建时间',
|
|
|
|
|
- primary key (id)
|
|
|
|
|
-);
|
|
|
|
|
-
|
|
|
|
|
-insert into status(domain,status_cd,name,describe) values('DOMAIN.ORDER_LIST','S','保存数据成功','保存数据成功');
|
|
|
|
|
-insert into status(domain,status_cd,name,describe) values('DOMAIN.ORDER_LIST','0','有效的','有效的');
|
|
|
|
|
-insert into status(domain,status_cd,name,describe) values('DOMAIN.ORDER_LIST','1','无效的','无效的');
|
|
|
|
|
-
|
|
|
|
|
-insert into status(domain,status_cd,name,describe) values('DOMAIN.BUSI_ORDER','S','保存数据成功','保存数据成功');
|
|
|
|
|
-insert into status(domain,status_cd,name,describe) values('DOMAIN.BUSI_ORDER','0','有效的','有效的');
|
|
|
|
|
-insert into status(domain,status_cd,name,describe) values('DOMAIN.BUSI_ORDER','1','无效的','无效的');
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-create table attr(
|
|
|
|
|
- id int not null AUTO_INCREMENT ,
|
|
|
|
|
- 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 '创建时间',
|
|
|
|
|
- primary key (id)
|
|
|
|
|
-);
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-insert into attr(domain,attrCd,name,describe) values('DOMAIN.ORDER_LIST','10000002','作废购物车olId','作废购物车olId');
|
|
|
|
|
-insert into attr(domain,attrCd,name,describe) values('DOMAIN.BUSI_ORDER','10000001','作废订单项boId','作废订单项boId');
|
|
|