30 lines
522 B
JSON
30 lines
522 B
JSON
{
|
|
"name": "ClientCredit",
|
|
"base": "VnModel",
|
|
"validateUpsert": true,
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"amount": {
|
|
"type": "Number"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
}
|
|
},
|
|
"relations": {
|
|
"client": {
|
|
"type": "belongsTo",
|
|
"model": "Client",
|
|
"foreignKey": "clientFk"
|
|
},
|
|
"employee": {
|
|
"type": "belongsTo",
|
|
"model": "Employee",
|
|
"foreignKey": "employeeFk"
|
|
}
|
|
}
|
|
} |