new model sip and fixtures #9474
This commit is contained in:
parent
6e84a43e99
commit
c87fd81a62
|
@ -82,5 +82,8 @@
|
|||
},
|
||||
"TpvResponse": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"Sip": {
|
||||
"dataSource": "vn"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"name": "Sip",
|
||||
"base": "VnModel",
|
||||
"options": {
|
||||
"mysql": {
|
||||
"table": "pbx.sip"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "Number",
|
||||
"id": true,
|
||||
"mysql": {
|
||||
"columnName": "extension"
|
||||
}
|
||||
},
|
||||
"password": {
|
||||
"type": "string",
|
||||
"mysql": {
|
||||
"columnName": "secret"
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"mysql": {
|
||||
"columnName": "caller_id"
|
||||
}
|
||||
}
|
||||
},
|
||||
"relations": {
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"model": "Account",
|
||||
"foreignKey": "user_id"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1065,3 +1065,10 @@ INSERT INTO `vn`.`ticketService`(`id`, `description`, `quantity`, `price`, `taxC
|
|||
(1, 'delivery charge', 1, 2.00, 1, 1),
|
||||
(2, 'training course', 1, 10.00, 1, 2),
|
||||
(3, 'delivery charge', 1, 5.50, 1, 11);
|
||||
|
||||
INSERT INTO `pbx`.`sip`(`user_id`, `extension`, `secret`, `caller_id`)
|
||||
VALUES
|
||||
(1, 1010, '123456', 'employee'),
|
||||
(3, 1101, '123456', 'agency'),
|
||||
(5, 1102, '123456', 'administrative'),
|
||||
(9, 1201, '123456', 'developer');
|
Loading…
Reference in New Issue