33 lines
666 B
JSON
33 lines
666 B
JSON
{
|
|
"name": "ClaimBeginning",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "claimBeginning"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"quantity": {
|
|
"type": "Number",
|
|
"required": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"claim": {
|
|
"type": "belongsTo",
|
|
"model": "Claim",
|
|
"foreignKey": "claimFk"
|
|
},
|
|
"sale": {
|
|
"type": "belongsTo",
|
|
"model": "Sale",
|
|
"foreignKey": "saleFk"
|
|
}
|
|
}
|
|
}
|