24 lines
718 B
Rust
24 lines
718 B
Rust
|
//! `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 = "account")]
|
||
|
pub struct Model {
|
||
|
#[sea_orm(primary_key, auto_increment = false)]
|
||
|
pub user_id: i32,
|
||
|
#[sea_orm(primary_key, auto_increment = false)]
|
||
|
pub name: String,
|
||
|
#[sea_orm(column_type = "Binary(BlobSize::Blob(Some(64)))")]
|
||
|
pub salt: Vec<u8>,
|
||
|
#[sea_orm(column_type = "VarBinary(256)")]
|
||
|
pub enc_login: Vec<u8>,
|
||
|
#[sea_orm(column_type = "VarBinary(256)")]
|
||
|
pub enc_password: Vec<u8>,
|
||
|
}
|
||
|
|
||
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||
|
pub enum Relation {}
|
||
|
|
||
|
impl ActiveModelBehavior for ActiveModel {}
|