Split Collections into two tables

This commit is contained in:
Mike Colagrosso 2024-06-18 18:23:47 -06:00 committed by Alex Cabal
parent d5748d1006
commit a25660bc8b
2 changed files with 9 additions and 4 deletions

View file

@ -0,0 +1,8 @@
CREATE TABLE `CollectionEbooks` (
`CollectionEbookId` int(10) unsigned NOT NULL AUTO_INCREMENT,
`EbookId` int(10) unsigned NOT NULL,
`CollectionId` int(10) unsigned NOT NULL,
`SequenceNumber` int(10) unsigned NULL,
PRIMARY KEY (`CollectionEbookId`),
UNIQUE KEY `idxUnique` (`EbookId`,`CollectionId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;