26 lines
425 B
JSON
26 lines
425 B
JSON
{
|
|
"name": "Employee",
|
|
"base": "VnModel",
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"surname": {
|
|
"type": "string",
|
|
"required": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "Account",
|
|
"foreignKey": "userFk"
|
|
}
|
|
}
|
|
} |