iota_bridge_indexer/
schema.rs

1// Copyright (c) Mysten Labs, Inc.
2// Modifications Copyright (c) 2024 IOTA Stiftung
3// SPDX-License-Identifier: Apache-2.0
4// @generated automatically by Diesel CLI.
5
6diesel::table! {
7    progress_store (task_name) {
8        task_name -> Text,
9        checkpoint -> Int8,
10        target_checkpoint -> Int8,
11        timestamp -> Nullable<Timestamp>,
12    }
13}
14
15diesel::table! {
16    iota_progress_store (id) {
17        id -> Int4,
18        txn_digest -> Bytea,
19    }
20}
21
22diesel::table! {
23    iota_error_transactions (txn_digest) {
24        txn_digest -> Bytea,
25        sender_address -> Bytea,
26        timestamp_ms -> Int8,
27        failure_status -> Text,
28        cmd_idx -> Nullable<Int8>,
29    }
30}
31
32diesel::table! {
33    token_transfer (chain_id, nonce, status) {
34        chain_id -> Int4,
35        nonce -> Int8,
36        status -> Text,
37        block_height -> Int8,
38        timestamp_ms -> Int8,
39        txn_hash -> Bytea,
40        txn_sender -> Bytea,
41        gas_usage -> Int8,
42        data_source -> Text,
43    }
44}
45
46diesel::table! {
47    token_transfer_data (chain_id, nonce) {
48        chain_id -> Int4,
49        nonce -> Int8,
50        block_height -> Int8,
51        timestamp_ms -> Int8,
52        txn_hash -> Bytea,
53        sender_address -> Bytea,
54        destination_chain -> Int4,
55        recipient_address -> Bytea,
56        token_id -> Int4,
57        amount -> Int8,
58    }
59}
60
61diesel::allow_tables_to_appear_in_same_query!(
62    progress_store,
63    iota_error_transactions,
64    iota_progress_store,
65    token_transfer,
66    token_transfer_data,
67);