package com.ffii.fpsms.modules.pickOrder.entity

import com.ffii.core.entity.BaseEntity
import jakarta.persistence.*
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Size
import java.math.BigDecimal

@Entity
@Table(name = "router")
open class Router : BaseEntity<Long>() {
    
    @Size(max = 50)
    @Column(name = "route")
    open var route: Int? = null

    @Column(name = "item_code")
    open var itemCode: Int? = null

    @Size(max = 255)
    @Column(name = "item_name")
    open var itemName: String? = null

    @Column(name = "uomId")
    open var uomId: Int? = null

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

    @Column(name = "router_id")
    open var routerId: Int? = null
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "router_id", insertable = false, updatable = false)
    open var routerOrder: RouterOrder? = null
}