salix/modules/claim/back/models/claim-beginning.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"
}
}
}