Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
YYL469
2024-07-02 22:08:18 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
01ed2ce623259482a810739900c1c6a2f087de51
01ed2ce6
1 parent
24a81848
【createTables.sql】实现数据库所有表的创建
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
createTables.sql
createTables.sql
0 → 100644
View file @
01ed2ce
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- article表
-- ----------------------------
CREATE
TABLE
`article`
(
`id`
bigint
(
20
)
DEFAULT
NULL
,
`likeNum`
bigint
(
20
)
DEFAULT
NULL
,
`commentsLen`
bigint
(
20
)
DEFAULT
NULL
,
`reposts_count`
bigint
(
20
)
DEFAULT
NULL
,
`region`
text
,
`content`
text
,
`contentLen`
bigint
(
20
)
DEFAULT
NULL
,
`created_at`
text
,
`type`
text
,
`detailUrl`
text
,
`authorAvatar`
text
,
`authorName`
text
,
`authorDetail`
text
,
`isVip`
double
DEFAULT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
-- ----------------------------
-- comments表
-- ----------------------------
CREATE
TABLE
`comments`
(
`articleId`
bigint
(
20
)
DEFAULT
NULL
,
`created_at`
text
,
`likes_counts`
bigint
(
20
)
DEFAULT
NULL
,
`region`
text
,
`content`
text
,
`authorName`
text
,
`authorGender`
text
,
`authorAddress`
text
,
`authorAvatar`
text
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
-- ----------------------------
-- user表
-- ----------------------------
CREATE
TABLE
`user`
(
`username`
varchar
(
255
)
DEFAULT
NULL
,
`password`
varchar
(
255
)
DEFAULT
NULL
,
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`createTime`
varchar
(
255
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
4
DEFAULT
CHARSET
=
utf8
;
\ No newline at end of file
...
...
Please
register
or
login
to post a comment