MySQL Create Table SQL
Table Structure: okayapi_xbinstore_tb_category_secondary:/tablelist/okayapi_xbinstore_tb_category_secondary.html
-- MySQL Table okayapi_xbinstore_tb_category_secondary
-- From: OkayAPI.com
CREATE TABLE `okayapi_xbinstore_tb_category_secondary` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`cid` varchar(5) NULL COMMENT '分类id',
`parent_id` bigint(20) NULL COMMENT '父类目ID=0时,代表的是一级的类目 ID=-1时表示是cid上部分类',
`okayapi_xbinstore_tb_category_secondary_name` varchar(200) NULL COMMENT '名字',
`url` varchar(200) NULL COMMENT '网址或网页id',
`okayapi_xbinstore_tb_category_secondary_status` int(1) NULL DEFAULT '1' COMMENT '状态。可选值:1(正常),2(删除)',
`sort_order` int(4) NULL DEFAULT '1' COMMENT '排列序号,表示同级类目的展现次序,如数值相等则按名称次序排列。取值范围:大于零的整数',
`is_parent` tinyint(1) NULL DEFAULT '1' COMMENT '该类目是否为父类目,1为true,0为false',
`created` datetime NULL COMMENT '',
`updated` datetime NULL COMMENT '',
KEY `cid` (`cid`),
KEY `parent_id` (`parent_id`),
KEY `okayapi_xbinstore_tb_category_secondary_name` (`okayapi_xbinstore_tb_category_secondary_name`),
KEY `url` (`url`),
KEY `okayapi_xbinstore_tb_category_secondary_status` (`okayapi_xbinstore_tb_category_secondary_status`),
KEY `sort_order` (`sort_order`),
KEY `is_parent` (`is_parent`),
KEY `created` (`created`),
KEY `updated` (`updated`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'B2C商城-次级分类';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-9 of 9 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
cid | varchar(5) | 否 | 分类id | Normal Index | ||
parent_id | bigint(20) | 是 | 父类目ID=0时,代表的是一级的类目 ID=-1时表示是cid上部分类 | Normal Index | ||
okayapi_xbinstore_tb_category_secondary_name | varchar(200) | 是 | 名字 | |||
url | varchar(200) | 是 | 网址或网页id | |||
okayapi_xbinstore_tb_category_secondary_status | int(1) | 1 | 是 | 状态。可选值:1(正常),2(删除) | 1 | |
sort_order | int(4) | 1 | 是 | 排列序号,表示同级类目的展现次序,如数值相等则按名称次序排列。取值范围:大于零的整数 | Normal Index | 1 |
is_parent | tinyint(1) | 1 | 是 | 该类目是否为父类目,1为true,0为false | 1 | |
created | datetime | 是 | ||||
updated | datetime | 是 |