package com.rugvedsarika.easymath.data.db

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

@Entity(tableName = "math_history")
data class MathHistoryEntity(
    @PrimaryKey(autoGenerate = true)
    val id: Int = 0,
    val userId: Int = 1, // Default user 1 for now
    val timestamp: Long,
    val score: Int,
    val totalQuestions: Int,
    val category: String, // e.g., "Addition", "Multiplication", "Speed_1min"
    val level: String,     // "Easy", "Medium", "Hard", "N/A"
    val accuracy: Float    // Percentage
)
