This repository was archived by the owner on Feb 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sql
More file actions
81 lines (71 loc) · 1.82 KB
/
Copy pathsetup.sql
File metadata and controls
81 lines (71 loc) · 1.82 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
create table if not exists users (
user_id bigint primary key,
money bigint,
commands int default 0
);
create table if not exists channels (
channel_id serial primary key,
user_id bigint references users (user_id),
name varchar(55),
description text,
subscribers bigint,
total_views bigint,
category varchar(30),
created_at bigint
);
create table if not exists videos (
video_id serial primary key,
channel_id int references channels (channel_id),
user_id bigint references users (user_id),
name varchar(55),
description text,
status varchar(30),
new_subscribers bigint,
new_money bigint default 0,
views bigint,
likes bigint,
dislikes bigint,
subscriber_cap bigint,
iteration int,
last_updated bigint,
uploaded_at bigint
);
create table if not exists guilds (
guild_id bigint primary key,
prefix varchar(15),
commands bigint default 0
);
create table if not exists subscriptions (
user_id bigint references users (user_id),
channel_id int references channels (channel_id)
);
create table if not exists votes (
user_id bigint references users (user_id),
timestamp bigint
);
create table if not exists botbans (
user_id bigint primary key
);
create table if not exists awards (
channel_id int references channels (channel_id),
award text
);
create table if not exists warns (
warn_id serial primary key,
user_id bigint,
moderator bigint,
timestamp bigint,
warning text
);
create table if not exists vote_reminders (
user_id bigint primary key,
toggle boolean,
last_reminded bigint default 0,
last_voted bigint
);
create table if not exists upload_reminders (
channel_id bigint primary key,
toggle boolean,
last_reminded bigint default 0,
last_uploaded bigint
);