TheMathemagicians/sevenkeys/sql/createdb.sql

22 lines
512 B
MySQL
Raw Normal View History

2024-04-23 16:52:48 +00:00
CREATE DATABASE IF NOT EXISTS sevenkeys;
USE sevenkeys;
2024-05-19 09:01:57 +00:00
CREATE TABLE IF NOT EXISTS CacheTimestamps (
2024-05-19 14:01:18 +00:00
CacheType ENUM('AllCardsBulkData') PRIMARY KEY,
2024-05-19 09:05:29 +00:00
Stamp DATETIME NOT NULL
2024-05-19 09:01:57 +00:00
);
CREATE TABLE IF NOT EXISTS Gamepiece (
Id INT AUTO_INCREMENT PRIMARY KEY,
Name VARCHAR(150) NOT NULL
);
CREATE TABLE IF NOT EXISTS CardPrinting (
Id INT AUTO_INCREMENT PRIMARY KEY,
GamepieceId INT NOT NULL,
FOREIGN KEY (GamepieceId) REFERENCES Gamepiece(Id),
2024-04-28 14:13:47 +00:00
SetCode VARCHAR(6) NOT NULL,
ImageUrl VARCHAR(2048) NOT NULL
);