FemScoreboard/discord/migrations/001-messages-table.sql

24 lines
761 B
MySQL
Raw Normal View History

2023-10-07 22:46:02 -07:00
--------------------------------------------------------------------------------
-- Up
--------------------------------------------------------------------------------
create table messages
(
id integer
constraint messages_pk
primary key,
guild integer not null,
channel integer not null,
author text not null,
content text,
reaction_1_count integer not null default 0,
reaction_2_count integer not null default 0,
reaction_3_count integer not null default 0
);
--------------------------------------------------------------------------------
-- Down
--------------------------------------------------------------------------------
DROP TABLE messages;