Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nyx
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
发现
nyx
Commits
b0f0a9a8
Commit
b0f0a9a8
authored
Aug 06, 2020
by
jscat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nyx sql:
1. 更新, remove wine之前的detail 表
parent
e0d27b2a
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
0 行增加
和
66 行删除
+0
-66
增值产品-小程序及app/doc/create_table_sql/mall/create_table_product_detail.sql
+0
-66
没有找到文件。
增值产品-小程序及app/doc/create_table_sql/mall/create_table_product_detail.sql
deleted
100644 → 0
查看文件 @
e0d27b2a
USE
`rockwell_key`
;
USE
`rockwell_key`
;
/*
wine信息 与 商户无关
场景
需求:
1) 我想要买什么: sb,输入sb
2) 我想要配餐酒:brie,输入brie
搜索附近的sb或者与brie匹配的wine,按评分(scores)从高到底排序: 图片,名字,价格,评分,评论数
点击 进入 详情页
名字, 评分, 评论数,
类型/ abv / 产地
详情/评论
category
region
abv
body
sweet-dry scale
tasting notes
food pairing
suggested glassware
suggested serving temperature
review
write review / sort 最新/最高/最低
分页
*/
DROP
TABLE
IF
EXISTS
`tbl_goods_detail`
;
CREATE
TABLE
`tbl_goods_detail`
(
`detail_id`
VARCHAR
(
100
)
NOT
NULL
COMMENT
'具体描述的id, uuid format'
,
`wine_name`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'wine名字'
,
`category`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'类别'
,
`region`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'产地'
,
`abv`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'酒精度'
,
`wine_body`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'酒体'
,
`scale`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'甜度'
,
`tasting_notes`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'notes'
,
`glassware`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'酒杯'
,
`temperature`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'温度'
,
`scores`
VARCHAR
(
10
)
DEFAULT
'0'
COMMENT
'评分'
,
`num_reviews`
VARCHAR
(
10
)
DEFAULT
'0'
COMMENT
'评论数'
,
`food_pairing`
VARCHAR
(
200
)
DEFAULT
''
COMMENT
'食物配餐'
,
`img_url`
VARCHAR
(
1000
)
DEFAULT
NULL
COMMENT
'图片链接'
,
`create_datetime`
DATETIME
NOT
NULL
DEFAULT
'0000-00-00 00:00:00'
COMMENT
'创建时间'
,
`update_datetime`
DATETIME
DEFAULT
NULL
COMMENT
'最近一次更新时间'
,
PRIMARY
KEY
(
`detail_id`
),
KEY
`query_key`
(
`wine_name`
,
`food_pairing`
)
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'wine商品详细表'
;
/*Data for the table `tbl_goods_detail` */
INSERT
INTO
`tbl_goods_detail`
(
`detail_id`
,
`wine_name`
,
`category`
,
`region`
,
`abv`
,
`wine_body`
,
`scale`
,
`tasting_notes`
,
`glassware`
,
`temperature`
,
`scores`
,
`num_reviews`
,
`food_pairing`
,
`img_url`
,
`create_datetime`
,
`update_datetime`
)
VALUES
(
'did_001'
,
'Oyster Bay Marlborough Sauvignon Blanc'
,
'Sauvignon Blanc'
,
'Marlborough, New Zealand'
,
'13%'
,
'light'
,
'dry'
,
'citrus, tropical fruit, vegetal'
,
'standard white glass'
,
'45-50° F'
,
'4.6'
,
'82'
,
'醉蟹,毛豆,水煮虾姑'
,
'https://930-test-sh.oss-cn-shanghai.aliyuncs.com/m_image/cincin.jpg
\r\n
'
,
'2020-05-20 11:24:45'
,
'2020-05-20 11:24:45'
)
;
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论