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

MySQL建表SQL语句

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


-- 数据库大全:EW在线教育-课程表
-- 来源:YesApi.cn
CREATE TABLE `yesapi_eduwind_ew_course` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `yesapi_eduwind_ew_course_name` char(64) NOT NULL COMMENT '课程名称',
    `userId` int(11) NOT NULL COMMENT '课程创建人id',
    `memberNum` int(11) NOT NULL DEFAULT '0' COMMENT '修课人数',
    `viewNum` int(11) NOT NULL DEFAULT '0' COMMENT '点击量',
    `fee` decimal(7,2) NOT NULL DEFAULT '0.00' COMMENT '费用',
    `entityId` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `categoryId` int(11) NOT NULL DEFAULT '0' COMMENT '课程分类',
    `face` char(255) NOT NULL COMMENT '课程头像存放位置',
    `introduction` text NOT NULL COMMENT '课程简介',
    `addTime` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间',
    `yesapi_eduwind_ew_course_status` int(11) NOT NULL DEFAULT '0' COMMENT '状态,ok,applied,created',
    `rateScore` decimal(3,1) NOT NULL DEFAULT '0.0' COMMENT '平均得分',
    `rateNum` int(11) NOT NULL DEFAULT '0' COMMENT '评分人次',
    `targetStudent` varchar(1024) NOT NULL COMMENT '目标学员',
    `subTitle` char(255) NOT NULL COMMENT '副标题',
    `isTop` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否推荐',
    `deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '',
    `deleteTime` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `studentNum` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `validTime` int(11) NOT NULL DEFAULT '0' COMMENT '',
    KEY `userId` (`userId`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'EW在线教育-课程表';

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


MySQL数据库表结构设计

第 1-20 条, 共 20 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
yesapi_eduwind_ew_course_namechar(64)课程名称无索引
userIdint(11)课程创建人id普通索引
memberNumint(11)0修课人数无索引0
viewNumint(11)0点击量无索引0
feedecimal(7,2)0.00费用无索引0.00
entityIdint(11)0无索引0
categoryIdint(11)0课程分类无索引0
facechar(255)课程头像存放位置无索引
introductiontext课程简介无索引
addTimeint(11)0添加时间无索引0
yesapi_eduwind_ew_course_statusint(11)0状态,ok,applied,created无索引0
rateScoredecimal(3,1)0.0平均得分无索引0.0
rateNumint(11)0评分人次无索引0
targetStudentvarchar(1024)目标学员无索引
subTitlechar(255)副标题无索引
isToptinyint(4)0是否推荐无索引0
deletedtinyint(1)0无索引0
deleteTimeint(11)0无索引0
studentNumint(11)0无索引0
validTimeint(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在线教育-城市



回到顶部 ↑