@dynamatix/gb-schemas 0.7.0 → 0.7.1
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.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
|
|
3
|
+
const fieldConfigSchema = new mongoose.Schema({
|
|
4
|
+
fieldName: { type: String, required: true, unique: true },
|
|
5
|
+
validateProductOnChange: { type: Boolean, default: true }
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
const ApplicationFieldConfigModel = mongoose.model('FieldConfig', fieldConfigSchema);
|
|
9
|
+
export default ApplicationFieldConfigModel;
|
package/applications/index.js
CHANGED
|
@@ -13,4 +13,5 @@ export { default as BrokerModel } from './broker.model.js';
|
|
|
13
13
|
export { default as ProductFeaturesModel } from './productfeatures.model.js';
|
|
14
14
|
export { default as SolicitorModel } from './solicitor.model.js';
|
|
15
15
|
export { default as ApplicationDocumentModel } from './application-document.model.js';
|
|
16
|
-
export { default as ApplicationRiskNarrativeModel } from './application-risk-narrative.model.js';
|
|
16
|
+
export { default as ApplicationRiskNarrativeModel } from './application-risk-narrative.model.js';
|
|
17
|
+
export { default as ApplicationFieldConfigModel } from './application-fieldconfig.model.js';
|