12 lines
252 B
Rust
12 lines
252 B
Rust
use chrono::{DateTime, Utc};
|
|
use crate::value_objects::{ApiKeyId, UserId};
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct ApiKey {
|
|
pub id: ApiKeyId,
|
|
pub user_id: UserId,
|
|
pub key_hash: String,
|
|
pub name: String,
|
|
pub created_at: DateTime<Utc>,
|
|
}
|