Added user module (#7)
Release Tagging / release (push) Successful in 34s
Rust Build / Check (push) Successful in 34s
Rust Build / Test Suite (push) Successful in 26s
Rust Build / Rustfmt (push) Successful in 35s
Rust Build / Clippy (push) Successful in 29s
Rust Build / build (push) Successful in 27s

Reviewed-on: phoenix/textsender-models#7
This commit was merged in pull request #7.
This commit is contained in:
2026-05-29 09:50:59 -04:00
parent b28d26e26b
commit 6975475330
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
pub mod config; pub mod config;
pub mod contact; pub mod contact;
pub mod token; pub mod token;
pub mod user;
+17
View File
@@ -0,0 +1,17 @@
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>,
}