add stage, labels, priority fields to rts
This commit is contained in:
@@ -42,6 +42,8 @@ const rtsSchema = new mongoose.Schema({
|
||||
{ _id: false }
|
||||
),
|
||||
status: String,
|
||||
labels: [String],
|
||||
priority: String,
|
||||
createdAt: Date,
|
||||
createdBy: {
|
||||
type: mongoose.Types.ObjectId,
|
||||
@@ -64,6 +66,8 @@ const rtsCreateInput = z.object({
|
||||
client: z.string().optional(),
|
||||
files: z.array(files).optional(),
|
||||
permitType: z.string().optional(),
|
||||
labels: z.array(z.string()).optional(),
|
||||
priority: z.string().optional(),
|
||||
stage: z
|
||||
.object({
|
||||
pipeline: z.array(
|
||||
@@ -85,6 +89,8 @@ const rtsUpdateInput = z.object({
|
||||
county: z.string().optional(),
|
||||
client: z.string().optional(),
|
||||
permitType: z.string().optional(),
|
||||
labels: z.array(z.string()).optional(),
|
||||
priority: z.string().optional(),
|
||||
stage: z
|
||||
.object({
|
||||
pipeline: z.array(
|
||||
|
||||
Reference in New Issue
Block a user