Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CSDN 技术社区
skill_tree_mysql
提交
d3c62225
S
skill_tree_mysql
项目概览
CSDN 技术社区
/
skill_tree_mysql
通知
21
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
skill_tree_mysql
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
d3c62225
编写于
6月 22, 2022
作者:
M
Mars Liu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
init databaase script
上级
34e7a5bc
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
16 addition
and
17 deletion
+16
-17
gears/create_databaase/init_database.sql
gears/create_databaase/init_database.sql
+16
-17
未找到文件。
gears/create_databaase/init_database.sql
浏览文件 @
d3c62225
...
...
@@ -19,7 +19,6 @@
-- Current Database: `goods`
--
USE
`goods`
;
--
-- Table structure for table `bids`
...
...
@@ -33,7 +32,7 @@ CREATE TABLE `bids` (
`invitation_id`
int
DEFAULT
NULL
,
`company_id`
int
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
11
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
11
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -62,7 +61,7 @@ CREATE TABLE `book` (
`publish_at`
date
NOT
NULL
,
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`idx_book_isbn`
(
`isbn`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
4
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
4
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -86,7 +85,7 @@ CREATE TABLE `company` (
`id`
int
NOT
NULL
AUTO_INCREMENT
,
`name`
varchar
(
256
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
5
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
5
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -112,7 +111,7 @@ CREATE TABLE `customer` (
`address`
varchar
(
1024
)
DEFAULT
NULL
,
`level`
int
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
15
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
15
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -141,7 +140,7 @@ CREATE TABLE `employee` (
`post`
varchar
(
256
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`id`
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
7
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
7
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -170,7 +169,7 @@ CREATE TABLE `goods` (
`stock-id`
int
DEFAULT
NULL
,
`upper_time`
timestamp
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
7
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
7
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -194,7 +193,7 @@ CREATE TABLE `goods_category` (
`id`
int
NOT
NULL
AUTO_INCREMENT
,
`name`
varchar
(
64
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
7
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
7
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -219,7 +218,7 @@ CREATE TABLE `invitation` (
`name`
varchar
(
256
)
DEFAULT
NULL
,
`attachment`
text
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
5
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
5
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -243,7 +242,7 @@ CREATE TABLE `items` (
`id`
int
NOT
NULL
AUTO_INCREMENT
,
`item`
int
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
5
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
5
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -268,7 +267,7 @@ CREATE TABLE `node` (
`pid`
int
DEFAULT
NULL
,
`val`
int
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
9
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
9
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -297,7 +296,7 @@ CREATE TABLE `orders` (
`description`
varchar
(
2000
)
DEFAULT
NULL
,
`ts`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
5
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
5
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -361,7 +360,7 @@ CREATE TABLE `orders_log` (
`direction`
varchar
(
16
)
DEFAULT
NULL
,
`log_at`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
,
PRIMARY
KEY
(
`log_id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
6
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
6
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -391,7 +390,7 @@ CREATE TABLE `payment` (
`day`
date
GENERATED
ALWAYS
AS
(
cast
(
`payment_date`
as
date
))
STORED
,
PRIMARY
KEY
(
`payment_id`
),
KEY
`idx_payment_date`
((
cast
(
`payment_date`
as
date
)))
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -415,7 +414,7 @@ CREATE TABLE `points` (
`x`
float
DEFAULT
NULL
,
`y`
float
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -440,7 +439,7 @@ CREATE TABLE `stock` (
`level`
int
DEFAULT
'1'
,
`address`
varchar
(
1024
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
4
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
4
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -468,7 +467,7 @@ CREATE TABLE `t8` (
PRIMARY
KEY
(
`id`
),
SPATIAL
KEY
`geo_index`
(
`location`
),
FULLTEXT
KEY
`description`
(
`description`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录