2024-01-30 20:54:24 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS "schema_migrations" (version varchar(255) primary key);
|
|
|
|
CREATE TABLE bgg_user (
|
|
|
|
username text primary key
|
2024-02-05 14:47:10 +00:00
|
|
|
, "neighbourhood" text);
|
2024-01-30 20:54:24 +00:00
|
|
|
CREATE TABLE game (
|
|
|
|
id integer primary key,
|
|
|
|
username text,
|
|
|
|
thumbnail text,
|
|
|
|
bgg_id text,
|
|
|
|
name text,
|
2024-02-01 20:27:38 +00:00
|
|
|
notes text, price integer, updated_at text,
|
2024-01-30 20:54:24 +00:00
|
|
|
FOREIGN KEY(username) REFERENCES bgg_user(username)
|
|
|
|
);
|
|
|
|
-- Dbmate schema migrations
|
|
|
|
INSERT INTO "schema_migrations" (version) VALUES
|
|
|
|
('20240130203355'),
|
|
|
|
('20240130203603'),
|
2024-02-01 20:27:38 +00:00
|
|
|
('20240130205124'),
|
2024-02-04 15:36:46 +00:00
|
|
|
('20240201201248'),
|
2024-02-05 14:47:10 +00:00
|
|
|
('20240204153045'),
|
2024-02-06 14:19:39 +00:00
|
|
|
('20240205142447'),
|
2024-02-11 02:43:25 +00:00
|
|
|
('20240206141649'),
|
2024-02-11 15:34:00 +00:00
|
|
|
('20240211024145'),
|
|
|
|
('20240211153145');
|