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"
|
2024-05-29 14:54:24 +00:00
|
|
|
},
|
|
|
|
"ticketFk": {
|
|
|
|
"type": "number"
|
2023-02-06 12:57:04 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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"
|
2024-11-25 15:16:47 +00:00
|
|
|
},
|
|
|
|
"state": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "State",
|
|
|
|
"foreignKey": "stateFk"
|
2023-02-06 12:57:04 +00:00
|
|
|
}
|
|
|
|
}
|
2024-11-25 15:16:47 +00:00
|
|
|
}
|