Create CardStorageLocation table

This commit is contained in:
The Magician 2024-05-29 22:03:40 +01:00
parent f84f19a0b7
commit 405ef9edc5
1 changed files with 8 additions and 9 deletions

View File

@ -25,12 +25,11 @@ CREATE TABLE IF NOT EXISTS CardPrinting (
Language VARCHAR(3) NOT NULL
);
-- CREATE TABLE IF NOT EXISTS CardStorageLocation (
-- Id INT AUTO_INCREMENT PRIMARY KEY,
-- CardPrintingId VARCHAR(36) NOT NULL,
-- FOREIGN KEY (CardPrintingId) REFERENCES CardPrinting(Id),
-- IsFoil BOOLEAN NOT NULL,
-- StorageBox VARCHAR(20) NOT NULL,
-- Source VARCHAR(100) NULL,
-- Position INT NOT NULL
-- );
CREATE TABLE IF NOT EXISTS CardStorageLocation (
Id INT AUTO_INCREMENT PRIMARY KEY,
CardPrintingId INT NOT NULL,
FOREIGN KEY (CardPrintingId) REFERENCES CardPrinting(Id),
StorageBox VARCHAR(20) NOT NULL,
Position INT NOT NULL,
Source VARCHAR(100) NULL
);