Commit 5c641605 authored by Bruno Meyer's avatar Bruno Meyer 😢
Browse files

#21: Populate TipoSala relation

parent e9da6c2c
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
## Sala ## Sala
- Public: `False` - Public: `False`
- Attributes - Attributes `idInjection`=`false`
* nome : **string** * nome : **string**
* codigo : **string** `Required` * codigo : **string** `Required` `primaryKey`
* localizacao : **geopoint** `Required` * localizacao : **geopoint** `Required`
* andar : **number** default=`0` * andar : **number** default=`0`
* capacidade : **number** `Required`, default=`0` * capacidade : **number** `Required`, default=`0`
* restrita : **boolean** `Required`, default=`false` * restrita : **boolean** `Required`, default=`false`
* observacao : **string** * observacao : **string**
* _id : **number** `generated` `primaryKey`
- ACLs - ACLs
* All permissions not specified is `DENY` * All permissions not specified is `DENY`
* **$everyone** ROLE have all READ operations * **$everyone** ROLE have all READ operations
...@@ -25,7 +26,7 @@ ...@@ -25,7 +26,7 @@
* codigo : **string** `Required` `primaryKey` * codigo : **string** `Required` `primaryKey`
* localizacao : **geopoint** `Required` * localizacao : **geopoint** `Required`
* tamanho : **number** `Required`, default=`0` * tamanho : **number** `Required`, default=`0`
* _id : **number** `generated` `id` * _id : **number** `generated` `primaryKey`
- ACLs - ACLs
* All permissions not specified is `DENY` * All permissions not specified is `DENY`
* **$everyone** ROLE have all READ operations * **$everyone** ROLE have all READ operations
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "Sala", "name": "Sala",
"plural": "salas", "plural": "salas",
"base": "PersistedModel", "base": "PersistedModel",
"idInjection": true, "idInjection": false,
"options": { "options": {
"validateUpsert": true, "validateUpsert": true,
"idInjection": false, "idInjection": false,
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
}, },
"codigo": { "codigo": {
"type": "string", "type": "string",
"required": true "required": true,
"id": true
}, },
"localizacao": { "localizacao": {
"type": "geopoint", "type": "geopoint",
...@@ -39,6 +40,11 @@ ...@@ -39,6 +40,11 @@
}, },
"observacao": { "observacao": {
"type": "string" "type": "string"
},
"_id":{
"type":"string",
"id":true,
"generated":true
} }
}, },
"validations": [], "validations": [],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment