-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_database.sh
More file actions
executable file
·86 lines (80 loc) · 1.57 KB
/
create_database.sh
File metadata and controls
executable file
·86 lines (80 loc) · 1.57 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
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
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/sh
sqlite3 TSCppBot.db "
CREATE TABLE text_commands(
name TEXT PRIMARY KEY,
description TEXT,
value TEXT,
is_global TEXT
) WITHOUT ROWID;
CREATE TABLE embed_command_fields(
id INTEGER PRIMARY KEY ASC,
title TEXT,
value TEXT,
is_inline TEXT
);
CREATE TABLE embed_commands(
command_name TEXT PRIMARY KEY,
command_description TEXT,
command_is_global TEXT,
title TEXT,
url TEXT,
description TEXT,
thumbnail TEXT,
image TEXT,
video TEXT,
color INTEGER,
timestamp INTEGER,
author_name TEXT,
author_url TEXT,
author_icon_url TEXT,
footer_text TEXT,
footer_icon_url TEXT,
fields TEXT
) WITHOUT ROWID;
CREATE TABLE reminders(
id INTEGER PRIMARY KEY ASC,
start_time INTEGER,
end_time INTEGER,
user TEXT,
text TEXT
) STRICT;
CREATE TABLE mutes(
id INTEGER PRIMARY KEY ASC,
start_time INTEGER,
end_time INTEGER
);
CREATE TABLE mod_records(
id TEXT PRIMARY KEY,
type TEXT,
moderator TEXT,
user TEXT,
reason TEXT,
active TEXT,
extra_data INTEGER
) WITHOUT ROWID;
CREATE TABLE staff_applications(
id TEXT,
time INTEGER,
type TEXT,
status TEXT,
q1 TEXT,
q2 TEXT,
q3 TEXT,
q4 TEXT,
q5 TEXT,
q6 TEXT,
q7 TEXT,
q8 TEXT,
q9 TEXT,
q10 TEXT
);
CREATE TABLE ban_appeals(
id TEXT,
email TEXT,
time INTEGER,
status TEXT,
reason TEXT,
appeal TEXT
);
"
# mod_records extra_data is currently either the number of seconds to delete messages for in a ban, or a mutes table row ID.