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

47 lines
990 B
JSON
Raw Normal View History

2018-10-05 11:01:46 +00:00
{
"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"
}
}
}