+ 立即免费创建此表 返回数据库大全

MySQL建表SQL语句

数据库结构:问题列表:https://open.yesapi.cn/tablelist/yesapi_question.html


-- 数据库大全:问题列表
-- 来源:YesApi.cn
CREATE TABLE `yesapi_question` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `question_content` varchar(255) NOT NULL COMMENT '问题内容',
    `question_detail` text NOT NULL COMMENT '问题说明',
    `published_uid` int(11) NOT NULL COMMENT '发布用户UID',
    `answer_count` int(11) NOT NULL DEFAULT '0' COMMENT '回答计数',
    `answer_users` int(11) NOT NULL DEFAULT '0' COMMENT '回答人数',
    `view_count` int(11) NOT NULL DEFAULT '0' COMMENT '浏览次数',
    `focus_count` int(11) NOT NULL DEFAULT '0' COMMENT '关注数',
    `comment_count` int(11) NOT NULL DEFAULT '0' COMMENT '评论数',
    `category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类 ID',
    `agree_count` int(11) NOT NULL DEFAULT '0' COMMENT '回复赞同数总和',
    `against_count` int(11) NOT NULL DEFAULT '0' COMMENT '回复反对数总和',
    `yesapi_question_lock` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否锁定',
    `anonymous` tinyint(1) NOT NULL DEFAULT '0' COMMENT '',
    `thanks_count` int(10) NOT NULL DEFAULT '0' COMMENT '',
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '问题列表';

复制后,到数据库执行,即可创建此数据库表。


MySQL数据库表结构设计

第 1-14 条, 共 14 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
question_contentvarchar(255)问题内容无索引
question_detailtext问题说明无索引
published_uidint(11)发布用户UID无索引
answer_countint(11)0回答计数无索引0
answer_usersint(11)0回答人数无索引0
view_countint(11)0浏览次数无索引0
focus_countint(11)0关注数无索引0
comment_countint(11)0评论数无索引0
category_idint(11)0分类 ID无索引0
agree_countint(11)0回复赞同数总和无索引0
against_countint(11)0回复反对数总和无索引0
yesapi_question_locktinyint(1)0是否锁定无索引0
anonymoustinyint(1)0无索引0
thanks_countint(10)0无索引0

猜你喜欢

MySQL数据库设计 投诉举报

MySQL数据库设计 话题

MySQL数据库设计 社交会员

MySQL数据库设计 新浪微博登录

MySQL数据库设计 UCenter登录



回到顶部 ↑