land_core/model/
user_info.rs

1//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3
2
3use sea_orm::entity::prelude::*;
4
5#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
6#[sea_orm(table_name = "user_info")]
7pub struct Model {
8    #[sea_orm(primary_key)]
9    pub id: i32,
10    pub email: String,
11    pub password: String,
12    pub password_salt: String,
13    pub display_name: String,
14    pub role: i32,
15    pub created_at: DateTimeUtc,
16    pub updated_at: DateTimeUtc,
17}
18
19#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
20pub enum Relation {}
21
22impl ActiveModelBehavior for ActiveModel {}