2023-02-06 12:57:04 +00:00
|
|
|
{
|
|
|
|
"name": "SaleGroup",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "saleGroup"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "number",
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"parkingFk": {
|
|
|
|
"type": "number"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"saleGroupDetail": {
|
2023-02-06 13:32:54 +00:00
|
|
|
"type": "hasMany",
|
2023-02-06 12:57:04 +00:00
|
|
|
"model": "SaleGroupDetail",
|
|
|
|
"foreignKey": "saleGroupFk"
|
|
|
|
},
|
|
|
|
"parking": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Parking",
|
|
|
|
"foreignKey": "parkingFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|