feat(claim_model): add claimDms relations
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2023-02-20 15:16:19 +01:00
parent 86dd299292
commit cc5a867bf4
2 changed files with 8 additions and 3 deletions

View File

@ -22,7 +22,7 @@ USE `util`;
LOCK TABLES `config` WRITE; LOCK TABLES `config` WRITE;
/*!40000 ALTER TABLE `config` DISABLE KEYS */; /*!40000 ALTER TABLE `config` DISABLE KEYS */;
INSERT INTO `config` VALUES (1,'224602',0,'production',NULL); INSERT INTO `config` VALUES (1,'224902',0,'production',NULL);
/*!40000 ALTER TABLE `config` ENABLE KEYS */; /*!40000 ALTER TABLE `config` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@ -1858,7 +1858,7 @@ INSERT INTO `ACL` VALUES
(14,'PayMethod','*','READ','ALLOW','ROLE','trainee'), (14,'PayMethod','*','READ','ALLOW','ROLE','trainee'),
(16,'FakeProduction','*','READ','ALLOW','ROLE','employee'), (16,'FakeProduction','*','READ','ALLOW','ROLE','employee'),
(17,'Warehouse','* ','READ','ALLOW','ROLE','trainee'), (17,'Warehouse','* ','READ','ALLOW','ROLE','trainee'),
(18,'State','*','READ','ALLOW','ROLE','employee'), (18,'State','*','READ','ALLOW','ROLE','employee'),dbVersion
(20,'TicketState','*','*','ALLOW','ROLE','employee'), (20,'TicketState','*','*','ALLOW','ROLE','employee'),
(24,'Delivery','*','READ','ALLOW','ROLE','employee'), (24,'Delivery','*','READ','ALLOW','ROLE','employee'),
(25,'Zone','*','READ','ALLOW','ROLE','employee'), (25,'Zone','*','READ','ALLOW','ROLE','employee'),

View File

@ -77,6 +77,11 @@
"type": "belongsTo", "type": "belongsTo",
"model": "Ticket", "model": "Ticket",
"foreignKey": "ticketFk" "foreignKey": "ticketFk"
},
"claimDms": {
"type": "hasMany",
"model": "ClaimDms",
"foreignKey": "claimFk"
} }
} }
} }