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

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

@Table(name = "process_equipment")
@Entity
open class ProcessEquipment : BaseEntity<Long>() {
    @NotNull
    @ManyToOne(optional = false)
    @JoinColumn(name = "equipmentId", nullable = false)
    open var equipment: Equipment? = null

    @NotNull
    @ManyToOne(optional = false)
    @JoinColumn(name = "processId", nullable = false)
    open var process: Process? = null
}