Initial commit

This commit is contained in:
James Shiffer
2023-10-07 22:46:02 -07:00
commit 68b94e0642
19 changed files with 4095 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
--------------------------------------------------------------------------------
-- 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;

View File

@@ -0,0 +1,20 @@
--------------------------------------------------------------------------------
-- Up
--------------------------------------------------------------------------------
create table users
(
id text
constraint users_pk
primary key,
username text not null,
reaction_1_total integer not null default 0,
reaction_2_total integer not null default 0,
reaction_3_total integer not null default 0
);
--------------------------------------------------------------------------------
-- Down
--------------------------------------------------------------------------------
DROP TABLE users;