只有架构

This commit is contained in:
2023-06-23 18:58:13 +08:00
parent abe7f07a03
commit 0cb751da4c
4 changed files with 79 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
CREATE TABLE IF NOT EXISTS `ts_workorder` (
`workorderid` int(11) NOT NULL AUTO_INCREMENT COMMENT 'orderID',
`userid` int(11) NOT NULL DEFAULT '0' COMMENT 'userID',
`cateid` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
`title` varchar(64) NOT NULL DEFAULT '' COMMENT '标题',
`tags` varchar(128) NOT NULL DEFAULT '' COMMENT '标签',
`gaiyao` varchar(128) NOT NULL DEFAULT '' COMMENT '内容概要',
`path` char(32) NOT NULL DEFAULT '' COMMENT '路径',
`photo` char(32) NOT NULL DEFAULT '' COMMENT '图片路径',
`istop` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否置顶0否1是',
`isaudit` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否审核',
`count_comment` int(11) NOT NULL DEFAULT '0' COMMENT '统计评论数',
`addtime` datetime NOT NULL DEFAULT '1970-01-01 00:00:01' COMMENT '时间',
`uptime` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
PRIMARY KEY (`workorderid`),
KEY `addtime` (`addtime`),
KEY `cateid` (`cateid`),
KEY `title` (`title`),
KEY `tags` (`tags`,`isaudit`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='工单';