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

//! Wallet entity.

/// Persisted wallet row.
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, sqlx::FromRow)]
pub struct WalletEntity {
    /// Numeric primary key.
    pub id: i64,
    /// Stable wallet address.
    pub address: std::string::String,
    /// Optional user-defined label.
    pub label: std::option::Option<std::string::String>,
    /// Creation timestamp encoded as RFC3339 UTC text.
    pub first_seen_at: std::string::String,
    /// Update timestamp encoded as RFC3339 UTC text.
    pub last_seen_at: std::string::String,
}
