vhp-mongo-models 2.1.93 → 2.1.94
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,26 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/*
|
|
2
|
+
{
|
|
3
|
+
type: { type: String, default: '' }, // 'contract' || ?
|
|
4
|
+
ref: { type: String, default: '' }
|
|
4
5
|
}
|
|
6
|
+
*/
|
|
5
7
|
|
|
6
8
|
module.exports = [{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
id: { type: String, default: '' },
|
|
10
|
+
board: { type: String, default: '' },
|
|
11
|
+
coid: { type: String, default: '' }, //required
|
|
12
|
+
dept: { type: String, default: '' }, //would like to require
|
|
13
|
+
hhid: { type: String, default: '' }, //
|
|
14
|
+
title: { type: String, default: '' },
|
|
15
|
+
status: { type: String, default: '' }, //un-schedule | scheduled | pastdue | complete
|
|
16
|
+
dates: { type: Array, default: [] }, // array of date objects. dates[0]=start dates[1]=end
|
|
17
|
+
|
|
18
|
+
lead: { type: String, default: '' }, //to tie to the lead
|
|
19
|
+
workref: { type: String, default: '' }, // refrence to work can only be tied to one piece of work
|
|
20
|
+
worktype: { type: String, default: '' }, // the type of work refrenced
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
22
|
+
attendees: { type: Array, default: [] }, // array of user names
|
|
23
|
+
attachments: { type: Array, default: [] }, // array of 'attachment's
|
|
24
|
+
descriptions: {type:String, default:''},
|
|
25
|
+
notes: { type: String, default: '' },
|
|
26
|
+
|
|
27
|
+
type: { type: String, default: '' }, //'consult' || 'install' || 'service'
|
|
28
|
+
ref: { type: String, default: '' }, //was the connection to projects - can be moved to workRef
|
|
29
|
+
wonum: { type: String, default: '' }//do not need -> was the refrerence the wo
|
|
30
|
+
}]
|
|
@@ -8,6 +8,10 @@ module.exports = [
|
|
|
8
8
|
{
|
|
9
9
|
id: { type: String, default: '' },
|
|
10
10
|
hhid: { type: String, default: '' },
|
|
11
|
+
|
|
12
|
+
callid: {type:String, default:''},
|
|
13
|
+
callresult: {type:String, default:''},
|
|
14
|
+
|
|
11
15
|
phone: { type: String, default: '' }, //this will replace custid
|
|
12
16
|
phone2: { type: String, default: '' },
|
|
13
17
|
email: { type: String, default: '' },
|
|
@@ -30,10 +34,9 @@ module.exports = [
|
|
|
30
34
|
revenue: { type: Number, default: 0 },
|
|
31
35
|
|
|
32
36
|
salesRep: { type: String, default: '' },
|
|
33
|
-
techs: { type: Array, default: [] },
|
|
34
37
|
tags: { type: Array, default: [] },
|
|
35
38
|
result: { type: String, default: 'NEW' },//ACTIVE (when converted) | SOLD | CANCELED | NOBUY | REMOVED
|
|
36
|
-
|
|
39
|
+
|
|
37
40
|
takenBy: { type: String, default: '' },
|
|
38
41
|
takenDate: { type: Date, default: Date.now },
|
|
39
42
|
callTypes: { type: Array, default: [] }, //[{type:String, sub:String}]
|
|
@@ -49,15 +52,17 @@ module.exports = [
|
|
|
49
52
|
workinfo: { type: Object, default: {} }, //content depending on lead.type
|
|
50
53
|
desc: { type: String, default: '' },
|
|
51
54
|
notes: { type: Array, default: [] },
|
|
52
|
-
|
|
55
|
+
|
|
53
56
|
apptid: { type: String, default: '' },// if an appointment is offically made
|
|
54
57
|
apptdate: { type: Date, default: Date.now },// desired to be serviced/consulted
|
|
55
|
-
|
|
58
|
+
|
|
56
59
|
time: { type: String, default: '' }, //time of day
|
|
57
60
|
prstdate: { type: Date, default: '' },
|
|
58
61
|
carryover: { type: Date, default: '' },
|
|
59
62
|
prstvia: { type: String, default: '' },
|
|
60
|
-
rewards: { type: Boolean, default: false }
|
|
63
|
+
rewards: { type: Boolean, default: false },
|
|
64
|
+
|
|
65
|
+
techs: { type: Array, default: [] },//remove
|
|
61
66
|
},
|
|
62
67
|
{ minimize: false }
|
|
63
68
|
]
|