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

#21: Populate TipoSala relation

parent e9da6c2c
......@@ -2,14 +2,15 @@
## Sala
- Public: `False`
- Attributes
- Attributes `idInjection`=`false`
* nome : **string**
* codigo : **string** `Required`
* codigo : **string** `Required` `primaryKey`
* localizacao : **geopoint** `Required`
* andar : **number** default=`0`
* capacidade : **number** `Required`, default=`0`
* restrita : **boolean** `Required`, default=`false`
* observacao : **string**
* _id : **number** `generated` `primaryKey`
- ACLs
* All permissions not specified is `DENY`
* **$everyone** ROLE have all READ operations
......@@ -25,7 +26,7 @@
* codigo : **string** `Required` `primaryKey`
* localizacao : **geopoint** `Required`
* tamanho : **number** `Required`, default=`0`
* _id : **number** `generated` `id`
* _id : **number** `generated` `primaryKey`
- ACLs
* All permissions not specified is `DENY`
* **$everyone** ROLE have all READ operations
......
......@@ -2,7 +2,7 @@
"name": "Sala",
"plural": "salas",
"base": "PersistedModel",
"idInjection": true,
"idInjection": false,
"options": {
"validateUpsert": true,
"idInjection": false,
......@@ -17,7 +17,8 @@
},
"codigo": {
"type": "string",
"required": true
"required": true,
"id": true
},
"localizacao": {
"type": "geopoint",
......@@ -39,6 +40,11 @@
},
"observacao": {
"type": "string"
},
"_id":{
"type":"string",
"id":true,
"generated":true
}
},
"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