about summary refs log tree commit diff
path: root/src/db.go
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-11-08 11:39:04 +0100
committerEmile <git@emile.space>2024-11-08 11:39:04 +0100
commitc685cc8f25adc5b2b72e4bda185fef7ec8dd6592 (patch)
treecf7e9d91eb5219349aec81b29f043b5d72d08af8 /src/db.go
parent8ffae39cd303d487cf20177fab2f7b9aa29f1d77 (diff)
push all, yolo
Diffstat (limited to 'src/db.go')
-rw-r--r--src/db.go6
1 files changed, 6 insertions, 0 deletions
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,