37 lines
653 B
JSON
37 lines
653 B
JSON
{
|
|
"name": "ClientCredit",
|
|
"description": "Log of credit changes",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "clientCredit",
|
|
"database": "vn"
|
|
}
|
|
},
|
|
"validateUpsert": true,
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"amount": {
|
|
"type": "Number"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
}
|
|
},
|
|
"relations": {
|
|
"client": {
|
|
"type": "belongsTo",
|
|
"model": "Client",
|
|
"foreignKey": "clientFk"
|
|
},
|
|
"worker": {
|
|
"type": "belongsTo",
|
|
"model": "Worker",
|
|
"foreignKey": "workerFk"
|
|
}
|
|
}
|
|
} |