use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use crate::types::ID;
#[derive(Deserialize, Serialize, Debug)]
pub struct User {
pub id: ID,
pub username: String,
pub email: String,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
}
#[derive(Deserialize, Serialize, Debug)]
pub struct RegisterInfo {
pub username: String,
pub password: String,
pub email: String,
pub client_name: String,
}
#[derive(Deserialize, Serialize, Debug)]
pub struct NewlyRegisteredInfo {
pub id: ID,
pub username: String,
pub email: String,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub default_client: ClientInfo,
}
#[derive(Deserialize, Serialize, Debug)]
pub struct ClientInfo {
client_id: String,
client_secret: String,
name: String,
}