MySQL Create Table SQL
Table Structure: okayapi_eduwind_ew_comment:/tablelist/okayapi_eduwind_ew_comment.html
-- MySQL Table okayapi_eduwind_ew_comment
-- From: OkayAPI.com
CREATE TABLE `okayapi_eduwind_ew_comment` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` char(255) NOT NULL COMMENT '标题',
`content` text NOT NULL COMMENT '内容',
`addTime` int(11) NOT NULL DEFAULT '0' COMMENT '发表时间',
`ew_rate` int(11) NOT NULL DEFAULT '0' COMMENT '评分',
`userId` int(11) NOT NULL COMMENT '发表者id',
`commentableEntityId` int(11) NOT NULL DEFAULT '0' COMMENT '评论对象id',
`entityId` int(11) NOT NULL DEFAULT '0' COMMENT 'Entity对象Id',
`referId` int(11) NOT NULL DEFAULT '0' COMMENT '引用回复',
`voteUpNum` int(11) NOT NULL DEFAULT '0' COMMENT '',
`voteDownNum` int(11) NOT NULL DEFAULT '0' COMMENT '',
`deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '',
`deleteTime` int(11) NOT NULL DEFAULT '0' COMMENT '',
KEY `title` (`title`),
KEY `content` (`content`),
KEY `addTime` (`addTime`),
KEY `ew_rate` (`ew_rate`),
KEY `userId` (`userId`),
KEY `commentableEntityId` (`commentableEntityId`),
KEY `entityId` (`entityId`),
KEY `referId` (`referId`),
KEY `voteUpNum` (`voteUpNum`),
KEY `voteDownNum` (`voteDownNum`),
KEY `deleted` (`deleted`),
KEY `deleteTime` (`deleteTime`),
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-12 of 12 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
title | char(255) | 否 | 标题 | |||
content | text | 否 | 内容 | |||
addTime | int(11) | 0 | 是 | 发表时间 | 0 | |
ew_rate | int(11) | 0 | 否 | 评分 | 0 | |
userId | int(11) | 否 | 发表者id | Normal Index | ||
commentableEntityId | int(11) | 0 | 否 | 评论对象id | 0 | |
entityId | int(11) | 0 | 否 | Entity对象Id | 0 | |
referId | int(11) | 0 | 否 | 引用回复 | 0 | |
voteUpNum | int(11) | 0 | 否 | 0 | ||
voteDownNum | int(11) | 0 | 否 | 0 | ||
deleted | tinyint(1) | 0 | 否 | 0 | ||
deleteTime | int(11) | 0 | 否 | 0 |