salix/modules/ticket/back/models/sale-buy.json

34 lines
646 B
JSON
Raw Permalink Normal View History

2022-10-24 16:37:38 +00:00
{
2024-03-14 07:36:19 +00:00
"name": "SaleBuy",
2022-10-24 16:37:38 +00:00
"base": "VnModel",
"options": {
"mysql": {
2024-03-14 07:36:19 +00:00
"table": "saleBuy"
2022-10-24 16:37:38 +00:00
}
},
"properties": {
2024-03-14 07:36:19 +00:00
"saleFk": {
2022-10-24 16:37:38 +00:00
"id": true,
2024-03-14 07:36:19 +00:00
"type": "number"
2022-10-24 16:37:38 +00:00
},
2024-03-14 07:36:19 +00:00
"buyFk": {
"type": "number"
2022-10-24 16:37:38 +00:00
},
"created": {
"type": "date"
}
},
"relations": {
2024-03-14 07:36:19 +00:00
"sale": {
"type": "belongsTo",
"model": "Sale",
"foreignKey": "saleFk"
},
2022-10-24 16:37:38 +00:00
"worker": {
"type": "belongsTo",
2022-10-25 12:09:21 +00:00
"model": "Worker",
2022-10-24 16:37:38 +00:00
"foreignKey": "workerFk"
}
}
}
2024-03-14 07:36:19 +00:00