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
table! { client_key_values (key) { key -> Text, value -> Text, } } table! { completed_transactions (tx_id) { tx_id -> BigInt, source_public_key -> Binary, destination_public_key -> Binary, amount -> BigInt, fee -> BigInt, transaction_protocol -> Text, status -> Integer, message -> Text, timestamp -> Timestamp, cancelled -> Integer, direction -> Nullable<Integer>, coinbase_block_height -> Nullable<BigInt>, send_count -> Integer, last_send_timestamp -> Nullable<Timestamp>, } } table! { contacts (public_key) { public_key -> Binary, alias -> Text, } } table! { inbound_transactions (tx_id) { tx_id -> BigInt, source_public_key -> Binary, amount -> BigInt, receiver_protocol -> Text, message -> Text, timestamp -> Timestamp, cancelled -> Integer, direct_send_success -> Integer, send_count -> Integer, last_send_timestamp -> Nullable<Timestamp>, } } table! { key_manager_states (id) { id -> Nullable<BigInt>, master_key -> Binary, branch_seed -> Text, primary_key_index -> BigInt, timestamp -> Timestamp, } } table! { outbound_transactions (tx_id) { tx_id -> BigInt, destination_public_key -> Binary, amount -> BigInt, fee -> BigInt, sender_protocol -> Text, message -> Text, timestamp -> Timestamp, cancelled -> Integer, direct_send_success -> Integer, send_count -> Integer, last_send_timestamp -> Nullable<Timestamp>, } } table! { outputs (id) { id -> Integer, commitment -> Nullable<Binary>, spending_key -> Binary, value -> BigInt, flags -> Integer, maturity -> BigInt, status -> Integer, tx_id -> Nullable<BigInt>, hash -> Nullable<Binary>, } } table! { pending_transaction_outputs (tx_id) { tx_id -> BigInt, short_term -> Integer, timestamp -> Timestamp, coinbase_block_height -> Nullable<BigInt>, } } table! { wallet_settings (key) { key -> Text, value -> Text, } } allow_tables_to_appear_in_same_query!( client_key_values, completed_transactions, contacts, inbound_transactions, key_manager_states, outbound_transactions, outputs, pending_transaction_outputs, wallet_settings, );