feat: update add permit flow
This commit is contained in:
@@ -13,7 +13,12 @@ const processedSchema = new mongoose.Schema({
|
||||
unique: true,
|
||||
},
|
||||
permitNumber: String,
|
||||
county: Object,
|
||||
county: {
|
||||
id: mongoose.Types.ObjectId,
|
||||
pid: String,
|
||||
name: String,
|
||||
avatar: String,
|
||||
},
|
||||
client: {
|
||||
type: mongoose.Types.ObjectId,
|
||||
ref: "organization",
|
||||
@@ -54,9 +59,35 @@ const processedSchema = new mongoose.Schema({
|
||||
type: mongoose.Types.ObjectId,
|
||||
ref: "user",
|
||||
},
|
||||
newProcessingStatus: Array,
|
||||
newPayment: Array,
|
||||
newConditions: Array,
|
||||
newProcessingStatus: [
|
||||
{
|
||||
last_modified_date: Date,
|
||||
description: String,
|
||||
status: String,
|
||||
assigned_user_text: String,
|
||||
due_date: Date,
|
||||
is_completed: String,
|
||||
comment: String,
|
||||
},
|
||||
],
|
||||
newPayment: [
|
||||
{
|
||||
apply_date: String,
|
||||
invoice_id: Number,
|
||||
amount: Number,
|
||||
balance_due: Number,
|
||||
code_text: String,
|
||||
status: String,
|
||||
},
|
||||
],
|
||||
newConditions: [
|
||||
{
|
||||
status_date: Date,
|
||||
status_value: String,
|
||||
short_comments: String,
|
||||
name: String,
|
||||
},
|
||||
],
|
||||
professionals: Object,
|
||||
recordId: String,
|
||||
relatedRecords: Object,
|
||||
@@ -69,7 +100,7 @@ const processedSchema = new mongoose.Schema({
|
||||
lot: String,
|
||||
block: String,
|
||||
jobNumber: String,
|
||||
transferDate: Date,
|
||||
startDate: Date,
|
||||
history: Array,
|
||||
taggedUsers: Array,
|
||||
}).index({ tenantId: 1, permitNumber: 1 }, { unique: true });
|
||||
|
||||
Reference in New Issue
Block a user