Skip to content

Commit

Permalink
#23 Added connectedObject and area tables
Browse files Browse the repository at this point in the history
#15 Working on iot visualization interface
  • Loading branch information
Younes ABDENNADHER committed Jun 13, 2018
1 parent 76760b5 commit 0bda7e0
Show file tree
Hide file tree
Showing 13 changed files with 3,110 additions and 2,810 deletions.
5 changes: 5 additions & 0 deletions Back-end/common/models/area.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = function(Area) {

};
24 changes: 24 additions & 0 deletions Back-end/common/models/area.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "area",
"base": "PersistedModel",
"idInjection": true,
"options": {
"validateUpsert": true
},
"properties": {
"name": {
"type": "string",
"required": true
}
},
"validations": [],
"relations": {
"objects_rel": {
"type": "hasMany",
"model": "connectedObject",
"foreignKey": "object-id"
}
},
"acls": [],
"methods": {}
}
5 changes: 5 additions & 0 deletions Back-end/common/models/connected-object.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = function(Connectedobject) {

};
25 changes: 25 additions & 0 deletions Back-end/common/models/connected-object.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "connectedObject",
"base": "PersistedModel",
"idInjection": true,
"options": {
"validateUpsert": true
},
"properties": {
"name": {
"type": "string",
"required": true,
"default": "object"
}
},
"validations": [],
"relations": {
"objects_rel": {
"type": "belongsTo",
"model": "Area",
"foreignKey": "object-id"
}
},
"acls": [],
"methods": {}
}
Loading

0 comments on commit 0bda7e0

Please sign in to comment.