package com.ffii.fpsms.modules.stock.entity

import com.ffii.core.entity.BaseEntity
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Table
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Size

@Entity
@Table(name = "item_lot_trace_log")
open class ItemLotTraceLog : BaseEntity<Long>() {

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

    @Size(max = 64)
    @NotNull
    @Column(name = "username", nullable = false, length = 64)
    open var username: String? = null

    @Column(name = "inventoryLotId")
    open var inventoryLotId: Long? = null

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

    @Column(name = "itemId")
    open var itemId: Long? = null

    @Size(max = 64)
    @Column(name = "itemCode", length = 64)
    open var itemCode: String? = null
}
