@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.
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +2 -0
- package/dist/generated/client/internal/prismaNamespace.js +2 -0
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +2 -0
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +2 -0
- package/dist/generated/client/models/ApplicationPhase.d.ts +277 -1
- package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +221 -0
- package/dist/src/events/notifications/notification-enums.d.ts +3 -0
- package/dist/src/events/notifications/notification-enums.js +4 -0
- package/package.json +1 -1
- package/prisma/migrations/20260115055636_add_unit_locking/migration.sql +16 -0
- package/prisma/migrations/20260115060132_add_phase_template_reference/migration.sql +8 -0
- package/prisma/schema.prisma +7 -0
package/prisma/schema.prisma
CHANGED
|
@@ -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])
|