2018-10-05 11:01:46 +00:00
|
|
|
{
|
|
|
|
"name": "UserConfig",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2018-12-17 10:28:39 +00:00
|
|
|
"table": "userConfig"
|
2018-10-05 11:01:46 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"userFk": {
|
|
|
|
"id": true,
|
2022-04-20 08:25:01 +00:00
|
|
|
"type": "number",
|
2018-10-05 11:01:46 +00:00
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"warehouseFk": {
|
2022-04-20 08:25:01 +00:00
|
|
|
"type": "number"
|
2018-10-05 11:01:46 +00:00
|
|
|
},
|
|
|
|
"companyFk": {
|
2022-04-20 08:25:01 +00:00
|
|
|
"type": "number"
|
2018-10-05 11:01:46 +00:00
|
|
|
},
|
|
|
|
"created": {
|
2022-04-20 08:25:01 +00:00
|
|
|
"type": "date"
|
2018-10-05 11:01:46 +00:00
|
|
|
},
|
|
|
|
"updated": {
|
2022-04-20 08:25:01 +00:00
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"darkMode": {
|
|
|
|
"type": "boolean"
|
2018-10-05 11:01:46 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"warehouse": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Warehouse",
|
|
|
|
"foreignKey": "warehouseFk"
|
|
|
|
},
|
|
|
|
"company": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Company",
|
|
|
|
"foreignKey": "companyFk"
|
|
|
|
},
|
|
|
|
"account": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Account",
|
|
|
|
"foreignKey": "userFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|