44 lines
1017 B
JSON
44 lines
1017 B
JSON
{
|
|
"name": "ClaimEnd",
|
|
"base": "Loggable",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "claimEnd"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
}
|
|
},
|
|
"relations": {
|
|
"claim": {
|
|
"type": "belongsTo",
|
|
"model": "Claim",
|
|
"foreignKey": "claimFk"
|
|
},
|
|
"sale": {
|
|
"type": "belongsTo",
|
|
"model": "Sale",
|
|
"foreignKey": "saleFk"
|
|
},
|
|
"worker": {
|
|
"type": "belongsTo",
|
|
"model": "Worker",
|
|
"foreignKey": "workerFk"
|
|
},
|
|
"claimDestination": {
|
|
"type": "belongsTo",
|
|
"model": "ClaimDestination",
|
|
"foreignKey": "claimDestinationFk"
|
|
},
|
|
"claimBeggining": {
|
|
"type": "belongsTo",
|
|
"model": "ClaimDestination",
|
|
"foreignKey": "claimDestinationFk"
|
|
}
|
|
}
|
|
}
|