hopr_db_entity/codegen/sqlite/
account.rs1use sea_orm :: entity :: prelude :: * ;
6
7# [derive (Clone , Debug , PartialEq , DeriveEntityModel , Eq)] # [sea_orm (table_name = "account")] pub struct Model { # [sea_orm (primary_key)] pub id : i32 , pub chain_key : String , pub packet_key : String , pub published_at : i32 , }
8
9# [derive (Copy , Clone , Debug , EnumIter , DeriveRelation)] pub enum Relation { # [sea_orm (has_many = "super::announcement::Entity")] Announcement , }
10
11impl Related < super :: announcement :: Entity > for Entity { fn to () -> RelationDef { Relation :: Announcement . def () } }
12
13impl ActiveModelBehavior for ActiveModel { }