package dev.zxq5.chatapp.android.api.model

import kotlinx.serialization.Serializable
import kotlin.time.ExperimentalTime
import kotlin.time.Instant


@Serializable
data class Space @OptIn(ExperimentalTime::class) constructor(
    val id: Long,
    val name: String,
    val description: String? = null,
    val owner_id: Long,
    val created_at: Instant,
    val updated_at: Instant
)

@Serializable
data class SpaceDto @OptIn(ExperimentalTime::class) constructor(
    val channels: List<Channel>,

    val id: Long,
    val name: String,
    val description: String? = null,
    val owner_id: Long,
    val created_at: Instant,
    val updated_at: Instant
)