hopr_db_entity/codegen/sqlite/
ticket.rsuse sea_orm::entity::prelude::*;
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
#[sea_orm(table_name = "ticket")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub channel_id: String,
#[sea_orm(column_type = "Binary(12)")]
pub amount: Vec<u8>,
#[sea_orm(column_type = "Binary(8)")]
pub index: Vec<u8>,
pub index_offset: i32,
#[sea_orm(column_type = "Binary(7)")]
pub winning_probability: Vec<u8>,
#[sea_orm(column_type = "Binary(8)")]
pub channel_epoch: Vec<u8>,
#[sea_orm(column_type = "Binary(64)")]
pub signature: Vec<u8>,
#[sea_orm(column_type = "Binary(32)")]
pub response: Vec<u8>,
pub state: i8,
#[sea_orm(column_type = "Binary(32)")]
pub hash: Vec<u8>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}