sorarebuddy/db/migrations/00003_card_supply.sql
2024-06-06 09:52:54 +04:00

14 lines
477 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;