hopr_db_entity/codegen/sqlite/
chain_info.rs

1//! `SeaORM` Entity, @generated by sea-orm-codegen 1.1.10
2
3use sea_orm::entity::prelude::*;
4
5#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
6#[sea_orm(table_name = "chain_info")]
7pub struct Model {
8    #[sea_orm(primary_key)]
9    pub id: i32,
10    pub last_indexed_block: i32,
11    #[sea_orm(column_type = "Binary(12)", nullable)]
12    pub ticket_price: Option<Vec<u8>>,
13    #[sea_orm(column_type = "Binary(32)", nullable)]
14    pub channels_dst: Option<Vec<u8>>,
15    #[sea_orm(column_type = "Binary(32)", nullable)]
16    pub ledger_dst: Option<Vec<u8>>,
17    #[sea_orm(column_type = "Binary(32)", nullable)]
18    pub safe_registry_dst: Option<Vec<u8>>,
19    pub network_registry_enabled: bool,
20    #[sea_orm(column_type = "Binary(32)", nullable)]
21    pub chain_checksum: Option<Vec<u8>>,
22    pub previous_indexed_block_prio_to_checksum_update: i32,
23    #[sea_orm(column_type = "Float")]
24    pub min_incoming_ticket_win_prob: f32,
25}
26
27#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
28pub enum Relation {}
29
30impl ActiveModelBehavior for ActiveModel {}