Open bast0006 opened 3 years ago
From ARU:
stuff needed in the database for threads:
Ticket
id, created at, who created it (eg a member, or themselves),
Messages:
author
server_message_id
dm_message_id
attachments
embeds
contents
was_internal?
All of thread messages, and attachments links and stuff too, including a ticket and author (user) object
user table: all users who've interacted with modmail
id
default avatar number
name
dm_channel_id
So, schema: Ticket:
Messages:
Attachments:
Embeds:
Emoji: (Later feature)
emoji_messages:
Configuration:
We need a database module to store things persistently, such as thread state.
Things that need storing:
These things should be server-keyed so in the future we can support multiserver if we want.