fix:完善商品评论测试 sql

plp
puhui999 3 years ago
parent 20100aa78b
commit 9ff873fe53

@ -126,36 +126,81 @@ CREATE TABLE IF NOT EXISTS `product_property_value` (
PRIMARY KEY("id")
) COMMENT '';
CREATE TABLE IF NOT EXISTS `product_comment` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '',
`user_id` bigint NOT NULL COMMENT ' ID ',
`user_nickname` varchar(128) NOT NULL COMMENT '',
`user_avatar` varchar(255) NOT NULL COMMENT '',
`anonymous` bit(1) NOT NULL DEFAULT 0 COMMENT ' 0: 1:',
`order_id` bigint NOT NULL COMMENT '',
`order_item_id` bigint NOT NULL COMMENT '',
`spu_id` bigint NOT NULL COMMENT 'SPU',
`spu_name` varchar NOT NULL COMMENT 'SPU',
`sku_id` bigint NOT NULL COMMENT 'SKU',
`visible` bit(1) NOT NULL DEFAULT 1 COMMENT ' true: false:',
`scores` int NOT NULL COMMENT ' 1-5',
`description_scores` int NOT NULL COMMENT ' 1-5',
`benefit_scores` int NOT NULL COMMENT ' 1-5',
`delivery_scores` int NOT NULL COMMENT ' 1-5',
`content` varchar(2000) NOT NULL COMMENT '',
`pic_urls` varchar(1024) DEFAULT '' COMMENT '9',
`replied` bit(1) NOT NULL DEFAULT 0 COMMENT ' 1: 0:',
`reply_user_id` bigint COMMENT '',
`reply_content` varchar(2000) COMMENT '',
`reply_time` datetime COMMENT '',
`additional_content` varchar(2000) COMMENT '',
`additional_pic_urls` varchar(1024) COMMENT '9',
`additional_time` datetime COMMENT '',
"creator" varchar(64) DEFAULT '',
"create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updater" varchar(64) DEFAULT '',
"update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
CREATE TABLE IF NOT EXISTS `product_comment`
(
`id`
bigint
NOT
NULL
AUTO_INCREMENT
COMMENT
'',
`user_id`
bigint
DEFAULT
NULL
COMMENT
' MemberUserDO id ',
`user_nickname`
varchar
(
255
) DEFAULT NULL COMMENT '',
`user_avatar` varchar
(
1024
) DEFAULT NULL COMMENT '',
`anonymous` bit
(
1
) DEFAULT NULL COMMENT '',
`order_id` bigint DEFAULT NULL COMMENT ' TradeOrderDO id ',
`order_item_id` bigint DEFAULT NULL COMMENT ' TradeOrderItemDO id ',
`spu_id` bigint DEFAULT NULL COMMENT ' SPU ProductSpuDO id',
`spu_name` varchar
(
255
) DEFAULT NULL COMMENT ' SPU ',
`sku_id` bigint DEFAULT NULL COMMENT ' SKU ProductSkuDO id ',
`visible` bit
(
1
) DEFAULT NULL COMMENT 'true:false:',
`scores` tinyint DEFAULT NULL COMMENT '1-5',
`description_scores` tinyint DEFAULT NULL COMMENT '1-5 ',
`benefit_scores` tinyint DEFAULT NULL COMMENT '1-5 ',
`content` varchar
(
1024
) DEFAULT NULL COMMENT '',
`pic_urls` varchar
(
4096
) DEFAULT NULL COMMENT '',
`reply_status` bit
(
1
) DEFAULT NULL COMMENT '',
`reply_user_id` bigint DEFAULT NULL COMMENT ' AdminUserDO id ',
`reply_content` varchar
(
1024
) DEFAULT NULL COMMENT '',
`reply_time` datetime DEFAULT NULL COMMENT '',
`creator` varchar
(
64
) DEFAULT '' COMMENT '',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '',
`updater` varchar
(
64
) DEFAULT '' COMMENT '',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '',
"deleted" bit NOT NULL DEFAULT FALSE,
"tenant_id" bigint not null default '0',
PRIMARY KEY (`id`)
) COMMENT '';
"tenant_id" bigint not null default '0',
PRIMARY KEY
(
`id`
)
) COMMENT '';

Loading…
Cancel
Save