@dhyasama/totem-models 5.11.1 → 5.11.2
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.
- package/lib/Organization.js +7 -0
- package/package.json +1 -1
package/lib/Organization.js
CHANGED
|
@@ -227,10 +227,17 @@ module.exports = function(mongoose, config) {
|
|
|
227
227
|
|
|
228
228
|
customFields: [{
|
|
229
229
|
|
|
230
|
+
// Data stored on deals will be accessed with this key
|
|
231
|
+
// It must follow standard js variable naming rules
|
|
232
|
+
// Whenever possible, just use the label and replace spaces with underscore
|
|
233
|
+
// Will not be displayed
|
|
230
234
|
permanentKey: { type: String, trim: true, required: true },
|
|
231
235
|
|
|
236
|
+
// User friendly text, will be displayed
|
|
232
237
|
label: { type: String, trim: true, required: true },
|
|
233
238
|
|
|
239
|
+
// Dictates the type of control rendered on form
|
|
240
|
+
// Also impacts data validation
|
|
234
241
|
type: { type: String, enum: ['Text', 'Checkbox', 'Single select', 'Multiple select'], required: true },
|
|
235
242
|
|
|
236
243
|
// These will be the values in single- and multi-selects
|