package com.ffii.fpsms.modules.bag.entity

import com.fasterxml.jackson.annotation.JsonManagedReference
import com.ffii.core.entity.BaseEntity
import com.ffii.fpsms.m18.entity.M18DataLog
import jakarta.persistence.*
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Size
import java.time.LocalDate
import java.time.LocalDateTime
@Entity
@Table(name = "jo_bag_consumption")
open class JoBagConsumption: BaseEntity<Long>() {
    @Column(name = "bagId", nullable = false)
    open var bagId: Long? = null

    @Column(name = "bagLotLineId", nullable = false)
    open var bagLotLineId: Long? = null

    @Column(name = "jobId", nullable = false)
    open var jobId: Long? = null

    @Column(name = "jobOrderCode", nullable = false)
    open var jobOrderCode: String? = null
    @Column(name = "stockOutLineId", nullable = false)
    open var stockOutLineId: Long? = null

    @Column(name = "startQty", nullable = false)
    open var startQty: Int? = null

    @Column(name = "consumedQty", nullable = false)
    open var consumedQty: Int? = null

    @Column(name = "scrapQty", nullable = false)
    open var scrapQty: Int? = null

    @Column(name = "endQty", nullable = false)
    open var endQty: Int? = null

    @Column(name = "date", nullable = false)
    open var date: LocalDate? = null

    @Column(name = "time", nullable = false)
    open var time: LocalDateTime? = null
}