21 lines
674 B
Rust
21 lines
674 B
Rust
use crate::models::common::Provider;
|
|
use crate::models::json_types::{TypedJson, WorkspaceIntegrationConfig};
|
|
use chrono::{DateTime, Utc};
|
|
use serde::{Deserialize, Serialize};
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)]
|
|
pub struct WorkspaceIntegration {
|
|
pub id: Uuid,
|
|
pub workspace_id: Uuid,
|
|
pub provider: Provider,
|
|
pub name: String,
|
|
pub config: Option<TypedJson<WorkspaceIntegrationConfig>>,
|
|
pub secret_ciphertext: Option<String>,
|
|
pub enabled: bool,
|
|
pub installed_by: Uuid,
|
|
pub last_used_at: Option<DateTime<Utc>>,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
}
|