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

import com.fasterxml.jackson.annotation.JsonBackReference
import com.fasterxml.jackson.annotation.JsonManagedReference
import com.ffii.core.entity.BaseEntity
import com.ffii.core.entity.IdEntity
import jakarta.persistence.Entity
import jakarta.persistence.JoinColumn
import jakarta.persistence.ManyToOne
import jakarta.persistence.Table
import jakarta.validation.constraints.NotNull

@Entity
@Table(name = "qc_item_category")
open class QcItemCategory : IdEntity<Long>() {
    @NotNull
    @ManyToOne
    @JoinColumn(name = "qcCategoryId")
    open var qcCategory: QcCategory? = null

    @NotNull
    @ManyToOne
    @JoinColumn(name = "qcItemId")
    open var qcItem: QcItem? = null
}