salix/services/production/common/models/fake-production.json

82 lines
1.5 KiB
JSON

{
"name": "FakeProduction",
"base": "MyModel",
"validateUpsert": true,
"properties": {
"id": {
"id": true,
"type": "Number",
"forceId": false
},
"hour":{
"type": "String"
},
"lines":{
"type": "Number"
},
"m3":{
"type": "Number"
},
"boxes":{
"type": "Number"
},
"city":{
"type": "String"
},
"problem":{
"type": "String"
}
},
"relations": {
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"state": {
"type": "belongsTo",
"model": "State",
"foreignKey": "stateFk"
},
"agency": {
"type": "belongsTo",
"model": "Agency",
"foreignKey": "agencyFk"
},
"province": {
"type": "belongsTo",
"model": "Province",
"foreignKey": "provinceFk"
},
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
},
"worker": {
"type": "belongsTo",
"model": "Employee",
"foreignKey": "workerFk"
},
"salePerson": {
"type": "belongsTo",
"model": "Employee",
"foreignKey": "salePersonFk"
}
},
"acls": [
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "root",
"permission": "ALLOW"
}
]
}