19 lines
492 B
MySQL
19 lines
492 B
MySQL
|
CREATE TABLE IF NOT EXISTS "schema_migrations" (version varchar(255) primary key);
|
||
|
CREATE TABLE bgg_user (
|
||
|
username text primary key
|
||
|
);
|
||
|
CREATE TABLE game (
|
||
|
id integer primary key,
|
||
|
username text,
|
||
|
thumbnail text,
|
||
|
bgg_id text,
|
||
|
name text,
|
||
|
notes text, price integer,
|
||
|
FOREIGN KEY(username) REFERENCES bgg_user(username)
|
||
|
);
|
||
|
-- Dbmate schema migrations
|
||
|
INSERT INTO "schema_migrations" (version) VALUES
|
||
|
('20240130203355'),
|
||
|
('20240130203603'),
|
||
|
('20240130205124');
|