Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / communicate-dev / schemas / com.vayunmathur.communicate.data.whatsapp.WhatsAppDatabase / 4.json

4.json757 lines · 22.5 KiBRaw
1{
2 "formatVersion": 1,
3 "database": {
4 "version": 4,
5 "identityHash": "c17ae1b51ef7530e7d3cae99210d9ac1",
6 "entities": [
7 {
8 "tableName": "whatsapp_devices",
9 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `phoneNumber` TEXT NOT NULL, `pushName` TEXT NOT NULL, `platform` TEXT NOT NULL, `lastSeen` INTEGER NOT NULL, `jid` TEXT NOT NULL, `timezone` TEXT NOT NULL, `loggedInAt` INTEGER NOT NULL, `phoneLastSeen` INTEGER NOT NULL, `phoneLastPinged` INTEGER NOT NULL, `businessName` TEXT NOT NULL, PRIMARY KEY(`deviceId`))",
10 "fields": [
11 {
12 "fieldPath": "deviceId",
13 "columnName": "deviceId",
14 "affinity": "TEXT",
15 "notNull": true
16 },
17 {
18 "fieldPath": "phoneNumber",
19 "columnName": "phoneNumber",
20 "affinity": "TEXT",
21 "notNull": true
22 },
23 {
24 "fieldPath": "pushName",
25 "columnName": "pushName",
26 "affinity": "TEXT",
27 "notNull": true
28 },
29 {
30 "fieldPath": "platform",
31 "columnName": "platform",
32 "affinity": "TEXT",
33 "notNull": true
34 },
35 {
36 "fieldPath": "lastSeen",
37 "columnName": "lastSeen",
38 "affinity": "INTEGER",
39 "notNull": true
40 },
41 {
42 "fieldPath": "jid",
43 "columnName": "jid",
44 "affinity": "TEXT",
45 "notNull": true
46 },
47 {
48 "fieldPath": "timezone",
49 "columnName": "timezone",
50 "affinity": "TEXT",
51 "notNull": true
52 },
53 {
54 "fieldPath": "loggedInAt",
55 "columnName": "loggedInAt",
56 "affinity": "INTEGER",
57 "notNull": true
58 },
59 {
60 "fieldPath": "phoneLastSeen",
61 "columnName": "phoneLastSeen",
62 "affinity": "INTEGER",
63 "notNull": true
64 },
65 {
66 "fieldPath": "phoneLastPinged",
67 "columnName": "phoneLastPinged",
68 "affinity": "INTEGER",
69 "notNull": true
70 },
71 {
72 "fieldPath": "businessName",
73 "columnName": "businessName",
74 "affinity": "TEXT",
75 "notNull": true
76 }
77 ],
78 "primaryKey": {
79 "autoGenerate": false,
80 "columnNames": [
81 "deviceId"
82 ]
83 }
84 },
85 {
86 "tableName": "whatsapp_sessions",
87 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`jid` TEXT NOT NULL, `sessionData` BLOB NOT NULL, `timestamp` INTEGER NOT NULL, `isPreKey` INTEGER NOT NULL, PRIMARY KEY(`jid`))",
88 "fields": [
89 {
90 "fieldPath": "jid",
91 "columnName": "jid",
92 "affinity": "TEXT",
93 "notNull": true
94 },
95 {
96 "fieldPath": "sessionData",
97 "columnName": "sessionData",
98 "affinity": "BLOB",
99 "notNull": true
100 },
101 {
102 "fieldPath": "timestamp",
103 "columnName": "timestamp",
104 "affinity": "INTEGER",
105 "notNull": true
106 },
107 {
108 "fieldPath": "isPreKey",
109 "columnName": "isPreKey",
110 "affinity": "INTEGER",
111 "notNull": true
112 }
113 ],
114 "primaryKey": {
115 "autoGenerate": false,
116 "columnNames": [
117 "jid"
118 ]
119 }
120 },
121 {
122 "tableName": "whatsapp_history_sync_conversation",
123 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`chatJid` TEXT NOT NULL, `userLoginId` TEXT NOT NULL, `lastMessageTimestamp` INTEGER NOT NULL, `archived` INTEGER NOT NULL, `pinned` INTEGER NOT NULL, `muteEndTime` INTEGER NOT NULL, `endOfHistoryTransferType` INTEGER NOT NULL, `ephemeralExpiration` INTEGER NOT NULL, `ephemeralSettingTimestamp` INTEGER NOT NULL, `markedAsUnread` INTEGER NOT NULL, `unreadCount` INTEGER NOT NULL, `isGroup` INTEGER NOT NULL, `name` TEXT, `participants` TEXT NOT NULL, PRIMARY KEY(`chatJid`))",
124 "fields": [
125 {
126 "fieldPath": "chatJid",
127 "columnName": "chatJid",
128 "affinity": "TEXT",
129 "notNull": true
130 },
131 {
132 "fieldPath": "userLoginId",
133 "columnName": "userLoginId",
134 "affinity": "TEXT",
135 "notNull": true
136 },
137 {
138 "fieldPath": "lastMessageTimestamp",
139 "columnName": "lastMessageTimestamp",
140 "affinity": "INTEGER",
141 "notNull": true
142 },
143 {
144 "fieldPath": "archived",
145 "columnName": "archived",
146 "affinity": "INTEGER",
147 "notNull": true
148 },
149 {
150 "fieldPath": "pinned",
151 "columnName": "pinned",
152 "affinity": "INTEGER",
153 "notNull": true
154 },
155 {
156 "fieldPath": "muteEndTime",
157 "columnName": "muteEndTime",
158 "affinity": "INTEGER",
159 "notNull": true
160 },
161 {
162 "fieldPath": "endOfHistoryTransferType",
163 "columnName": "endOfHistoryTransferType",
164 "affinity": "INTEGER",
165 "notNull": true
166 },
167 {
168 "fieldPath": "ephemeralExpiration",
169 "columnName": "ephemeralExpiration",
170 "affinity": "INTEGER",
171 "notNull": true
172 },
173 {
174 "fieldPath": "ephemeralSettingTimestamp",
175 "columnName": "ephemeralSettingTimestamp",
176 "affinity": "INTEGER",
177 "notNull": true
178 },
179 {
180 "fieldPath": "markedAsUnread",
181 "columnName": "markedAsUnread",
182 "affinity": "INTEGER",
183 "notNull": true
184 },
185 {
186 "fieldPath": "unreadCount",
187 "columnName": "unreadCount",
188 "affinity": "INTEGER",
189 "notNull": true
190 },
191 {
192 "fieldPath": "isGroup",
193 "columnName": "isGroup",
194 "affinity": "INTEGER",
195 "notNull": true
196 },
197 {
198 "fieldPath": "name",
199 "columnName": "name",
200 "affinity": "TEXT"
201 },
202 {
203 "fieldPath": "participants",
204 "columnName": "participants",
205 "affinity": "TEXT",
206 "notNull": true
207 }
208 ],
209 "primaryKey": {
210 "autoGenerate": false,
211 "columnNames": [
212 "chatJid"
213 ]
214 }
215 },
216 {
217 "tableName": "whatsapp_media_backfill_request",
218 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageId` TEXT NOT NULL, `userLoginId` TEXT NOT NULL, `portalId` TEXT NOT NULL, `portalReceiver` TEXT NOT NULL, `mediaKey` BLOB NOT NULL, `status` INTEGER NOT NULL, `error` TEXT NOT NULL, PRIMARY KEY(`messageId`))",
219 "fields": [
220 {
221 "fieldPath": "messageId",
222 "columnName": "messageId",
223 "affinity": "TEXT",
224 "notNull": true
225 },
226 {
227 "fieldPath": "userLoginId",
228 "columnName": "userLoginId",
229 "affinity": "TEXT",
230 "notNull": true
231 },
232 {
233 "fieldPath": "portalId",
234 "columnName": "portalId",
235 "affinity": "TEXT",
236 "notNull": true
237 },
238 {
239 "fieldPath": "portalReceiver",
240 "columnName": "portalReceiver",
241 "affinity": "TEXT",
242 "notNull": true
243 },
244 {
245 "fieldPath": "mediaKey",
246 "columnName": "mediaKey",
247 "affinity": "BLOB",
248 "notNull": true
249 },
250 {
251 "fieldPath": "status",
252 "columnName": "status",
253 "affinity": "INTEGER",
254 "notNull": true
255 },
256 {
257 "fieldPath": "error",
258 "columnName": "error",
259 "affinity": "TEXT",
260 "notNull": true
261 }
262 ],
263 "primaryKey": {
264 "autoGenerate": false,
265 "columnNames": [
266 "messageId"
267 ]
268 }
269 },
270 {
271 "tableName": "whatsapp_avatar_cache",
272 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`entityJid` TEXT NOT NULL, `avatarId` TEXT NOT NULL, `directPath` TEXT NOT NULL, `expiry` INTEGER NOT NULL, `gone` INTEGER NOT NULL, PRIMARY KEY(`entityJid`, `avatarId`))",
273 "fields": [
274 {
275 "fieldPath": "entityJid",
276 "columnName": "entityJid",
277 "affinity": "TEXT",
278 "notNull": true
279 },
280 {
281 "fieldPath": "avatarId",
282 "columnName": "avatarId",
283 "affinity": "TEXT",
284 "notNull": true
285 },
286 {
287 "fieldPath": "directPath",
288 "columnName": "directPath",
289 "affinity": "TEXT",
290 "notNull": true
291 },
292 {
293 "fieldPath": "expiry",
294 "columnName": "expiry",
295 "affinity": "INTEGER",
296 "notNull": true
297 },
298 {
299 "fieldPath": "gone",
300 "columnName": "gone",
301 "affinity": "INTEGER",
302 "notNull": true
303 }
304 ],
305 "primaryKey": {
306 "autoGenerate": false,
307 "columnNames": [
308 "entityJid",
309 "avatarId"
310 ]
311 }
312 },
313 {
314 "tableName": "whatsapp_poll_option",
315 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`msgId` TEXT NOT NULL, `optionHash` TEXT NOT NULL, `optionName` TEXT NOT NULL, PRIMARY KEY(`msgId`, `optionHash`))",
316 "fields": [
317 {
318 "fieldPath": "msgId",
319 "columnName": "msgId",
320 "affinity": "TEXT",
321 "notNull": true
322 },
323 {
324 "fieldPath": "optionHash",
325 "columnName": "optionHash",
326 "affinity": "TEXT",
327 "notNull": true
328 },
329 {
330 "fieldPath": "optionName",
331 "columnName": "optionName",
332 "affinity": "TEXT",
333 "notNull": true
334 }
335 ],
336 "primaryKey": {
337 "autoGenerate": false,
338 "columnNames": [
339 "msgId",
340 "optionHash"
341 ]
342 }
343 },
344 {
345 "tableName": "whatsapp_poll_secret",
346 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`msgId` TEXT NOT NULL, `secret` TEXT NOT NULL, PRIMARY KEY(`msgId`))",
347 "fields": [
348 {
349 "fieldPath": "msgId",
350 "columnName": "msgId",
351 "affinity": "TEXT",
352 "notNull": true
353 },
354 {
355 "fieldPath": "secret",
356 "columnName": "secret",
357 "affinity": "TEXT",
358 "notNull": true
359 }
360 ],
361 "primaryKey": {
362 "autoGenerate": false,
363 "columnNames": [
364 "msgId"
365 ]
366 }
367 },
368 {
369 "tableName": "whatsapp_e2e_sessions",
370 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `deviceId` INTEGER NOT NULL, `record` BLOB NOT NULL, PRIMARY KEY(`address`, `deviceId`))",
371 "fields": [
372 {
373 "fieldPath": "address",
374 "columnName": "address",
375 "affinity": "TEXT",
376 "notNull": true
377 },
378 {
379 "fieldPath": "deviceId",
380 "columnName": "deviceId",
381 "affinity": "INTEGER",
382 "notNull": true
383 },
384 {
385 "fieldPath": "record",
386 "columnName": "record",
387 "affinity": "BLOB",
388 "notNull": true
389 }
390 ],
391 "primaryKey": {
392 "autoGenerate": false,
393 "columnNames": [
394 "address",
395 "deviceId"
396 ]
397 }
398 },
399 {
400 "tableName": "whatsapp_e2e_identities",
401 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `identityKey` BLOB NOT NULL, PRIMARY KEY(`address`))",
402 "fields": [
403 {
404 "fieldPath": "address",
405 "columnName": "address",
406 "affinity": "TEXT",
407 "notNull": true
408 },
409 {
410 "fieldPath": "identityKey",
411 "columnName": "identityKey",
412 "affinity": "BLOB",
413 "notNull": true
414 }
415 ],
416 "primaryKey": {
417 "autoGenerate": false,
418 "columnNames": [
419 "address"
420 ]
421 }
422 },
423 {
424 "tableName": "whatsapp_e2e_pre_keys",
425 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `record` BLOB NOT NULL, `uploaded` INTEGER NOT NULL, PRIMARY KEY(`id`))",
426 "fields": [
427 {
428 "fieldPath": "id",
429 "columnName": "id",
430 "affinity": "INTEGER",
431 "notNull": true
432 },
433 {
434 "fieldPath": "record",
435 "columnName": "record",
436 "affinity": "BLOB",
437 "notNull": true
438 },
439 {
440 "fieldPath": "uploaded",
441 "columnName": "uploaded",
442 "affinity": "INTEGER",
443 "notNull": true
444 }
445 ],
446 "primaryKey": {
447 "autoGenerate": false,
448 "columnNames": [
449 "id"
450 ]
451 }
452 },
453 {
454 "tableName": "whatsapp_e2e_signed_pre_keys",
455 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `record` BLOB NOT NULL, PRIMARY KEY(`id`))",
456 "fields": [
457 {
458 "fieldPath": "id",
459 "columnName": "id",
460 "affinity": "INTEGER",
461 "notNull": true
462 },
463 {
464 "fieldPath": "record",
465 "columnName": "record",
466 "affinity": "BLOB",
467 "notNull": true
468 }
469 ],
470 "primaryKey": {
471 "autoGenerate": false,
472 "columnNames": [
473 "id"
474 ]
475 }
476 },
477 {
478 "tableName": "whatsapp_e2e_sender_keys",
479 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `deviceId` INTEGER NOT NULL, `distributionId` TEXT NOT NULL, `record` BLOB NOT NULL, PRIMARY KEY(`address`, `deviceId`, `distributionId`))",
480 "fields": [
481 {
482 "fieldPath": "address",
483 "columnName": "address",
484 "affinity": "TEXT",
485 "notNull": true
486 },
487 {
488 "fieldPath": "deviceId",
489 "columnName": "deviceId",
490 "affinity": "INTEGER",
491 "notNull": true
492 },
493 {
494 "fieldPath": "distributionId",
495 "columnName": "distributionId",
496 "affinity": "TEXT",
497 "notNull": true
498 },
499 {
500 "fieldPath": "record",
501 "columnName": "record",
502 "affinity": "BLOB",
503 "notNull": true
504 }
505 ],
506 "primaryKey": {
507 "autoGenerate": false,
508 "columnNames": [
509 "address",
510 "deviceId",
511 "distributionId"
512 ]
513 }
514 },
515 {
516 "tableName": "whatsapp_cached_message",
517 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageId` TEXT NOT NULL, `conversationJid` TEXT NOT NULL, `body` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, `outgoing` INTEGER NOT NULL, `senderJid` TEXT NOT NULL, `senderName` TEXT NOT NULL, `isEdited` INTEGER NOT NULL, `isRevoked` INTEGER NOT NULL, `quotedMessageId` TEXT, `mediaUrl` TEXT, `mediaMime` TEXT, `mediaName` TEXT, `serviceData` TEXT, `status` INTEGER NOT NULL, PRIMARY KEY(`messageId`))",
518 "fields": [
519 {
520 "fieldPath": "messageId",
521 "columnName": "messageId",
522 "affinity": "TEXT",
523 "notNull": true
524 },
525 {
526 "fieldPath": "conversationJid",
527 "columnName": "conversationJid",
528 "affinity": "TEXT",
529 "notNull": true
530 },
531 {
532 "fieldPath": "body",
533 "columnName": "body",
534 "affinity": "TEXT",
535 "notNull": true
536 },
537 {
538 "fieldPath": "timestamp",
539 "columnName": "timestamp",
540 "affinity": "INTEGER",
541 "notNull": true
542 },
543 {
544 "fieldPath": "outgoing",
545 "columnName": "outgoing",
546 "affinity": "INTEGER",
547 "notNull": true
548 },
549 {
550 "fieldPath": "senderJid",
551 "columnName": "senderJid",
552 "affinity": "TEXT",
553 "notNull": true
554 },
555 {
556 "fieldPath": "senderName",
557 "columnName": "senderName",
558 "affinity": "TEXT",
559 "notNull": true
560 },
561 {
562 "fieldPath": "isEdited",
563 "columnName": "isEdited",
564 "affinity": "INTEGER",
565 "notNull": true
566 },
567 {
568 "fieldPath": "isRevoked",
569 "columnName": "isRevoked",
570 "affinity": "INTEGER",
571 "notNull": true
572 },
573 {
574 "fieldPath": "quotedMessageId",
575 "columnName": "quotedMessageId",
576 "affinity": "TEXT"
577 },
578 {
579 "fieldPath": "mediaUrl",
580 "columnName": "mediaUrl",
581 "affinity": "TEXT"
582 },
583 {
584 "fieldPath": "mediaMime",
585 "columnName": "mediaMime",
586 "affinity": "TEXT"
587 },
588 {
589 "fieldPath": "mediaName",
590 "columnName": "mediaName",
591 "affinity": "TEXT"
592 },
593 {
594 "fieldPath": "serviceData",
595 "columnName": "serviceData",
596 "affinity": "TEXT"
597 },
598 {
599 "fieldPath": "status",
600 "columnName": "status",
601 "affinity": "INTEGER",
602 "notNull": true
603 }
604 ],
605 "primaryKey": {
606 "autoGenerate": false,
607 "columnNames": [
608 "messageId"
609 ]
610 }
611 },
612 {
613 "tableName": "whatsapp_cached_reaction",
614 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageId` TEXT NOT NULL, `emoji` TEXT NOT NULL, `senderJid` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, PRIMARY KEY(`messageId`, `senderJid`))",
615 "fields": [
616 {
617 "fieldPath": "messageId",
618 "columnName": "messageId",
619 "affinity": "TEXT",
620 "notNull": true
621 },
622 {
623 "fieldPath": "emoji",
624 "columnName": "emoji",
625 "affinity": "TEXT",
626 "notNull": true
627 },
628 {
629 "fieldPath": "senderJid",
630 "columnName": "senderJid",
631 "affinity": "TEXT",
632 "notNull": true
633 },
634 {
635 "fieldPath": "timestamp",
636 "columnName": "timestamp",
637 "affinity": "INTEGER",
638 "notNull": true
639 }
640 ],
641 "primaryKey": {
642 "autoGenerate": false,
643 "columnNames": [
644 "messageId",
645 "senderJid"
646 ]
647 }
648 },
649 {
650 "tableName": "whatsapp_contact",
651 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`phoneE164` TEXT NOT NULL, `lid` TEXT NOT NULL, `displayName` TEXT NOT NULL, `onWhatsApp` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`phoneE164`))",
652 "fields": [
653 {
654 "fieldPath": "phoneE164",
655 "columnName": "phoneE164",
656 "affinity": "TEXT",
657 "notNull": true
658 },
659 {
660 "fieldPath": "lid",
661 "columnName": "lid",
662 "affinity": "TEXT",
663 "notNull": true
664 },
665 {
666 "fieldPath": "displayName",
667 "columnName": "displayName",
668 "affinity": "TEXT",
669 "notNull": true
670 },
671 {
672 "fieldPath": "onWhatsApp",
673 "columnName": "onWhatsApp",
674 "affinity": "INTEGER",
675 "notNull": true
676 },
677 {
678 "fieldPath": "updatedAt",
679 "columnName": "updatedAt",
680 "affinity": "INTEGER",
681 "notNull": true
682 }
683 ],
684 "primaryKey": {
685 "autoGenerate": false,
686 "columnNames": [
687 "phoneE164"
688 ]
689 }
690 },
691 {
692 "tableName": "whatsapp_call_log",
693 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`callId` TEXT NOT NULL, `peerJid` TEXT NOT NULL, `peerName` TEXT NOT NULL, `outgoing` INTEGER NOT NULL, `video` INTEGER NOT NULL, `startTime` INTEGER NOT NULL, `durationSeconds` INTEGER NOT NULL, `outcome` TEXT NOT NULL, PRIMARY KEY(`callId`))",
694 "fields": [
695 {
696 "fieldPath": "callId",
697 "columnName": "callId",
698 "affinity": "TEXT",
699 "notNull": true
700 },
701 {
702 "fieldPath": "peerJid",
703 "columnName": "peerJid",
704 "affinity": "TEXT",
705 "notNull": true
706 },
707 {
708 "fieldPath": "peerName",
709 "columnName": "peerName",
710 "affinity": "TEXT",
711 "notNull": true
712 },
713 {
714 "fieldPath": "outgoing",
715 "columnName": "outgoing",
716 "affinity": "INTEGER",
717 "notNull": true
718 },
719 {
720 "fieldPath": "video",
721 "columnName": "video",
722 "affinity": "INTEGER",
723 "notNull": true
724 },
725 {
726 "fieldPath": "startTime",
727 "columnName": "startTime",
728 "affinity": "INTEGER",
729 "notNull": true
730 },
731 {
732 "fieldPath": "durationSeconds",
733 "columnName": "durationSeconds",
734 "affinity": "INTEGER",
735 "notNull": true
736 },
737 {
738 "fieldPath": "outcome",
739 "columnName": "outcome",
740 "affinity": "TEXT",
741 "notNull": true
742 }
743 ],
744 "primaryKey": {
745 "autoGenerate": false,
746 "columnNames": [
747 "callId"
748 ]
749 }
750 }
751 ],
752 "setupQueries": [
753 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
754 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'c17ae1b51ef7530e7d3cae99210d9ac1')"
755 ]
756 }
757}