Add a Type enum to Tags for artwork/ebook

This commit is contained in:
Mike Colagrosso 2024-06-25 18:25:31 -06:00 committed by Alex Cabal
parent ee29c526f8
commit 402dae95ff
7 changed files with 62 additions and 10 deletions

View file

@ -1,6 +1,8 @@
CREATE TABLE IF NOT EXISTS `Tags` (
`TagId` int(10) unsigned NOT NULL AUTO_INCREMENT,
`Name` varchar(255) NOT NULL,
`Type` enum('artwork', 'ebook') DEFAULT 'artwork',
PRIMARY KEY (`TagId`),
UNIQUE KEY `idxUnique` (`Name`)
KEY `index1` (`Name`),
KEY `index2` (`Type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;