MySQL Create Table SQL
Table Structure: okayapi_shopxo_s_goods_comments:/tablelist/okayapi_shopxo_s_goods_comments.html
-- MySQL Table okayapi_shopxo_s_goods_comments
-- From: OkayAPI.com
CREATE TABLE `okayapi_shopxo_s_goods_comments` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
`order_id` int(11) NOT NULL DEFAULT '0' COMMENT '业务订单id',
`goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
`business_type` char(30) NOT NULL COMMENT '业务类型名称(如订单 order)',
`content` char(255) NOT NULL COMMENT '评价内容',
`reply` char(255) NOT NULL COMMENT '回复内容',
`rating` tinyint(1) NOT NULL DEFAULT '0' COMMENT '评价级别(默认0 1~5)',
`is_show` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否显示(0否, 1是)',
`is_anonymous` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否匿名(0否,1是)',
`is_reply` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否回复(0否,1是)',
`reply_time` int(11) NOT NULL DEFAULT '0' COMMENT '回复时间',
`upd_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
KEY `user_id` (`user_id`),
KEY `shop_id` (`shop_id`),
KEY `order_id` (`order_id`),
KEY `goods_id` (`goods_id`),
KEY `business_type` (`business_type`),
KEY `content` (`content`),
KEY `reply` (`reply`),
KEY `rating` (`rating`),
KEY `is_show` (`is_show`),
KEY `is_anonymous` (`is_anonymous`),
KEY `is_reply` (`is_reply`),
KEY `reply_time` (`reply_time`),
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-13 of 13 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
user_id | int(11) | 0 | 否 | 用户id | Normal Index | 0 |
shop_id | int(11) | 0 | 否 | 店铺id | 0 | |
order_id | int(11) | 0 | 否 | 业务订单id | Normal Index | 0 |
goods_id | int(11) | 0 | 否 | 商品id | Normal Index | 0 |
business_type | char(30) | 否 | 业务类型名称(如订单 order) | |||
content | char(255) | 否 | 评价内容 | |||
reply | char(255) | 否 | 回复内容 | |||
rating | tinyint(1) | 0 | 否 | 评价级别(默认0 1~5) | 0 | |
is_show | tinyint(1) | 0 | 否 | 是否显示(0否, 1是) | 0 | |
is_anonymous | tinyint(1) | 0 | 否 | 是否匿名(0否,1是) | 0 | |
is_reply | tinyint(1) | 0 | 否 | 是否回复(0否,1是) | 0 | |
reply_time | int(11) | 0 | 否 | 回复时间 | 0 | |
upd_time | int(11) | 0 | 否 | 更新时间 | 0 |