package app.closer.domain.model

data class LocalAnswer(
    val questionId: String,
    val questionText: String,
    val category: String,
    val answerType: String,
    val writtenText: String? = null,
    val selectedOptionIds: List<String> = emptyList(),
    val selectedOptionTexts: List<String> = emptyList(),
    val scaleValue: Int? = null,
    val createdAt: Long = System.currentTimeMillis(),
    val updatedAt: Long = System.currentTimeMillis(),
    val isRevealed: Boolean = false,
    // schemaVersion 2 = enc:v1: (couple-key); 3 = sealed:v1: (partner-proof)
    val schemaVersion: Int = 2,
    // true while a sealed answer has been submitted but the reveal key has not been released
    val isSealed: Boolean = false,
    // raw sealed payload retained so the reveal flow can decrypt it later
    val encryptedPayload: String? = null,
    // YYYY-MM-DD string matching the daily_question/{date} document key — required for release key path
    val answerDate: String = ""
)
