-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathaxenia_data.sql
171 lines (141 loc) · 4.26 KB
/
axenia_data.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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
-- phpMyAdmin SQL Dump
-- version 4.9.5deb2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jul 20, 2022 at 07:02 AM
-- Server version: 8.0.29-0ubuntu0.20.04.3
-- PHP Version: 7.4.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `axenia_data`
--
-- --------------------------------------------------------
--
-- Table structure for table `Chats`
--
CREATE TABLE `Chats` (
`id` bigint NOT NULL,
`title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`lang` varchar(5) CHARACTER SET utf8mb3 COLLATE utf8_general_ci DEFAULT NULL,
`username` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8_general_ci DEFAULT NULL,
`silent_mode` tinyint(1) NOT NULL DEFAULT '0',
`cooldown` double NOT NULL DEFAULT '1',
`isPresented` tinyint(1) DEFAULT '1' COMMENT 'Bot in chat or not',
`date_add` datetime DEFAULT NULL,
`date_remove` datetime DEFAULT NULL,
`ariphmeticGrowth` tinyint(1) NOT NULL DEFAULT '0',
`forAdmin` tinyint(1) NOT NULL DEFAULT '0',
`showcase` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- --------------------------------------------------------
--
-- Table structure for table `Karma`
--
CREATE TABLE `Karma` (
`user_id` bigint NOT NULL,
`chat_id` bigint DEFAULT NULL,
`level` float DEFAULT NULL,
`last_updated` date DEFAULT NULL,
`last_time_voted` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`toofast_showed` tinyint DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;
-- --------------------------------------------------------
--
-- Table structure for table `Rights`
--
CREATE TABLE `Rights` (
`user_id` int NOT NULL,
`erase_self` tinyint(1) DEFAULT NULL,
`erase_anybody` tinyint(1) DEFAULT NULL,
`edit_self` tinyint(1) DEFAULT NULL,
`edit_anybody` tinyint(1) DEFAULT NULL,
`full` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-- --------------------------------------------------------
--
-- Table structure for table `Showcase`
--
CREATE TABLE `Showcase` (
`id` int NOT NULL,
`title` varchar(50) NOT NULL,
`price` int NOT NULL,
`censor` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-- --------------------------------------------------------
--
-- Table structure for table `Users`
--
CREATE TABLE `Users` (
`id` bigint NOT NULL,
`username` varchar(50) NOT NULL,
`firstname` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`lastname` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`lang` varchar(5) DEFAULT NULL,
`last_updated` datetime DEFAULT NULL,
`date_added` datetime DEFAULT NULL,
`title` varchar(30) DEFAULT NULL,
`cookies` int DEFAULT NULL,
`hidden` tinyint(1) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `Chats`
--
ALTER TABLE `Chats`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`);
--
-- Indexes for table `Karma`
--
ALTER TABLE `Karma`
ADD UNIQUE KEY `id` (`user_id`,`chat_id`),
ADD KEY `user_id` (`user_id`),
ADD KEY `chat_id` (`chat_id`);
--
-- Indexes for table `Rights`
--
ALTER TABLE `Rights`
ADD UNIQUE KEY `user_id_un` (`user_id`);
--
-- Indexes for table `Showcase`
--
ALTER TABLE `Showcase`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `Users`
--
ALTER TABLE `Users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`,`username`,`firstname`,`lastname`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `Chats`
--
ALTER TABLE `Chats`
MODIFY `id` bigint NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Showcase`
--
ALTER TABLE `Showcase`
MODIFY `id` int NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Users`
--
ALTER TABLE `Users`
MODIFY `id` bigint NOT NULL AUTO_INCREMENT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;