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

//! Launch surface entity.

/// Persisted launch surface row.
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, sqlx::FromRow)]
pub struct LaunchSurfaceEntity {
    /// Numeric primary key.
    pub id: i64,
    /// Stable short code.
    pub code: std::string::String,
    /// Display name.
    pub name: std::string::String,
    /// Optional protocol family hint.
    pub protocol_family: std::option::Option<std::string::String>,
    /// Whether the surface is enabled.
    pub is_enabled: i64,
    /// Creation timestamp encoded as RFC3339 UTC text.
    pub created_at: std::string::String,
    /// Update timestamp encoded as RFC3339 UTC text.
    pub updated_at: std::string::String,
}
