feat: init
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
use crate::models::common::{RequestType, Status};
|
||||
use chrono::{DateTime, Utc};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use uuid::Uuid;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)]
|
||||
pub struct WorkspacePendingApproval {
|
||||
pub id: Uuid,
|
||||
pub workspace_id: Uuid,
|
||||
pub requester_id: Uuid,
|
||||
pub request_type: RequestType,
|
||||
pub status: Status,
|
||||
pub reason: Option<String>,
|
||||
pub reviewed_by: Option<Uuid>,
|
||||
pub reviewed_at: Option<DateTime<Utc>>,
|
||||
pub expires_at: Option<DateTime<Utc>>,
|
||||
pub created_at: DateTime<Utc>,
|
||||
pub updated_at: DateTime<Utc>,
|
||||
}
|
||||
Reference in New Issue
Block a user