package de.haushalt.app.data

import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonObject

@Serializable
enum class TaskSchemaStatus {
    active, inactive,
}

@Serializable
data class TaskSchema(
    val id: Int? = null,
    val name: String,
    val status: TaskSchemaStatus = TaskSchemaStatus.active,
    val taskStatus: TaskStatus = TaskStatus.active,
    val date: String? = null,
    val repeat: JsonObject? = null,
    val start: String? = null,
    val end: String? = null,
)

@Serializable
data class TaskSchemaRequest(
    val name: String,
    val status: TaskSchemaStatus = TaskSchemaStatus.active,
    val taskStatus: TaskStatus = TaskStatus.active,
    val date: String? = null,
    val repeat: JsonObject? = null,
    val start: String? = null,
    val end: String? = null,
)
