2018-07-30 12:10:09 +00:00
|
|
|
{
|
|
|
|
"name": "Claim",
|
2023-12-05 06:48:56 +00:00
|
|
|
"base": "VnModel",
|
|
|
|
"mixins": {
|
|
|
|
"Loggable": true
|
|
|
|
},
|
2018-07-30 12:10:09 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2018-12-17 10:28:39 +00:00
|
|
|
"table": "claim"
|
2018-07-30 12:10:09 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2018-07-30 12:10:09 +00:00
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"observation": {
|
2020-05-13 13:04:57 +00:00
|
|
|
"type": "string"
|
2018-07-30 12:10:09 +00:00
|
|
|
},
|
|
|
|
"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": {
|
2020-05-13 13:04:57 +00:00
|
|
|
"type": "number"
|
|
|
|
},
|
2024-04-04 12:15:20 +00:00
|
|
|
"pickup": {
|
|
|
|
"type": "string",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "pickup",
|
|
|
|
"dataType": "ENUM('agency', 'delivery')",
|
|
|
|
"default": "null"
|
|
|
|
}
|
2018-09-13 08:05:39 +00:00
|
|
|
},
|
|
|
|
"ticketFk": {
|
2020-05-13 13:04:57 +00:00
|
|
|
"type": "number"
|
2018-09-25 12:39:08 +00:00
|
|
|
},
|
|
|
|
"claimStateFk": {
|
2020-05-13 13:04:57 +00:00
|
|
|
"type": "number"
|
2018-09-25 12:39:08 +00:00
|
|
|
},
|
|
|
|
"workerFk": {
|
2020-05-13 13:04:57 +00:00
|
|
|
"type": "number"
|
2022-03-15 11:51:33 +00:00
|
|
|
},
|
|
|
|
"packages": {
|
|
|
|
"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-09-25 12:39:08 +00:00
|
|
|
},
|
|
|
|
"ticket": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Ticket",
|
|
|
|
"foreignKey": "ticketFk"
|
2023-02-20 14:16:19 +00:00
|
|
|
},
|
|
|
|
"claimDms": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ClaimDms",
|
|
|
|
"foreignKey": "claimFk"
|
2023-03-22 13:55:54 +00:00
|
|
|
},
|
|
|
|
"lines": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ClaimBeginning",
|
|
|
|
"foreignKey": "claimFk"
|
2023-02-20 14:16:19 +00:00
|
|
|
}
|
2018-07-30 12:10:09 +00:00
|
|
|
}
|
|
|
|
}
|