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",
|
|
|
|
"description": "Fiscal indetifier"
|
|
|
|
},
|
|
|
|
"creationDate": {
|
|
|
|
"type": "date",
|
|
|
|
"description": "Fiscal indetifier"
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"salesPerson": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "SalesPerson",
|
|
|
|
"foreignKey": "salePersonId"
|
|
|
|
},
|
|
|
|
"client": {
|
|
|
|
"model": "Client",
|
2017-01-17 14:03:32 +00:00
|
|
|
"type": "belongsTo",
|
|
|
|
"foreignKey": "id"
|
2017-01-17 09:59:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|