-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb.txt
31 lines (28 loc) · 1.32 KB
/
db.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* --------课程表-------- */;
CREATE TABLE `courses` (
`id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`background` VARCHAR(255) NOT NULL COMMENT '背景展示图',
`name` VARCHAR(128) NOT NULL COMMENT '课程名称',
`level` VARCHAR(128) NOT NULL COMMENT '等级',
`equipment` VARCHAR(128) NOT NULL COMMENT '使用设备',
`count` INT(11) NOT NULL COMMENT '节数',
`pioneer` INT(11) NOT NULL COMMENT '训练人数',
`create_time` DATETIME NOT NULL COMMENT '创建时间',
`update_time` DATETIME NOT NULL COMMENT '更新时间',
`is_deleted` TINYINT(4) NOT NULL COMMENT '是否删除',
PRIMARY KEY (`id`)
) ENGINE=INNODB DEFAULT CHARSET=utf8mb4;
/* --------课程公共字段表-------- */;
CREATE TABLE `courses_common` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`background` varchar(255) NOT NULL COMMENT '背景展示图',
`name` varchar(128) NOT NULL COMMENT '课程名称',
`level` varchar(128) NOT NULL COMMENT '等级',
`equipment` varchar(128) NOT NULL COMMENT '使用设备',
`count` int(11) NOT NULL COMMENT '节数',
`pioneer` int(11) NOT NULL COMMENT '训练人数',
`create_time` datetime NOT NULL COMMENT '创建时间',
`update_time` datetime NOT NULL COMMENT '更新时间',
`is_deleted` tinyint(4) NOT NULL COMMENT '是否删除',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4