diff --git a/misc/BreCal.postman_collection.json b/misc/BreCal.postman_collection.json index 7da647a..f1ef9ad 100644 --- a/misc/BreCal.postman_collection.json +++ b/misc/BreCal.postman_collection.json @@ -14,7 +14,9 @@ "listen": "test", "script": { "exec": [ - "pm.environment.set(\"LOGON_TOKEN\", responseBody)" + "let responseData = pm.response.json();\r", + "pm.environment.set(\"LOGON_TOKEN\", responseData.token)\r", + "console.log(\"Id: \" + responseData.id)" ], "type": "text/javascript" } @@ -63,18 +65,12 @@ "method": "GET", "header": [], "url": { - "raw": "{{SCHEMA}}{{PATH}}/participant?user_id=1", + "raw": "{{SCHEMA}}{{PATH}}/participants", "host": [ "{{SCHEMA}}{{PATH}}" ], "path": [ - "participant" - ], - "query": [ - { - "key": "user_id", - "value": "1" - } + "participants" ] } }, @@ -282,7 +278,7 @@ "method": "GET", "header": [], "url": { - "raw": "{{SCHEMA}}{{PATH}}/times?shipcall_id=1", + "raw": "{{SCHEMA}}{{PATH}}/times?shipcall_id=3", "host": [ "{{SCHEMA}}{{PATH}}" ], @@ -292,7 +288,7 @@ "query": [ { "key": "shipcall_id", - "value": "1" + "value": "3" } ] } diff --git a/misc/create_schema.sql b/misc/create_schema.sql index 1bb323f..46c31d2 100644 --- a/misc/create_schema.sql +++ b/misc/create_schema.sql @@ -8,6 +8,7 @@ CREATE TABLE `participant` ( `street` varchar(128) DEFAULT NULL, `postal_code` varchar(5) DEFAULT NULL, `city` varchar(64) DEFAULT NULL, + `type` int(10) DEFAULT NULL, `flags` int(10) unsigned DEFAULT NULL, `created` DATETIME NULL DEFAULT current_timestamp(), `modified` DATETIME NULL DEFAULT NULL ON UPDATE current_timestamp(), diff --git a/misc/sample_data.sql b/misc/sample_data.sql index cf511af..986d8f7 100644 --- a/misc/sample_data.sql +++ b/misc/sample_data.sql @@ -41,7 +41,7 @@ UNLOCK TABLES; LOCK TABLES `participant` WRITE; /*!40000 ALTER TABLE `participant` DISABLE KEYS */; -INSERT INTO `participant` (`id`, `name`, `street`, `postal_code`, `city`, `flags`, `created`, `modified`) VALUES (1,'Schick Informatik','Gottlieb-Daimler-Str. 8','73614','Schorndorf',42,'2023-04-17 07:18:19',NULL); +INSERT INTO `participant` (`id`, `name`, `street`, `postal_code`, `city`, `type`, `flags`, `created`, `modified`) VALUES (1,'Schick Informatik','Gottlieb-Daimler-Str. 8','73614','Schorndorf',1,42,'2023-04-17 07:18:19',NULL); /*!40000 ALTER TABLE `participant` ENABLE KEYS */; UNLOCK TABLES; diff --git a/src/RoleEditor/MainWindow.xaml b/src/RoleEditor/MainWindow.xaml index ad6e5d9..b7953c7 100644 --- a/src/RoleEditor/MainWindow.xaml +++ b/src/RoleEditor/MainWindow.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:RoleEditor" mc:Ignorable="d" - Title="Bremen calling admin editor" Height="600" Width="800" Icon="Resources/lock_preferences.ico" Loaded="Window_Loaded"> + Title="Bremen calling admin editor" Height="650" Width="800" Icon="Resources/lock_preferences.ico" Loaded="Window_Loaded"> @@ -29,6 +29,7 @@ + @@ -57,16 +58,18 @@