23 lines
613 B
Rust
23 lines
613 B
Rust
use chrono::{DateTime, Utc};
|
|
use serde::{Deserialize, Serialize};
|
|
use sqlx::FromRow;
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, FromRow)]
|
|
pub struct RepoDeployKeyModel {
|
|
pub id: i64,
|
|
pub repo: Uuid,
|
|
pub title: String,
|
|
pub public_key: String,
|
|
pub fingerprint: String,
|
|
pub key_type: String,
|
|
pub key_bits: Option<i32>,
|
|
pub read_only: bool,
|
|
pub last_used_at: Option<DateTime<Utc>>,
|
|
pub expires_at: Option<DateTime<Utc>>,
|
|
pub is_revoked: bool,
|
|
pub created_by: Uuid,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
}
|