MySQL Create Table SQL
Table Structure: okayapi_shopxo_s_goods_category:/tablelist/okayapi_shopxo_s_goods_category.html
-- MySQL Table okayapi_shopxo_s_goods_category
-- From: OkayAPI.com
CREATE TABLE `okayapi_shopxo_s_goods_category` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`pid` int(11) NOT NULL DEFAULT '0' COMMENT '父id',
`icon` char(255) NOT NULL COMMENT 'icon图标',
`okayapi_shopxo_s_goods_category_name` char(60) NOT NULL COMMENT '名称',
`vice_name` char(80) NOT NULL COMMENT '副标题',
`okayapi_shopxo_s_goods_category_describe` char(255) NOT NULL COMMENT '描述',
`bg_color` char(30) NOT NULL COMMENT 'css背景色值',
`big_images` char(255) NOT NULL COMMENT '大图片',
`is_home_recommended` tinyint(2) NOT NULL DEFAULT '0' COMMENT '是否首页推荐(0否, 1是)',
`sort` tinyint(3) NOT NULL DEFAULT '0' COMMENT '排序',
`is_enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用(0否,1是)',
`seo_title` char(100) NOT NULL COMMENT 'SEO标题',
`seo_keywords` char(130) NOT NULL COMMENT 'SEO关键字',
`seo_desc` char(230) NOT NULL COMMENT 'SEO描述',
`upd_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
KEY `pid` (`pid`),
KEY `icon` (`icon`),
KEY `okayapi_shopxo_s_goods_category_name` (`okayapi_shopxo_s_goods_category_name`),
KEY `vice_name` (`vice_name`),
KEY `okayapi_shopxo_s_goods_category_describe` (`okayapi_shopxo_s_goods_category_describe`),
KEY `bg_color` (`bg_color`),
KEY `big_images` (`big_images`),
KEY `is_home_recommended` (`is_home_recommended`),
KEY `sort` (`sort`),
KEY `is_enable` (`is_enable`),
KEY `seo_title` (`seo_title`),
KEY `seo_keywords` (`seo_keywords`),
KEY `seo_desc` (`seo_desc`),
KEY `upd_time` (`upd_time`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'ShopXO商城-商品分类';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-14 of 14 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
pid | int(11) | 0 | 否 | 父id | Normal Index | 0 |
icon | char(255) | 否 | icon图标 | |||
okayapi_shopxo_s_goods_category_name | char(60) | 否 | 名称 | |||
vice_name | char(80) | 否 | 副标题 | |||
okayapi_shopxo_s_goods_category_describe | char(255) | 否 | 描述 | |||
bg_color | char(30) | 否 | css背景色值 | |||
big_images | char(255) | 否 | 大图片 | |||
is_home_recommended | tinyint(2) | 0 | 否 | 是否首页推荐(0否, 1是) | 0 | |
sort | tinyint(3) | 0 | 否 | 排序 | Normal Index | 0 |
is_enable | tinyint(1) | 1 | 否 | 是否启用(0否,1是) | Normal Index | 1 |
seo_title | char(100) | 否 | SEO标题 | |||
seo_keywords | char(130) | 否 | SEO关键字 | |||
seo_desc | char(230) | 否 | SEO描述 | |||
upd_time | int(11) | 0 | 否 | 更新时间 | 0 |