mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 19:06:49 -04:00
9 lines
410 B
SQL
9 lines
410 B
SQL
CREATE TABLE IF NOT EXISTS `EbookDownloadSummaries` (
|
|
`EbookId` int(10) unsigned NOT NULL,
|
|
`Date` date NOT NULL,
|
|
`DownloadCount` int(10) unsigned NOT NULL DEFAULT 0,
|
|
`BotDownloadCount` int(10) unsigned NOT NULL DEFAULT 0,
|
|
UNIQUE INDEX `idxUnique` (`EbookId`, `Date`),
|
|
INDEX `index1` (Date, EbookId, DownloadCount),
|
|
INDEX `index2` (EbookId, DownloadCount)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|