//! `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_savefile")] pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, pub user: String, pub data: String, #[sea_orm(unique)] pub timestamp: i64, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { #[sea_orm( belongs_to = "super::user_auth_realm::Entity", from = "Column::User", to = "super::user_auth_realm::Column::Id", on_update = "NoAction", on_delete = "NoAction" )] UserAuthRealm, } impl Related for Entity { fn to() -> RelationDef { Relation::UserAuthRealm.def() } } impl ActiveModelBehavior for ActiveModel {}