+ 立即免费创建此表 返回数据库大全

MySQL建表SQL语句

数据库结构:商城系统-评论表:https://open.yesapi.cn/tablelist/yesapi_yshopmall_yx_store_product_reply.html


-- 数据库大全:商城系统-评论表
-- 来源:YesApi.cn
CREATE TABLE `yesapi_yshopmall_yx_store_product_reply` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `uid` bigint(20) NOT NULL COMMENT '用户ID',
    `oid` bigint(20) NOT NULL COMMENT '订单ID',
    `yesapi_yshopmall_yx_store_product_reply_unique` char(32) NOT NULL COMMENT '唯一id',
    `product_id` bigint(20) NOT NULL COMMENT '产品id',
    `reply_type` varchar(32) NOT NULL DEFAULT 'product' COMMENT '某种商品类型(普通商品、秒杀商品)',
    `product_score` tinyint(1) NOT NULL COMMENT '商品分数',
    `service_score` tinyint(1) NOT NULL COMMENT '服务分数',
    `yesapi_yshopmall_yx_store_product_reply_comment` varchar(512) NOT NULL COMMENT '评论内容',
    `pics` text NOT NULL COMMENT '评论图片',
    `create_time` datetime NOT NULL COMMENT '评论时间',
    `merchant_reply_content` varchar(300) NOT NULL COMMENT '管理员回复内容',
    `merchant_reply_time` datetime NOT NULL COMMENT '管理员回复时间',
    `is_del` tinyint(3) NOT NULL DEFAULT '0' COMMENT '0未删除1已删除',
    `is_reply` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0未回复1已回复',
    KEY `reply_type` (`reply_type`),
    KEY `product_score` (`product_score`),
    KEY `service_score` (`service_score`),
    KEY `create_time` (`create_time`),
    KEY `is_del` (`is_del`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '商城系统-评论表';

复制后,到数据库执行,即可创建此数据库表。


MySQL数据库表结构设计

第 1-14 条, 共 14 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
uidbigint(20)用户ID无索引
oidbigint(20)订单ID无索引
yesapi_yshopmall_yx_store_product_reply_uniquechar(32)唯一id无索引
product_idbigint(20)产品id无索引
reply_typevarchar(32)product某种商品类型(普通商品、秒杀商品)普通索引product
product_scoretinyint(1)商品分数普通索引
service_scoretinyint(1)服务分数普通索引
yesapi_yshopmall_yx_store_product_reply_commentvarchar(512)评论内容无索引
picstext评论图片无索引
create_timedatetime评论时间普通索引
merchant_reply_contentvarchar(300)管理员回复内容无索引
merchant_reply_timedatetime管理员回复时间无索引
is_deltinyint(3)00未删除1已删除普通索引0
is_replytinyint(1)00未回复1已回复无索引0

猜你喜欢

MySQL数据库设计 商城系统-支付宝配置类

MySQL数据库设计 商城系统-代码生成字段信息存储

MySQL数据库设计 商城系统-部门

MySQL数据库设计 商城系统-数据字典

MySQL数据库设计 商城系统-数据字典详情

MySQL数据库设计 商城系统-邮箱配置

MySQL数据库设计 商城系统-代码生成器配置

MySQL数据库设计 商城系统-代码生成测试

MySQL数据库设计 商城系统-岗位

MySQL数据库设计 商城系统-本地存储

MySQL数据库设计 商城系统-系统日志

MySQL数据库设计 商城系统-菜单

MySQL数据库设计 商城系统-Sm.Ms图床

MySQL数据库设计 商城系统-七牛云配置

MySQL数据库设计 商城系统-七牛云文件存储

MySQL数据库设计 商城系统-定时任务

MySQL数据库设计 商城系统-定时任务日志

MySQL数据库设计 商城系统-角色表

MySQL数据库设计 商城系统-角色部门关联

MySQL数据库设计 商城系统-角色菜单关联



回到顶部 ↑