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

104 lines
1.8 KiB
JSON
Raw Normal View History

{
"name": "Client",
2017-02-28 17:10:11 +00:00
"base": "MyModel",
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"
},
2016-12-15 07:31:15 +00:00
"registerDate": {
"type": "string"
},
"contact": {
"type": "string"
},
2017-01-02 06:28:36 +00:00
"street": {
"type": "string"
2017-01-02 06:28:36 +00:00
},
"consignee": {
"type": "string"
2017-01-02 06:28:36 +00:00
},
"city": {
"type": "string"
2017-01-02 06:28:36 +00:00
},
"postcode": {
"type": "string"
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"mobile": {
"type": "string"
},
"fax": {
"type": "string"
},
"active": {
"type": "boolean"
},
"credit": {
"type": "Number"
},
2017-01-02 06:28:36 +00:00
"cyc": {
"type": "Number"
},
"iban": {
"type": "string"
},
2017-01-02 06:28:36 +00:00
"dueDay": {
"type": "Number"
},
"gestdoc": {
"type": "Number"
2017-01-02 06:28:36 +00:00
},
"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"
}
},
"relations": {
"account": {
"type": "hasOne",
"model": "Account",
"foreignKey": "id"
2017-02-21 10:36:43 +00:00
},
"addresses": {
"type": "hasMany",
"model": "Address",
"foreignKey": "client"
}
},
2017-02-07 16:02:17 +00:00
"scopes": {
"test": {
"where": {"name": "Verdnatura"}
}
},
2017-03-01 08:55:17 +00:00
"validations": [],
"acls": [],
"methods": {}
}