import Foundation
import SwiftData

@Model
final class PrefsRecord {
    var themeId: String
    var cardFaceStyle: String
    var cardBackDesign: Int
    var soundEnabled: Bool
    var lastVariant: String
    var lastDifficulty: String

    init() {
        self.themeId = GameTheme.classicGreen.id
        self.cardFaceStyle = CardFaceStyle.classic.rawValue
        self.cardBackDesign = CardBackDesign.blue.rawValue
        self.soundEnabled = true
        self.lastVariant = GameVariant.klondike.rawValue
        self.lastDifficulty = Difficulty.medium.rawValue
    }
}
