mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 10:14:11 +02:00
map history
This commit is contained in:
parent
b70f2ee336
commit
d4311dc9df
10 changed files with 377 additions and 19 deletions
|
|
@ -5,7 +5,8 @@ CREATE TABLE players
|
|||
steam_id BIGINT NOT NULL,
|
||||
name VARCHAR NOT NULL,
|
||||
avatar VARCHAR,
|
||||
favorite_classes player_class[] NOT NULL
|
||||
favorite_classes player_class[] NOT NULL,
|
||||
country VARCHAR
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX players_steam_id_idx
|
||||
|
|
|
|||
14
archiver/migrations/20250418154032_maps.sql
Normal file
14
archiver/migrations/20250418154032_maps.sql
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
CREATE TABLE maps
|
||||
(
|
||||
format game_mode NOT NULL,
|
||||
season INT NOT NULL,
|
||||
week INT NOT NULL,
|
||||
date DATE NOT NULL,
|
||||
map VARCHAR
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX maps_format_season_week_idx
|
||||
ON maps USING BTREE (format, season, week);
|
||||
|
||||
CREATE INDEX maps_map_idx
|
||||
ON maps USING BTREE (map);
|
||||
Loading…
Add table
Add a link
Reference in a new issue