Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
1af9f15
add protection tube
sjib Oct 29, 2024
c5f0e22
Add control cable
sjib Oct 29, 2024
4868958
Add dictionary / correct schemaprefixes
sjib Oct 29, 2024
a863f2c
Add oid_generation.sql
sjib Oct 29, 2024
3ec210c
init_qwat.sh / 02_sys.sql
sjib Oct 29, 2024
046758c
add 09_qwat_dictionaries.sql
sjib Oct 29, 2024
b3f46ba
create test_add_protection_tube.sql
sjib Oct 29, 2024
f201c19
Add class organisation
sjib Oct 29, 2024
1b434ae
init correct file path
sjib Oct 29, 2024
7ff2300
inherit from valuelistbase2
sjib Nov 13, 2024
132569f
correct schema name
sjib Nov 13, 2024
c34ffae
add reference from protection_tube to pipe
sjib Nov 16, 2024
b232486
adapt fk_pipe definition to fit qwat pipe.id
sjib Nov 16, 2024
b875cf6
correct schema
sjib Nov 16, 2024
331a3bf
correct cable_point.symbolori
sjib Nov 21, 2024
2e0e9ee
add sql for fk_folder relations
sjib Nov 21, 2024
fd538a8
adapt init_qwat.sh with fk_folder creation
sjib Nov 21, 2024
dd391ff
add deltas 1.4.2
sjib Nov 21, 2024
daeaa56
Update delta - add additional deltas and change order
sjib Nov 22, 2024
7701a02
Adapted SRID call for delta control_cable
sjib Nov 22, 2024
1df073e
adapt delta protection_tube
sjib Nov 22, 2024
d835892
comment out old statement
sjib Nov 22, 2024
bcdeeaa
END $$;
sjib Nov 22, 2024
ed64c6d
moved do $$ to end
sjib Nov 22, 2024
e9c5119
correct EXECUTE - wrong sql copied
sjib Nov 22, 2024
e7a3ce0
move back $$
sjib Nov 22, 2024
62dcc9e
add deltas for dictionaries
sjib Nov 22, 2024
75cbc35
Take out organisation prefixes - see https://github.com/teksi/wastewa…
sjib Dec 6, 2024
d64f255
add entry "unbekannt"
sjib Dec 7, 2024
0553681
Update comment protection_tube.nominal_diameter
sjib Dec 9, 2024
b36ecf7
adapt delta protection_tube
sjib Dec 9, 2024
ee9b7cd
adapt protection tube dictionary
sjib Dec 9, 2024
939b953
correct delta srid
sjib Dec 9, 2024
088d5c2
update qwat control cables comments
sjib Dec 9, 2024
0939061
missing quotation of '
sjib Dec 9, 2024
b483e76
more comments
sjib Dec 9, 2024
7be5e5e
Updates comments in delta
sjib Dec 9, 2024
f6d474b
update control cable dictionaries
sjib Dec 9, 2024
91409be
update delta control cable dictionaries
sjib Dec 9, 2024
c2b2d61
update delta protection tube dictionaries
sjib Dec 9, 2024
7fed61e
demo data for protection_tube
sjib Apr 15, 2025
db9ddf0
demo data sia405 cable and cable point
sjib Apr 15, 2025
988fa5b
Merge branch 'master' of https://github.com/qwat/qwat-data-model into…
ponceta May 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions datamodel/demo/minimal_organisation.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/* qwat - Demo data organisation for sia405 control cable and protection tube*/

INSERT INTO qwat_od.organisation (
obj_id,
identifier,
identifier_short,
municipality_number,
organisation_type,
remark,
status,
uid,
last_modification,
fk_dataowner,
fk_provider
)
VALUES (
'ch20p3q400002114',
'Service intercommunal de gestion SIGE',
'SIGE',
NULL,
8608,
NULL,
9047,
'CHE108954487',
'20240906',
NULL,
NULL
);

INSERT INTO qwat_od.organisation (
obj_id,
identifier,
identifier_short,
municipality_number,
organisation_type,
remark,
status,
uid,
last_modification,
fk_dataowner,
fk_provider
)
VALUES (
'ch20p3q400000107',
'unbekannt',
'inconnu',
NULL,
8606, -- Privat
'Für alle Objekte mit unklarer Zuständigkeit',
9047,
'CHE108954487',
'20211116',
NULL,
NULL
);



40 changes: 40 additions & 0 deletions datamodel/demo/sia405_cable_point_qwat_demo.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
--
-- PostgreSQL database dump
--

-- Dumped from database version 15.7
-- Dumped by pg_dump version 15.3

-- Started on 2025-04-15 15:32:58

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;

--
-- TOC entry 5027 (class 0 OID 430210)
-- Dependencies: 390
-- Data for Name: sia405cc_cable_point; Type: TABLE DATA; Schema: qwat_od; Owner: postgres
--

