import Foundation

/// Data model representing a registered user account in CelestiaTrace.
struct UserAccount: Codable, Identifiable, Equatable {
    let id: String
    var username: String
    var email: String?
    var phoneNumber: String?
    var avatarURL: String?
    var registeredAt: Date
    
    init(
        id: String = UUID().uuidString,
        username: String,
        email: String? = nil,
        phoneNumber: String? = nil,
        avatarURL: String? = nil,
        registeredAt: Date = Date()
    ) {
        self.id = id
        self.username = username
        self.email = email
        self.phoneNumber = phoneNumber
        self.avatarURL = avatarURL
        self.registeredAt = registeredAt
    }
}
