18 lines
384 B
Rust
18 lines
384 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Serialize, Deserialize, Clone, Debug)]
|
|
pub struct User {
|
|
pub id: String,
|
|
pub username: String,
|
|
pub password_hash: String,
|
|
pub created_at: String,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize, Clone, Debug)]
|
|
pub struct Session {
|
|
pub id: String,
|
|
pub user_id: String,
|
|
pub expires_at: String,
|
|
pub created_at: String,
|
|
}
|