mirror of
https://git.femboyfinancial.jp/james/FemScoreboard.git
synced 2025-11-19 02:53:44 -08:00
Initial commit
This commit is contained in:
23
discord/migrations/001-messages-table.sql
Normal file
23
discord/migrations/001-messages-table.sql
Normal 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;
|
||||
20
discord/migrations/002-users-table.sql
Normal file
20
discord/migrations/002-users-table.sql
Normal 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;
|
||||
Reference in New Issue
Block a user