feat,wip : 거래장 페이지 작업 준비
- 필요에 따라 테이블 준비
This commit is contained in:
@@ -706,4 +706,21 @@ CREATE TABLE `ng_auction` (
|
||||
CONSTRAINT `aux` CHECK (json_valid(`aux`))
|
||||
)
|
||||
COLLATE='utf8mb4_general_ci'
|
||||
ENGINE = Aria;
|
||||
|
||||
CREATE TABLE `ng_auction_bid` (
|
||||
`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;
|
||||
Reference in New Issue
Block a user