refs #5134 feat: models
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Sergio De la torre 2023-08-11 11:58:30 +02:00
parent ce78fc8e5d
commit 6eb88f8ab7
1 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{ // A REVISAR QUE NOFA INSERT EN
"name": "SaleMistake",
"base": "VnModel",
"options": {
"mysql": {
"table": "saleMistake"
}
},
"properties": {
"id": {
"id": true,
"type": "number",
"description": "Identifier"
},
"created": {
"type": "date"
},
"saleFk": {
"type": "number"
},
"userFk": {
"type": "number"
},
"typeFk": {
"type": "number"
}
},
"relations": {
"sale": {
"type": "belongsTo",
"model": "Sale",
"foreignKey": "saleFk",
"required": true
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "userFk",
"required": true
},
"mistakeType": {
"type": "belongsTo",
"model": "MistakeType",
"foreignKey": "typeFk",
"required": true
}
}
}