hopr_db_entity/codegen/sqlite/
account.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 = "account")]
7pub struct Model {
8    #[sea_orm(primary_key)]
9    pub id: i32,
10    pub chain_key: String,
11    pub packet_key: String,
12}
13
14#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
15pub enum Relation {
16    #[sea_orm(has_many = "super::announcement::Entity")]
17    Announcement,
18}
19
20impl Related<super::announcement::Entity> for Entity {
21    fn to() -> RelationDef {
22        Relation::Announcement.def()
23    }
24}
25
26impl ActiveModelBehavior for ActiveModel {}