46 lines
929 B
JSON
46 lines
929 B
JSON
{
|
|
"name": "Sms",
|
|
"description": "Sms sent to client",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "vn.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": "VnUser",
|
|
"foreignKey": "senderFk"
|
|
}
|
|
}
|
|
}
|