45 lines
1.0 KiB
JSON
45 lines
1.0 KiB
JSON
{
|
|
"name": "ClaimEnd",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "claimEnd",
|
|
"database": "vn"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|