From f81426c643ef8284da1485895e1c733b93d919d8 Mon Sep 17 00:00:00 2001
From: sergiodt <sergiodt@verdnatura.es>
Date: Wed, 29 May 2024 12:20:26 +0200
Subject: [PATCH] feat: roadMap #7195

---
 back/models/warehouse.json | 33 +++++++++++++++++++++++----------
 1 file changed, 23 insertions(+), 10 deletions(-)

diff --git a/back/models/warehouse.json b/back/models/warehouse.json
index dcbf7f2d25..69c74f1533 100644
--- a/back/models/warehouse.json
+++ b/back/models/warehouse.json
@@ -9,21 +9,28 @@
   },
   "properties": {
     "id": {
-        "id": true,
-        "type": "number",
-        "forceId": false
+      "id": true,
+      "type": "number",
+      "forceId": false
     },
     "name": {
-        "type": "string"
+      "type": "string"
     },
     "code": {
-        "type": "string"
+      "type": "string"
     },
     "isInventory": {
-        "type": "number"
+      "type": "number"
     },
-    "isManaged":{
-        "type": "boolean"
+    "isManaged": {
+      "type": "boolean"
+    }
+  },
+  "relations": {
+    "address": {
+      "type": "belongsTo",
+      "model": "Address",
+      "foreignKey": "addressFk"
     }
   },
   "acls": [
@@ -34,5 +41,11 @@
       "permission": "ALLOW"
     }
   ],
-  "scope" : {"where": {"isForTicket": {"neq": 0}}}
-}
+  "scope": {
+    "where": {
+      "isForTicket": {
+        "neq": 0
+      }
+    }
+  }
+}
\ No newline at end of file