25 lines
376 B
JSON
25 lines
376 B
JSON
{
|
|
"name": "WorkCenter",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "work-center"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "Number"
|
|
},
|
|
"name": {
|
|
"type": "String"
|
|
}
|
|
},
|
|
"relations": {
|
|
"warehouse": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseFk"
|
|
}
|
|
}
|
|
} |