Added user module
Rust Build / Check (pull_request) Successful in 30s
Release Tagging / release (pull_request) Successful in 38s
Rust Build / Test Suite (pull_request) Successful in 28s
Rust Build / Rustfmt (pull_request) Failing after 32s
Rust Build / Clippy (pull_request) Successful in 32s
Rust Build / build (pull_request) Successful in 26s

This commit is contained in:
2026-05-29 09:45:48 -04:00
parent b28d26e26b
commit 653521c50e
2 changed files with 19 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
pub mod config;
pub mod contact;
pub mod token;
pub mod user;
+18
View File
@@ -0,0 +1,18 @@
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct User {
pub id: uuid::Uuid,
pub phone_number: String,
pub username: String,
pub password: String,
// Firstname is a pointer
pub firstname: String,
// Lastname is a pointer
pub lastname: String,
#[serde(with = "time::serde::rfc3339::option")]
pub created: Option<time::OffsetDateTime>,
#[serde(with = "time::serde::rfc3339::option")]
pub last_login: Option<time::OffsetDateTime>,
}