2017-01-17 09:59:27 +00:00
|
|
|
{
|
|
|
|
"name": "ClientObservation",
|
|
|
|
"description": "Notas de los clientes.",
|
|
|
|
"base": "PersistedModel",
|
|
|
|
"validateUpsert": true,
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"text": {
|
|
|
|
"type": "string",
|
2017-01-18 13:48:35 +00:00
|
|
|
"description": "Text"
|
2017-01-17 09:59:27 +00:00
|
|
|
},
|
|
|
|
"creationDate": {
|
|
|
|
"type": "date",
|
2017-01-18 13:48:35 +00:00
|
|
|
"description": "Creation Date"
|
2017-01-31 13:13:06 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"salesPerson": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "SalesPerson",
|
|
|
|
"foreignKey": "id"
|
2017-01-17 09:59:27 +00:00
|
|
|
},
|
2017-01-31 13:13:06 +00:00
|
|
|
"client": {
|
|
|
|
"model": "Client",
|
|
|
|
"type": "belongsTo",
|
|
|
|
"foreignKey": "id"
|
2017-01-17 09:59:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|