{ "name": "SaleGroup", "base": "VnModel", "options": { "mysql": { "table": "saleGroup" } }, "properties": { "id": { "id": true, "type": "number", "description": "Identifier" }, "parkingFk": { "type": "number" }, "ticketFk": { "type": "number" } }, "relations": { "saleGroupDetail": { "type": "hasMany", "model": "SaleGroupDetail", "foreignKey": "saleGroupFk" }, "parking": { "type": "belongsTo", "model": "Parking", "foreignKey": "parkingFk" }, "state": { "type": "belongsTo", "model": "State", "foreignKey": "stateFk" } } }