Add basic register and login
All checks were successful
Build Crate / build (push) Successful in 1m45s
All checks were successful
Build Crate / build (push) Successful in 1m45s
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//! `SeaORM` Entity, @generated by sea-orm-codegen 1.0.0-rc.5
|
||||
//! `SeaORM` Entity, @generated by sea-orm-codegen 1.0.0
|
||||
|
||||
use sea_orm::entity::prelude::*;
|
||||
use serde::{Deserialize, Serialize};
|
||||
@@ -8,11 +8,12 @@ use serde::{Deserialize, Serialize};
|
||||
pub struct Model {
|
||||
#[sea_orm(primary_key)]
|
||||
pub id: i32,
|
||||
#[sea_orm(unique)]
|
||||
pub username: String,
|
||||
pub password: String,
|
||||
pub salt: String,
|
||||
pub creation_time: DateTimeWithTimeZone,
|
||||
pub last_active_time: DateTimeWithTimeZone,
|
||||
pub password_hash_and_salt: String,
|
||||
pub nickname: Option<String>,
|
||||
pub creation_time: DateTime,
|
||||
pub last_active_time: DateTime,
|
||||
pub is_admin: bool,
|
||||
pub email: Option<String>,
|
||||
pub avatar: Option<String>,
|
||||
|
||||
Reference in New Issue
Block a user