salix/modules/worker/back/models/device.json

29 lines
505 B
JSON
Raw Permalink Normal View History

2019-06-03 07:20:20 +00:00
{
"name": "Device",
"base": "VnModel",
"options": {
"mysql": {
"table": "device"
}
},
"properties": {
"id": {
"id": true,
2022-05-12 07:47:47 +00:00
"type": "number"
2019-06-03 07:20:20 +00:00
},
"sn": {
2022-05-12 07:47:47 +00:00
"type": "string"
2019-06-03 07:20:20 +00:00
},
"model": {
2022-05-12 07:47:47 +00:00
"type": "string"
2019-06-03 07:20:20 +00:00
}
},
"relations": {
"user": {
"type": "belongsTo",
2023-01-24 08:05:50 +00:00
"model": "VnUser",
2019-06-03 07:20:20 +00:00
"foreignKey": "userFk"
}
}
}