salix/services/loopback/common/models/claim.json

68 lines
1.5 KiB
JSON
Raw Normal View History

{
"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"
},
"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"
},
"ticketFk": {
"type": "Number"
},
"claimStateFk": {
"type": "Number"
},
"clientFk": {
"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"
2018-08-29 07:45:37 +00:00
}
}
}