MySQL Create Table SQL
Table Structure: okayapi_shopxo_s_search_history:/tablelist/okayapi_shopxo_s_search_history.html
-- MySQL Table okayapi_shopxo_s_search_history
-- From: OkayAPI.com
CREATE TABLE `okayapi_shopxo_s_search_history` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
`brand_id` int(11) NOT NULL DEFAULT '0' COMMENT '品牌id',
`category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类id',
`keywords` char(80) NOT NULL COMMENT '搜索关键字',
`screening_price` char(80) NOT NULL COMMENT '搜索价格区间',
`order_by_field` char(60) NOT NULL COMMENT '排序类型(字段名称)',
`order_by_type` char(60) NOT NULL COMMENT '排序方式(asc, desc)',
`ymd` int(11) NOT NULL DEFAULT '0' COMMENT '日期 ymd',
KEY `user_id` (`user_id`),
KEY `brand_id` (`brand_id`),
KEY `category_id` (`category_id`),
KEY `keywords` (`keywords`),
KEY `screening_price` (`screening_price`),
KEY `order_by_field` (`order_by_field`),
KEY `order_by_type` (`order_by_type`),
KEY `ymd` (`ymd`),
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-8 of 8 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
user_id | int(11) | 0 | 否 | 用户id | 0 | |
brand_id | int(11) | 0 | 否 | 品牌id | 0 | |
category_id | int(11) | 0 | 否 | 分类id | 0 | |
keywords | char(80) | 否 | 搜索关键字 | |||
screening_price | char(80) | 否 | 搜索价格区间 | |||
order_by_field | char(60) | 否 | 排序类型(字段名称) | |||
order_by_type | char(60) | 否 | 排序方式(asc, desc) | |||
ymd | int(11) | 0 | 否 | 日期 ymd | 0 |