67 lines
1.4 KiB
JSON
67 lines
1.4 KiB
JSON
{
|
|
"name": "Claim",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "claim"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"observation": {
|
|
"type": "string"
|
|
},
|
|
"ticketCreated": {
|
|
"type": "date",
|
|
"required": true
|
|
},
|
|
"isChargedToMana": {
|
|
"type": "boolean"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
},
|
|
"responsibility": {
|
|
"type": "number"
|
|
},
|
|
"hasToPickUp": {
|
|
"type": "boolean"
|
|
},
|
|
"ticketFk": {
|
|
"type": "number"
|
|
},
|
|
"claimStateFk": {
|
|
"type": "number"
|
|
},
|
|
"workerFk": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"claimState": {
|
|
"type": "belongsTo",
|
|
"model": "ClaimState",
|
|
"foreignKey": "claimStateFk"
|
|
},
|
|
"client": {
|
|
"type": "belongsTo",
|
|
"model": "Client",
|
|
"foreignKey": "clientFk"
|
|
},
|
|
"worker": {
|
|
"type": "belongsTo",
|
|
"model": "Worker",
|
|
"foreignKey": "workerFk"
|
|
},
|
|
"ticket": {
|
|
"type": "belongsTo",
|
|
"model": "Ticket",
|
|
"foreignKey": "ticketFk"
|
|
}
|
|
}
|
|
}
|