2019-03-27 07:48:13 +00:00
|
|
|
{
|
|
|
|
"name": "Sms",
|
|
|
|
"description": "Sms sent to client",
|
2019-04-16 05:59:12 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model":"ClientLog",
|
|
|
|
"relation": "recipient"
|
|
|
|
},
|
2019-03-27 07:48:13 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "sms"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"sender": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"destination": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"message": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"statusCode": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"status": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "Date"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"sender": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Account",
|
|
|
|
"foreignKey": "senderFk"
|
|
|
|
},
|
|
|
|
"recipient": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "destinationFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|