MySQL Create Table SQL
Table Structure: okayapi_xbinstore_tb_category_image:/tablelist/okayapi_xbinstore_tb_category_image.html
-- MySQL Table okayapi_xbinstore_tb_category_image
-- From: OkayAPI.com
CREATE TABLE `okayapi_xbinstore_tb_category_image` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`cid` varchar(5) NULL COMMENT '分类id',
`okayapi_xbinstore_tb_category_image_name` varchar(200) NULL COMMENT '名字',
`url` varchar(200) NULL COMMENT '网址或网页id',
`little_or_big` int(1) NULL DEFAULT '1' COMMENT '状态。可选值:1(little),2(big)',
`okayapi_xbinstore_tb_category_image_status` int(1) NULL DEFAULT '1' COMMENT '状态。可选值:1(正常),2(删除)',
`image_url` varchar(200) NULL COMMENT '图片路径',
`sort_order` int(4) NULL DEFAULT '1' COMMENT '排列序号,表示同级类目的展现次序,如数值相等则按名称次序排列。取值范围:大于零的整数',
`created` datetime NULL COMMENT '',
`updated` datetime NULL COMMENT '',
KEY `cid` (`cid`),
KEY `okayapi_xbinstore_tb_category_image_name` (`okayapi_xbinstore_tb_category_image_name`),
KEY `url` (`url`),
KEY `little_or_big` (`little_or_big`),
KEY `okayapi_xbinstore_tb_category_image_status` (`okayapi_xbinstore_tb_category_image_status`),
KEY `image_url` (`image_url`),
KEY `sort_order` (`sort_order`),
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 | |||
okayapi_xbinstore_tb_category_image_name | varchar(200) | 是 | 名字 | |||
url | varchar(200) | 是 | 网址或网页id | |||
little_or_big | int(1) | 1 | 是 | 状态。可选值:1(little),2(big) | 1 | |
okayapi_xbinstore_tb_category_image_status | int(1) | 1 | 否 | 状态。可选值:1(正常),2(删除) | 1 | |
image_url | varchar(200) | 是 | 图片路径 | |||
sort_order | int(4) | 1 | 否 | 排列序号,表示同级类目的展现次序,如数值相等则按名称次序排列。取值范围:大于零的整数 | 1 | |
created | datetime | 是 | ||||
updated | datetime | 是 |