记得上下班打卡 | git大法好,push需谨慎

Commit 4d1330dd authored by 张国柄's avatar 张国柄

~API:商品管理:添加、编辑图片、标签、服务支持同步Mysql调整;

parent 8907e00b
...@@ -210,8 +210,7 @@ create table goblin_goods_service_support ...@@ -210,8 +210,7 @@ create table goblin_goods_service_support
comment varchar(255) comment varchar(255)
) engine = InnoDB comment '商品关联服务支持'; ) engine = InnoDB comment '商品关联服务支持';
create index idx_ggss_service_support_id on goblin_goods_service_support (ssid); create unique index uidx_ggss_spu_ssid on goblin_goods_service_support (spu_id, ssid);
create index idx_ggss_spu_id on goblin_goods_service_support (spu_id);
# -- >>------------------------------------------------------------------------------------ # -- >>------------------------------------------------------------------------------------
drop table if exists goblin_goods_tag; drop table if exists goblin_goods_tag;
create table goblin_goods_tag create table goblin_goods_tag
...@@ -225,8 +224,21 @@ create table goblin_goods_tag ...@@ -225,8 +224,21 @@ create table goblin_goods_tag
comment varchar(255) comment varchar(255)
) engine = InnoDB comment '商品关联标签'; ) engine = InnoDB comment '商品关联标签';
create index idx_ggt_tag_id on goblin_goods_tag (tag_id); create unique index uidx_ggt_spu_tag on goblin_goods_tag (spu_id, tag_id);
create index idx_ggt_spu_id on goblin_goods_tag (spu_id); # 临时添加用作商品关联现场AR标签
drop table if exists goblin_goods_artag;
create table goblin_goods_artag
(
mid bigint auto_increment primary key,
spu_id varchar(64) not null comment '商品id',
tag_id varchar(30) not null comment '标签id,对应 goblin_self_tag.tag_id',
sort int default 0 comment '排序[数值越小,排序越前]',
tag_belong char default '0' comment '标签所属[0-普通标签|1-专属标签]',
del_flg char default '0' comment '删除标记[0-未删除|1-删除]',
comment varchar(255)
) engine = InnoDB comment '商品关联标签';
create unique index uidx_gga_spu_tag on goblin_goods_artag (spu_id, tag_id);
# -- >>------------------------------------------------------------------------------------ # -- >>------------------------------------------------------------------------------------
drop table if exists goblin_goods_image; drop table if exists goblin_goods_image;
create table goblin_goods_image create table goblin_goods_image
...@@ -238,7 +250,7 @@ create table goblin_goods_image ...@@ -238,7 +250,7 @@ create table goblin_goods_image
comment varchar(255) comment varchar(255)
) engine = InnoDB comment '商品图片'; ) engine = InnoDB comment '商品图片';
create index idx_ggi_spu_id on goblin_goods_image (spu_id); create unique index uidx_ggi_spu_url on goblin_goods_image (spu_id, url);
# -- >>------------------------------------------------------------------------------------ # -- >>------------------------------------------------------------------------------------
drop table if exists goblin_goods; drop table if exists goblin_goods;
create table goblin_goods create table goblin_goods
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment