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

83 lines
1.8 KiB
JSON
Raw Normal View History

{
"name": "Claim",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"options": {
"mysql": {
2018-12-17 10:28:39 +00:00
"table": "claim"
}
},
"properties": {
"id": {
2022-05-12 07:47:47 +00:00
"type": "number",
"id": true,
"description": "Identifier"
},
"observation": {
2020-05-13 13:04:57 +00:00
"type": "string"
},
"ticketCreated": {
"type": "date",
"required": true
},
"isChargedToMana": {
2018-09-11 10:49:31 +00:00
"type": "boolean"
},
"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"
},
"pickup": {
2024-04-05 05:42:03 +00:00
"type": "string"
},
"ticketFk": {
2020-05-13 13:04:57 +00:00
"type": "number"
},
"claimStateFk": {
2020-05-13 13:04:57 +00:00
"type": "number"
},
"workerFk": {
2020-05-13 13:04:57 +00:00
"type": "number"
},
"packages": {
"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"
},
"claimDms": {
"type": "hasMany",
"model": "ClaimDms",
"foreignKey": "claimFk"
2023-03-22 13:55:54 +00:00
},
"lines": {
"type": "hasMany",
"model": "ClaimBeginning",
"foreignKey": "claimFk"
}
}
}