feat: add noc, deed fields to permits, processed collections

This commit is contained in:
2025-10-06 10:52:14 +05:30
parent 0d56ede766
commit a2e9c56222
4 changed files with 16 additions and 0 deletions

View File

@@ -103,6 +103,8 @@ const processedSchema = new mongoose.Schema({
startDate: Date,
history: Array,
taggedUsers: Array,
noc: String,
deed: String,
}).index({ tenantId: 1, permitNumber: 1 }, { unique: true });
export const processedFields = Object.keys(processedSchema.paths).filter(
@@ -124,6 +126,8 @@ const updateProcessedInput = z.object({
jobNumber: z.string().nullable().optional(),
startDate: z.date().nullable().optional(),
assignedTo: z.string().nullable().optional(),
noc: z.string().optional(),
deed: z.string().optional(),
});
export type UpdateProcessedInput = z.infer<typeof updateProcessedInput>;