vhp-mongo-models 1.1.93 → 1.1.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
const { Schema } = require('mongoose')
|
|
2
2
|
const { aaddress, acontact } = require('../../core-models.js');
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* pvmaint.visit = [{
|
|
6
|
+
* type:{type:String}, //Cooling | Heating
|
|
7
|
+
* date:{type:Date},
|
|
8
|
+
* check:{type:Boolean},
|
|
9
|
+
* notes:{type:String},
|
|
10
|
+
* photos:{type:Boolean},
|
|
11
|
+
* scheduled:{type:Boolean}
|
|
12
|
+
* }]
|
|
13
|
+
*/
|
|
14
|
+
let pvmaint = new Schema({
|
|
15
|
+
contractNum:{type:String,default:''},
|
|
16
|
+
jobref:{type:String,default:''},
|
|
17
|
+
custCode:{type:String,default:''},
|
|
18
|
+
custName:{type:String,default:''},
|
|
19
|
+
street:{type:String,default:''},
|
|
20
|
+
city:{type:String,default:''},
|
|
21
|
+
state:{type:String,default:''},
|
|
22
|
+
zip:{type:String,default:''},
|
|
23
|
+
visits:{type:Array,default:[]}
|
|
4
24
|
|
|
25
|
+
})
|
|
5
26
|
let lead = new Schema({
|
|
6
27
|
apptdate:{type:Date,default:''},
|
|
7
28
|
type:{type:String,default:''},
|
|
@@ -22,7 +43,7 @@ let info = new Schema({
|
|
|
22
43
|
}},
|
|
23
44
|
quotes:{type:Object,default:{}},
|
|
24
45
|
joblog:{type:Object,default:{}},
|
|
25
|
-
pvmaint:
|
|
46
|
+
pvmaint:pvmaint,
|
|
26
47
|
keyver:{type:String,default:''}
|
|
27
48
|
})
|
|
28
49
|
/** Projects Schema
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* User settings are the base for a user. Types can be included to pre set the settings based on a profile. After creation
|
|
4
|
+
* the settings can be changed, but reset to the type at any time.
|
|
5
|
+
* Apps will be the available menu for the portal, where permissions and admin would describe access with the menu views.
|
|
6
|
+
*/
|
|
1
7
|
module.exports=[
|
|
2
8
|
{
|
|
3
9
|
empID:{type:String,default:''},
|