From cc5a867bf47c0586155685a8a3ec968b60a33537 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 20 Feb 2023 15:16:19 +0100 Subject: [PATCH] feat(claim_model): add claimDms relations --- db/dump/dumpedFixtures.sql | 4 ++-- modules/claim/back/models/claim.json | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/db/dump/dumpedFixtures.sql b/db/dump/dumpedFixtures.sql index 77dd8c1f7..1afc2ac39 100644 --- a/db/dump/dumpedFixtures.sql +++ b/db/dump/dumpedFixtures.sql @@ -22,7 +22,7 @@ USE `util`; LOCK TABLES `config` WRITE; /*!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 */; UNLOCK TABLES; @@ -1858,7 +1858,7 @@ INSERT INTO `ACL` VALUES (14,'PayMethod','*','READ','ALLOW','ROLE','trainee'), (16,'FakeProduction','*','READ','ALLOW','ROLE','employee'), (17,'Warehouse','* ','READ','ALLOW','ROLE','trainee'), -(18,'State','*','READ','ALLOW','ROLE','employee'), +(18,'State','*','READ','ALLOW','ROLE','employee'),dbVersion (20,'TicketState','*','*','ALLOW','ROLE','employee'), (24,'Delivery','*','READ','ALLOW','ROLE','employee'), (25,'Zone','*','READ','ALLOW','ROLE','employee'), diff --git a/modules/claim/back/models/claim.json b/modules/claim/back/models/claim.json index 14c4f3452..cd5b767e4 100644 --- a/modules/claim/back/models/claim.json +++ b/modules/claim/back/models/claim.json @@ -77,6 +77,11 @@ "type": "belongsTo", "model": "Ticket", "foreignKey": "ticketFk" - } + }, + "claimDms": { + "type": "hasMany", + "model": "ClaimDms", + "foreignKey": "claimFk" + } } }