MySQL Create Table SQL
Table Structure: okayapi_fie_portal_category_post:/tablelist/okayapi_fie_portal_category_post.html
-- MySQL Table okayapi_fie_portal_category_post
-- From: OkayAPI.com
CREATE TABLE `okayapi_fie_portal_category_post` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`post_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '文章id',
`category_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '分类id',
`list_order` float NOT NULL DEFAULT '10000' COMMENT '排序',
`okayapi_fie_portal_category_post_status` tinyint(3) NOT NULL DEFAULT '1' COMMENT '状态,1:发布;0:不发布',
KEY `post_id` (`post_id`),
KEY `category_id` (`category_id`),
KEY `list_order` (`list_order`),
KEY `okayapi_fie_portal_category_post_status` (`okayapi_fie_portal_category_post_status`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'fie内容管理-portal应用 分类文章对应表';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-4 of 4 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
post_id | bigint(20) | 0 | 否 | 文章id | 0 | |
category_id | bigint(20) | 0 | 否 | 分类id | Normal Index | 0 |
list_order | float | 10000 | 否 | 排序 | 10000 | |
okayapi_fie_portal_category_post_status | tinyint(3) | 1 | 否 | 状态,1:发布;0:不发布 | 1 |