feat: add schema to county object
This commit is contained in:
@@ -16,7 +16,12 @@ const notificationSchema = new mongoose.Schema({
|
||||
permitType: String,
|
||||
accelaStatus: String,
|
||||
changes: Object,
|
||||
county: Object,
|
||||
county: {
|
||||
id: mongoose.Types.ObjectId,
|
||||
pid: String,
|
||||
name: String,
|
||||
avatar: String,
|
||||
},
|
||||
client: mongoose.Types.ObjectId,
|
||||
clientData: Object,
|
||||
createdAt: Date,
|
||||
|
||||
@@ -13,7 +13,12 @@ const permitSchema = 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",
|
||||
|
||||
Reference in New Issue
Block a user