// file: kb_lib/src/db/entities/known_http_endpoint.rs

//! Known HTTP endpoint entity.

/// Persisted known HTTP endpoint row.
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, sqlx::FromRow)]
pub struct KnownHttpEndpointEntity {
    /// Logical endpoint name.
    pub name: std::string::String,
    /// Provider name.
    pub provider: std::string::String,
    /// Endpoint URL.
    pub url: std::string::String,
    /// Whether this endpoint is enabled.
    pub enabled: i64,
    /// JSON-encoded roles.
    pub roles_json: std::string::String,
    /// Optional last seen timestamp encoded as RFC3339 UTC text.
    pub last_seen_at: std::option::Option<std::string::String>,
    /// Last update timestamp encoded as RFC3339 UTC text.
    pub updated_at: std::string::String,
}
