feat: Implement authentication (#10)
Co-authored-by: kould <2435992353@qq.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use sea_orm::entity::prelude::*;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel, Deserialize, Serialize)]
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, DeriveEntityModel, Deserialize, Serialize)]
|
||||
#[sea_orm(table_name = "user_info")]
|
||||
pub struct Model {
|
||||
#[sea_orm(primary_key)]
|
||||
@@ -9,10 +9,11 @@ pub struct Model {
|
||||
pub uid: i64,
|
||||
pub email: String,
|
||||
pub nickname: String,
|
||||
pub avatar_url: String,
|
||||
pub avatar_url: Option<String>,
|
||||
pub color_schema: String,
|
||||
pub list_style: String,
|
||||
pub language: String,
|
||||
pub password: String,
|
||||
|
||||
#[serde(skip_deserializing)]
|
||||
pub created_at: Date,
|
||||
|
||||
Reference in New Issue
Block a user