Queries to retrieve the worker benefits

This commit is contained in:
2026-02-24 17:47:30 +05:30
parent e254ba3ce0
commit ee0f059e4f

View File

@@ -1,8 +1,10 @@
type BenefitsData @table(name: "benefits_data", key: ["staffId", "vendorBenefitPlanId"]) { type BenefitsData
@table(name: "benefits_data", key: ["staffId", "vendorBenefitPlanId"]) {
id: UUID! @default(expr: "uuidV4()") id: UUID! @default(expr: "uuidV4()")
vendorBenefitPlanId: UUID! vendorBenefitPlanId: UUID!
vendorBenefitPlan: VendorBenefitPlan! @ref( fields: "vendorBenefitPlanId", references: "id" ) vendorBenefitPlan: VendorBenefitPlan!
@ref(fields: "vendorBenefitPlanId", references: "id")
current: Int! current: Int!