use sqlx::PgPool;
use uuid::Uuid;
use anyhow::Result;

// TODO: Define NotificationConfig struct (id, server_id, discord_webhook_url, events jsonb, enabled, created_at, updated_at)

/// Fetch the notification configuration for a server.
pub async fn get_notification_config(pool: &PgPool, server_id: Uuid) -> Result<()> {
    todo!()
}

/// Insert or update the notification configuration for a server.
pub async fn upsert_notification_config(pool: &PgPool, server_id: Uuid, discord_webhook_url: Option<&str>, events: &str, enabled: bool) -> Result<()> {
    todo!()
}
