+ Use This Table All Design

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 NameField TypeDefaultIS NULLField CommentIndexDemo Data
cidvarchar(5)分类idNormal Index
parent_idbigint(20)父类目ID=0时,代表的是一级的类目 ID=-1时表示是cid上部分类Normal Index
okayapi_xbinstore_tb_category_secondary_namevarchar(200)名字
urlvarchar(200)网址或网页id
okayapi_xbinstore_tb_category_secondary_statusint(1)1状态。可选值:1(正常),2(删除)1
sort_orderint(4)1排列序号,表示同级类目的展现次序,如数值相等则按名称次序排列。取值范围:大于零的整数Normal Index1
is_parenttinyint(1)1该类目是否为父类目,1为true,0为false1
createddatetime
updateddatetime

Guess You Like

MySQL Table Design okayapi_xbinstore_tb_category

MySQL Table Design okayapi_xbinstore_tb_category_image

MySQL Table Design okayapi_xbinstore_tb_hot_words

MySQL Table Design okayapi_xbinstore_tb_index_slide_ad

MySQL Table Design okayapi_xbinstore_tb_item

MySQL Table Design okayapi_xbinstore_tb_item_desc

MySQL Table Design okayapi_xbinstore_tb_item_param

MySQL Table Design okayapi_xbinstore_tb_item_param_item

MySQL Table Design okayapi_xbinstore_tb_manage_user

MySQL Table Design okayapi_xbinstore_tb_order

MySQL Table Design okayapi_xbinstore_tb_order_item

MySQL Table Design okayapi_xbinstore_tb_transaction_message

MySQL Table Design okayapi_xbinstore_tb_user

MySQL Table Design okayapi_xbinstore_tb_user_addr

TOP ↑