mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 18:24:10 +02:00
archiver wip
This commit is contained in:
parent
8e1ea846da
commit
a660675932
13 changed files with 3466 additions and 0 deletions
19
archiver/migrations/20250410224414_matches.sql
Normal file
19
archiver/migrations/20250410224414_matches.sql
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
CREATE TABLE matches
|
||||
(
|
||||
id INTEGER NOT NULL,
|
||||
team_home INTEGER NOT NULL,
|
||||
team_away INTEGER NOT NULL,
|
||||
score_home SMALLINT NOT NULL,
|
||||
score_away SMALLINT NOT NULL,
|
||||
comment VARCHAR,
|
||||
comment_author VARCHAR
|
||||
);
|
||||
|
||||
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