-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdump.sql
More file actions
156 lines (133 loc) · 4.48 KB
/
dump.sql
File metadata and controls
156 lines (133 loc) · 4.48 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
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
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 */;
CREATE TABLE `Accounts` (
`id` int(11) NOT NULL,
`login` text,
`password` text,
`rang` int(11) DEFAULT NULL,
`email` text,
`date` int(11) NOT NULL,
`lock` int(11) NOT NULL,
`notify` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `Accounts` (`id`, `login`, `password`, `rang`, `email`, `date`, `lock`, `notify`) VALUES
(1, 'admin', '098f794ffea8716d93976b9a298fd3fb', 1, '', 0, 0, 1);
CREATE TABLE `accounts_setting` (
`id` int(11) NOT NULL,
`status` int(11) NOT NULL,
`profile_tg` text NOT NULL,
`bot_token` text NOT NULL,
`bot_username` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `channels_origin` (
`id` int(11) NOT NULL,
`channel_origin` text NOT NULL,
`channel_origin_id` text NOT NULL,
`origin_name` text NOT NULL,
`channel_publish` text NOT NULL,
`channel_publish_id` text NOT NULL,
`publish_name` text NOT NULL,
`status` int(11) NOT NULL,
`all_post` int(11) NOT NULL,
`invalid` int(11) NOT NULL,
`album_get` int(11) NOT NULL,
`setting_id` int(11) NOT NULL,
`account_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `channels_settings` (
`id` int(11) NOT NULL,
`status` int(11) NOT NULL,
`spam_filter` text NOT NULL,
`replace_words` text NOT NULL,
`filter_links` text NOT NULL,
`filter_message` int(11) NOT NULL,
`enable_text_message` int(11) NOT NULL,
`my_text_message` text NOT NULL,
`filter_inline` int(11) NOT NULL,
`replace_link` text NOT NULL,
`enable_bot_vote` int(11) NOT NULL,
`skip_text` int(11) NOT NULL,
`timetable` int(11) NOT NULL,
`limit_status` int(11) NOT NULL,
`time_post` text NOT NULL,
`limit_post` int(11) NOT NULL,
`limit_hours` int(11) NOT NULL,
`limit_time` int(11) NOT NULL,
`limit_self` int(11) NOT NULL,
`forward_message` int(11) NOT NULL,
`ignore_post_type` int(11) NOT NULL,
`sugn_channel` text NOT NULL,
`word_send_post` text NOT NULL,
`word_send_post_func` int(11) NOT NULL,
`word_send_post_type` int(11) NOT NULL,
`replace_username_stat` int(11) NOT NULL,
`replace_username` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `join_exists` (
`id` int(11) NOT NULL,
`channel_url` text NOT NULL,
`name` text NOT NULL,
`channel_id` text NOT NULL,
`profile_tg` text NOT NULL,
`id_account` int(11) NOT NULL,
`type` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `setting` (
`id` int(11) NOT NULL,
`status` int(11) NOT NULL,
`self_account_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `setting` (`id`, `status`, `self_account_id`) VALUES
(1, 1, 1);
CREATE TABLE `vote_channels` (
`id` int(11) NOT NULL,
`channel_id` text NOT NULL,
`message` text NOT NULL,
`message_id` int(11) NOT NULL,
`rating` int(11) NOT NULL,
`plus` int(11) NOT NULL,
`minus` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `vote_channels_exits` (
`id` int(11) NOT NULL,
`id_chat` int(11) NOT NULL,
`type` text NOT NULL,
`id_post` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE `Accounts`
ADD PRIMARY KEY (`id`);
ALTER TABLE `accounts_setting`
ADD PRIMARY KEY (`id`);
ALTER TABLE `channels_origin`
ADD PRIMARY KEY (`id`);
ALTER TABLE `channels_settings`
ADD PRIMARY KEY (`id`);
ALTER TABLE `join_exists`
ADD PRIMARY KEY (`id`);
ALTER TABLE `setting`
ADD PRIMARY KEY (`id`);
ALTER TABLE `vote_channels`
ADD PRIMARY KEY (`id`);
ALTER TABLE `vote_channels_exits`
ADD PRIMARY KEY (`id`);
ALTER TABLE `accounts_setting`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `channels_origin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `channels_settings`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `join_exists`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `setting`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
ALTER TABLE `vote_channels`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `vote_channels_exits`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
/*!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 */;