Files
lootalot/lootalot_db/migrations/2019-06-10-124013_create_looted/up.sql
2019-06-11 16:14:10 +02:00

9 lines
238 B
SQL

CREATE TABLE looted (
id INTEGER PRIMARY KEY,
player_id INTEGER NOT NULL,
item_id INTEGER NOT NULL,
acquired_date DATE DEFAULT NOW,
FOREIGN KEY (player_id) REFERENCES players(id),
FOREIGN KEY (item_id) REFERENCES items(id)
);