MySQL Create Table SQL
Table Structure: okayapi_box_post:/tablelist/okayapi_box_post.html
-- MySQL Table okayapi_box_post
-- From: OkayAPI.com
CREATE TABLE `okayapi_box_post` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`admin_id` bigint(20) NULL COMMENT '',
`title` varchar(255) NULL COMMENT '',
`content` text NULL COMMENT '',
`slug` varchar(255) NULL COMMENT '',
`status` varchar(30) NULL DEFAULT 'draft' COMMENT 'active, draft',
`image` varchar(255) NULL COMMENT '',
`section` varchar(255) NULL COMMENT '',
`publish_at` datetime NULL COMMENT '',
`published_at` datetime NULL COMMENT '',
`expires_at` datetime NULL COMMENT '',
KEY `admin_id` (`admin_id`),
KEY `title` (`title`),
KEY `content` (`content`),
KEY `slug` (`slug`),
KEY `status` (`status`),
KEY `image` (`image`),
KEY `section` (`section`),
KEY `publish_at` (`publish_at`),
KEY `published_at` (`published_at`),
KEY `expires_at` (`expires_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-10 of 10 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
admin_id | bigint(20) | 是 | Normal Index | |||
title | varchar(255) | 是 | ||||
content | text | 是 | ||||
slug | varchar(255) | 是 | Unique Index | |||
status | varchar(30) | draft | 是 | active, draft | draft | |
image | varchar(255) | 是 | ||||
section | varchar(255) | 是 | ||||
publish_at | datetime | 是 | ||||
published_at | datetime | 是 | ||||
expires_at | datetime | 是 |