package de.thpeetz.kontor.comics.domain

import io.quarkus.hibernate.orm.panache.kotlin.PanacheEntityBase
import jakarta.persistence.Entity
import jakarta.persistence.Id
import jakarta.persistence.Table
import org.eclipse.microprofile.openapi.annotations.media.Schema
import java.time.LocalDate
import java.time.LocalDateTime
import kotlin.properties.Delegates

@Entity
@Table(name = "comic")
class Comic: PanacheEntityBase {
    @Id
    lateinit var id: String
    lateinit var createdDate: LocalDateTime
    lateinit var lastModifiedDate: LocalDateTime
    lateinit var version: Integer
    lateinit var title: String
    lateinit var webLink: String
    var completed: Boolean = false
    var currentOrder: Boolean = false
    lateinit var publisherId: String
}
