basic flag support
This commit is contained in:
parent
8c56389991
commit
19e94f036e
11 changed files with 134 additions and 151 deletions
|
@ -8,10 +8,16 @@ CREATE TABLE gamemodes (
|
|||
name TEXT NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE flags (
|
||||
server_ip TEXT PRIMARY KEY,
|
||||
flag VARCHAR(2) NULL DEFAULT NULL,
|
||||
);
|
||||
|
||||
CREATE TABLE servers (
|
||||
id UUID PRIMARY KEY,
|
||||
region_id UUID NOT NULL REFERENCES regions(id) ON DELETE CASCADE,
|
||||
gamemode_id UUID NOT NULL REFERENCES gamemodes(id) ON DELETE CASCADE,
|
||||
server_id UUID NOT NULL REFERENCES flags(server_ip) ON DELETE CASCADE,
|
||||
app_id INT NOT NULL,
|
||||
server_ip TEXT NOT NULL,
|
||||
name TEXT NOT NULL,
|
||||
|
|
Reference in a new issue