package com.ffii.fpsms.modules.master.entity

import com.ffii.core.entity.BaseEntity
import jakarta.persistence.*
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Size

@Entity
@Table(name = "item_category")
open class ItemCategory : BaseEntity<Long>() {
    @Size(max = 100)
    @Column(name = "code", length = 100)
    open var code: String? = null

    @Size(max = 100)
    @Column(name = "parent", length = 100)
    open var parent: String? = null

    @Size(max = 100)
    @Column(name = "sub", length = 100)
    open var sub: String? = null

    @Size(max = 100)
    @Column(name = "temperature", length = 100)
    open var temperature: String? = null

    @ManyToOne
    @JoinColumn(name = "qcCategoryId")
    open var qcCategory: QcCategory? = null
}