mirror of
https://github.com/uhIgnacio/EmoteManager.git
synced 2024-08-15 02:23:13 +00:00
14 lines
515 B
MySQL
14 lines
515 B
MySQL
|
SET TIME ZONE 'UTC';
|
||
|
|
||
|
-- inserted for every time a command is invoked
|
||
|
CREATE TABLE invokes (
|
||
|
guild_id BIGINT NOT NULL,
|
||
|
-- hashed for privacy
|
||
|
user_id_md5 BYTEA NOT NULL,
|
||
|
-- the qualified name of the command invoked (https://discordpy.readthedocs.io/en/stable/ext/commands/api.html?highlight=qualified_name#discord.ext.commands.Command.qualified_name)
|
||
|
command TEXT NOT NULL,
|
||
|
invoked_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||
|
);
|
||
|
|
||
|
CREATE INDEX invokes_invoked_at_idx ON invokes (invoked_at);
|