feat: init
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
use crate::models::common::Status;
|
||||
use chrono::{DateTime, Utc};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use uuid::Uuid;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)]
|
||||
pub struct RepoPushLock {
|
||||
pub id: Uuid,
|
||||
pub repo_id: Uuid,
|
||||
pub pusher_id: Uuid,
|
||||
pub ref_name: String,
|
||||
pub status: Status,
|
||||
pub queue_position: i32,
|
||||
pub queued_at: DateTime<Utc>,
|
||||
pub started_at: Option<DateTime<Utc>>,
|
||||
pub finished_at: Option<DateTime<Utc>>,
|
||||
pub storage_node_id: Option<Uuid>,
|
||||
pub lease_token: Option<String>,
|
||||
pub error_message: Option<String>,
|
||||
pub created_at: DateTime<Utc>,
|
||||
pub updated_at: DateTime<Utc>,
|
||||
}
|
||||
Reference in New Issue
Block a user