Catalogger.NET/Catalogger.Backend/Database/Migrations/003_store_timeouts.up.sql

10 lines
280 B
MySQL
Raw Normal View History

create table timeouts (
id integer generated by default as identity primary key,
user_id bigint not null,
guild_id bigint not null,
moderator_id bigint,
until timestamptz not null
);
create unique index ix_timeouts_user_guild on timeouts (user_id, guild_id);