-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sql
More file actions
45 lines (45 loc) · 1.19 KB
/
init.sql
File metadata and controls
45 lines (45 loc) · 1.19 KB
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
create table state (
guild_id unsigned integer unique on conflict replace,
features unsigned integer,
mirror_in unsigned integer,
mirror_out unsigned integer,
board_emoji string,
board_channel unsigned integer,
board_min_reacts unsigned integer,
join_channel unsigned integer,
join_text string,
leave_channel unsigned integer,
leave_text string
);
create table board (
source_message unsigned integer unique on conflict replace,
board_message unsigned integer
);
create table tags (
guild_id unsigned integer,
name string, content string,
constraint yikes unique (guild_id, name) on conflict replace
);
create table slowmodes (
channel_id unsigned integer unique on conflict replace,
secs unsigned integer
);
create table warnings (
guild_id unsigned integer,
user_id unsigned integer,
mod_id unsigned integer,
text string,
timestamp date default current_timestamp
);
create table perms (
guild_id unsigned integer unique on conflict replace,
admin_id unsigned integer,
moderator_id unsigned integer
);
create table killfile (
guild_id unique on conflict replace
);
create table role_kiosks (
message_id unsigned integer unique on conflict replace,
data string
);