feat: 경매장 테이블 새로 작성

This commit is contained in:
2022-06-09 01:21:21 +09:00
parent 7964aa5f6b
commit 98c1213b10
2 changed files with 26 additions and 2 deletions
+3 -1
View File
@@ -66,4 +66,6 @@ ENGINE=Aria;
DROP TABLE IF EXISTS ng_betting;
DROP TABLE IF EXISTS vote;
DROP TABLE IF EXISTS vote_comment;
DROP TABLE IF EXISTS vote_comment;
DROP TABLE IF EXISTS `ng_auction`;
+23 -1
View File
@@ -684,4 +684,26 @@ CREATE TABLE `vote_comment` (
`date` DATETIME NULL DEFAULT NULL,
PRIMARY KEY (`id`),
INDEX `by_vote` (`vote_id`)
) COLLATE = 'utf8mb4_general_ci' ENGINE = Aria;
) COLLATE = 'utf8mb4_general_ci' ENGINE = Aria;
##############################
## /
##############################
# KVStorage에
CREATE TABLE `ng_auction` (
`no` INT(11) NOT NULL AUTO_INCREMENT,
`auction_id` INT(11) NOT NULL,
`owner` INT(11) NULL DEFAULT NULL,
`general_id` INT(11) NOT NULL,
`amount` INT(11) NOT NULL,
`date` DATETIME NOT NULL,
`aux` LONGTEXT NOT NULL COLLATE 'utf8mb4_bin',
PRIMARY KEY (`no`),
UNIQUE INDEX `by_general` (`general_id`, `auction_id`, `amount`),
UNIQUE INDEX `by_owner` (`owner`, `auction_id`, `amount`),
INDEX `by_amount` (`auction_id`, `amount`, `date`),
CONSTRAINT `aux` CHECK (json_valid(`aux`))
)
COLLATE='utf8mb4_general_ci'
ENGINE = Aria;