19 lines
499 B
Rust
19 lines
499 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 RepoAuditLogModel {
|
|
pub id: Uuid,
|
|
pub repo: Uuid,
|
|
pub actor: Option<Uuid>,
|
|
pub action: String,
|
|
pub target_type: String,
|
|
pub target_id: Option<String>,
|
|
pub ip_address: Option<String>,
|
|
pub user_agent: Option<String>,
|
|
pub metadata: Option<String>,
|
|
pub created_at: DateTime<Utc>,
|
|
}
|