feat: store system UUIDs of banned users per guild

This commit is contained in:
sam 2024-11-05 15:32:53 +01:00
parent 5ac607fd0a
commit 5f24a6aa88
Signed by: sam
GPG key ID: 5F3C3C1B3166639D
9 changed files with 121 additions and 18 deletions

View file

@ -0,0 +1 @@
drop table pluralkit_systems;

View file

@ -0,0 +1,9 @@
create table pluralkit_systems (
system_id uuid not null,
user_id bigint not null,
guild_id bigint not null,
primary key (system_id, user_id, guild_id)
);
create index ix_pluralkit_systems_user_guild on pluralkit_systems (user_id, guild_id);