package com.placeholder.sherpai2.data.local.entity

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

/**
 * Represents a meaningful event spanning a time range.
 *
 * Events allow auto-association of images by timestamp.
 */
@Entity(
    tableName = "events",
    indices = [
        Index(value = ["startDate"]),
        Index(value = ["endDate"])
    ]
)
data class EventEntity(

    @PrimaryKey
    val eventId: String,

    val name: String,

    /**
     * Inclusive start date (UTC millis).
     */
    val startDate: Long,

    /**
     * Inclusive end date (UTC millis).
     */
    val endDate: Long,

    val location: String?,

    /**
     * 0.0 – 1.0 importance weight
     */
    val importance: Float,

    val isHidden: Boolean
)
