salix/services/claim/common/models/claim.json

54 lines
1.1 KiB
JSON
Raw Normal View History

{
"name": "Claim",
"base": "VnModel",
"options": {
"mysql": {
"table": "claim",
"database": "vn"
}
},
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"observation": {
"type": "String"
},
"ticketCreated": {
"type": "date",
"required": true
},
"isChargedToMana": {
2018-09-11 10:49:31 +00:00
"type": "boolean"
},
"created": {
2018-09-11 10:49:31 +00:00
"type": "date"
2018-08-29 07:45:37 +00:00
},
"responsibility": {
2018-09-11 10:49:31 +00:00
"type": "Number"
},
"ticketFk": {
"type": "Number"
}
},
"relations": {
"claimState": {
"type": "belongsTo",
"model": "ClaimState",
"foreignKey": "claimStateFk"
},
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
2018-08-29 07:45:37 +00:00
}
}
}