19 lines
548 B
Rust
19 lines
548 B
Rust
use chrono::{DateTime, Utc};
|
|
use serde::{Deserialize, Serialize};
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)]
|
|
pub struct UserGpgKey {
|
|
pub id: Uuid,
|
|
pub user_id: Uuid,
|
|
pub key_id: String,
|
|
pub public_key: String,
|
|
pub fingerprint: String,
|
|
pub primary_email: Option<String>,
|
|
pub expires_at: Option<DateTime<Utc>>,
|
|
pub verified_at: Option<DateTime<Utc>>,
|
|
pub revoked_at: Option<DateTime<Utc>>,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
}
|