Add accounting bit to Collections table

This commit is contained in:
Alex Cabal 2024-12-14 00:02:21 -06:00
parent 79fdc8c20f
commit cb1cfc8c21
2 changed files with 3 additions and 0 deletions

View file

@ -3,6 +3,7 @@ CREATE TABLE IF NOT EXISTS `Collections` (
`Name` varchar(255) NOT NULL,
`UrlName` varchar(255) NOT NULL,
`Type` enum('series', 'set') NULL,
`ArePlaceholdersComplete` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`CollectionId`),
UNIQUE KEY `idxUnique` (`UrlName`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

View file

@ -11,6 +11,8 @@ class Collection{
public string $Name;
public string $UrlName;
public ?Enums\CollectionType $Type = null;
public bool $ArePlaceholdersComplete; /** Has a producer verified that every possible item in this `Collection` been added to our database? */
protected ?string $_Url = null;