54 lines
1.2 KiB
JSON
54 lines
1.2 KiB
JSON
{
|
|
"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": {
|
|
"type": "boolean",
|
|
"required": true
|
|
},
|
|
"created": {
|
|
"type": "date",
|
|
"required": true
|
|
},
|
|
"responsibility": {
|
|
"type": "Number",
|
|
"required": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"claimState": {
|
|
"type": "belongsTo",
|
|
"model": "ClaimState",
|
|
"foreignKey": "claimStateFk"
|
|
},
|
|
"client": {
|
|
"type": "belongsTo",
|
|
"model": "Client",
|
|
"foreignKey": "clientFk"
|
|
},
|
|
"worker": {
|
|
"type": "belongsTo",
|
|
"model": "Worker",
|
|
"foreignKey": "workerFk"
|
|
}
|
|
}
|
|
}
|