Add CardScan table and CardPrinting for scanned but unidentified cards
This commit is contained in:
parent
a028126fba
commit
0e1647bb2d
|
@ -26,6 +26,26 @@ CREATE TABLE IF NOT EXISTS CardPrinting (
|
|||
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 (
|
||||
Id INT AUTO_INCREMENT PRIMARY KEY,
|
||||
Name VARCHAR(100) NOT NULL,
|
||||
|
@ -40,3 +60,9 @@ CREATE TABLE IF NOT EXISTS CardLocation (
|
|||
FOREIGN KEY (StorageAreaId) REFERENCES StorageArea(Id),
|
||||
Position INT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS CardScan (
|
||||
Id INT PRIMARY KEY AUTO_INCREMENT,
|
||||
CardLocationId INT NOT NULL,
|
||||
Filename VARCHAR(100) NOT NULL
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue