From 3076123c044c856caa09c19e7a56fd6b49685463 Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 24 Jan 2023 09:05:50 +0100 Subject: [PATCH] Updated models relation --- modules/item/back/models/item-log.json | 2 +- modules/item/back/models/item-shelving-sale.json | 2 +- modules/item/back/models/item-shelving.json | 2 +- modules/route/back/models/route-log.json | 2 +- modules/shelving/back/models/shelving-log.json | 2 +- modules/supplier/back/models/supplier-log.json | 2 +- modules/ticket/back/models/ticket-log.json | 2 +- modules/travel/back/models/travel-log.json | 2 +- modules/worker/back/models/device.json | 2 +- modules/worker/back/models/worker-log.json | 2 +- modules/worker/back/models/worker-team.json | 2 +- modules/worker/back/models/worker-time-control.json | 2 +- modules/worker/back/models/worker.json | 4 ++-- 13 files changed, 14 insertions(+), 14 deletions(-) diff --git a/modules/item/back/models/item-log.json b/modules/item/back/models/item-log.json index 633a8f86b..5bab2af86 100644 --- a/modules/item/back/models/item-log.json +++ b/modules/item/back/models/item-log.json @@ -48,7 +48,7 @@ "relations": { "user": { "type": "belongsTo", - "model": "Account", + "model": "VnUser", "foreignKey": "userFk" } }, diff --git a/modules/item/back/models/item-shelving-sale.json b/modules/item/back/models/item-shelving-sale.json index 8b89a7597..283bf3298 100644 --- a/modules/item/back/models/item-shelving-sale.json +++ b/modules/item/back/models/item-shelving-sale.json @@ -32,7 +32,7 @@ }, "user": { "type": "belongsTo", - "model": "Account", + "model": "VnUser", "foreignKey": "userFk" } } diff --git a/modules/item/back/models/item-shelving.json b/modules/item/back/models/item-shelving.json index 0890350da..98734dd78 100644 --- a/modules/item/back/models/item-shelving.json +++ b/modules/item/back/models/item-shelving.json @@ -30,7 +30,7 @@ }, "user": { "type": "belongsTo", - "model": "Account", + "model": "VnUser", "foreignKey": "userFk" }, "shelving": { diff --git a/modules/route/back/models/route-log.json b/modules/route/back/models/route-log.json index 37f898267..c8b7b5e9b 100644 --- a/modules/route/back/models/route-log.json +++ b/modules/route/back/models/route-log.json @@ -48,7 +48,7 @@ "relations": { "user": { "type": "belongsTo", - "model": "Account", + "model": "VnUser", "foreignKey": "userFk" } }, diff --git a/modules/shelving/back/models/shelving-log.json b/modules/shelving/back/models/shelving-log.json index a2267394e..d47058b8b 100644 --- a/modules/shelving/back/models/shelving-log.json +++ b/modules/shelving/back/models/shelving-log.json @@ -48,7 +48,7 @@ "relations": { "user": { "type": "belongsTo", - "model": "Account", + "model": "VnUser", "foreignKey": "userFk" } }, diff --git a/modules/supplier/back/models/supplier-log.json b/modules/supplier/back/models/supplier-log.json index 7c07fa9d4..b88266988 100644 --- a/modules/supplier/back/models/supplier-log.json +++ b/modules/supplier/back/models/supplier-log.json @@ -48,7 +48,7 @@ "relations": { "user": { "type": "belongsTo", - "model": "Account", + "model": "VnUser", "foreignKey": "userFk" } }, diff --git a/modules/ticket/back/models/ticket-log.json b/modules/ticket/back/models/ticket-log.json index 169bdeaa0..516ea506c 100644 --- a/modules/ticket/back/models/ticket-log.json +++ b/modules/ticket/back/models/ticket-log.json @@ -48,7 +48,7 @@ "relations": { "user": { "type": "belongsTo", - "model": "Account", + "model": "VnUser", "foreignKey": "userFk" } }, diff --git a/modules/travel/back/models/travel-log.json b/modules/travel/back/models/travel-log.json index d07f83e50..a72d9e0a5 100644 --- a/modules/travel/back/models/travel-log.json +++ b/modules/travel/back/models/travel-log.json @@ -48,7 +48,7 @@ "relations": { "user": { "type": "belongsTo", - "model": "Account", + "model": "VnUser", "foreignKey": "userFk" } }, diff --git a/modules/worker/back/models/device.json b/modules/worker/back/models/device.json index 566f7da7d..f7cff1aee 100644 --- a/modules/worker/back/models/device.json +++ b/modules/worker/back/models/device.json @@ -21,7 +21,7 @@ "relations": { "user": { "type": "belongsTo", - "model": "Account", + "model": "VnUser", "foreignKey": "userFk" } } diff --git a/modules/worker/back/models/worker-log.json b/modules/worker/back/models/worker-log.json index d2fa0487d..3cd5f9010 100644 --- a/modules/worker/back/models/worker-log.json +++ b/modules/worker/back/models/worker-log.json @@ -48,7 +48,7 @@ "relations": { "user": { "type": "belongsTo", - "model": "Account", + "model": "VnUser", "foreignKey": "userFk" } }, diff --git a/modules/worker/back/models/worker-team.json b/modules/worker/back/models/worker-team.json index 0b490ba6e..dbb15c5ac 100644 --- a/modules/worker/back/models/worker-team.json +++ b/modules/worker/back/models/worker-team.json @@ -19,7 +19,7 @@ "relations": { "user": { "type": "belongsTo", - "model": "Account", + "model": "VnUser", "foreignKey": "userFk" }, "worker": { diff --git a/modules/worker/back/models/worker-time-control.json b/modules/worker/back/models/worker-time-control.json index bc3e53501..b045946e7 100644 --- a/modules/worker/back/models/worker-time-control.json +++ b/modules/worker/back/models/worker-time-control.json @@ -30,7 +30,7 @@ "relations": { "user": { "type": "belongsTo", - "model": "Account", + "model": "VnUser", "foreignKey": "userFk" }, "worker": { diff --git a/modules/worker/back/models/worker.json b/modules/worker/back/models/worker.json index e3a941dd3..fff56435d 100644 --- a/modules/worker/back/models/worker.json +++ b/modules/worker/back/models/worker.json @@ -60,12 +60,12 @@ "relations": { "user": { "type": "belongsTo", - "model": "Account", + "model": "VnUser", "foreignKey": "userFk" }, "boss": { "type": "belongsTo", - "model": "Account", + "model": "VnUser", "foreignKey": "bossFk" }, "client": {