salix/modules/claim/back/models/claim-development.json

64 lines
1.5 KiB
JSON

{
"name": "ClaimDevelopment",
"base": "Loggable",
"options": {
"mysql": {
"table": "claimDevelopment"
}
},
"properties": {
"id": {
"type": "number",
"id": true,
"description": "Identifier"
},
"claimFk": {
"required": true
},
"claimResponsibleFk": {
"required": true
},
"claimReasonFk": {
"required": true
},
"claimResultFk": {
"required": true
},
"claimRedeliveryFk": {
"required": true
}
},
"relations": {
"claim": {
"type": "belongsTo",
"model": "Claim",
"foreignKey": "claimFk"
},
"claimResponsible": {
"type": "belongsTo",
"model": "ClaimResponsible",
"foreignKey": "claimResponsibleFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
},
"claimReason": {
"type": "belongsTo",
"model": "ClaimReason",
"foreignKey": "claimReasonFk"
},
"claimResult": {
"type": "belongsTo",
"model": "ClaimResult",
"foreignKey": "claimResultFk"
},
"claimRedelivery": {
"type": "belongsTo",
"model": "ClaimRedelivery",
"foreignKey": "claimRedeliveryFk"
}
}
}