记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
4d1330dd
Commit
4d1330dd
authored
Feb 25, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~API:商品管理:添加、编辑图片、标签、服务支持同步Mysql调整;
parent
8907e00b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
db_ln_goblin_initialdata.sql
...net-service-goblin-impl/docu/db_ln_goblin_initialdata.sql
+17
-5
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/docu/db_ln_goblin_initialdata.sql
View file @
4d1330dd
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment