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

//! Known WebSocket endpoint entity.

/// Persisted known WebSocket endpoint row.
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, sqlx::FromRow)]
pub struct KnownWsEndpointEntity {
    /// 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,
}
