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.LocalDateTime
import java.time.LocalDate
import java.time.LocalTime
@Entity
@Table(name = "bag_lot_line")
open class BagLotLine: BaseEntity<Long>() {
    @Column(name = "bagId", nullable = false)
    open var bagId: Long? = null
    @Column(name = "stockOutLineId", nullable = false)
    open var stockOutLineId: Long? = null
    @Column(name = "lotId", nullable = false)
    open var lotId: Long? = null

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

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

    @Column(name = "lastUseDate", nullable = false)
    open var lastUseDate: LocalDate? = 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 = "balanceQty", nullable = false)
    open var balanceQty: Int? = null
}