-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path8xphone.sql
378 lines (334 loc) · 14.5 KB
/
8xphone.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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
ALTER TABLE `owned_vehicles` ADD COLUMN `carseller` INT(11) NULL DEFAULT '0';
CREATE TABLE IF NOT EXISTS `ybnv3phone8x_app_chat` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`channel` varchar(20) NOT NULL,
`message` varchar(255) NOT NULL,
`time` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ybnv3phone8x_calls` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner` LONGTEXT NOT NULL COMMENT 'Num tel proprio' COLLATE 'utf8_general_ci',
`num` LONGTEXT NOT NULL COMMENT 'Num reférence du contact' COLLATE 'utf8_general_ci',
`incoming` int(11) NOT NULL COMMENT 'Défini si on est à l''origine de l''appels',
`time` timestamp NOT NULL DEFAULT current_timestamp(),
`accepts` int(11) NOT NULL COMMENT 'Appels accepter ou pas',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ybnv3phone8x_messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`transmitter` VARCHAR(50) NOT NULL COLLATE 'utf8_general_ci',
`receiver` VARCHAR(50) NOT NULL COLLATE 'utf8_general_ci',
`message` LONGTEXT NOT NULL COLLATE 'utf8_general_ci',
`time` timestamp NOT NULL DEFAULT current_timestamp(),
`isRead` int(11) NOT NULL DEFAULT 0,
`owner` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ybnv3phone8x_users_contacts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`identifier` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
`number` VARCHAR(30) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
`display` LONGTEXT NULL DEFAULT '-1' COLLATE 'utf8mb4_general_ci',
`avatar` LONGTEXT NOT NULL DEFAULT 'https://cdn.iconscout.com/icon/free/png-256/avatar-370-456322.png' COLLATE 'utf8_general_ci',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
CREATE TABLE `ybnv3phone8x_insto_accounts` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`forename` LONGTEXT NOT NULL COLLATE 'utf8mb4_bin',
`surname` LONGTEXT NOT NULL COLLATE 'utf8mb4_bin',
`username` VARCHAR(250) NOT NULL COLLATE 'utf8_general_ci',
`password` LONGTEXT NOT NULL COLLATE 'utf8mb4_bin',
`avatar_url` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_bin',
`takip` LONGTEXT NULL DEFAULT '[]' COLLATE 'utf8mb4_bin',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `username` (`username`) USING BTREE
)
COLLATE='utf8mb4_bin'
ENGINE=InnoDB;
CREATE TABLE `ybnv3phone8x_insto_instas` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`authorId` INT(11) NOT NULL,
`realUser` LONGTEXT NULL COLLATE 'utf8mb4_unicode_ci',
`message` LONGTEXT NOT NULL COLLATE 'utf8mb4_unicode_ci',
`image` LONGTEXT NOT NULL COLLATE 'utf8mb4_unicode_ci',
`filters` LONGTEXT NOT NULL COLLATE 'utf8mb4_unicode_ci',
`time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`likes` INT(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
INDEX `FK_ybnv3phone8x_insto_instas_ybnv3phone8x_insto_accounts` (`authorId`),
CONSTRAINT `FK_ybnv3phone8x_insto_instas_ybnv3phone8x_insto_accounts` FOREIGN KEY (`authorId`) REFERENCES `ybnv3phone8x_insto_accounts` (`id`)
)
COLLATE='utf8mb4_unicode_ci'
ENGINE=InnoDB
AUTO_INCREMENT=0
;
CREATE TABLE `ybnv3phone8x_insto_likes` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`authorId` INT(11) NULL DEFAULT NULL,
`inapId` INT(11) NULL DEFAULT NULL,
PRIMARY KEY (`id`),
INDEX `FK_ybnv3phone8x_insto_likes_ybnv3phone8x_insto_accounts` (`authorId`),
INDEX `FK_ybnv3phone8x_insto_likes_ybnv3phone8x_insto_instas` (`inapId`),
CONSTRAINT `FK_ybnv3phone8x_insto_likes_ybnv3phone8x_insto_accounts` FOREIGN KEY (`authorId`) REFERENCES `ybnv3phone8x_insto_accounts` (`id`),
CONSTRAINT `FK_ybnv3phone8x_insto_likes_ybnv3phone8x_insto_instas` FOREIGN KEY (`inapId`) REFERENCES `ybnv3phone8x_insto_instas` (`id`) ON DELETE CASCADE
)
COLLATE='utf8mb4_bin'
ENGINE=InnoDB
AUTO_INCREMENT=0
;
CREATE TABLE `ybnv3phone8x_twitter_accounts` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`username` VARCHAR(50) NOT NULL DEFAULT '0' COLLATE 'utf8_general_ci',
`password` VARCHAR(64) NOT NULL DEFAULT '0' COLLATE 'utf8mb4_bin',
`avatar_url` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_bin',
`profilavatar` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_bin',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `username` (`username`) USING BTREE
)
COLLATE='utf8mb4_bin'
ENGINE=InnoDB
;
CREATE TABLE IF NOT EXISTS `ybnv3phone8x_twitter_tweets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`authorId` int(11) NOT NULL,
`realUser` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`message` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` LONGTEXT NULL COLLATE 'utf8mb4_unicode_ci',
`time` timestamp NOT NULL DEFAULT current_timestamp(),
`likes` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `FK_ybnv3phone8x_twitter_tweets_ybnv3phone8x_twitter_accounts` (`authorId`),
CONSTRAINT `FK_ybnv3phone8x_twitter_tweets_ybnv3phone8x_twitter_accounts` FOREIGN KEY (`authorId`) REFERENCES `ybnv3phone8x_twitter_accounts` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `ybnv3phone8x_twitter_likes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`authorId` int(11) DEFAULT NULL,
`tweetId` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK_ybnv3phone8x_twitter_likes_ybnv3phone8x_twitter_accounts` (`authorId`),
KEY `FK_ybnv3phone8x_twitter_likes_ybnv3phone8x_twitter_tweets` (`tweetId`),
CONSTRAINT `FK_ybnv3phone8x_twitter_likes_ybnv3phone8x_twitter_accounts` FOREIGN KEY (`authorId`) REFERENCES `ybnv3phone8x_twitter_accounts` (`id`),
CONSTRAINT `FK_ybnv3phone8x_twitter_likes_ybnv3phone8x_twitter_tweets` FOREIGN KEY (`tweetId`) REFERENCES `ybnv3phone8x_twitter_tweets` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
CREATE TABLE `ybnv3phone8x_yellow` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`phone_number` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
`firstname` VARCHAR(256) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
`lastname` VARCHAR(256) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
`message` LONGTEXT NOT NULL COLLATE 'utf8mb4_unicode_ci',
`image` LONGTEXT NULL COLLATE 'utf8mb4_unicode_ci',
`time` TIMESTAMP NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8mb4_unicode_ci'
ENGINE=InnoDB
AUTO_INCREMENT=0
;
CREATE TABLE `ybnv3phone8x_bank_transfer` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`type` INT(11) NOT NULL,
`identifier` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
`price` LONGTEXT NOT NULL COLLATE 'utf8mb4_general_ci',
`name` LONGTEXT NOT NULL COLLATE 'utf8mb4_general_ci',
`time` TIMESTAMP NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=0
;
CREATE TABLE `ybnv3phone8x_gallery` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`hex` LONGTEXT NOT NULL COLLATE 'utf8mb4_general_ci',
`image` LONGTEXT NOT NULL COLLATE 'utf8mb4_general_ci',
`time` TIMESTAMP NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=0
;
CREATE TABLE `ybnv3phone8x_gps` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`hex` LONGTEXT NOT NULL COLLATE 'utf8mb4_general_ci',
`nott` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
`gps` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=0
;
CREATE TABLE `ybnv3phone8x_news` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`hex` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`haber` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`baslik` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`resim` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`video` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`zaman` TIMESTAMP NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
;
CREATE TABLE `ybnv3phone8x_settings` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`identifier` LONGTEXT NOT NULL COLLATE 'utf8mb4_general_ci',
`crypto` LONGTEXT NOT NULL DEFAULT '{}' COLLATE 'utf8mb4_general_ci',
`phone_number` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
`avatar_url` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=0
;
CREATE TABLE `ybnv3phone8x_blockednumber` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`identifier` LONGTEXT NOT NULL COLLATE 'utf8mb4_general_ci',
`hex` LONGTEXT NOT NULL COLLATE 'utf8mb4_general_ci',
`number` LONGTEXT NOT NULL COLLATE 'utf8mb4_general_ci',
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=0
;
CREATE TABLE IF NOT EXISTS `ybnv3phone8x_insto_story` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`authorId` int(11) NOT NULL,
`realUser` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
`stories` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`isRead` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL,
`time` timestamp NOT NULL DEFAULT current_timestamp(),
`likes` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE,
KEY `FK_ybnv3phone8x_insto_story_ybnv3phone8x_insto_accounts` (`authorId`) USING BTREE,
CONSTRAINT `FK_ybnv3phone8x_insto_story_ybnv3phone8x_insto_accounts` FOREIGN KEY (`authorId`) REFERENCES `ybnv3phone8x_insto_accounts` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE `ybnv3phone8x_messages_group` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`owner` LONGTEXT NOT NULL COLLATE 'utf8_general_ci',
`ownerphone` VARCHAR(50) NOT NULL COLLATE 'utf8_general_ci',
`groupname` VARCHAR(255) NOT NULL COLLATE 'utf8_general_ci',
`gimage` LONGTEXT NOT NULL COLLATE 'utf8_general_ci',
`contacts` LONGTEXT NOT NULL COLLATE 'utf8_general_ci',
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=0
;
CREATE TABLE `ybnv3phone8x_group_message` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`groupid` INT(11) NOT NULL,
`owner` LONGTEXT NOT NULL COLLATE 'utf8mb4_unicode_ci',
`ownerphone` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_unicode_ci',
`groupname` VARCHAR(255) NOT NULL COLLATE 'utf8mb4_unicode_ci',
`messages` LONGTEXT NOT NULL COLLATE 'utf8mb4_unicode_ci',
`contacts` LONGTEXT NOT NULL COLLATE 'utf8mb4_unicode_ci',
`time` TIMESTAMP NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`) USING BTREE,
INDEX `groupid` (`groupid`) USING BTREE,
CONSTRAINT `FK_phonegroupmessage` FOREIGN KEY (`groupid`) REFERENCES `ybnv3phone8x_messages_group` (`id`) ON UPDATE RESTRICT ON DELETE RESTRICT
)
COLLATE='utf8mb4_unicode_ci'
ENGINE=InnoDB
AUTO_INCREMENT=0
;
CREATE TABLE `ybnv3phone8x_vehicle_sales` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`owner` LONGTEXT NOT NULL COLLATE 'utf8_general_ci',
`ownerphone` VARCHAR(255) NOT NULL COLLATE 'utf8_general_ci',
`plate` VARCHAR(255) NOT NULL COLLATE 'utf8_general_ci',
`model` VARCHAR(255) NOT NULL COLLATE 'utf8_general_ci',
`price` INT(11) NOT NULL,
`image` LONGTEXT NOT NULL COLLATE 'utf8_general_ci',
`time` TIMESTAMP NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
;
CREATE TABLE `ybnv3phone8x_gotur` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`label` LONGTEXT NOT NULL COLLATE 'utf8mb4_general_ci',
`price` INT(11) NULL DEFAULT '0',
`count` INT(11) NOT NULL,
`item` LONGTEXT NOT NULL COLLATE 'utf8mb4_general_ci',
`kapat` VARCHAR(50) NULL DEFAULT 'false' COLLATE 'utf8mb4_general_ci',
`adet` INT(11) NULL DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=0
;
CREATE TABLE `ybnv3phone8x_job_message` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`name` LONGTEXT NOT NULL COLLATE 'utf8mb4_general_ci',
`number` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
`message` LONGTEXT NOT NULL COLLATE 'utf8mb4_general_ci',
`photo` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
`gps` VARCHAR(255) NOT NULL COLLATE 'utf8mb4_general_ci',
`owner` INT(11) NOT NULL DEFAULT '0',
`jobm` VARCHAR(255) NOT NULL COLLATE 'utf8mb4_general_ci',
`time` TIMESTAMP NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=0
;
CREATE TABLE `ybnv3phone8x_mails` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`citizenid` VARCHAR(255) NOT NULL DEFAULT '0' COLLATE 'utf8_general_ci',
`sender` VARCHAR(255) NOT NULL DEFAULT '0' COLLATE 'utf8_general_ci',
`subject` VARCHAR(255) NOT NULL DEFAULT '0' COLLATE 'utf8_general_ci',
`image` TEXT NOT NULL COLLATE 'utf8_general_ci',
`message` TEXT NOT NULL COLLATE 'utf8_general_ci',
`time` TIMESTAMP NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
;
CREATE TABLE `ybnv3phone8x_tinderacc` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`name` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`username` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`passaword` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`date` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`image` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`gender` INT(11) NULL DEFAULT NULL,
`identifier` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=0
;
CREATE TABLE `ybnv3phone8x_tindermatch` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`user_id` INT(11) NOT NULL DEFAULT '0',
`friend_id` INT(11) NOT NULL DEFAULT '0',
`is_match` INT(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=0
;
CREATE TABLE `ybnv3phone8x_tindermessage` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`message` TEXT NOT NULL COLLATE 'utf8_general_ci',
`tinderes` TEXT NOT NULL COLLATE 'utf8_general_ci',
`owner` INT(11) NOT NULL DEFAULT '0',
`time` TIMESTAMP NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
;