From 235057cd170f1583db14bf93ea7d2de39e492356 Mon Sep 17 00:00:00 2001
From: vincent van beek <vincent@vlogic.nl>
Date: Fri, 27 Mar 2026 14:22:41 +0100
Subject: add prefabs for racks (#392)

* add prefabs for racks
---
 .../src/main/resources/load_data.sql               | 24 +++++++++++-----------
 1 file changed, 12 insertions(+), 12 deletions(-)

(limited to 'opendc-web/opendc-web-server/src/main/resources/load_data.sql')

diff --git a/opendc-web/opendc-web-server/src/main/resources/load_data.sql b/opendc-web/opendc-web-server/src/main/resources/load_data.sql
index 39cb3a02..ca505b80 100644
--- a/opendc-web/opendc-web-server/src/main/resources/load_data.sql
+++ b/opendc-web/opendc-web-server/src/main/resources/load_data.sql
@@ -1,8 +1,8 @@
 
 -- Insert data
 
-INSERT INTO projects (created_at, name, portfolios_created, scenarios_created, topologies_created, updated_at, id)
-       VALUES ('2024-03-01T15:31:41.579969Z', 'Test Project 1', 0, 0, 0, '2024-03-01T15:31:41.579969Z', 1);
+INSERT INTO projects (created_at, name, portfolios_created, scenarios_created, topologies_created, rack_prefabs_created, updated_at, id)
+       VALUES ('2024-03-01T15:31:41.579969Z', 'Test Project 1', 0, 0, 0, 0, '2024-03-01T15:31:41.579969Z', 1);
 
 INSERT INTO project_authorizations (role, project_id, user_id)
 VALUES ('OWNER', 1, 'test_user_1');
@@ -19,36 +19,36 @@ VALUES ('EDITOR', 1, 'test_user_3');
 
 -- Create a project for test user 2
 
-INSERT INTO projects (created_at, name, portfolios_created, scenarios_created, topologies_created, updated_at, id)
-VALUES ('2024-03-01T15:31:41.579969Z', 'Test Project 2', 0, 0, 0, '2024-03-01T15:31:41.579969Z', 2);
+INSERT INTO projects (created_at, name, portfolios_created, scenarios_created, topologies_created, rack_prefabs_created, updated_at, id)
+VALUES ('2024-03-01T15:31:41.579969Z', 'Test Project 2', 0, 0, 0, 0, '2024-03-01T15:31:41.579969Z', 2);
 
 INSERT INTO project_authorizations (role, project_id, user_id)
 VALUES ('OWNER', 2, 'test_user_2');
 
 -- Create three projects for test user 3. User 3 has multiple projects to test getAll
 
-INSERT INTO projects (created_at, name, portfolios_created, scenarios_created, topologies_created, updated_at, id)
-VALUES ('2024-03-01T15:31:41.579969Z', 'Test Project 3', 0, 0, 0, '2024-03-01T15:31:41.579969Z', 3);
+INSERT INTO projects (created_at, name, portfolios_created, scenarios_created, topologies_created, rack_prefabs_created, updated_at, id)
+VALUES ('2024-03-01T15:31:41.579969Z', 'Test Project 3', 0, 0, 0, 0, '2024-03-01T15:31:41.579969Z', 3);
 
 INSERT INTO project_authorizations (role, project_id, user_id)
 VALUES ('OWNER', 3, 'test_user_3');
 
-INSERT INTO projects (created_at, name, portfolios_created, scenarios_created, topologies_created, updated_at, id)
-VALUES ('2024-03-01T15:31:41.579969Z', 'Test Project 4', 0, 0, 0, '2024-03-01T15:31:41.579969Z', 4);
+INSERT INTO projects (created_at, name, portfolios_created, scenarios_created, topologies_created, rack_prefabs_created, updated_at, id)
+VALUES ('2024-03-01T15:31:41.579969Z', 'Test Project 4', 0, 0, 0, 0, '2024-03-01T15:31:41.579969Z', 4);
 
 INSERT INTO project_authorizations (role, project_id, user_id)
 VALUES ('OWNER', 4, 'test_user_3');
 
-INSERT INTO projects (created_at, name, portfolios_created, scenarios_created, topologies_created, updated_at, id)
-VALUES ('2024-03-01T15:31:41.579969Z', 'Test Project 5', 0, 0, 0, '2024-03-01T15:31:41.579969Z', 5);
+INSERT INTO projects (created_at, name, portfolios_created, scenarios_created, topologies_created, rack_prefabs_created, updated_at, id)
+VALUES ('2024-03-01T15:31:41.579969Z', 'Test Project 5', 0, 0, 0, 0, '2024-03-01T15:31:41.579969Z', 5);
 
 INSERT INTO project_authorizations (role, project_id, user_id)
 VALUES ('OWNER', 5, 'test_user_3');
 
 -- Project to delete
 
-INSERT INTO projects (created_at, name, portfolios_created, scenarios_created, topologies_created, updated_at, id)
-VALUES ('2024-03-01T15:31:41.579969Z', 'Test Project Delete', 0, 0, 0, '2024-03-01T15:31:41.579969Z', 6);
+INSERT INTO projects (created_at, name, portfolios_created, scenarios_created, topologies_created, rack_prefabs_created, updated_at, id)
+VALUES ('2024-03-01T15:31:41.579969Z', 'Test Project Delete', 0, 0, 0, 0, '2024-03-01T15:31:41.579969Z', 6);
 
 INSERT INTO project_authorizations (role, project_id, user_id)
 VALUES ('OWNER', 6, 'test_user_1');
-- 
cgit v1.2.3

