forked from Cyanomous/the-anime-bot-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tables.sql
74 lines (66 loc) · 1.66 KB
/
tables.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
CREATE TABLE IF NOT EXISTS commandsusage(
command TEXT PRIMARY KEY,
usages BIGINT NOT NULL
)
CREATE TABLE IF NOT EXISTS emojioptions(
user_id BIGINT PRIMARY KEY,
enabled BOOLEAN NOT NULL
)
CREATE TABLE IF NOT EXISTS errors(
error_id serial,
error TEXT NOT NULL,
message TEXT NOT NULL,
created_at timestamp NOT NULL,
author_name TEXT NOT NULL,
command TEXT NOT NULL
)
CREATE TABLE IF NOT EXISTS logging(
guild_id BIGINT PRIMARY KEY,
channel_id BIGINT NOT NULL,
webhook TEXT NOT NULL,
channel_create BOOLEAN NOT NULL,
channel_update BOOLEAN NOT NULL,
channel_delete BOOLEAN NOT NULL,
role_create BOOLEAN NOT NULL,
role_update BOOLEAN NOT NULL,
role_delete BOOLEAN NOT NULL,
guild_update BOOLEAN NOT NULL,
emojis_update BOOLEAN NOT NULL,
member_update BOOLEAN NOT NULL,
member_ban BOOLEAN NOT NULL,
member_unban BOOLEAN NOT NULL,
invite_change BOOLEAN NOT NULL,
member_join BOOLEAN NOT NULL,
member_leave BOOLEAN NOT NULL,
voice_channel_change BOOLEAN NOT NULL,
message_delete BOOLEAN NOT NULL,
message_edit BOOLEAN NOT NULL
)
CREATE TABLE IF NOT EXISTS prefix(
guild_id BIGINT PRIMARY KEY,
prefix VARCHAR[] NOT NULL
)
CREATE TABLE IF NOT EXISTS reactionrole(
guild_id BIGINT PRIMARY KEY,
message_id BIGINT NOT NULL,
roles JSON NOT NULL
)
CREATE TABLE IF NOT EXISTS socket(
name TEXT PRIMARY KEY,
count BIGINT NOT NULL
)
CREATE TABLE IF NOT EXISTS tags(
tag_name TEXT PRIMARY KEY,
tag_content TEXT NOT NULL,
author_id BIGINT NOT NULL,
message_id BIGINT NOT NULL,
uses BIGINT NOT NULL,
aliases TEXT []
)
CREATE TABLE IF NOT EXISTS todos(
author_id BIGINT NOT NULL,
content TEXT NOT NULL,
created_at timestamp NOT NULL,
message_id BIGINT NOT NULL,
jump_url TEXT NOT NULL
)