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

49 lines
1.0 KiB
JSON
Raw Permalink Normal View History

2023-08-11 10:32:49 +00:00
{
2023-08-11 09:58:30 +00:00
"name": "SaleMistake",
"base": "VnModel",
"options": {
"mysql": {
"table": "saleMistake"
}
},
"properties": {
"id": {
"id": true,
"type": "number",
"description": "Identifier"
},
"created": {
"type": "date"
},
"saleFk": {
2023-08-11 10:32:49 +00:00
"type": "number",
"required": true
2023-08-11 09:58:30 +00:00
},
"userFk": {
2023-08-11 10:32:49 +00:00
"type": "number",
"required": true
2023-08-11 09:58:30 +00:00
},
"typeFk": {
2023-08-11 10:32:49 +00:00
"type": "number",
"required": true
2023-08-11 09:58:30 +00:00
}
},
"relations": {
"sale": {
"type": "belongsTo",
"model": "Sale",
2023-08-11 10:32:49 +00:00
"foreignKey": "saleFk"
2023-08-11 09:58:30 +00:00
},
"worker": {
"type": "belongsTo",
"model": "Worker",
2023-08-11 10:32:49 +00:00
"foreignKey": "userFk"
2023-08-11 09:58:30 +00:00
},
"mistakeType": {
"type": "belongsTo",
"model": "MistakeType",
2023-08-11 10:32:49 +00:00
"foreignKey": "typeFk"
2023-08-11 09:58:30 +00:00
}
2023-08-11 10:32:49 +00:00
2023-08-11 09:58:30 +00:00
}
2023-08-11 10:45:18 +00:00
}