salix/services/client/common/models/Address.json

78 lines
1.4 KiB
JSON
Raw Normal View History

{
"name": "Address",
2017-05-17 12:58:23 +00:00
"base": "MyModel",
2017-01-18 09:42:53 +00:00
"validateUpsert": true,
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"consignee": {
"type": "string",
2017-01-12 10:02:22 +00:00
"required": true
},
"street": {
2016-11-28 17:21:55 +00:00
"type": "string",
2017-01-12 10:02:22 +00:00
"required": true
2016-11-28 17:21:55 +00:00
},
"city": {
"type": "string",
2017-01-12 10:02:22 +00:00
"required": true
},
"postcode": {
"type": "string"
},
"phone": {
"type": "string"
2016-11-28 17:21:55 +00:00
},
"mobile": {
"type": "string"
2017-01-10 13:41:56 +00:00
},
"enabled": {
"type": "boolean"
},
2017-01-10 13:41:56 +00:00
"default": {
"type": "boolean"
2017-05-05 11:32:07 +00:00
},
2017-05-09 12:04:44 +00:00
"longitude": {
"type": "Number"
},
"latitude": {
2017-05-05 11:32:07 +00:00
"type": "Number"
}
},
2017-03-14 12:08:55 +00:00
"validations": [],
"relations": {
2017-05-12 11:36:12 +00:00
"province": {
2017-05-12 09:14:55 +00:00
"type": "belongsTo",
"model": "Province",
"foreignKey": "provinceFk"
2017-02-21 10:36:43 +00:00
},
2017-05-12 11:36:12 +00:00
"client": {
2017-05-12 09:14:55 +00:00
"type": "belongsTo",
2017-02-21 10:36:43 +00:00
"model": "Client",
2017-05-12 09:14:55 +00:00
"foreignKey": "clientFk"
2017-05-05 11:32:07 +00:00
},
2017-05-12 11:36:12 +00:00
"defaultAgency": {
2017-05-12 09:14:55 +00:00
"type": "belongsTo",
2017-05-05 11:32:07 +00:00
"model": "Agency",
2017-05-12 09:14:55 +00:00
"foreignKey": "defaultAgencyFk"
2017-01-10 11:51:21 +00:00
}
2017-03-14 12:08:55 +00:00
},
"acls": [
{
"accessType": "*",
"principalType": "ROLE",
2017-05-30 12:17:01 +00:00
"principalId": "$everyone",
"permission": "DENY"
2017-05-18 15:54:23 +00:00
},
{
"accessType": "*",
"principalType": "ROLE",
2017-05-30 12:17:01 +00:00
"principalId": "root",
"permission": "ALLOW"
2017-03-14 12:08:55 +00:00
}
]
}