⚠️ Moved here: https://doc.twake.app/internal-documentation/backend-services/channels-service/database-models
⚠️ DO NOT EDIT THIS FILE
CHANNEL The main channel table, this table should only be used when changing things on the channel (not frequently) so we don't add counters or last_activity or anything like that.
CHANNEL_DEFAULT Contain the default channels
CHANNEL_COUNTERS We use a separated table to manage counters for this channel. Currently this is not used to do statistics but can be used to this goal in the future.
CHANNEL_LAST_ACTIVITY Store last channel activity for bold/not bold management
DIRECT_CHANNEL_IDENTIFIERS This table is used to find an existing discussion with a group of members. The "identifier" is generated from the group of members.
CHANNEL_TABS Channels can have tabs that are connexion to other apps or different views.
CHANNEL_MEMBERS List of channels for an user
CHANNEL_MEMBERS_REVERSED List of users in channel
TODO: Channel pending emails