mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 10:14:11 +02:00
region optional
This commit is contained in:
parent
335c75cb12
commit
dc0f3e9f0f
11 changed files with 36 additions and 15 deletions
19
archiver/migrations/20250414181350_teams.sql
Normal file
19
archiver/migrations/20250414181350_teams.sql
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
CREATE TYPE region AS ENUM ('europe', 'north-america', 'south-america', 'asia', 'australia');
|
||||
CREATE TYPE game_mode AS ENUM ('highlander', 'sixes', 'fours', 'ultiduo');
|
||||
|
||||
CREATE TABLE teams
|
||||
(
|
||||
id INTEGER NOT NULL,
|
||||
name VARCHAR NOT NULL,
|
||||
image VARCHAR NOT NULL,
|
||||
form
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX matches_id_idx
|
||||
ON matches USING BTREE (id);
|
||||
|
||||
CREATE INDEX matches_home_idx
|
||||
ON matches USING BTREE (team_home);
|
||||
|
||||
CREATE INDEX matches_away_idx
|
||||
ON matches USING BTREE (team_away);
|
||||
Loading…
Add table
Add a link
Reference in a new issue