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

MySQL建表SQL语句

数据库结构:EW在线教育-小组表:https://open.yesapi.cn/tablelist/yesapi_eduwind_ew_group.html


-- 数据库大全:EW在线教育-小组表
-- 来源:YesApi.cn
CREATE TABLE `yesapi_eduwind_ew_group` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `yesapi_eduwind_ew_group_name` char(64) NOT NULL COMMENT '名称',
    `face` char(255) NOT NULL COMMENT '头像存放位置',
    `userId` int(11) NOT NULL COMMENT '小组创建人id',
    `addTime` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间',
    `introduction` text NOT NULL COMMENT '课程简介',
    `yesapi_eduwind_ew_group_status` char(32) NOT NULL COMMENT '状态,ok,applied,created',
    `memberNum` int(11) NOT NULL DEFAULT '0' COMMENT '人数',
    `viewNum` int(11) NOT NULL DEFAULT '0' COMMENT '点击量',
    `postableEntityId` int(11) NOT NULL COMMENT '发帖对象id',
    `joinType` char(32) NOT NULL DEFAULT 'free' COMMENT '加入方式:apply,free',
    `entityId` int(11) NOT NULL DEFAULT '0' COMMENT 'Entity对象Id',
    `isTop` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否推荐',
    `categoryId` int(11) NOT NULL DEFAULT '0' COMMENT '分类',
    `deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '',
    `deleteTime` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `leaderTitle` char(32) NOT NULL DEFAULT '组长' COMMENT '',
    `memberTitle` char(32) NOT NULL DEFAULT '成员' COMMENT '',
    `adminTitle` char(32) NOT NULL DEFAULT '管理员' COMMENT '',
    KEY `userId` (`userId`),
    UNIQUE KEY `postableEntityId` (`postableEntityId`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'EW在线教育-小组表';

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


MySQL数据库表结构设计

第 1-18 条, 共 18 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
yesapi_eduwind_ew_group_namechar(64)名称无索引
facechar(255)头像存放位置无索引
userIdint(11)小组创建人id普通索引
addTimeint(11)0添加时间无索引0
introductiontext课程简介无索引
yesapi_eduwind_ew_group_statuschar(32)状态,ok,applied,created无索引
memberNumint(11)0人数无索引0
viewNumint(11)0点击量无索引0
postableEntityIdint(11)发帖对象id唯一索引
joinTypechar(32)free加入方式:apply,free无索引free
entityIdint(11)0Entity对象Id无索引0
isToptinyint(4)0是否推荐无索引0
categoryIdint(11)0分类无索引0
deletedtinyint(1)0无索引0
deleteTimeint(11)0无索引0
leaderTitlechar(32)组长无索引组长
memberTitlechar(32)成员无索引成员
adminTitlechar(32)管理员无索引管理员

猜你喜欢

MySQL数据库设计 课程预约

MySQL数据库设计 学英语社区-文章

MySQL数据库设计 学英语社区-文章内容

MySQL数据库设计 学英语社区-英文等级

MySQL数据库设计 学英语社区-等级搭述

MySQL数据库设计 学英语社区-英文短句

MySQL数据库设计 EW在线教育-权限分配

MySQL数据库设计 EW在线教育-权限

MySQL数据库设计 EW在线教育-子权限

MySQL数据库设计 EW在线教育-权限

MySQL数据库设计 EW在线教育-会话

MySQL数据库设计 EW在线教育-公告

MySQL数据库设计 EW在线教育-答案

MySQL数据库设计 EW在线教育-地区

MySQL数据库设计 EW在线教育-文章

MySQL数据库设计 EW在线教育-静态页面

MySQL数据库设计 EW在线教育-首页轮播图片

MySQL数据库设计 EW在线教育-分类

MySQL数据库设计 EW在线教育-章节

MySQL数据库设计 EW在线教育-城市



回到顶部 ↑