29 lines
506 B
JSON
29 lines
506 B
JSON
{
|
|
"name": "Device",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "device"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "number"
|
|
},
|
|
"sn": {
|
|
"type": "string"
|
|
},
|
|
"model": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"relations": {
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "Account",
|
|
"foreignKey": "userFk"
|
|
}
|
|
}
|
|
}
|