Add utoipa OpenAPI annotations to all handlers and fix score_confirmation_status column name
Co-Authored-By: Warp <agent@warp.dev>
This commit is contained in:
@@ -41,8 +41,6 @@ CREATE TABLE IF NOT EXISTS team_players (
|
||||
date_created TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
team_id INTEGER NOT NULL REFERENCES teams(id) ON DELETE CASCADE,
|
||||
player_id INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
||||
game_name TEXT NOT NULL DEFAULT '',
|
||||
game_mode TEXT NOT NULL DEFAULT '',
|
||||
position VARCHAR(20) NOT NULL DEFAULT 'member',
|
||||
status INTEGER NOT NULL DEFAULT 0,
|
||||
UNIQUE(team_id, player_id)
|
||||
@@ -72,12 +70,6 @@ CREATE TABLE IF NOT EXISTS ladder_teams (
|
||||
date_created TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
ladder_id INTEGER NOT NULL REFERENCES ladders(id) ON DELETE CASCADE,
|
||||
team_id INTEGER NOT NULL REFERENCES teams(id) ON DELETE CASCADE,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
status VARCHAR(255) NOT NULL DEFAULT 'active',
|
||||
seed INTEGER,
|
||||
result_position INTEGER,
|
||||
win_count INTEGER NOT NULL DEFAULT 0,
|
||||
loss_count INTEGER NOT NULL DEFAULT 0,
|
||||
UNIQUE(ladder_id, team_id)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user