hopr_db_entity/codegen/sqlite/
chain_info.rs

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
//! `SeaORM` Entity, @generated by sea-orm-codegen 1.1.4

use sea_orm::entity::prelude::*;

#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
#[sea_orm(table_name = "chain_info")]
pub struct Model {
    #[sea_orm(primary_key)]
    pub id: i32,
    pub last_indexed_block: i32,
    #[sea_orm(column_type = "Binary(12)", nullable)]
    pub ticket_price: Option<Vec<u8>>,
    #[sea_orm(column_type = "Binary(32)", nullable)]
    pub channels_dst: Option<Vec<u8>>,
    #[sea_orm(column_type = "Binary(32)", nullable)]
    pub ledger_dst: Option<Vec<u8>>,
    #[sea_orm(column_type = "Binary(32)", nullable)]
    pub safe_registry_dst: Option<Vec<u8>>,
    pub network_registry_enabled: bool,
    #[sea_orm(column_type = "Binary(32)", nullable)]
    pub chain_checksum: Option<Vec<u8>>,
    pub previous_indexed_block_prio_to_checksum_update: i32,
    #[sea_orm(column_type = "Float")]
    pub min_incoming_ticket_win_prob: f32,
}

#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}

impl ActiveModelBehavior for ActiveModel {}