// FPSMS-backend/src/main/java/com/ffii/fpsms/modules/stock/entity/FailInventoryLotLine.kt
package com.ffii.fpsms.modules.stock.entity

import com.fasterxml.jackson.annotation.JsonBackReference
import com.fasterxml.jackson.annotation.JsonIdentityInfo
import com.fasterxml.jackson.annotation.ObjectIdGenerators
import com.ffii.core.entity.BaseEntity
import com.ffii.fpsms.modules.master.entity.Items
import jakarta.persistence.*
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Size
import org.hibernate.annotations.JdbcTypeCode
import org.hibernate.type.SqlTypes
import java.time.LocalDate
import java.time.LocalDateTime
import java.math.BigDecimal
import com.ffii.fpsms.modules.user.entity.User

@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator::class, property = "id")
@Entity
@Table(name = "fail_inventory_lot_line")
open class FailInventoryLotLine : BaseEntity<Long>() {
    
    @Column(name = "Lot_id")
    open var Lot_id: Int? = null
    
    @Column(name = "stock_out_line_id")
    open var stockOutLineId: Int? = null
    
    @Column(name = "handerId")
    open var handlerId: Int? = null
    
    @Column(name = "type")
    open var type: String? = null
    
    @Column(name = "qty")
    open var qty: BigDecimal? = null
    
    @Column(name = "recordDate")
    open var recordDate: LocalDate? = null
    
    @Column(name = "category")
    open var category: String? = null
    
    @Column(name = "releasedBy")
    open var releasedBy: Int? = null
}