package com.example.kasirapp.data

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

@Entity(tableName = "promos")
data class Promo(
    @PrimaryKey(autoGenerate = true)
    val id: Int = 0,
    val code: String, // e.g., "HEMAT10"
    val description: String, // e.g., "Diskon 10%"
    val discountPercentage: Int? = null, // 10 for 10%
    val discountFixedAmount: Int? = null, // e.g., 10000 for Rp 10.000
    val minPurchaseAmount: Int? = null, // Minimum purchase to be eligible
    val isActive: Boolean = true
)
