-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdb_create.sql
57 lines (51 loc) · 1.41 KB
/
db_create.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
create database if not exists salty_cpp_bot;
use salty_cpp_bot;
create table if not exists cur_tickets
(
id bigint auto_increment
primary key,
server_id bigint null,
user_id bigint null,
ticket_id bigint null
);
create table if not exists ticket
(
id int auto_increment
primary key,
server_id bigint not null,
category_id bigint default 0 null,
count int default 0 null,
notify_channel bigint default 0 null,
ticket_title varchar(255) default 'Ticket system' null,
enabled tinyint(1) default 1 null,
max_ticket int default 0 null
);
create table if not exists ticket_access_roles
(
id int auto_increment
primary key,
server_id bigint(50) null,
role_id bigint(50) null
);
create table if not exists user
(
id int auto_increment
primary key,
user_id bigint null,
coins bigint null
);
create table if not exists user_inventory
(
id bigint auto_increment
primary key,
user_id bigint null,
item_id int null,
item_count int null
);
create table if not exists verify
(
id bigint auto_increment
primary key,
server_id bigint null,
role_id bigint default 0 null
);