MySQL Create Table SQL
Table Structure: okayapi_kite_document_content_like:/tablelist/okayapi_kite_document_content_like.html
-- MySQL Table okayapi_kite_document_content_like
-- From: OkayAPI.com
CREATE TABLE `okayapi_kite_document_content_like` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`document_id` int(11) NULL COMMENT '文档ID',
`like` tinyint(1) NULL DEFAULT '0' COMMENT '[顶]',
`unlike` tinyint(1) NULL DEFAULT '0' COMMENT '[踩]',
`ip` varchar(32) NULL COMMENT '客户端IP',
`create_at` int(11) NULL COMMENT '创建时间',
`update_at` int(11) NULL COMMENT '更新时间',
KEY `document_id` (`document_id`),
KEY `like` (`like`),
KEY `unlike` (`unlike`),
KEY `ip` (`ip`),
KEY `create_at` (`create_at`),
KEY `update_at` (`update_at`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '建站系统-档案评论内容点赞表';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-6 of 6 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
document_id | int(11) | 否 | 文档ID | |||
like | tinyint(1) | 0 | 否 | [顶] | 0 | |
unlike | tinyint(1) | 0 | 否 | [踩] | 0 | |
ip | varchar(32) | 是 | 客户端IP | |||
create_at | int(11) | 是 | 创建时间 | |||
update_at | int(11) | 是 | 更新时间 |