salix/modules/account/back/models/sip.json

31 lines
609 B
JSON

{
"name": "Sip",
"base": "VnModel",
"options": {
"mysql": {
"table": "pbx.sip"
}
},
"properties": {
"userFk": {
"type": "number",
"id": true,
"description": "The user id",
"mysql": {
"columnName": "user_id"
}
},
"extension": {
"type": "string",
"required": true
}
},
"relations": {
"user": {
"type": "belongsTo",
"model": "Account",
"foreignKey": "user_id"
}
}
}