+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_praise:/tablelist/okayapi_praise.html


-- MySQL Table okayapi_praise
-- From: OkayAPI.com
CREATE TABLE `okayapi_praise` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `momentId` bigint(15) NULL COMMENT '唯一标识',
    `userId` bigint(15) NULL COMMENT '用户id',
    `date` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '点赞时间',
    KEY `momentId` (`momentId`),
    KEY `userId` (`userId`),
    KEY `date` (`date`),
    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-3 of 3 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
momentIdbigint(15)唯一标识
userIdbigint(15)用户id
datetimestampCURRENT_TIMESTAMP点赞时间CURRENT_TIMESTAMP

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_comment

MySQL Table Design okayapi_document

MySQL Table Design okayapi_function

MySQL Table Design okayapi_login

MySQL Table Design okayapi_moment

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 ↑