//! `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")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub id: String,
#[sea_orm(unique)]
pub username: String,
pub created_on: i64,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[sea_orm(has_many = "super::user_auth_realm::Entity")]
UserAuthRealm,
}
impl Related<super::user_auth_realm::Entity> for Entity {
fn to() -> RelationDef {
Relation::UserAuthRealm.def()
}
}
impl ActiveModelBehavior for ActiveModel {}