16 lines
408 B
Rust
16 lines
408 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 RepoLockModel {
|
|
pub id: Uuid,
|
|
pub repo: Uuid,
|
|
pub locked_by: Uuid,
|
|
pub reason: String,
|
|
pub expires_at: Option<DateTime<Utc>>,
|
|
pub created_at: DateTime<Utc>,
|
|
pub released_at: Option<DateTime<Utc>>,
|
|
}
|