You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

99 lines
4.2 KiB

/*==============================================================*/
/* DBMS name: MySQL 5.0 */
/* Created on: 2018/9/6 12:42:36 */
/*==============================================================*/
drop table if exists recommend_config;
drop table if exists rel_vgoods_service_category;
drop table if exists service_category;
/*==============================================================*/
/* Table: recommend_config */
/*==============================================================*/
create table recommend_config
(
id int(32) not null auto_increment,
merchant_id bigint not null,
coupon_batch_id int(20) not null,
merchant_no varchar(32) comment '商户编号',
coupon_batch_no varchar(32) comment '优惠券模板编号',
created_at bigint comment '创建时间',
created_by varchar(32) comment '创建人',
updated_at bigint comment '更新时间',
updated_by varchar(32) comment '更新人',
del_flag tinyint default 0 comment '删除标识:0-正常,1-已删除',
primary key (id)
)
comment '商户推荐配置'
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=1;
/*==============================================================*/
/* Table: rel_vgoods_service_category */
/*==============================================================*/
create table rel_vgoods_service_category
(
id int(32) not null auto_increment,
category_id int(32) not null,
template_id int(20) not null,
category_no varchar(32) comment '品类编号',
template_no varchar(32) comment '商品模板编号',
sort int comment '排序值',
created_at bigint comment '创建时间',
created_by varchar(32) comment '创建人',
updated_at bigint comment '更新时间',
updated_by varchar(32) comment '更新人',
del_flag tinyint default 0 comment '删除标识:0-正常,1-已删除',
primary key (id)
)
comment '商品与服务品类关系'
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=1;
/*==============================================================*/
/* Table: service_category */
/*==============================================================*/
create table service_category
(
id int(32) not null auto_increment,
category_no varchar(32) comment '品类编号',
category_name varchar(20) comment '品类名称',
status tinyint default 0 comment '状态:0-正常,1-下架',
is_release tinyint default 0 comment '是否发布:0-不发布,1-发布',
category_image varchar(200) comment '品类图',
created_at bigint comment '创建时间',
created_by varchar(32) comment '创建人',
updated_at bigint comment '更新时间',
updated_by varchar(32) comment '更新人',
sort int comment '排序值',
del_flag tinyint default 0 comment '删除标识:0-正常,1-已删除',
primary key (id)
)
comment '服务品类'
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=1;
/*==============================================================*/
/* Table: book_serve */
/*==============================================================*/
alter table book_serve
add column abnormal_remark varchar(255) comment '服务工单异常备注';
/*==============================================================*/
/* Table: coupon_batch */
/*==============================================================*/
alter table coupon_batch
add column exchange_price bigint default 0 comment '劵售价';
/*==============================================================*/
/* Table: coupon */
/*==============================================================*/
alter table coupon
add column exchange_price bigint default 0 comment '劵售价';