2018-07-30 12:10:09 +00:00
|
|
|
{
|
|
|
|
"name": "Claim",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "claim",
|
|
|
|
"database": "vn"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"observation": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"ticketCreated": {
|
|
|
|
"type": "date",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"isChargedToMana": {
|
2018-08-29 07:45:37 +00:00
|
|
|
"type": "boolean",
|
2018-07-30 12:10:09 +00:00
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date",
|
|
|
|
"required": true
|
2018-08-29 07:45:37 +00:00
|
|
|
},
|
|
|
|
"responsibility": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
2018-07-30 12:10:09 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"claimState": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "ClaimState",
|
|
|
|
"foreignKey": "claimStateFk"
|
|
|
|
},
|
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
2018-08-29 07:45:37 +00:00
|
|
|
}
|
2018-07-30 12:10:09 +00:00
|
|
|
}
|
|
|
|
}
|