package com.ffii.fpsms.modules.qc.entity.projection

import com.ffii.fpsms.modules.master.entity.QcItemCategory
import org.springframework.beans.factory.annotation.Value

interface QcCategoryInfo {
    val id: Long
    val code: String
    val name: String?
    val description: String?
    @get:Value("#{target.qcItemCategory}")
    var qcItems: List<QcItemInfo>
}

interface QcItemInfo {
    val id: Long
    val order: Int
    @get:Value("#{target.qcItem.id}")
    val qcItemId: Long
    @get:Value("#{target.qcItem.code}")
    val code: String
    @get:Value("#{target.qcItem.name}")
    val name: String?
    // Use description from qc_item_category table (category-specific description)
    val description: String?
}