//! `SeaORM` Entity, @generated by sea-orm-codegen 1.1.12 use super::sea_orm_active_enums::UserRole; 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 password: Option, pub vk_id: Option, pub group: Option, pub role: UserRole, pub android_version: Option, #[sea_orm(unique)] pub telegram_id: Option, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation {} impl ActiveModelBehavior for ActiveModel {}