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",
|
|
|
|
"model": "Account",
|
|
|
|
"foreignKey": "userFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|