MySQL Create Table SQL
Table Structure: okayapi_eduwind_ew_media:/tablelist/okayapi_eduwind_ew_media.html
-- MySQL Table okayapi_eduwind_ew_media
-- From: OkayAPI.com
CREATE TABLE `okayapi_eduwind_ew_media` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` char(255) NOT NULL COMMENT '标题',
`url` char(255) NOT NULL COMMENT '链接',
`userId` 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 '最新修改时间',
`introduction` text NOT NULL COMMENT '视频介绍',
`okayapi_eduwind_ew_media_type` char(32) NOT NULL DEFAULT 'link' COMMENT '课时内容类型',
`viewNum` int(11) NOT NULL DEFAULT '0' COMMENT '课时点击次数',
KEY `title` (`title`),
KEY `url` (`url`),
KEY `userId` (`userId`),
KEY `weight` (`weight`),
KEY `addTime` (`addTime`),
KEY `upTime` (`upTime`),
KEY `introduction` (`introduction`),
KEY `okayapi_eduwind_ew_media_type` (`okayapi_eduwind_ew_media_type`),
KEY `viewNum` (`viewNum`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'EW在线教育-课时表';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-9 of 9 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
title | char(255) | 否 | 标题 | |||
url | char(255) | 否 | 链接 | |||
userId | int(11) | 否 | 用户id | Normal Index | ||
weight | int(11) | 0 | 否 | 重量,用于课时排序,weight小的在前 | 0 | |
addTime | int(11) | 0 | 否 | 添加时间 | 0 | |
upTime | int(11) | 0 | 否 | 最新修改时间 | 0 | |
introduction | text | 是 | 视频介绍 | |||
okayapi_eduwind_ew_media_type | char(32) | link | 否 | 课时内容类型 | link | |
viewNum | int(11) | 0 | 否 | 课时点击次数 | 0 |