mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 07:40:39 -04:00
Missed these before, and in addition to being a good practice, they are needed to maintain insertion order of LocSubjects and Tags.
7 lines
311 B
SQL
7 lines
311 B
SQL
CREATE TABLE `EbookLocSubjects` (
|
|
`EbookLocSubjectId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
`EbookId` int(10) unsigned NOT NULL,
|
|
`LocSubjectId` int(10) unsigned NOT NULL,
|
|
PRIMARY KEY (`EbookLocSubjectId`),
|
|
UNIQUE KEY `idxUnique` (`EbookId`,`LocSubjectId`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|