orange-dragonfly-model 0.11.4 → 0.11.5
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/components/model.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const { ActiveRecord } = require('orange-dragonfly-orm')
|
|
2
2
|
const validate = require('orange-dragonfly-validator')
|
|
3
|
+
const ValidationException = require('./validation-exception')
|
|
3
4
|
|
|
4
|
-
class
|
|
5
|
-
info = {}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
class Model extends ORM.ActiveRecord {
|
|
5
|
+
class Model extends ActiveRecord {
|
|
9
6
|
static get IGNORE_EXTRA_FIELDS () {
|
|
10
7
|
return false
|
|
11
8
|
}
|
|
@@ -18,6 +15,14 @@ class Model extends ORM.ActiveRecord {
|
|
|
18
15
|
return []
|
|
19
16
|
}
|
|
20
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Returns list of fulltext keys
|
|
20
|
+
* @returns Array[] List of unique keys
|
|
21
|
+
*/
|
|
22
|
+
static get FULLTEXT_INDEXES () {
|
|
23
|
+
return []
|
|
24
|
+
}
|
|
25
|
+
|
|
21
26
|
/**
|
|
22
27
|
* Returns schema for the model (Orange Dragonfly Validator format)
|
|
23
28
|
* @return object
|