hopr_db_entity/codegen/sqlite/
outgoing_ticket_index.rs1use sea_orm::entity::prelude::*;
4
5#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
6#[sea_orm(table_name = "outgoing_ticket_index")]
7pub struct Model {
8 #[sea_orm(primary_key)]
9 pub id: i32,
10 #[sea_orm(unique)]
11 pub channel_id: String,
12 #[sea_orm(column_type = "Binary(8)")]
13 pub index: Vec<u8>,
14}
15
16#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
17pub enum Relation {}
18
19impl ActiveModelBehavior for ActiveModel {}