added permitType field

This commit is contained in:
2025-05-08 13:41:52 +05:30
parent 3f1e806b3f
commit 956c09e250
8 changed files with 36 additions and 25 deletions

View File

@@ -11,6 +11,7 @@ const rtsSchema = new mongoose.Schema({
required: true,
unique: true,
},
permitType: String,
documents: [
new mongoose.Schema(
{
@@ -61,6 +62,7 @@ const rtsCreateInput = z.object({
county: z.string(),
client: z.string().optional(),
files: z.array(files).optional(),
permitType: z.string().optional(),
stage: z
.object({
pipeline: z.array(
@@ -80,6 +82,7 @@ const rtsCreateInput = z.object({
const rtsUpdateInput = z.object({
county: z.string().optional(),
client: z.string().optional(),
permitType: z.string().optional(),
stage: z
.object({
pipeline: z.array(

View File

@@ -95,6 +95,7 @@ export async function listRts(
$project: {
_id: 1,
pid: 1,
permitType: 1,
documents: 1,
statusPipeline: 1,
createdAt: 1,