From c685cc8f25adc5b2b72e4bda185fef7ec8dd6592 Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 8 Nov 2024 11:39:04 +0100 Subject: push all, yolo --- src/db.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/db.go') diff --git a/src/db.go b/src/db.go index 426ac52..42dc2d4 100644 --- a/src/db.go +++ b/src/db.go @@ -24,6 +24,7 @@ CREATE TABLE IF NOT EXISTS battles ( name TEXT, public BOOLEAN, raw_output TEXT + max_rounds INTEGER ); CREATE TABLE IF NOT EXISTS archs ( id INTEGER NOT NULL PRIMARY KEY, @@ -90,6 +91,11 @@ CREATE TABLE IF NOT EXISTS user_battle_rel ( battle_id INTEGER, PRIMARY KEY(user_id, battle_id) ); +CREATE TABLE IF NOT EXISTS owner_battle_rel ( + user_id INTEGER, + battle_id INTEGER, + PRIMARY KEY(user_id, battle_id) +); CREATE TABLE IF NOT EXISTS bot_battle_rel ( bot_id INTEGER, battle_id INTEGER, -- cgit 1.4.1