You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
387 B
Rust

//! Session model.
use chrono::{DateTime, Utc};
use uuid::Uuid;
/// A session record from the database.
#[derive(Debug, Clone)]
pub struct Session {
pub session_hash: String,
pub user_id: Uuid,
pub created_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
pub last_active_at: DateTime<Utc>,
pub ip_address: Option<String>,
pub user_agent: Option<String>,
}