adding endpoints
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
use chrono::NaiveDateTime;
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::database::types::WorkTime;
|
||||
|
||||
#[derive(Debug, Serialize, sqlx::FromRow, utoipa::ToSchema)]
|
||||
pub struct User {
|
||||
pub id: i32,
|
||||
pub name: String,
|
||||
pub last_name: String,
|
||||
pub preference: WorkTime,
|
||||
pub date_created: NaiveDateTime,
|
||||
pub date_updated: NaiveDateTime,
|
||||
}
|
||||
Reference in New Issue
Block a user