forked from chamburr/modmail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.sql
45 lines (41 loc) · 954 Bytes
/
schema.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
CREATE TABLE public.data
(
guild bigint NOT NULL,
prefix text,
category bigint,
accessrole bigint[] NOT NULL,
logging bigint,
welcome text,
goodbye text,
loggingplus boolean NOT NULL,
pingrole bigint[] NOT NULL,
blacklist bigint[] NOT NULL,
anonymous boolean NOT NULL,
PRIMARY KEY (guild)
);
CREATE TABLE public.snippet
(
guild bigint NOT NULL,
name text NOT NULL,
content text NOT NULL,
PRIMARY KEY (guild, name)
);
CREATE TABLE public.premium
(
identifier bigint NOT NULL,
guild bigint[] NOT NULL,
expiry bigint,
PRIMARY KEY (identifier)
);
CREATE TABLE public.ban
(
identifier bigint NOT NULL,
category integer NOT NULL,
PRIMARY KEY (identifier, category)
);
CREATE TABLE public.preference
(
identifier bigint NOT NULL,
confirmation boolean NOT NULL,
PRIMARY KEY (identifier)
);