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

import com.ffii.core.entity.BaseEntity
import jakarta.persistence.*
import jakarta.validation.constraints.NotNull
import java.math.BigDecimal

@Entity
@Table(name = "qc_check")
open class QcCheck: BaseEntity<Long>() {
    @NotNull
    @ManyToOne
    @JoinColumn(name = "qcItemId")
    open var qcItem: QcItem? = null

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

    @Column(name = "description")
    open var description: String? = null

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

    @Column(name = "lowerLimit")
    open var lowerLimit: Double? = null

    @Column(name = "upperLimit")
    open var upperLimit: Double? = null

    @NotNull
    @ManyToOne
    @JoinColumn(name = "itemId")
    open var item: Items? = null
}