gitdataai/lib/model/users/user.rs
2026-05-30 01:38:40 +08:00

19 lines
495 B
Rust

use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use sqlx::FromRow;
use uuid::Uuid;
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, FromRow)]
pub struct UserModel {
pub id: Uuid,
pub username: String,
pub display_name: String,
pub avatar_url: String,
pub website_url: String,
pub allow_use: bool,
pub can_search: bool,
pub last_sign_in_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}