sorarebuddy/db/migrations/00003_card_supply.sql

14 lines
477 B
MySQL
Raw Normal View History

2024-06-06 05:52:54 +00:00
-- +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
2024-05-23 04:18:54 +00:00
DROP TABLE IF EXISTS card_supplies;