feat: Add db voice session tracking
This commit is contained in:
@@ -12,5 +12,18 @@ class VoiceLogGuild(RowModel):
|
||||
_timestamp = Timestamp()
|
||||
|
||||
|
||||
class VoiceLogSession(RowModel):
|
||||
_tablename_ = "voicelog_sessions"
|
||||
_cache_ = {}
|
||||
|
||||
sessionid = Integer(primary=True)
|
||||
guildid = Integer()
|
||||
userid = Integer()
|
||||
channelid = Integer()
|
||||
joined_at = Timestamp()
|
||||
duration = Integer()
|
||||
|
||||
|
||||
class VoiceLogData(Registry):
|
||||
voicelog_guilds = VoiceLogGuild.table
|
||||
voicelog_sessions = VoiceLogSession.table
|
||||
|
||||
Reference in New Issue
Block a user