mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 02:46:46 -04:00
There is a one to many relationship between `Ebook` and `EbookSource`, and we don't query by `EbookSourceId`. We add a `SortOrder` column to keep the sources in the same order as specified in `content.opf`.
7 lines
411 B
SQL
7 lines
411 B
SQL
CREATE TABLE `EbookSources` (
|
|
`EbookId` int(10) unsigned NOT NULL,
|
|
`Type` enum('project_gutenberg', 'project_gutenberg_australia', 'project_gutenberg_canada', 'internet_archive', 'hathi_trust', 'wikisource', 'google_books', 'faded_page', 'other') DEFAULT 'other',
|
|
`Url` varchar(255) NOT NULL,
|
|
`SortOrder` tinyint(3) unsigned NOT NULL,
|
|
KEY `index1` (`EbookId`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|