salix/back/models/sip.json

33 lines
639 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"
},
"secret": {
"type": "String"
}
},
"relations": {
"user": {
"type": "belongsTo",
"model": "Account",
"foreignKey": "user_id"
}
}
}