Files
nx9-url-shortener/src/models/api_key.rs
T

12 lines
267 B
Rust

use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct ApiKey {
pub id: String,
pub user_id: String,
pub key_hash: String,
pub name: String,
pub created_at: String,
pub last_used_at: Option<String>,
}