salix/modules/client/back/models/sms.json

52 lines
1.1 KiB
JSON

{
"name": "Sms",
"description": "Sms sent to client",
"base": "VnModel",
"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"
}
}
}