+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_comment:/tablelist/okayapi_comment.html


-- MySQL Table okayapi_comment
-- From: OkayAPI.com
CREATE TABLE `okayapi_comment` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `toId` bigint(15) NOT NULL DEFAULT '0' COMMENT '被回复的id',
    `userId` bigint(15) NOT NULL COMMENT '评论人 User 的 id',
    `momentId` bigint(15) NOT NULL COMMENT '动态id',
    `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
    `content` varchar(1000) NOT NULL COMMENT '内容',
    KEY `toId` (`toId`),
    KEY `userId` (`userId`),
    KEY `momentId` (`momentId`),
    KEY `date` (`date`),
    KEY `content` (`content`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'web开发-评论';

After replication, you can go to the database to create the database table.


MySQL database table structure design

Displaying 1-5 of 5 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
toIdbigint(15)0被回复的idNormal Index0
userIdbigint(15)评论人 User 的 idNormal Index
momentIdbigint(15)动态idNormal Index
datetimestampCURRENT_TIMESTAMP创建日期CURRENT_TIMESTAMP
contentvarchar(1000)内容

Guess You Like

MySQL Table Design okayapi_seo_article

MySQL Table Design okayapi_article_ad

MySQL Table Design okayapi_article_cate

MySQL Table Design okayapi_article_tag

MySQL Table Design okayapi_article_map

MySQL Table Design okayapi_access

MySQL Table Design okayapi_document

MySQL Table Design okayapi_function

MySQL Table Design okayapi_login

MySQL Table Design okayapi_moment

MySQL Table Design okayapi_praise

MySQL Table Design okayapi_request

MySQL Table Design okayapi_response

MySQL Table Design okayapi_test_record

MySQL Table Design okayapi_verify

MySQL Table Design okayapi_apijson_privacy

MySQL Table Design okayapi_apijson_user

TOP ↑