feat: store system UUIDs of banned users per guild
This commit is contained in:
parent
5ac607fd0a
commit
5f24a6aa88
9 changed files with 121 additions and 18 deletions
|
|
@ -0,0 +1 @@
|
|||
drop table pluralkit_systems;
|
||||
|
|
@ -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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue