vhp-mongo-models 2.1.94 → 2.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,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
{
|
|
3
|
-
type: { type: String, default: '' }
|
|
3
|
+
type: { type: String, default: '' },// 'contract' | 'project' | 'service'
|
|
4
4
|
ref: { type: String, default: '' }
|
|
5
5
|
}
|
|
6
6
|
*/
|
|
@@ -11,9 +11,13 @@ module.exports = [{
|
|
|
11
11
|
coid: { type: String, default: '' }, //required
|
|
12
12
|
dept: { type: String, default: '' }, //would like to require
|
|
13
13
|
hhid: { type: String, default: '' }, //
|
|
14
|
+
|
|
15
|
+
type: { type: String, default: '' }, // 'follow-up' | 'consultation' | 'install' | 'meeting' | 'special
|
|
14
16
|
title: { type: String, default: '' },
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
descriptions: {type:String, default:''},
|
|
18
|
+
status: { type: String, default: '' }, //un-scheduled | scheduled | pastdue | inprogress | complete
|
|
19
|
+
|
|
20
|
+
dates: { type: Array, default: [] }, // array of date objects. dates[0]=start dates[...]=other dates
|
|
17
21
|
|
|
18
22
|
lead: { type: String, default: '' }, //to tie to the lead
|
|
19
23
|
workref: { type: String, default: '' }, // refrence to work can only be tied to one piece of work
|
|
@@ -21,10 +25,9 @@ module.exports = [{
|
|
|
21
25
|
|
|
22
26
|
attendees: { type: Array, default: [] }, // array of user names
|
|
23
27
|
attachments: { type: Array, default: [] }, // array of 'attachment's
|
|
24
|
-
descriptions: {type:String, default:''},
|
|
25
28
|
notes: { type: String, default: '' },
|
|
26
29
|
|
|
27
|
-
|
|
30
|
+
//
|
|
28
31
|
ref: { type: String, default: '' }, //was the connection to projects - can be moved to workRef
|
|
29
32
|
wonum: { type: String, default: '' }//do not need -> was the refrerence the wo
|
|
30
33
|
}]
|
|
@@ -8,7 +8,8 @@ module.exports = [
|
|
|
8
8
|
quantity: { type: Number, default: 1 }, //optional qty
|
|
9
9
|
notes: { type: Array, default: [] },// for better history {tech:'',date:'',ticketId:''}
|
|
10
10
|
tags: { type: Array, default: [] },
|
|
11
|
-
|
|
11
|
+
about: {type: String, default: ''},
|
|
12
|
+
|
|
12
13
|
//JONAS props
|
|
13
14
|
id: { type: String, default: '' }, //must have an id, should match JONAS "lineNumberUnique"
|
|
14
15
|
linenum: { type: String, default: '' },
|