26 lines
464 B
JSON
26 lines
464 B
JSON
{
|
|
"name": "Department",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "department"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "Number"
|
|
},
|
|
"name": {
|
|
"type": "String"
|
|
}
|
|
},
|
|
"relations": {
|
|
"father": {
|
|
"type": "belongsTo",
|
|
"model": "Department",
|
|
"foreignKey": "fatherFk"
|
|
}
|
|
}
|
|
}
|