INSERT INTO qwat_od.sia405cc_cable_point VALUES ('ch000000CI000000', 'test cable_manhole', '01010000A01555000005F55116A36C1F417CD75EE9E95A03410000000000000000', 9386, 9392, NULL, 9396, 9399, 2024, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-12-09 15:50:15.682221', 'ch20p3q400002114', 'ch20p3q400002114', NULL, NULL);
INSERT INTO qwat_od.sia405cc_cable_point VALUES ('ch000000CI000001', 'test cable cabin', '01010000A0155500002C4F527EBB6C1F415610BC11005B03410000000000000000', 9387, 9392, NULL, 9396, 9399, 2024, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-12-09 15:50:15.687228', 'ch20p3q400002114', 'ch20p3q400002114', 'ch20p3q400002114', NULL);
INSERT INTO qwat_od.sia405cc_cable_point VALUES ('ch000000CI000004', 'cable sleeve', '01010000A015550000057EEA08966C1F41F133368DDF5A03410000000000000000', 9385, 9392, NULL, 9395, 9399, 2024, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-12-09 16:32:11.898244', 'ch20p3q400002114', 'ch20p3q400002114', 'ch20p3q400002114', NULL);
INSERT INTO qwat_od.sia405cc_cable_point VALUES ('ch000000CI000002', 'cable point 1', '01010000A0155500004361FBB19F6C1F411485E272EB5A03410000000000000000', 9388, 9392, NULL, 9395, 9399, 2024, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-12-09 16:32:39.995317', 'ch20p3q400002114', 'ch20p3q400002114', 'ch20p3q400000107', NULL);
INSERT INTO qwat_od.sia405cc_cable_point VALUES ('ch000000CI000003', 'cable point 2', '01010000A015550000425994589B6C1F417CE9AD1DE75A03410000000000000000', 9388, 9392, NULL, 9395, 9399, 2024, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-12-09 16:32:39.997009', 'ch20p3q400002114', 'ch20p3q400002114', 'ch20p3q400000107', NULL);
INSERT INTO qwat_od.sia405cc_cable_point VALUES ('ch000000CI000005', 'cabine 2', '01010000A015550000F1277EAA536C1F412CF60307815A03410000000000000000', 9387, 9392, NULL, 9395, 9399, 2024, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-12-09 16:33:32.997477', 'ch20p3q400002114', 'ch20p3q400002114', 'ch20p3q400002114', NULL);


-- Completed on 2025-04-15 15:32:58

--
-- PostgreSQL database dump complete
--

36 changes: 36 additions & 0 deletions datamodel/demo/sia405_cable_qwat_demo.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
--
-- PostgreSQL database dump
--

-- Dumped from database version 15.7
-- Dumped by pg_dump version 15.3

-- Started on 2025-04-15 15:33:56

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;

--
-- TOC entry 5028 (class 0 OID 430225)
-- Dependencies: 392
-- Data for Name: sia405cc_cable; Type: TABLE DATA; Schema: qwat_od; Owner: postgres
--

INSERT INTO qwat_od.sia405cc_cable VALUES ('ch000000CB000001', 'test cable', 9339, 9346, 9347, 9365, 2024, NULL, NULL, NULL, 350, '01090000A0155500000100000001020000800200000005F55116A36C1F417CD75EE9E95A034100000000000000002C4F527EBB6C1F415610BC11005B03410000000000000000', 9361, NULL, '2024-12-09 16:34:16.404826', 'ch20p3q400002114', 'ch20p3q400002114', 'ch20p3q400002114', NULL);
INSERT INTO qwat_od.sia405cc_cable VALUES ('ch000000CB000002', 'cable 2', 9339, 9346, 9347, 9365, 2024, NULL, NULL, NULL, NULL, '01090000A01555000001000000010200008005000000F1277EAA536C1F412CF60307815A03410000000000000000057EEA08966C1F41F133368DDF5A03410000000000000000425994589B6C1F417CE9AD1DE75A034100000000000000004361FBB19F6C1F411485E272EB5A0341000000000000000005F55116A36C1F417CD75EE9E95A03410000000000000000', 9361, NULL, '2024-12-09 16:36:10.937486', 'ch20p3q400002114', 'ch20p3q400002114', 'ch20p3q400002114', NULL);


-- Completed on 2025-04-15 15:33:56

--
-- PostgreSQL database dump complete
--

35 changes: 35 additions & 0 deletions datamodel/demo/sia405_protection_tube_qwat_demo.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
--
-- PostgreSQL database dump
--

-- Dumped from database version 15.7
-- Dumped by pg_dump version 15.3

-- Started on 2025-04-15 15:29:40

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;

--
-- TOC entry 5027 (class 0 OID 430392)
-- Dependencies: 403
-- Data for Name: sia405pt_protection_tube; Type: TABLE DATA; Schema: qwat_od; Owner: postgres
--

INSERT INTO qwat_od.sia405pt_protection_tube VALUES ('ch000000PT000002', 'test pt LV03', NULL, '498', 500, NULL, NULL, 9443, 9446, NULL, NULL, NULL, '01090000A015550000010000000102000080020000000428014D956C1F41CEBC9289535B034100000000000000000BF630A4976C1F416744A7E13E5B03410000000000000000', '2024-12-09 14:02:29.962032', 'ch20p3q400002114', 'ch20p3q400002114', 'ch20p3q400002114', NULL, NULL);


-- Completed on 2025-04-15 15:29:41

--
-- PostgreSQL database dump complete
--

Loading
Loading