web/config/sql/se/TocEntries.sql
Mike Colagrosso 79daa82bf4 Add primary keys to multiple tables
I missed these keys when creating the initial schema, and it's a useful practice.
2024-11-04 13:16:56 -06:00

7 lines
250 B
SQL

CREATE TABLE `TocEntries` (
`TocEntryId` int(10) unsigned NOT NULL AUTO_INCREMENT,
`EbookId` int(10) unsigned NOT NULL,
`TocEntry` text NOT NULL,
PRIMARY KEY (`TocEntryId`),
KEY `index1` (`EbookId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;