salix/services/client/common/models/ClientObservation.json

34 lines
640 B
JSON

{
"name": "ClientObservation",
"description": "Notas de los clientes.",
"base": "PersistedModel",
"validateUpsert": true,
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"text": {
"type": "string",
"description": "Text"
},
"creationDate": {
"type": "date",
"description": "Creation Date"
}
},
"relations": {
"salesPerson": {
"type": "belongsTo",
"model": "SalesPerson",
"foreignKey": "id"
},
"client": {
"model": "Client",
"type": "belongsTo",
"foreignKey": "id"
}
}
}