diff options
Diffstat (limited to 'src/db.go')
-rw-r--r-- | src/db.go | 6 |
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, |