@valentine-efagene/qshelter-common 2.0.114 → 2.0.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1353,6 +1353,8 @@ model PropertyPaymentMethodPhase {
1353
1353
  questionnaireFields PaymentMethodPhaseField[]
1354
1354
  // Event attachments - handlers that fire on phase transitions
1355
1355
  eventAttachments PhaseEventAttachment[]
1356
+ // Application phases created from this template
1357
+ applicationPhases ApplicationPhase[]
1356
1358
 
1357
1359
  @@index([tenantId])
1358
1360
  @@index([paymentMethodId])
@@ -1738,6 +1740,10 @@ model ApplicationPhase {
1738
1740
  applicationId String
1739
1741
  application Application @relation(fields: [applicationId], references: [id], onDelete: Cascade)
1740
1742
 
1743
+ // Reference to the phase template this was instantiated from
1744
+ phaseTemplateId String?
1745
+ phaseTemplate PropertyPaymentMethodPhase? @relation(fields: [phaseTemplateId], references: [id], onDelete: SetNull)
1746
+
1741
1747
  // Admin-defined naming
1742
1748
  name String
1743
1749
  description String? @db.Text
@@ -1776,6 +1782,7 @@ model ApplicationPhase {
1776
1782
 
1777
1783
  @@index([tenantId])
1778
1784
  @@index([applicationId])
1785
+ @@index([phaseTemplateId])
1779
1786
  @@index([phaseCategory])
1780
1787
  @@index([status])
1781
1788
  @@index([order])