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

//! Launch surface key entity.

/// Persisted launch surface matching key row.
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, sqlx::FromRow)]
pub struct LaunchSurfaceKeyEntity {
    /// Numeric primary key.
    pub id: i64,
    /// Related launch surface id.
    pub launch_surface_id: i64,
    /// Stable key kind, for example `config_account` or `creator`.
    pub match_kind: std::string::String,
    /// Stable key value.
    pub match_value: std::string::String,
    /// 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,
}
