50 lines
1.1 KiB
JSON
50 lines
1.1 KiB
JSON
|
{ // 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
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|