MySQL Create Table SQL
Table Structure: okayapi_openant_category:/tablelist/okayapi_openant_category.html
-- MySQL Table okayapi_openant_category
-- From: OkayAPI.com
CREATE TABLE `okayapi_openant_category` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`category_id` int(11) NOT NULL COMMENT '',
`image` varchar(255) NOT NULL COMMENT '',
`parent_id` int(11) NOT NULL DEFAULT '0' COMMENT '',
`store_id` int(11) NOT NULL COMMENT '',
`top` tinyint(1) NOT NULL COMMENT '',
`okayapi_openant_category_column` int(3) NOT NULL COMMENT '',
`sort_order` int(3) NOT NULL DEFAULT '0' COMMENT '',
`okayapi_openant_category_status` tinyint(1) NOT NULL COMMENT '',
`date_added` datetime NOT NULL COMMENT '',
`date_modified` datetime NOT NULL COMMENT '',
KEY `category_id` (`category_id`),
KEY `image` (`image`),
KEY `parent_id` (`parent_id`),
KEY `store_id` (`store_id`),
KEY `top` (`top`),
KEY `okayapi_openant_category_column` (`okayapi_openant_category_column`),
KEY `sort_order` (`sort_order`),
KEY `okayapi_openant_category_status` (`okayapi_openant_category_status`),
KEY `date_added` (`date_added`),
KEY `date_modified` (`date_modified`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'openant电商-分类';
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 |
---|---|---|---|---|---|---|
category_id | int(11) | 否 | ||||
image | varchar(255) | 是 | ||||
parent_id | int(11) | 0 | 否 | 0 | ||
store_id | int(11) | 否 | ||||
top | tinyint(1) | 否 | ||||
okayapi_openant_category_column | int(3) | 否 | ||||
sort_order | int(3) | 0 | 否 | 0 | ||
okayapi_openant_category_status | tinyint(1) | 否 | ||||
date_added | datetime | 否 | ||||
date_modified | datetime | 否 |