salix/modules/claim/back/models/claim-beginning.json

33 lines
667 B
JSON

{
"name": "ClaimBeginning",
"base": "Loggable",
"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"
}
}
}