refs #5134 feat: models
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Sergio De la torre 2023-09-26 13:12:18 +02:00
parent ed1d8ca94f
commit 2ea2943eca
3 changed files with 44 additions and 7 deletions

View File

@ -9,11 +9,11 @@
"properties": {
"id": {
"type": "number",
"description": "Identifier"
"description": "Identifier",
"id": true
},
"code": {
"type": "string",
"id": true
"type": "string"
},
"parkingFk": {
"type": "number"

View File

@ -4,6 +4,13 @@
"mysql": {
"table": "expeditionPallet"
}
},
"properties": {
"id": {
"type": "number",
"id": true,
"description": "Identifier"
}
},
"acls": [{
"accessType": "WRITE",
@ -11,6 +18,5 @@
"principalId": "production",
"permission": "ALLOW"
}]
}
}

View File

@ -5,12 +5,43 @@
"table": "expeditionScan"
}
},
"properties": {
"id": {
"type": "number",
"description": "Identifier"
},
"expeditionFk": {
"type": "number",
"description": "Identifier",
"id": true
},
"palletFk": {
"type": "number",
"description": "Identifier",
"id": true
},
"scanned": {
"type": "date",
"default": "$now"
}
},
"relations": {
"expedition": {
"type": "belongsTo",
"model": "Expedition",
"foreignKey": "expeditionFk"
},
"pallet": {
"type": "belongsTo",
"model": "expeditionPallet",
"foreignKey": "palletFk"
}
},
"acls": [{
"accessType": "WRITE",
"principalType": "ROLE",
"principalId": "production",
"permission": "ALLOW"
}]
}
}