57 lines
1.2 KiB
JSON
57 lines
1.2 KiB
JSON
{
|
|
"name": "UserConfig",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "userConfig"
|
|
}
|
|
},
|
|
"properties": {
|
|
"userFk": {
|
|
"id": true,
|
|
"type": "number",
|
|
"required": true
|
|
},
|
|
"warehouseFk": {
|
|
"type": "number"
|
|
},
|
|
"companyFk": {
|
|
"type": "number"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
},
|
|
"updated": {
|
|
"type": "date"
|
|
},
|
|
"darkMode": {
|
|
"type": "boolean"
|
|
},
|
|
"tabletFk": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"relations": {
|
|
"warehouse": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseFk"
|
|
},
|
|
"company": {
|
|
"type": "belongsTo",
|
|
"model": "Company",
|
|
"foreignKey": "companyFk"
|
|
},
|
|
"VnUser": {
|
|
"type": "belongsTo",
|
|
"model": "VnUser",
|
|
"foreignKey": "userFk"
|
|
},
|
|
"Tablet": {
|
|
"type": "belongsTo",
|
|
"model": "docuwareTablet",
|
|
"foreignKey": "tabletFk"
|
|
}
|
|
}
|
|
}
|