hopr_db_entity/codegen/sqlite/
ticket.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, Eq)]
6#[sea_orm(table_name = "ticket")]
7pub struct Model {
8    #[sea_orm(primary_key)]
9    pub id: i32,
10    pub channel_id: String,
11    #[sea_orm(column_type = "Binary(12)")]
12    pub amount: Vec<u8>,
13    #[sea_orm(column_type = "Binary(8)")]
14    pub index: Vec<u8>,
15    pub index_offset: i32,
16    #[sea_orm(column_type = "Binary(7)")]
17    pub winning_probability: Vec<u8>,
18    #[sea_orm(column_type = "Binary(8)")]
19    pub channel_epoch: Vec<u8>,
20    #[sea_orm(column_type = "Binary(64)")]
21    pub signature: Vec<u8>,
22    #[sea_orm(column_type = "Binary(32)")]
23    pub response: Vec<u8>,
24    pub state: i8,
25    #[sea_orm(column_type = "Binary(32)")]
26    pub hash: Vec<u8>,
27}
28
29#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
30pub enum Relation {}
31
32impl ActiveModelBehavior for ActiveModel {}