+ Use This Table All Design

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 NameField TypeDefaultIS NULLField CommentIndexDemo Data
admin_idbigint(20)Normal Index
titlevarchar(255)
contenttext
slugvarchar(255)Unique Index
statusvarchar(30)draftactive, draftdraft
imagevarchar(255)
sectionvarchar(255)
publish_atdatetime
published_atdatetime
expires_atdatetime

Guess You Like

MySQL Table Design okayapi_activity_admin_history

MySQL Table Design okayapi_activity_client_email

MySQL Table Design okayapi_activity_client_history

MySQL Table Design okayapi_activity_system

MySQL Table Design okayapi_box_admin

MySQL Table Design okayapi_box_admin_group

MySQL Table Design okayapi_box_cart

MySQL Table Design okayapi_box_cart_product

MySQL Table Design okayapi_box_client

MySQL Table Design okayapi_box_client_balance

MySQL Table Design okayapi_box_client_group

MySQL Table Design okayapi_box_client_order

MySQL Table Design okayapi_box_client_order_meta

MySQL Table Design okayapi_box_client_order_status

MySQL Table Design okayapi_box_client_password_reset

MySQL Table Design okayapi_box_currency

MySQL Table Design okayapi_box_email_template

MySQL Table Design okayapi_box_extension

MySQL Table Design okayapi_box_extension_meta

MySQL Table Design okayapi_box_form

TOP ↑