aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/tables.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-07-21 20:59:49 +0000
committerGravatar Gareth Coles <[email protected]>2018-07-21 20:59:49 +0000
commitb0eaa469c40d702df3298571da7abd73f7904a54 (patch)
treea1ebcdfb420dd07afd6169642a52cd86359147c6 /pysite/tables.py
parentMerge branch 'update-dev-env' into 'master' (diff)
parentInfraction system API to replace Rowboat (diff)
Merge branch 'momo/infractions-api' into 'master'
Infraction system API to replace Rowboat See merge request python-discord/projects/site!23
Diffstat (limited to 'pysite/tables.py')
-rw-r--r--pysite/tables.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pysite/tables.py b/pysite/tables.py
index 8f849664..3485065f 100644
--- a/pysite/tables.py
+++ b/pysite/tables.py
@@ -259,6 +259,21 @@ TABLES = {
])
),
+ "bot_infractions": Table(
+ primary_key="id",
+ keys=sorted([
+ "id", # str
+ "user_id", # str
+ "actor_id", # str
+ "reason", # str
+ "type" # str
+ "inserted_at", # datetime
+ "expires_at", # datetime
+ "active", # bool
+ "legacy_rowboat_id" # str
+ ])
+ ),
+
"watched_users": Table( # Users being monitored by the bot's BigBrother cog
primary_key="user_id",
keys=sorted([