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

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

#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
#[sea_orm(table_name = "channel")]
pub struct Model {
    #[sea_orm(primary_key)]
    pub id: i32,
    #[sea_orm(unique)]
    pub channel_id: String,
    pub source: String,
    pub destination: String,
    #[sea_orm(column_type = "Binary(12)")]
    pub balance: Vec<u8>,
    pub status: i8,
    #[sea_orm(column_type = "Binary(8)")]
    pub epoch: Vec<u8>,
    #[sea_orm(column_type = "Binary(8)")]
    pub ticket_index: Vec<u8>,
    pub closure_time: Option<DateTimeUtc>,
}

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

impl ActiveModelBehavior for ActiveModel {}