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-09-11 10:49:31 +00:00
|
|
|
"type": "boolean"
|
2018-07-30 12:10:09 +00:00
|
|
|
},
|
|
|
|
"created": {
|
2018-09-11 10:49:31 +00:00
|
|
|
"type": "date"
|
2018-08-29 07:45:37 +00:00
|
|
|
},
|
|
|
|
"responsibility": {
|
2018-09-11 10:49:31 +00:00
|
|
|
"type": "Number"
|
2018-09-13 08:05:39 +00:00
|
|
|
},
|
|
|
|
"ticketFk": {
|
|
|
|
"type": "Number"
|
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
|
|
|
}
|
|
|
|
}
|