salix/services/loopback/common/models/user-config.json

46 lines
960 B
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"
}
},
"relations": {
"warehouse": {
"type": "belongsTo",
"model": "Warehouse",
"foreignKey": "warehouseFk"
},
"company": {
"type": "belongsTo",
"model": "Company",
"foreignKey": "companyFk"
},
"account": {
"type": "belongsTo",
"model": "Account",
"foreignKey": "userFk"
}
}
}