32 lines
658 B
JSON
32 lines
658 B
JSON
{
|
|
"name": "SaleGroup",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "saleGroup"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "number",
|
|
"description": "Identifier"
|
|
},
|
|
"parkingFk": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"saleGroupDetail": {
|
|
"type": "hasMany",
|
|
"model": "SaleGroupDetail",
|
|
"foreignKey": "saleGroupFk"
|
|
},
|
|
"parking": {
|
|
"type": "belongsTo",
|
|
"model": "Parking",
|
|
"foreignKey": "parkingFk"
|
|
}
|
|
}
|
|
}
|