+ Use This Table All Design

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 NameField TypeDefaultIS NULLField CommentIndexDemo Data
user_idint(11)0用户idNormal Index0
shop_idint(11)0店铺id0
order_idint(11)0业务订单idNormal Index0
goods_idint(11)0商品idNormal Index0
business_typechar(30)业务类型名称(如订单 order)
contentchar(255)评价内容
replychar(255)回复内容
ratingtinyint(1)0评价级别(默认0 1~5)0
is_showtinyint(1)0是否显示(0否, 1是)0
is_anonymoustinyint(1)0是否匿名(0否,1是)0
is_replytinyint(1)0是否回复(0否,1是)0
reply_timeint(11)0回复时间0
upd_timeint(11)0更新时间0

Guess You Like

MySQL Table Design okayapi_goods

MySQL Table Design okayapi_goods_comment

MySQL Table Design okayapi_shopxo_s_admin

MySQL Table Design okayapi_shopxo_s_answer

MySQL Table Design okayapi_shopxo_s_app_center_nav

MySQL Table Design okayapi_shopxo_s_app_home_nav

MySQL Table Design okayapi_shopxo_s_article

MySQL Table Design okayapi_shopxo_s_article_category

MySQL Table Design okayapi_shopxo_s_attachment

MySQL Table Design okayapi_shopxo_s_brand

MySQL Table Design okayapi_shopxo_s_brand_category

MySQL Table Design okayapi_shopxo_s_cart

MySQL Table Design okayapi_shopxo_s_config

MySQL Table Design okayapi_shopxo_s_custom_view

MySQL Table Design okayapi_shopxo_s_express

MySQL Table Design okayapi_shopxo_s_goods

MySQL Table Design okayapi_shopxo_s_goods_browse

MySQL Table Design okayapi_shopxo_s_goods_category

MySQL Table Design okayapi_shopxo_s_goods_category_join

MySQL Table Design okayapi_shopxo_s_goods_content_app

TOP ↑