xmtp_db/encrypted_store/
schema.rs

1pub use super::schema_gen::*;
2
3diesel::table! {
4  conversation_list (id) {
5    id -> Binary,
6    created_at_ns -> BigInt,
7    membership_state -> Integer,
8    installations_last_checked -> BigInt,
9    added_by_inbox_id -> Text,
10    welcome_sequence_id -> Nullable<BigInt>,
11    dm_id -> Nullable<Text>,
12    rotated_at_ns -> BigInt,
13    conversation_type -> Integer,
14    is_commit_log_forked -> Nullable<Bool>,
15    message_id -> Nullable<Binary>,
16    decrypted_message_bytes -> Nullable<Binary>,
17    sent_at_ns -> Nullable<BigInt>,
18    message_kind -> Nullable<Integer>,
19    sender_installation_id -> Nullable<Binary>,
20    sender_inbox_id -> Nullable<Text>,
21    delivery_status -> Nullable<Integer>,
22    content_type -> Nullable<Integer>,
23    version_major -> Nullable<Integer>,
24    version_minor -> Nullable<Integer>,
25    authority_id -> Nullable<Text>,
26    sequence_id -> Nullable<BigInt>, // null when a group has no messages
27    originator_id -> Nullable<BigInt>,
28  }
29}
30
31diesel::allow_tables_to_appear_in_same_query!(consent_records, conversation_list);