//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.2 use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)] #[sea_orm(table_name = "user_auth_realm")] pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, pub realm: String, pub realm_native_id: String, pub user: String, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { #[sea_orm( belongs_to = "super::user::Entity", from = "Column::User", to = "super::user::Column::Id", on_update = "NoAction", on_delete = "NoAction" )] User, #[sea_orm(has_many = "super::user_savefile::Entity")] UserSavefile, } impl Related for Entity { fn to() -> RelationDef { Relation::User.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::UserSavefile.def() } } impl ActiveModelBehavior for ActiveModel {}