MySQL数据库表结构设计
第 1-17 条, 共 17 条.
字段名称 | 字段类型 | 字段默认值 | 是否允许为空 | 字段描述 | 索引 | 字段数据示例 |
---|---|---|---|---|---|---|
yesapi_whatsns_category_name | char(30) | 否 | 无索引 | |||
dir | char(30) | 否 | 无索引 | |||
pid | smallint(5) | 0 | 否 | 普通索引 | 0 | |
grade | tinyint(1) | 0 | 否 | 普通索引 | 0 | |
displayorder | tinyint(3) | 0 | 否 | 无索引 | 0 | |
questions | int(10) | 0 | 否 | 普通索引 | 0 | |
alias | varchar(200) | 否 | 无索引 | |||
miaosu | varchar(500) | 否 | 无索引 | |||
followers | int(10) | 0 | 否 | 普通索引 | 0 | |
image | varchar(200) | 否 | 无索引 | |||
template | varchar(200) | 否 | 无索引 | |||
articletemplate | varchar(200) | topicone | 是 | 无索引 | topicone | |
onlybackground | int(2) | 0 | 是 | 普通索引 | 0 | |
isshowindex | int(10) | 1 | 是 | 普通索引 | 1 | |
isusearticle | int(10) | 1 | 是 | 普通索引 | 1 | |
isuseask | int(10) | 1 | 是 | 普通索引 | 1 | |
iscourse | int(10) | 0 | 是 | 普通索引 | 0 |
MySQL建表SQL语句 免费MySQL数据库表结构设计
数据库结构:问答社区-分类:https://open.yesapi.cn/tablelist/yesapi_whatsns_category.html
-- 数据库大全:问答社区-分类
-- 来源:YesApi.cn
CREATE TABLE `yesapi_whatsns_category` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`yesapi_whatsns_category_name` char(30) NULL COMMENT '',
`dir` char(30) NULL COMMENT '',
`pid` smallint(5) NULL DEFAULT '0' COMMENT '',
`grade` tinyint(1) NULL DEFAULT '0' COMMENT '',
`displayorder` tinyint(3) NULL DEFAULT '0' COMMENT '',
`questions` int(10) NULL DEFAULT '0' COMMENT '',
`alias` varchar(200) NULL COMMENT '',
`miaosu` varchar(500) NULL COMMENT '',
`followers` int(10) NULL DEFAULT '0' COMMENT '',
`image` varchar(200) NULL COMMENT '',
`template` varchar(200) NULL COMMENT '',
`articletemplate` varchar(200) NULL DEFAULT 'topicone' COMMENT '',
`onlybackground` int(2) NULL DEFAULT '0' COMMENT '',
`isshowindex` int(10) NULL DEFAULT '1' COMMENT '',
`isusearticle` int(10) NULL DEFAULT '1' COMMENT '',
`isuseask` int(10) NULL DEFAULT '1' COMMENT '',
`iscourse` int(10) NULL DEFAULT '0' COMMENT '',
KEY `pid` (`pid`),
KEY `grade` (`grade`),
KEY `questions` (`questions`),
KEY `followers` (`followers`),
KEY `onlybackground` (`onlybackground`),
KEY `isshowindex` (`isshowindex`),
KEY `isusearticle` (`isusearticle`),
KEY `isuseask` (`isuseask`),
KEY `iscourse` (`iscourse`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '问答社区-分类';
复制后,到数据库执行,即可创建此数据库表。
猜你喜欢

