
CREATE TABLE `docu_document_draft` (
                                       `id` bigint NOT NULL AUTO_INCREMENT,
                                       `title` varchar(50) NOT NULL COMMENT '标题',
                                       `content` longtext NOT NULL COMMENT '内容',
                                       `create_user_id` bigint NOT NULL COMMENT '创建用户',
                                       `create_time` datetime NOT NULL COMMENT '创建时间',
                                       PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `docu_document` (
                                 `id` bigint NOT NULL AUTO_INCREMENT,
                                 `title` varchar(50) NOT NULL COMMENT '标题',
                                 `content` longtext NOT NULL COMMENT '内容',
                                 `publish_user_id` bigint NOT NULL COMMENT '发布用户',
                                 `publish_time` datetime NOT NULL COMMENT '发布时间',
                                 PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

