package app.closer.domain.model

data class QuestionAnswer(
    val userId: String = "",
    val questionId: String = "",
    val answerType: String = "written",
    val writtenText: String? = null,
    val selectedOptionIds: List<String> = emptyList(),
    val scaleValue: Int? = null,
    val createdAt: Long = 0L,
    val updatedAt: Long = 0L,
    // schemaVersion 2 = enc:v1: (couple-key); 3 = sealed:v1: (partner-proof one-time key)
    val schemaVersion: Int = 2,
    // true when a sealed answer key has not yet been released to the partner
    val isSealed: Boolean = false,
    // raw sealed:v1: payload; populated for schemaVersion 3, null otherwise
    val encryptedPayload: String? = null
)
