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

MySQL建表SQL语句

数据库结构:EW在线教育-课时表:https://open.yesapi.cn/tablelist/yesapi_eduwind_ew_lesson.html


-- 数据库大全:EW在线教育-课时表
-- 来源:YesApi.cn
CREATE TABLE `yesapi_eduwind_ew_lesson` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `title` char(255) NOT NULL COMMENT '标题',
    `courseId` int(11) NOT NULL COMMENT '所属课程id',
    `weight` int(11) NOT NULL DEFAULT '0' COMMENT '重量,用于课时排序,weight小的在前',
    `addTime` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间',
    `upTime` int(11) NOT NULL DEFAULT '0' COMMENT '最新修改时间',
    `mediaId` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `mediaSource` char(32) NOT NULL COMMENT '课时来源',
    `mediaUri` char(255) NOT NULL COMMENT '',
    `mediaName` char(255) NOT NULL COMMENT '',
    `viewNum` int(11) NOT NULL DEFAULT '0' COMMENT '点击',
    `introduction` text NOT NULL COMMENT '简介',
    `entityId` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `userId` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
    `mediaType` char(32) NOT NULL DEFAULT 'video' COMMENT '',
    `yesapi_eduwind_ew_lesson_status` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `isFree` tinyint(1) NOT NULL DEFAULT '0' COMMENT '',
    `yesapi_eduwind_ew_lesson_number` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `chapterId` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `duration` int(11) NOT NULL DEFAULT '0' COMMENT '',
    KEY `courseId` (`courseId`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'EW在线教育-课时表';

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


MySQL数据库表结构设计

第 1-19 条, 共 19 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
titlechar(255)标题无索引
courseIdint(11)所属课程id普通索引
weightint(11)0重量,用于课时排序,weight小的在前无索引0
addTimeint(11)0添加时间无索引0
upTimeint(11)0最新修改时间无索引0
mediaIdint(11)0无索引0
mediaSourcechar(32)课时来源无索引
mediaUrichar(255)无索引
mediaNamechar(255)无索引
viewNumint(11)0点击无索引0
introductiontext简介无索引
entityIdint(11)0无索引0
userIdint(11)0用户id无索引0
mediaTypechar(32)video无索引video
yesapi_eduwind_ew_lesson_statusint(11)0无索引0
isFreetinyint(1)0无索引0
yesapi_eduwind_ew_lesson_numberint(11)0无索引0
chapterIdint(11)0无索引0
durationint(11)0无索引0

猜你喜欢

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在线教育-城市



回到顶部 ↑