added businesType model and relation to client
This commit is contained in:
parent
c6504140af
commit
f3193f0dc1
|
@ -0,0 +1,2 @@
|
|||
INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
|
||||
VALUES ('BusinessType', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
|
|
@ -1 +0,0 @@
|
|||
Delete me
|
|
@ -8,6 +8,9 @@
|
|||
"BankEntity": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"BusinessType": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"Client": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "BusinessType",
|
||||
"base": "VnModel",
|
||||
"options": {
|
||||
"mysql": {
|
||||
"table": "businessType"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "string",
|
||||
"id": true
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -168,6 +168,11 @@
|
|||
"model": "ClientType",
|
||||
"foreignKey": "clientTypeFk"
|
||||
},
|
||||
"businessType": {
|
||||
"type": "belongsTo",
|
||||
"model": "BusinessType",
|
||||
"foreignKey": "businessTypeFk"
|
||||
},
|
||||
"addresses": {
|
||||
"type": "hasMany",
|
||||
"model": "Address",
|
||||
|
|
Loading…
Reference in New Issue