whatsapp_rust/store/
schema.rs1diesel::table! {
4 app_state_keys (key_id, device_id) {
5 key_id -> Binary,
6 key_data -> Binary,
7 device_id -> Integer,
8 }
9}
10
11diesel::table! {
12 app_state_mutation_macs (name, index_mac, device_id) {
13 name -> Text,
14 version -> BigInt,
15 index_mac -> Binary,
16 value_mac -> Binary,
17 device_id -> Integer,
18 }
19}
20
21diesel::table! {
22 app_state_versions (name, device_id) {
23 name -> Text,
24 state_data -> Binary,
25 device_id -> Integer,
26 }
27}
28
29diesel::table! {
30 device (id) {
31 id -> Integer,
32 lid -> Text,
33 pn -> Text,
34 registration_id -> Integer,
35 noise_key -> Binary,
36 identity_key -> Binary,
37 signed_pre_key -> Binary,
38 signed_pre_key_id -> Integer,
39 signed_pre_key_signature -> Binary,
40 adv_secret_key -> Binary,
41 account -> Nullable<Binary>,
42 push_name -> Text,
43 app_version_primary -> Integer,
44 app_version_secondary -> Integer,
45 app_version_tertiary -> BigInt,
46 app_version_last_fetched_ms -> BigInt,
47 }
48}
49
50diesel::table! {
51 identities (address, device_id) {
52 address -> Text,
53 key -> Binary,
54 device_id -> Integer,
55 }
56}
57
58diesel::table! {
59 prekeys (id, device_id) {
60 id -> Integer,
61 key -> Binary,
62 uploaded -> Bool,
63 device_id -> Integer,
64 }
65}
66
67diesel::table! {
68 sender_keys (address, device_id) {
69 address -> Text,
70 record -> Binary,
71 device_id -> Integer,
72 }
73}
74
75diesel::table! {
76 sessions (address, device_id) {
77 address -> Text,
78 record -> Binary,
79 device_id -> Integer,
80 }
81}
82
83diesel::table! {
84 signed_prekeys (id, device_id) {
85 id -> Integer,
86 record -> Binary,
87 device_id -> Integer,
88 }
89}
90
91diesel::allow_tables_to_appear_in_same_query!(
92 app_state_keys,
93 app_state_mutation_macs,
94 app_state_versions,
95 device,
96 identities,
97 prekeys,
98 sender_keys,
99 sessions,
100 signed_prekeys,
101);