feat(news): Add popularity model
This commit is contained in:
committed by
mrugesh mohapatra
parent
eba910e939
commit
2cce8bbfd5
5
common/models/popularity.js
Normal file
5
common/models/popularity.js
Normal file
@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function(Popularity) {
|
||||
|
||||
};
|
21
common/models/popularity.json
Normal file
21
common/models/popularity.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "popularity",
|
||||
"plural": "popularities",
|
||||
"base": "PersistedModel",
|
||||
"idInjection": true,
|
||||
"options": {
|
||||
"validateUpsert": true
|
||||
},
|
||||
"properties": {
|
||||
"events": {
|
||||
"type": [
|
||||
"object"
|
||||
],
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"validations": [],
|
||||
"relations": {},
|
||||
"acls": [],
|
||||
"methods": {}
|
||||
}
|
@ -90,5 +90,9 @@
|
||||
"article": {
|
||||
"dataSource": "db",
|
||||
"public": true
|
||||
},
|
||||
"popularity": {
|
||||
"dataSource": "db",
|
||||
"public": true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user