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

159 lines
2.7 KiB
JSON
Raw Normal View History

{
"name": "Client",
2017-02-28 17:10:11 +00:00
"base": "MyModel",
2017-03-14 12:08:55 +00:00
"scopes": {
"test": {
"where": {
"name": "Verdnatura"
}
}
},
2017-01-12 10:02:22 +00:00
"validateUpsert": true,
"properties": {
"id": {
"type": "Number",
"id": true,
2017-02-07 16:02:17 +00:00
"description": "Identifier"
},
"name": {
"type": "string",
2017-01-12 10:02:22 +00:00
"required": true
},
"fi": {
"type": "string",
"description": "Fiscal indetifier"
},
"socialName": {
"type": "string"
},
2017-05-09 12:04:44 +00:00
"creationTime": {
"type": "string"
},
"contact": {
"type": "string"
},
2017-01-02 06:28:36 +00:00
"street": {
"type": "string"
2017-01-02 06:28:36 +00:00
},
"city": {
"type": "string"
2017-01-02 06:28:36 +00:00
},
2017-05-09 12:04:44 +00:00
"postcode": {
"type": "string"
},
2017-05-09 12:04:44 +00:00
"provinceFk": {
"type": "Number"
},
2017-05-09 12:04:44 +00:00
"countryFk": {
"type": "Number"
2017-01-02 06:28:36 +00:00
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"mobile": {
"type": "string"
},
"fax": {
"type": "string"
},
"active": {
"type": "boolean"
},
"credit": {
"type": "Number"
},
2017-05-09 12:04:44 +00:00
"creditInsurance": {
"type": "Number"
},
"iban": {
"type": "string"
},
2017-01-02 06:28:36 +00:00
"dueDay": {
"type": "Number"
},
"surcharge": {
"type": "boolean",
"description": "The client has equivalence surcharge"
},
"hasToInvoice": {
"type": "boolean",
"description": "Global invoicing enabled for the client"
},
"invoiceByEmail": {
"type": "boolean",
"description": "Send invoices by email"
2017-05-05 10:54:47 +00:00
},
2017-05-09 12:04:44 +00:00
"payMethodFk": {
"type": "Number"
},
"salesPersonFk": {
"type": "Number"
},
"contactChannelFk": {
"type": "Number"
},
"sepaVnl": {
"type": "boolean"
},
"coreVnl": {
"type": "boolean"
},
"coreVnh": {
"type": "boolean"
},
"eypbc": {
"type": "boolean"
},
"quality": {
2017-05-05 10:54:47 +00:00
"type": "Number"
},
2017-05-09 12:04:44 +00:00
"vies": {
2017-05-05 10:54:47 +00:00
"type": "Number"
2017-05-09 12:04:44 +00:00
},
"isRelevant": {
"type": "boolean"
},
"typeFk": {
"type": "Number"
},
"accountingAccount": {
"type": "string"
}
},
2017-03-14 12:08:55 +00:00
"validations": [],
"relations": {
2017-05-09 12:04:44 +00:00
"accountFk": {
"type": "hasOne",
"model": "Account",
"foreignKey": "id"
2017-02-21 10:36:43 +00:00
},
2017-05-09 12:04:44 +00:00
"payMethodFk": {
"type": "hasOne",
"model": "PayMethod",
"foreignKey": "id"
},
2017-05-09 12:04:44 +00:00
"salesPersonFk": {
"type": "hasOne",
"model": "Employee",
"foreignKey": "id"
},
2017-05-09 12:04:44 +00:00
"addressesFk": {
2017-02-21 10:36:43 +00:00
"type": "hasMany",
"model": "Address",
2017-05-09 12:04:44 +00:00
"foreignKey": "clientFk"
}
},
2017-03-14 12:08:55 +00:00
"acls": [
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
2017-02-07 16:02:17 +00:00
}
2017-03-14 12:08:55 +00:00
],
"methods": {}
}