package com.ffii.fpsms.modules.master.entity

import com.ffii.core.entity.BaseEntity
import jakarta.persistence.*
import jakarta.validation.constraints.NotNull

@Table(name = "bom_process_material")
@Entity
open class BomProcessMaterial : BaseEntity<Long>() {
    @NotNull
    @ManyToOne(optional = false)
    @JoinColumn(name = "bomProcessId", nullable = false)
    open var bomProcess: BomProcess? = null

    @NotNull
    @ManyToOne(optional = false)
    @JoinColumn(name = "bomMaterialId", nullable = false)
    open var bomMaterial: BomMaterial? = null
}