package com.gestoreasy.database.entities

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

@Entity(tableName = "goals")
data class Goal(
    @PrimaryKey
    val id: Long,
    val tipo: String, // "vendas", "clientes", "pedidos"
    val titulo: String,
    val descricao: String?,
    val valor_meta: Double,
    val valor_atual: Double = 0.0,
    val periodo: String, // "diario", "semanal", "mensal", "anual"
    val data_inicio: Long,
    val data_fim: Long,
    val ativo: Boolean = true,
    val last_sync: Long = System.currentTimeMillis()
)

