Add CardScan table and CardPrinting for scanned but unidentified cards

This commit is contained in:
The Magician 2024-10-09 23:12:56 +01:00
parent a028126fba
commit 0e1647bb2d
1 changed files with 26 additions and 0 deletions

View File

@ -26,6 +26,26 @@ CREATE TABLE IF NOT EXISTS CardPrinting (
Language VARCHAR(3) NOT NULL Language VARCHAR(3) NOT NULL
); );
INSERT INTO CardPrinting (
Id,
Name,
SetCode,
IsFoil,
IsPromo,
CollectorNumber,
ImageUrl,
Language,
) VALUES (
'00000000-0000-0000-0000-0000000000000',
'Scanned Card Placeholder',
'lea',
0,
0,
0,
'',
'en',
);
CREATE TABLE IF NOT EXISTS StorageArea ( CREATE TABLE IF NOT EXISTS StorageArea (
Id INT AUTO_INCREMENT PRIMARY KEY, Id INT AUTO_INCREMENT PRIMARY KEY,
Name VARCHAR(100) NOT NULL, Name VARCHAR(100) NOT NULL,
@ -40,3 +60,9 @@ CREATE TABLE IF NOT EXISTS CardLocation (
FOREIGN KEY (StorageAreaId) REFERENCES StorageArea(Id), FOREIGN KEY (StorageAreaId) REFERENCES StorageArea(Id),
Position INT NULL Position INT NULL
); );
CREATE TABLE IF NOT EXISTS CardScan (
Id INT PRIMARY KEY AUTO_INCREMENT,
CardLocationId INT NOT NULL,
Filename VARCHAR(100) NOT NULL
);