-- -- PostgreSQL database dump -- \restrict QLwsCbodiNlV3JQJRfmAVxaxLqILLV0Fv9uJeVlzDiu4p6FKUIYquZWE1PbaK7o -- Dumped from database version 18.4 (Debian 18.4-1.pgdg13+1) -- Dumped by pg_dump version 18.4 -- Started on 2026-09-14 14:31:10 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET transaction_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 6 (class 2615 OID 20689) -- Name: properties; Type: SCHEMA; Schema: -; Owner: tsindt -- CREATE SCHEMA properties; ALTER SCHEMA properties OWNER TO tsindt; -- -- TOC entry 3481 (class 0 OID 0) -- Dependencies: 6 -- Name: SCHEMA properties; Type: COMMENT; Schema: -; Owner: tsindt -- COMMENT ON SCHEMA properties IS 'Alle Tabellen, die mit Properties und Values zu tun haben.'; -- -- TOC entry 220 (class 1259 OID 20691) -- Name: properties_id_seq; Type: SEQUENCE; Schema: properties; Owner: tsindt -- CREATE SEQUENCE properties.properties_id_seq START WITH 1000000 INCREMENT BY 1 MINVALUE 1000000 MAXVALUE 4999999 CACHE 1; ALTER SEQUENCE properties.properties_id_seq OWNER TO tsindt; -- -- TOC entry 3482 (class 0 OID 0) -- Dependencies: 220 -- Name: SEQUENCE properties_id_seq; Type: COMMENT; Schema: properties; Owner: tsindt -- COMMENT ON SEQUENCE properties.properties_id_seq IS 'Zähler für property und value IDs '; SET default_tablespace = ''; SET default_table_access_method = heap; -- -- TOC entry 223 (class 1259 OID 20722) -- Name: properties; Type: TABLE; Schema: properties; Owner: tsindt -- CREATE TABLE properties.properties ( id bigint DEFAULT nextval('properties.properties_id_seq'::regclass) NOT NULL, name text, description text, parent_property_id bigint DEFAULT 0 NOT NULL, property_type_id bigint NOT NULL, products_groups_id bigint DEFAULT 0 NOT NULL, products_id bigint DEFAULT 0 NOT NULL, image_url text DEFAULT 'https://www.thomas-sindt.de/img/properties_group.svg'::text ); ALTER TABLE properties.properties OWNER TO tsindt; -- -- TOC entry 3483 (class 0 OID 0) -- Dependencies: 223 -- Name: TABLE properties; Type: COMMENT; Schema: properties; Owner: tsindt -- COMMENT ON TABLE properties.properties IS 'Eigenschaften, die Listen von Werten enthalten und eine Information, von welchem property sich dieses Property ableitet. Ist parent_property_id = 0, dann ist dieses ein Root-Property zu dem referenzierten PropertyType.'; -- -- TOC entry 3484 (class 0 OID 0) -- Dependencies: 223 -- Name: COLUMN properties.name; Type: COMMENT; Schema: properties; Owner: tsindt -- COMMENT ON COLUMN properties.properties.name IS 'Der Name sollte derselbe sein, wie der referenzierte Property Type.'; -- -- TOC entry 3485 (class 0 OID 0) -- Dependencies: 223 -- Name: COLUMN properties.products_groups_id; Type: COMMENT; Schema: properties; Owner: tsindt -- COMMENT ON COLUMN properties.properties.products_groups_id IS 'Referenziert auf dieProduktgruppe, zu dem dieses Property gehört. Wenn es zu keiner Produktgruppe gehört ist diese referenz = 0'; -- -- TOC entry 3486 (class 0 OID 0) -- Dependencies: 223 -- Name: COLUMN properties.products_id; Type: COMMENT; Schema: properties; Owner: tsindt -- COMMENT ON COLUMN properties.properties.products_id IS 'Referenziert auf das Produkt, zu dem dieses Property gehört. Wenn es zu keinem Produkt gehört ist diese referenz = 0'; -- -- TOC entry 222 (class 1259 OID 20707) -- Name: property_types; Type: TABLE; Schema: properties; Owner: tsindt -- CREATE TABLE properties.property_types ( id bigint DEFAULT nextval('properties.properties_id_seq'::regclass) NOT NULL, name text, description text, property_types_groups_id bigint NOT NULL, image_url text DEFAULT 'https://www.thomas-sindt.de/img/category.svg'::text ); ALTER TABLE properties.property_types OWNER TO tsindt; -- -- TOC entry 3487 (class 0 OID 0) -- Dependencies: 222 -- Name: TABLE property_types; Type: COMMENT; Schema: properties; Owner: tsindt -- COMMENT ON TABLE properties.property_types IS 'Definition von properties'; -- -- TOC entry 221 (class 1259 OID 20698) -- Name: property_types_groups; Type: TABLE; Schema: properties; Owner: tsindt -- CREATE TABLE properties.property_types_groups ( id bigint DEFAULT nextval('properties.properties_id_seq'::regclass) CONSTRAINT property_types_group_id_not_null NOT NULL, name text, description text, parent_property_type_group_id bigint, image_url text DEFAULT 'https://thomas-sindt/img/category.svg'::text ); ALTER TABLE properties.property_types_groups OWNER TO tsindt; -- -- TOC entry 3488 (class 0 OID 0) -- Dependencies: 221 -- Name: TABLE property_types_groups; Type: COMMENT; Schema: properties; Owner: tsindt -- COMMENT ON TABLE properties.property_types_groups IS 'Baumstruktur zur Organisation von Property types Wenn parent_property_types_group = 0, dann ist diese Gruppe eine Rootgruppe.'; -- -- TOC entry 224 (class 1259 OID 20743) -- Name: values; Type: TABLE; Schema: properties; Owner: tsindt -- CREATE TABLE properties."values" ( id bigint DEFAULT nextval('properties.properties_id_seq'::regclass) NOT NULL, value text, properties_id bigint NOT NULL, image_url text DEFAULT 'https://www.thomas-sindt.de/img/property.svg'::text ); ALTER TABLE properties."values" OWNER TO tsindt; -- -- TOC entry 3474 (class 0 OID 20722) -- Dependencies: 223 -- Data for Name: properties; Type: TABLE DATA; Schema: properties; Owner: tsindt -- COPY properties.properties (id, name, description, parent_property_id, property_type_id, products_groups_id, products_id, image_url) FROM stdin; \. -- -- TOC entry 3473 (class 0 OID 20707) -- Dependencies: 222 -- Data for Name: property_types; Type: TABLE DATA; Schema: properties; Owner: tsindt -- COPY properties.property_types (id, name, description, property_types_groups_id, image_url) FROM stdin; \. -- -- TOC entry 3472 (class 0 OID 20698) -- Dependencies: 221 -- Data for Name: property_types_groups; Type: TABLE DATA; Schema: properties; Owner: tsindt -- COPY properties.property_types_groups (id, name, description, parent_property_type_group_id, image_url) FROM stdin; \. -- -- TOC entry 3475 (class 0 OID 20743) -- Dependencies: 224 -- Data for Name: values; Type: TABLE DATA; Schema: properties; Owner: tsindt -- COPY properties."values" (id, value, properties_id, image_url) FROM stdin; \. -- -- TOC entry 3489 (class 0 OID 0) -- Dependencies: 220 -- Name: properties_id_seq; Type: SEQUENCE SET; Schema: properties; Owner: tsindt -- SELECT pg_catalog.setval('properties.properties_id_seq', 1000000, false); -- -- TOC entry 3318 (class 2606 OID 20733) -- Name: properties properties_pkey; Type: CONSTRAINT; Schema: properties; Owner: tsindt -- ALTER TABLE ONLY properties.properties ADD CONSTRAINT properties_pkey PRIMARY KEY (id); -- -- TOC entry 3314 (class 2606 OID 20706) -- Name: property_types_groups property_types_group_pkey; Type: CONSTRAINT; Schema: properties; Owner: tsindt -- ALTER TABLE ONLY properties.property_types_groups ADD CONSTRAINT property_types_group_pkey PRIMARY KEY (id); -- -- TOC entry 3316 (class 2606 OID 20716) -- Name: property_types property_types_pkey; Type: CONSTRAINT; Schema: properties; Owner: tsindt -- ALTER TABLE ONLY properties.property_types ADD CONSTRAINT property_types_pkey PRIMARY KEY (id); -- -- TOC entry 3320 (class 2606 OID 20752) -- Name: values values_pkey; Type: CONSTRAINT; Schema: properties; Owner: tsindt -- ALTER TABLE ONLY properties."values" ADD CONSTRAINT values_pkey PRIMARY KEY (id); -- -- TOC entry 3322 (class 2606 OID 20734) -- Name: properties parent_property_type_id_fk; Type: FK CONSTRAINT; Schema: properties; Owner: tsindt -- ALTER TABLE ONLY properties.properties ADD CONSTRAINT parent_property_type_id_fk FOREIGN KEY (property_type_id) REFERENCES properties.property_types(id); -- -- TOC entry 3490 (class 0 OID 0) -- Dependencies: 3322 -- Name: CONSTRAINT parent_property_type_id_fk ON properties; Type: COMMENT; Schema: properties; Owner: tsindt -- COMMENT ON CONSTRAINT parent_property_type_id_fk ON properties.properties IS 'Verweißt auf den Property Type dieses Properties'; -- -- TOC entry 3323 (class 2606 OID 20753) -- Name: values properties_id_fk; Type: FK CONSTRAINT; Schema: properties; Owner: tsindt -- ALTER TABLE ONLY properties."values" ADD CONSTRAINT properties_id_fk FOREIGN KEY (properties_id) REFERENCES properties.properties(id); -- -- TOC entry 3321 (class 2606 OID 20717) -- Name: property_types property_types_groups_id_fk; Type: FK CONSTRAINT; Schema: properties; Owner: tsindt -- ALTER TABLE ONLY properties.property_types ADD CONSTRAINT property_types_groups_id_fk FOREIGN KEY (property_types_groups_id) REFERENCES properties.property_types_groups(id); -- -- TOC entry 3491 (class 0 OID 0) -- Dependencies: 3321 -- Name: CONSTRAINT property_types_groups_id_fk ON property_types; Type: COMMENT; Schema: properties; Owner: tsindt -- COMMENT ON CONSTRAINT property_types_groups_id_fk ON properties.property_types IS 'Referenz auf die Property Type Gruppe, zu der dieser Property Type gehört.'; -- Completed on 2026-09-14 14:31:11 -- -- PostgreSQL database dump complete -- \unrestrict QLwsCbodiNlV3JQJRfmAVxaxLqILLV0Fv9uJeVlzDiu4p6FKUIYquZWE1PbaK7o