diff --git a/sevenkeys/database/sql/createdb.sql b/sevenkeys/database/sql/createdb.sql index 35e2a61..c4cd33a 100644 --- a/sevenkeys/database/sql/createdb.sql +++ b/sevenkeys/database/sql/createdb.sql @@ -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 +);