salix/services/claim/common/models/claim-beginning.json

34 lines
696 B
JSON

{
"name": "ClaimBeginning",
"base": "VnModel",
"options": {
"mysql": {
"table": "claimBeginning",
"database": "vn"
}
},
"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"
}
}
}