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

import com.ffii.core.entity.BaseEntity
import com.ffii.fpsms.modules.master.entity.Warehouse
import jakarta.persistence.*
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Size

@Entity
@Table(name = "suggested_pick_lot")
open class SuggestedPickLot: BaseEntity<Long>() {
    @Size(max = 100)
    @NotNull
    @Column(name = "type", nullable = false, length = 100)
    open var type: String? = null

    @ManyToOne
    @JoinColumn(name = "stockOutLineId")
    open var stockOutLine: StockOutLine? = null

    @NotNull
    @ManyToOne
    @JoinColumn(name = "suggestedLotId", nullable = false)
    open var suggestedLot: InventoryLot? = null

    @NotNull
    @ManyToOne
    @JoinColumn(name = "suggestedLocId", nullable = false)
    open var suggestedLoc: Warehouse? = null
}