package com.ffii.fpsms.m18.entity

import com.ffii.core.entity.BaseEntity
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Table
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Size
import org.hibernate.annotations.JdbcTypeCode
import org.hibernate.type.SqlTypes

@Entity
@Table(name = "grn_send_log")
open class GrnSendLog: BaseEntity<Long>() {
    @Size(max = 1000)
    @NotNull
    @Column(name = "refType", nullable = false, length = 1000)
    open var refType: String? = null

    @JdbcTypeCode(SqlTypes.JSON)
    @Column(name = "data")
    open var data: MutableMap<String, Any?>? = null

    @NotNull
    @Column(name = "status")
    open var status: Boolean? = null
}