46 lines
927 B
JSON
46 lines
927 B
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"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
}
|
|
},
|
|
"relations": {
|
|
"sender": {
|
|
"type": "belongsTo",
|
|
"model": "Account",
|
|
"foreignKey": "senderFk"
|
|
}
|
|
}
|
|
}
|