47 lines
990 B
JSON
47 lines
990 B
JSON
|
{
|
||
|
"name": "UserConfig",
|
||
|
"base": "VnModel",
|
||
|
"options": {
|
||
|
"mysql": {
|
||
|
"table": "userConfig",
|
||
|
"database": "vn"
|
||
|
}
|
||
|
},
|
||
|
"properties": {
|
||
|
"userFk": {
|
||
|
"id": true,
|
||
|
"type": "Number",
|
||
|
"required": true
|
||
|
},
|
||
|
"warehouseFk": {
|
||
|
"type": "Number"
|
||
|
},
|
||
|
"companyFk": {
|
||
|
"type": "Number"
|
||
|
},
|
||
|
"created": {
|
||
|
"type": "Date"
|
||
|
},
|
||
|
"updated": {
|
||
|
"type": "Date"
|
||
|
}
|
||
|
},
|
||
|
"relations": {
|
||
|
"warehouse": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Warehouse",
|
||
|
"foreignKey": "warehouseFk"
|
||
|
},
|
||
|
"company": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Company",
|
||
|
"foreignKey": "companyFk"
|
||
|
},
|
||
|
"account": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Account",
|
||
|
"foreignKey": "userFk"
|
||
|
}
|
||
|
}
|
||
|
}
|