| | |
| | | -- ---------------------------- |
| | | -- 课程分类表 |
| | | -- ---------------------------- |
| | | drop table if exists `train_exam`.`sys_category`; |
| | | CREATE TABLE `train_exam`.`sys_category` ( |
| | | `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键' , |
| | | `parent_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '父分类id', |
| | | `name` varchar(30) NOT NULL COMMENT '分类名称', |
| | | `category_type` tinyint NOT NULL DEFAULT 1 COMMENT '类型(1课程,2资源)', |
| | | `del_flag` tinyint NOT NULL DEFAULT 0 COMMENT '删除标志(0为删除,1删除,默认0)', |
| | | `status` tinyint NOT NULL DEFAULT 0 COMMENT '账号状态(0正常,1停用,默认0)', |
| | | `sort` int UNSIGNED NOT NULL DEFAULT 1 COMMENT '排序', |
| | | `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |