MySQL Create Table SQL
Table Structure: okayapi_goods_comment:/tablelist/okayapi_goods_comment.html
-- MySQL Table okayapi_goods_comment
-- From: OkayAPI.com
CREATE TABLE `okayapi_goods_comment` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`comment_goods_id` int(10) NULL COMMENT '商品编号',
`comment_goods` varchar(255) NULL COMMENT '商品名称',
`comment_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '评价时间',
`comment_buyer` varchar(50) NULL COMMENT '购买人',
`comment_desc` text NULL COMMENT '评价内容',
`comment_rank` int(4) NULL COMMENT '评价等级,0表示非常差,1表示差,2表示一般,3表示好,4表示非常好',
KEY `comment_goods_id` (`comment_goods_id`),
KEY `comment_goods` (`comment_goods`),
KEY `comment_time` (`comment_time`),
KEY `comment_buyer` (`comment_buyer`),
KEY `comment_desc` (`comment_desc`),
KEY `comment_rank` (`comment_rank`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '商品评价';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-6 of 6 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
comment_goods_id | int(10) | 是 | 商品编号 | |||
comment_goods | varchar(255) | 是 | 商品名称 | |||
comment_time | timestamp | CURRENT_TIMESTAMP | 否 | 评价时间 | CURRENT_TIMESTAMP | |
comment_buyer | varchar(50) | 是 | 购买人 | |||
comment_desc | text | 是 | 评价内容 | |||
comment_rank | int(4) | 是 | 评价等级,0表示非常差,1表示差,2表示一般,3表示好,4表示非常好 |