package com.rugvedsarika.easymath.data.db

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "achievements")
data class AchievementEntity(
    @PrimaryKey(autoGenerate = true) val id: Int = 0,
    val userId: Int,
    val code: String, // Unique code e.g. "FIRST_WIN"
    val name: String,
    val description: String,
    val iconResId: Int, // Resource ID for the icon
    val unlocked: Boolean = false,
    val timestamp: Long = 0L
)
