feat: make identity server store user instance/guild IDs

This commit is contained in:
sam 2024-03-04 15:59:07 +01:00
parent 42abd70184
commit fd77dd01fa
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
19 changed files with 245 additions and 29 deletions

View file

@ -0,0 +1,7 @@
create table guilds_accounts (
chat_instance_id text not null references chat_instances (id) on delete cascade,
guild_id text not null,
account_id text not null references accounts (id) on delete cascade,
primary key (chat_instance_id, guild_id, account_id)
);