14 lines
464 B
SQL
14 lines
464 B
SQL
-- +goose Up
|
|
CREATE TABLE IF NOT EXISTS card_supplies (
|
|
player_slug TEXT NOT NULL,
|
|
season_start_year INTEGER NOT NULL,
|
|
PRIMARY KEY (player_slug, season_start_year),
|
|
"limited" INTEGER NOT NULL,
|
|
"rare" INTEGER NOT NULL,
|
|
"super_rare" INTEGER NOT NULL,
|
|
"unique" INTEGER NOT NULL,
|
|
"last_updated" TIMESTAMPTZ NOT NULL
|
|
);
|
|
|
|
-- +goose Down
|
|
DROP TABLE IF EXISTS card_supplies; |