-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeepbalancebot.sql
More file actions
59 lines (44 loc) · 1.79 KB
/
keepbalancebot.sql
File metadata and controls
59 lines (44 loc) · 1.79 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
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE IF NOT EXISTS `bot_admin` (
`id` int(11) NOT NULL,
`name` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `bot_hello` (
`id` int(11) NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
INSERT INTO `bot_hello` (`id`, `description`) VALUES
(1, 'Hello text');
CREATE TABLE IF NOT EXISTS `bot_help` (
`id` int(11) NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
INSERT INTO `bot_help` (`id`, `description`) VALUES
(1, 'Help');
CREATE TABLE IF NOT EXISTS `bot_user` (
`id` int(11) NOT NULL,
`user_id` bigint(20) DEFAULT NULL,
`first_name` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`last_name` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`adress` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`payment` int(1) DEFAULT NULL,
`action` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `bot_admin`
ADD PRIMARY KEY (`id`);
ALTER TABLE `bot_hello`
ADD PRIMARY KEY (`id`);
ALTER TABLE `bot_help`
ADD PRIMARY KEY (`id`);
ALTER TABLE `bot_user`
ADD PRIMARY KEY (`id`);
ALTER TABLE `bot_admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `bot_hello`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
ALTER TABLE `bot_help`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
ALTER TABLE `bot_user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;