data: Add webhook logging and modrole

This commit is contained in:
2026-07-29 15:46:13 +03:00
parent bc231da61f
commit d7447fc300
2 changed files with 12 additions and 2 deletions
+7 -1
View File
@@ -13,6 +13,9 @@ class Campaign(RowModel):
started_at = Timestamp()
completed_at = Timestamp()
moderator_role_id = Integer()
logging_webhook_url = String()
created_at = Timestamp()
_timestamp = Timestamp()
@@ -34,13 +37,16 @@ class EarnedReward(RowModel):
earned_at = Timestamp()
earned_from = String()
modnote = String()
reference = String()
log_messageid = Integer()
_timestamp = Timestamp()
class CampaignData(Registry):
VERSION = ("CAMPAIGN", 1)
VERSION = ("REWARDCAMPAIGN", 1)
Campaign = Campaign
campaigns = Campaign.table