2299 lines
64 KiB
SQL
2299 lines
64 KiB
SQL
--
|
|
-- PostgreSQL database dump
|
|
--
|
|
|
|
\restrict fWARHY17kdKiBZPlXv9peFMuylGZ2j0VR3Oftwz9vxnvvyTa6i2DwdPqPV45Odv
|
|
|
|
-- Dumped from database version 18.4 (Debian 18.4-1.pgdg13+1)
|
|
-- Dumped by pg_dump version 18.4
|
|
|
|
-- Started on 2026-07-24 15:36:52
|
|
|
|
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;
|
|
|
|
SET default_tablespace = '';
|
|
|
|
SET default_table_access_method = heap;
|
|
|
|
--
|
|
-- TOC entry 255 (class 1259 OID 16934)
|
|
-- Name: calculations; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.calculations (
|
|
id integer NOT NULL,
|
|
label character varying,
|
|
description character varying,
|
|
formula character varying NOT NULL
|
|
);
|
|
|
|
|
|
ALTER TABLE public.calculations OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3729 (class 0 OID 0)
|
|
-- Dependencies: 255
|
|
-- Name: TABLE calculations; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON TABLE public.calculations IS 'Kalkulationsdefinitionen für Kalkulationsspalten';
|
|
|
|
|
|
--
|
|
-- TOC entry 3730 (class 0 OID 0)
|
|
-- Dependencies: 255
|
|
-- Name: COLUMN calculations.label; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public.calculations.label IS 'Bezeichner der Kalkulationsdefinition';
|
|
|
|
|
|
--
|
|
-- TOC entry 3731 (class 0 OID 0)
|
|
-- Dependencies: 255
|
|
-- Name: COLUMN calculations.description; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public.calculations.description IS 'Beschreibung der Kalkulationsvorschrift';
|
|
|
|
|
|
--
|
|
-- TOC entry 3732 (class 0 OID 0)
|
|
-- Dependencies: 255
|
|
-- Name: COLUMN calculations.formula; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public.calculations.formula IS 'Formel der kalkulation:
|
|
{field_id}+-*/[row_id]
|
|
Die Werte aus der jeweiligen Spalte werden genommen.';
|
|
|
|
|
|
--
|
|
-- TOC entry 254 (class 1259 OID 16933)
|
|
-- Name: calculations_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE SEQUENCE public.calculations_id_seq
|
|
AS integer
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
ALTER SEQUENCE public.calculations_id_seq OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3733 (class 0 OID 0)
|
|
-- Dependencies: 254
|
|
-- Name: calculations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER SEQUENCE public.calculations_id_seq OWNED BY public.calculations.id;
|
|
|
|
|
|
--
|
|
-- TOC entry 251 (class 1259 OID 16901)
|
|
-- Name: condition_applications; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.condition_applications (
|
|
id integer CONSTRAINT condition_application_id_not_null NOT NULL,
|
|
label character varying,
|
|
description character varying
|
|
);
|
|
|
|
|
|
ALTER TABLE public.condition_applications OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3734 (class 0 OID 0)
|
|
-- Dependencies: 251
|
|
-- Name: TABLE condition_applications; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON TABLE public.condition_applications IS 'Z.B. Preisliste Deutschland';
|
|
|
|
|
|
--
|
|
-- TOC entry 250 (class 1259 OID 16900)
|
|
-- Name: condition_application_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE SEQUENCE public.condition_application_id_seq
|
|
AS integer
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
ALTER SEQUENCE public.condition_application_id_seq OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3735 (class 0 OID 0)
|
|
-- Dependencies: 250
|
|
-- Name: condition_application_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER SEQUENCE public.condition_application_id_seq OWNED BY public.condition_applications.id;
|
|
|
|
|
|
--
|
|
-- TOC entry 253 (class 1259 OID 16917)
|
|
-- Name: conditions; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.conditions (
|
|
id integer NOT NULL,
|
|
label character varying,
|
|
description character varying,
|
|
application_id integer,
|
|
key_value character varying NOT NULL,
|
|
value real NOT NULL
|
|
);
|
|
|
|
|
|
ALTER TABLE public.conditions OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3736 (class 0 OID 0)
|
|
-- Dependencies: 253
|
|
-- Name: COLUMN conditions.key_value; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public.conditions.key_value IS 'String als semikolon separierte Liste von Schlüssel-ids, definiert über die Tabele condition_keys mit der entsprechenden condition_id';
|
|
|
|
|
|
--
|
|
-- TOC entry 3737 (class 0 OID 0)
|
|
-- Dependencies: 253
|
|
-- Name: COLUMN conditions.value; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public.conditions.value IS 'Wert der Kondition';
|
|
|
|
|
|
--
|
|
-- TOC entry 252 (class 1259 OID 16916)
|
|
-- Name: conditions_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE SEQUENCE public.conditions_id_seq
|
|
AS integer
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
ALTER SEQUENCE public.conditions_id_seq OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3738 (class 0 OID 0)
|
|
-- Dependencies: 252
|
|
-- Name: conditions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER SEQUENCE public.conditions_id_seq OWNED BY public.conditions.id;
|
|
|
|
|
|
--
|
|
-- TOC entry 220 (class 1259 OID 16502)
|
|
-- Name: languages; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.languages (
|
|
id integer NOT NULL,
|
|
locale character varying,
|
|
language character varying
|
|
);
|
|
|
|
|
|
ALTER TABLE public.languages OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3739 (class 0 OID 0)
|
|
-- Dependencies: 220
|
|
-- Name: TABLE languages; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON TABLE public.languages IS 'Sprachtabelle
|
|
Liste der zur Verfügung gestellten Sprachen.';
|
|
|
|
|
|
--
|
|
-- TOC entry 3740 (class 0 OID 0)
|
|
-- Dependencies: 220
|
|
-- Name: COLUMN languages.locale; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public.languages.locale IS 'Sprachlokalisierung der ausgewählten Sprache, z.B. "de-DE" für Deutsch';
|
|
|
|
|
|
--
|
|
-- TOC entry 3741 (class 0 OID 0)
|
|
-- Dependencies: 220
|
|
-- Name: COLUMN languages.language; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public.languages.language IS 'Name/Bezeichnung der Sprache';
|
|
|
|
|
|
--
|
|
-- TOC entry 219 (class 1259 OID 16501)
|
|
-- Name: languages_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE SEQUENCE public.languages_id_seq
|
|
AS integer
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
ALTER SEQUENCE public.languages_id_seq OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3742 (class 0 OID 0)
|
|
-- Dependencies: 219
|
|
-- Name: languages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER SEQUENCE public.languages_id_seq OWNED BY public.languages.id;
|
|
|
|
|
|
--
|
|
-- TOC entry 248 (class 1259 OID 16878)
|
|
-- Name: meta_condition_fields; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.meta_condition_fields (
|
|
id integer CONSTRAINT meta_fieldcatalog_id_not_null NOT NULL,
|
|
table_name character varying CONSTRAINT meta_fieldcatalog_table_name_not_null NOT NULL,
|
|
table_field character varying CONSTRAINT meta_fieldcatalog_table_field_not_null NOT NULL,
|
|
label character varying,
|
|
description character varying
|
|
);
|
|
|
|
|
|
ALTER TABLE public.meta_condition_fields OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3743 (class 0 OID 0)
|
|
-- Dependencies: 248
|
|
-- Name: TABLE meta_condition_fields; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON TABLE public.meta_condition_fields IS 'Felder für die Konditionsbeschreibung';
|
|
|
|
|
|
--
|
|
-- TOC entry 249 (class 1259 OID 16890)
|
|
-- Name: meta_condition_keys; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.meta_condition_keys (
|
|
field_id integer NOT NULL,
|
|
condition_position integer,
|
|
label character varying,
|
|
description character varying,
|
|
condition_key_id integer NOT NULL
|
|
);
|
|
|
|
|
|
ALTER TABLE public.meta_condition_keys OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3744 (class 0 OID 0)
|
|
-- Dependencies: 249
|
|
-- Name: TABLE meta_condition_keys; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON TABLE public.meta_condition_keys IS 'Keydefinition für Konditionen';
|
|
|
|
|
|
--
|
|
-- TOC entry 247 (class 1259 OID 16877)
|
|
-- Name: meta_fieldcatalog_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE SEQUENCE public.meta_fieldcatalog_id_seq
|
|
AS integer
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
ALTER SEQUENCE public.meta_fieldcatalog_id_seq OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3745 (class 0 OID 0)
|
|
-- Dependencies: 247
|
|
-- Name: meta_fieldcatalog_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER SEQUENCE public.meta_fieldcatalog_id_seq OWNED BY public.meta_condition_fields.id;
|
|
|
|
|
|
--
|
|
-- TOC entry 241 (class 1259 OID 16768)
|
|
-- Name: product_type_group_products_types_list; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.product_type_group_products_types_list (
|
|
product_type_group_id integer CONSTRAINT product_type_group_products_type_product_type_group_id_not_null NOT NULL,
|
|
product_type_id integer NOT NULL,
|
|
is_mandatory boolean DEFAULT false NOT NULL
|
|
);
|
|
|
|
|
|
ALTER TABLE public.product_type_group_products_types_list OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 240 (class 1259 OID 16759)
|
|
-- Name: product_type_groups; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.product_type_groups (
|
|
id integer NOT NULL,
|
|
label character varying,
|
|
parent_group_id integer,
|
|
is_visible boolean DEFAULT true NOT NULL
|
|
);
|
|
|
|
|
|
ALTER TABLE public.product_type_groups OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3746 (class 0 OID 0)
|
|
-- Dependencies: 240
|
|
-- Name: TABLE product_type_groups; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON TABLE public.product_type_groups IS 'Produktgruppe. Sie enthält die Property_types für die jeweiligen Produkte als Kopiervorlage';
|
|
|
|
|
|
--
|
|
-- TOC entry 239 (class 1259 OID 16758)
|
|
-- Name: product_type_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE SEQUENCE public.product_type_groups_id_seq
|
|
AS integer
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
ALTER SEQUENCE public.product_type_groups_id_seq OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3747 (class 0 OID 0)
|
|
-- Dependencies: 239
|
|
-- Name: product_type_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER SEQUENCE public.product_type_groups_id_seq OWNED BY public.product_type_groups.id;
|
|
|
|
|
|
--
|
|
-- TOC entry 237 (class 1259 OID 16721)
|
|
-- Name: product_types; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.product_types (
|
|
id integer CONSTRAINT product_type_id_not_null NOT NULL,
|
|
product_identifierer character varying CONSTRAINT product_type_product_identifierer_not_null NOT NULL,
|
|
label character varying
|
|
);
|
|
|
|
|
|
ALTER TABLE public.product_types OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3748 (class 0 OID 0)
|
|
-- Dependencies: 237
|
|
-- Name: TABLE product_types; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON TABLE public.product_types IS 'Ein Produkttyp besteht aus Propertytypen, ggf. Strukturknoten, die Unterprodukttypen enthalten können und/oder Auswahlknoten, die ebenfalls Unterprodukttypen enthalten können';
|
|
|
|
|
|
--
|
|
-- TOC entry 236 (class 1259 OID 16720)
|
|
-- Name: product_type_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE SEQUENCE public.product_type_id_seq
|
|
AS integer
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
ALTER SEQUENCE public.product_type_id_seq OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3749 (class 0 OID 0)
|
|
-- Dependencies: 236
|
|
-- Name: product_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER SEQUENCE public.product_type_id_seq OWNED BY public.product_types.id;
|
|
|
|
|
|
--
|
|
-- TOC entry 259 (class 1259 OID 17008)
|
|
-- Name: product_type_is_part_of; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.product_type_is_part_of (
|
|
product_type_id integer NOT NULL,
|
|
is_part_of_product_tyoe_id integer NOT NULL,
|
|
number integer DEFAULT 1 NOT NULL,
|
|
min_number integer DEFAULT 0 NOT NULL,
|
|
max_number integer DEFAULT 1 NOT NULL
|
|
);
|
|
|
|
|
|
ALTER TABLE public.product_type_is_part_of OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3750 (class 0 OID 0)
|
|
-- Dependencies: 259
|
|
-- Name: TABLE product_type_is_part_of; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON TABLE public.product_type_is_part_of IS 'Hat Teile Beziehung';
|
|
|
|
|
|
--
|
|
-- TOC entry 3751 (class 0 OID 0)
|
|
-- Dependencies: 259
|
|
-- Name: COLUMN product_type_is_part_of.product_type_id; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public.product_type_is_part_of.product_type_id IS 'Komponenten-ID';
|
|
|
|
|
|
--
|
|
-- TOC entry 245 (class 1259 OID 16823)
|
|
-- Name: product_type_structure_node_translations; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.product_type_structure_node_translations (
|
|
structure_node_id integer CONSTRAINT product_type_structure_node_translat_structure_node_id_not_null NOT NULL,
|
|
language_id integer NOT NULL,
|
|
translation character varying
|
|
);
|
|
|
|
|
|
ALTER TABLE public.product_type_structure_node_translations OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 243 (class 1259 OID 16789)
|
|
-- Name: product_type_structure_nodes; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.product_type_structure_nodes (
|
|
id integer NOT NULL,
|
|
label character varying,
|
|
is_one_off_structure boolean DEFAULT false NOT NULL,
|
|
product_type_id integer NOT NULL
|
|
);
|
|
|
|
|
|
ALTER TABLE public.product_type_structure_nodes OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3752 (class 0 OID 0)
|
|
-- Dependencies: 243
|
|
-- Name: TABLE product_type_structure_nodes; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON TABLE public.product_type_structure_nodes IS 'Strukturknoten für unterprodukte';
|
|
|
|
|
|
--
|
|
-- TOC entry 3753 (class 0 OID 0)
|
|
-- Dependencies: 243
|
|
-- Name: COLUMN product_type_structure_nodes.product_type_id; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public.product_type_structure_nodes.product_type_id IS 'Zu welchem Produkt gehört diese Struktur';
|
|
|
|
|
|
--
|
|
-- TOC entry 242 (class 1259 OID 16788)
|
|
-- Name: product_type_structure_nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE SEQUENCE public.product_type_structure_nodes_id_seq
|
|
AS integer
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
ALTER SEQUENCE public.product_type_structure_nodes_id_seq OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3754 (class 0 OID 0)
|
|
-- Dependencies: 242
|
|
-- Name: product_type_structure_nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER SEQUENCE public.product_type_structure_nodes_id_seq OWNED BY public.product_type_structure_nodes.id;
|
|
|
|
|
|
--
|
|
-- TOC entry 238 (class 1259 OID 16741)
|
|
-- Name: product_type_translations; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.product_type_translations (
|
|
product_type_id integer CONSTRAINT product_type_translations_property_type_id_not_null NOT NULL,
|
|
language_id integer NOT NULL,
|
|
translation character varying
|
|
);
|
|
|
|
|
|
ALTER TABLE public.product_type_translations OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 260 (class 1259 OID 17030)
|
|
-- Name: product_type_values_list; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.product_type_values_list (
|
|
product_type_id integer NOT NULL,
|
|
property_type_id integer NOT NULL,
|
|
value_id integer NOT NULL
|
|
);
|
|
|
|
|
|
ALTER TABLE public.product_type_values_list OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 246 (class 1259 OID 16845)
|
|
-- Name: product_types_group_translations; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.product_types_group_translations (
|
|
product_types_group_id integer CONSTRAINT product_types_group_translation_product_types_group_id_not_null NOT NULL,
|
|
language_id integer NOT NULL,
|
|
translation character varying
|
|
);
|
|
|
|
|
|
ALTER TABLE public.product_types_group_translations OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 233 (class 1259 OID 16646)
|
|
-- Name: property_type_groups; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.property_type_groups (
|
|
id integer CONSTRAINT property_type_group_id_not_null NOT NULL,
|
|
label character varying,
|
|
description character varying,
|
|
parent_proper_type_group_id integer
|
|
);
|
|
|
|
|
|
ALTER TABLE public.property_type_groups OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 232 (class 1259 OID 16645)
|
|
-- Name: property_type_group_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE SEQUENCE public.property_type_group_id_seq
|
|
AS integer
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
ALTER SEQUENCE public.property_type_group_id_seq OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3755 (class 0 OID 0)
|
|
-- Dependencies: 232
|
|
-- Name: property_type_group_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER SEQUENCE public.property_type_group_id_seq OWNED BY public.property_type_groups.id;
|
|
|
|
|
|
--
|
|
-- TOC entry 235 (class 1259 OID 16703)
|
|
-- Name: property_type_group_list; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.property_type_group_list (
|
|
property_type_group_id integer NOT NULL,
|
|
property_type_id integer NOT NULL
|
|
);
|
|
|
|
|
|
ALTER TABLE public.property_type_group_list OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3756 (class 0 OID 0)
|
|
-- Dependencies: 235
|
|
-- Name: TABLE property_type_group_list; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON TABLE public.property_type_group_list IS 'Properties einer Produktgruppe';
|
|
|
|
|
|
--
|
|
-- TOC entry 234 (class 1259 OID 16680)
|
|
-- Name: property_type_group_translations; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.property_type_group_translations (
|
|
property_type_group_id integer CONSTRAINT property_type_group_translation_property_type_group_id_not_null NOT NULL,
|
|
language_id integer NOT NULL,
|
|
translation character varying
|
|
);
|
|
|
|
|
|
ALTER TABLE public.property_type_group_translations OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 228 (class 1259 OID 16579)
|
|
-- Name: property_type_translations; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.property_type_translations (
|
|
property_type_id integer CONSTRAINT property_type_translations_value_id_not_null NOT NULL,
|
|
language_id integer NOT NULL,
|
|
translation character varying
|
|
);
|
|
|
|
|
|
ALTER TABLE public.property_type_translations OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 230 (class 1259 OID 16596)
|
|
-- Name: property_types; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.property_types (
|
|
id integer NOT NULL,
|
|
label character varying,
|
|
value_type_id integer
|
|
);
|
|
|
|
|
|
ALTER TABLE public.property_types OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3757 (class 0 OID 0)
|
|
-- Dependencies: 230
|
|
-- Name: TABLE property_types; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON TABLE public.property_types IS 'Vorlage für Merkmale eines Produktes';
|
|
|
|
|
|
--
|
|
-- TOC entry 229 (class 1259 OID 16595)
|
|
-- Name: property_types_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE SEQUENCE public.property_types_id_seq
|
|
AS integer
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
ALTER SEQUENCE public.property_types_id_seq OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3758 (class 0 OID 0)
|
|
-- Dependencies: 229
|
|
-- Name: property_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER SEQUENCE public.property_types_id_seq OWNED BY public.property_types.id;
|
|
|
|
|
|
--
|
|
-- TOC entry 257 (class 1259 OID 16945)
|
|
-- Name: row_descriptions; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.row_descriptions (
|
|
id integer NOT NULL,
|
|
label character varying,
|
|
description character varying,
|
|
"position" integer NOT NULL,
|
|
is_visible boolean DEFAULT true NOT NULL,
|
|
field_id integer,
|
|
calculation_id integer,
|
|
is_editable boolean DEFAULT false NOT NULL,
|
|
condition_id integer,
|
|
row_type integer
|
|
);
|
|
|
|
|
|
ALTER TABLE public.row_descriptions OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3759 (class 0 OID 0)
|
|
-- Dependencies: 257
|
|
-- Name: COLUMN row_descriptions.row_type; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public.row_descriptions.row_type IS '1: field
|
|
2: calculation
|
|
3: condition';
|
|
|
|
|
|
--
|
|
-- TOC entry 256 (class 1259 OID 16944)
|
|
-- Name: row_descriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE SEQUENCE public.row_descriptions_id_seq
|
|
AS integer
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
ALTER SEQUENCE public.row_descriptions_id_seq OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3760 (class 0 OID 0)
|
|
-- Dependencies: 256
|
|
-- Name: row_descriptions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER SEQUENCE public.row_descriptions_id_seq OWNED BY public.row_descriptions.id;
|
|
|
|
|
|
--
|
|
-- TOC entry 258 (class 1259 OID 16976)
|
|
-- Name: row_translations; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.row_translations (
|
|
row_id integer NOT NULL,
|
|
language_id integer NOT NULL,
|
|
translation character varying
|
|
);
|
|
|
|
|
|
ALTER TABLE public.row_translations OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 262 (class 1259 OID 17054)
|
|
-- Name: rules_list_product_type_set_amount_of; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.rules_list_product_type_set_amount_of (
|
|
id integer NOT NULL,
|
|
product_type_id integer NOT NULL,
|
|
component_x_product_type_id integer CONSTRAINT rules_list_product_type_set_component_x_product_type_i_not_null NOT NULL,
|
|
component_y_product_type_id integer CONSTRAINT rules_list_product_type_set_component_y_product_type_i_not_null NOT NULL,
|
|
component_x_amount integer DEFAULT 1 CONSTRAINT rules_list_product_type_set_amount__component_x_amount_not_null NOT NULL,
|
|
factor integer DEFAULT 1 NOT NULL,
|
|
description character varying
|
|
);
|
|
|
|
|
|
ALTER TABLE public.rules_list_product_type_set_amount_of OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3761 (class 0 OID 0)
|
|
-- Dependencies: 262
|
|
-- Name: TABLE rules_list_product_type_set_amount_of; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON TABLE public.rules_list_product_type_set_amount_of IS 'In Solution product_type:
|
|
Ist die Komponente x mehr als a * vertreten (in dr Regel 1)
|
|
dann setzte amount of Komponente y auf a * factor (in der Regel auch 1)';
|
|
|
|
|
|
--
|
|
-- TOC entry 3762 (class 0 OID 0)
|
|
-- Dependencies: 262
|
|
-- Name: COLUMN rules_list_product_type_set_amount_of.product_type_id; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public.rules_list_product_type_set_amount_of.product_type_id IS 'Produkt für das die Regel gelten soll';
|
|
|
|
|
|
--
|
|
-- TOC entry 261 (class 1259 OID 17053)
|
|
-- Name: rules_list_product_type_set_amount_of_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE SEQUENCE public.rules_list_product_type_set_amount_of_id_seq
|
|
AS integer
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
ALTER SEQUENCE public.rules_list_product_type_set_amount_of_id_seq OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3763 (class 0 OID 0)
|
|
-- Dependencies: 261
|
|
-- Name: rules_list_product_type_set_amount_of_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER SEQUENCE public.rules_list_product_type_set_amount_of_id_seq OWNED BY public.rules_list_product_type_set_amount_of.id;
|
|
|
|
|
|
--
|
|
-- TOC entry 244 (class 1259 OID 16808)
|
|
-- Name: structure_node_product_types_list; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.structure_node_product_types_list (
|
|
structure_node_id integer NOT NULL,
|
|
product_type_id integer NOT NULL
|
|
);
|
|
|
|
|
|
ALTER TABLE public.structure_node_product_types_list OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3764 (class 0 OID 0)
|
|
-- Dependencies: 244
|
|
-- Name: TABLE structure_node_product_types_list; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON TABLE public.structure_node_product_types_list IS 'Produkte in einem Strukturknoten';
|
|
|
|
|
|
--
|
|
-- TOC entry 3765 (class 0 OID 0)
|
|
-- Dependencies: 244
|
|
-- Name: COLUMN structure_node_product_types_list.product_type_id; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public.structure_node_product_types_list.product_type_id IS 'Produkte in der Struktur';
|
|
|
|
|
|
--
|
|
-- TOC entry 223 (class 1259 OID 16524)
|
|
-- Name: units; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.units (
|
|
id integer NOT NULL,
|
|
label character varying,
|
|
description character varying,
|
|
unit character varying,
|
|
base_unit_id integer,
|
|
base_unit_factor real
|
|
);
|
|
|
|
|
|
ALTER TABLE public.units OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3766 (class 0 OID 0)
|
|
-- Dependencies: 223
|
|
-- Name: COLUMN units.base_unit_id; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public.units.base_unit_id IS 'Wenn es eine Ableitung von einer Base-Unit ist, so kann diese hier verlinkt werden und dann wird der base_unit_factor berücksichtigt.';
|
|
|
|
|
|
--
|
|
-- TOC entry 3767 (class 0 OID 0)
|
|
-- Dependencies: 223
|
|
-- Name: COLUMN units.base_unit_factor; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public.units.base_unit_factor IS 'Von der Bas eaus betrachtet der Faktor, der für die Umrechnung benötigt wird.';
|
|
|
|
|
|
--
|
|
-- TOC entry 222 (class 1259 OID 16523)
|
|
-- Name: units_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE SEQUENCE public.units_id_seq
|
|
AS integer
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
ALTER SEQUENCE public.units_id_seq OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3768 (class 0 OID 0)
|
|
-- Dependencies: 222
|
|
-- Name: units_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER SEQUENCE public.units_id_seq OWNED BY public.units.id;
|
|
|
|
|
|
--
|
|
-- TOC entry 231 (class 1259 OID 16610)
|
|
-- Name: value_lists; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.value_lists (
|
|
property_type_id integer,
|
|
value_id integer
|
|
);
|
|
|
|
|
|
ALTER TABLE public.value_lists OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3769 (class 0 OID 0)
|
|
-- Dependencies: 231
|
|
-- Name: TABLE value_lists; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON TABLE public.value_lists IS 'List of possilbe values';
|
|
|
|
|
|
--
|
|
-- TOC entry 221 (class 1259 OID 16512)
|
|
-- Name: value_translations; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.value_translations (
|
|
value_id integer CONSTRAINT value_translation_value_id_not_null NOT NULL,
|
|
language_id integer CONSTRAINT value_translation_language_id_not_null NOT NULL,
|
|
translation character varying
|
|
);
|
|
|
|
|
|
ALTER TABLE public.value_translations OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 227 (class 1259 OID 16558)
|
|
-- Name: value_types; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public.value_types (
|
|
label character varying,
|
|
id integer CONSTRAINT values_type_id_not_null NOT NULL
|
|
);
|
|
|
|
|
|
ALTER TABLE public.value_types OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 225 (class 1259 OID 16539)
|
|
-- Name: values; Type: TABLE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE TABLE public."values" (
|
|
id integer NOT NULL,
|
|
label character varying,
|
|
int_min_value integer,
|
|
int_max_value integer,
|
|
float_min_value real,
|
|
float_max_value real,
|
|
bool_value boolean,
|
|
value_type_id integer NOT NULL,
|
|
value_translation_id integer,
|
|
is_range boolean DEFAULT false,
|
|
unit_id integer,
|
|
is_terminal boolean
|
|
);
|
|
|
|
|
|
ALTER TABLE public."values" OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3770 (class 0 OID 0)
|
|
-- Dependencies: 225
|
|
-- Name: COLUMN "values".label; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public."values".label IS 'interne Bezeichnung';
|
|
|
|
|
|
--
|
|
-- TOC entry 3771 (class 0 OID 0)
|
|
-- Dependencies: 225
|
|
-- Name: COLUMN "values".int_min_value; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public."values".int_min_value IS 'Kleinster oder einziger int_Wert';
|
|
|
|
|
|
--
|
|
-- TOC entry 3772 (class 0 OID 0)
|
|
-- Dependencies: 225
|
|
-- Name: COLUMN "values".int_max_value; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public."values".int_max_value IS 'größter Wert, wenn Range';
|
|
|
|
|
|
--
|
|
-- TOC entry 3773 (class 0 OID 0)
|
|
-- Dependencies: 225
|
|
-- Name: COLUMN "values".value_translation_id; Type: COMMENT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COMMENT ON COLUMN public."values".value_translation_id IS 'muss nicht gesetzt werden, z.B. bei Zahlen';
|
|
|
|
|
|
--
|
|
-- TOC entry 224 (class 1259 OID 16538)
|
|
-- Name: values_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE SEQUENCE public.values_id_seq
|
|
AS integer
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
ALTER SEQUENCE public.values_id_seq OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3774 (class 0 OID 0)
|
|
-- Dependencies: 224
|
|
-- Name: values_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER SEQUENCE public.values_id_seq OWNED BY public."values".id;
|
|
|
|
|
|
--
|
|
-- TOC entry 226 (class 1259 OID 16557)
|
|
-- Name: values_type_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
CREATE SEQUENCE public.values_type_id_seq
|
|
AS integer
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
ALTER SEQUENCE public.values_type_id_seq OWNER TO tsindt;
|
|
|
|
--
|
|
-- TOC entry 3775 (class 0 OID 0)
|
|
-- Dependencies: 226
|
|
-- Name: values_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER SEQUENCE public.values_type_id_seq OWNED BY public.value_types.id;
|
|
|
|
|
|
--
|
|
-- TOC entry 3431 (class 2604 OID 16937)
|
|
-- Name: calculations id; Type: DEFAULT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.calculations ALTER COLUMN id SET DEFAULT nextval('public.calculations_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- TOC entry 3429 (class 2604 OID 16904)
|
|
-- Name: condition_applications id; Type: DEFAULT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.condition_applications ALTER COLUMN id SET DEFAULT nextval('public.condition_application_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- TOC entry 3430 (class 2604 OID 16920)
|
|
-- Name: conditions id; Type: DEFAULT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.conditions ALTER COLUMN id SET DEFAULT nextval('public.conditions_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- TOC entry 3415 (class 2604 OID 16505)
|
|
-- Name: languages id; Type: DEFAULT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.languages ALTER COLUMN id SET DEFAULT nextval('public.languages_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- TOC entry 3428 (class 2604 OID 16881)
|
|
-- Name: meta_condition_fields id; Type: DEFAULT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.meta_condition_fields ALTER COLUMN id SET DEFAULT nextval('public.meta_fieldcatalog_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- TOC entry 3423 (class 2604 OID 16762)
|
|
-- Name: product_type_groups id; Type: DEFAULT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_groups ALTER COLUMN id SET DEFAULT nextval('public.product_type_groups_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- TOC entry 3426 (class 2604 OID 16792)
|
|
-- Name: product_type_structure_nodes id; Type: DEFAULT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_structure_nodes ALTER COLUMN id SET DEFAULT nextval('public.product_type_structure_nodes_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- TOC entry 3422 (class 2604 OID 16724)
|
|
-- Name: product_types id; Type: DEFAULT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_types ALTER COLUMN id SET DEFAULT nextval('public.product_type_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- TOC entry 3421 (class 2604 OID 16649)
|
|
-- Name: property_type_groups id; Type: DEFAULT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.property_type_groups ALTER COLUMN id SET DEFAULT nextval('public.property_type_group_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- TOC entry 3420 (class 2604 OID 16599)
|
|
-- Name: property_types id; Type: DEFAULT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.property_types ALTER COLUMN id SET DEFAULT nextval('public.property_types_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- TOC entry 3432 (class 2604 OID 16948)
|
|
-- Name: row_descriptions id; Type: DEFAULT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.row_descriptions ALTER COLUMN id SET DEFAULT nextval('public.row_descriptions_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- TOC entry 3438 (class 2604 OID 17057)
|
|
-- Name: rules_list_product_type_set_amount_of id; Type: DEFAULT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.rules_list_product_type_set_amount_of ALTER COLUMN id SET DEFAULT nextval('public.rules_list_product_type_set_amount_of_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- TOC entry 3416 (class 2604 OID 16527)
|
|
-- Name: units id; Type: DEFAULT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.units ALTER COLUMN id SET DEFAULT nextval('public.units_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- TOC entry 3419 (class 2604 OID 16561)
|
|
-- Name: value_types id; Type: DEFAULT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.value_types ALTER COLUMN id SET DEFAULT nextval('public.values_type_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- TOC entry 3417 (class 2604 OID 16542)
|
|
-- Name: values id; Type: DEFAULT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public."values" ALTER COLUMN id SET DEFAULT nextval('public.values_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- TOC entry 3716 (class 0 OID 16934)
|
|
-- Dependencies: 255
|
|
-- Data for Name: calculations; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.calculations (id, label, description, formula) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3712 (class 0 OID 16901)
|
|
-- Dependencies: 251
|
|
-- Data for Name: condition_applications; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.condition_applications (id, label, description) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3714 (class 0 OID 16917)
|
|
-- Dependencies: 253
|
|
-- Data for Name: conditions; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.conditions (id, label, description, application_id, key_value, value) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3681 (class 0 OID 16502)
|
|
-- Dependencies: 220
|
|
-- Data for Name: languages; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.languages (id, locale, language) FROM stdin;
|
|
1 de_DE german
|
|
2 en_EN english (EN)
|
|
3 en_US english (US)
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3709 (class 0 OID 16878)
|
|
-- Dependencies: 248
|
|
-- Data for Name: meta_condition_fields; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.meta_condition_fields (id, table_name, table_field, label, description) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3710 (class 0 OID 16890)
|
|
-- Dependencies: 249
|
|
-- Data for Name: meta_condition_keys; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.meta_condition_keys (field_id, condition_position, label, description, condition_key_id) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3702 (class 0 OID 16768)
|
|
-- Dependencies: 241
|
|
-- Data for Name: product_type_group_products_types_list; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.product_type_group_products_types_list (product_type_group_id, product_type_id, is_mandatory) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3701 (class 0 OID 16759)
|
|
-- Dependencies: 240
|
|
-- Data for Name: product_type_groups; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.product_type_groups (id, label, parent_group_id, is_visible) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3720 (class 0 OID 17008)
|
|
-- Dependencies: 259
|
|
-- Data for Name: product_type_is_part_of; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.product_type_is_part_of (product_type_id, is_part_of_product_tyoe_id, number, min_number, max_number) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3706 (class 0 OID 16823)
|
|
-- Dependencies: 245
|
|
-- Data for Name: product_type_structure_node_translations; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.product_type_structure_node_translations (structure_node_id, language_id, translation) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3704 (class 0 OID 16789)
|
|
-- Dependencies: 243
|
|
-- Data for Name: product_type_structure_nodes; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.product_type_structure_nodes (id, label, is_one_off_structure, product_type_id) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3699 (class 0 OID 16741)
|
|
-- Dependencies: 238
|
|
-- Data for Name: product_type_translations; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.product_type_translations (product_type_id, language_id, translation) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3721 (class 0 OID 17030)
|
|
-- Dependencies: 260
|
|
-- Data for Name: product_type_values_list; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.product_type_values_list (product_type_id, property_type_id, value_id) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3698 (class 0 OID 16721)
|
|
-- Dependencies: 237
|
|
-- Data for Name: product_types; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.product_types (id, product_identifierer, label) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3707 (class 0 OID 16845)
|
|
-- Dependencies: 246
|
|
-- Data for Name: product_types_group_translations; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.product_types_group_translations (product_types_group_id, language_id, translation) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3696 (class 0 OID 16703)
|
|
-- Dependencies: 235
|
|
-- Data for Name: property_type_group_list; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.property_type_group_list (property_type_group_id, property_type_id) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3695 (class 0 OID 16680)
|
|
-- Dependencies: 234
|
|
-- Data for Name: property_type_group_translations; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.property_type_group_translations (property_type_group_id, language_id, translation) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3694 (class 0 OID 16646)
|
|
-- Dependencies: 233
|
|
-- Data for Name: property_type_groups; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.property_type_groups (id, label, description, parent_proper_type_group_id) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3689 (class 0 OID 16579)
|
|
-- Dependencies: 228
|
|
-- Data for Name: property_type_translations; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.property_type_translations (property_type_id, language_id, translation) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3691 (class 0 OID 16596)
|
|
-- Dependencies: 230
|
|
-- Data for Name: property_types; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.property_types (id, label, value_type_id) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3718 (class 0 OID 16945)
|
|
-- Dependencies: 257
|
|
-- Data for Name: row_descriptions; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.row_descriptions (id, label, description, "position", is_visible, field_id, calculation_id, is_editable, condition_id, row_type) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3719 (class 0 OID 16976)
|
|
-- Dependencies: 258
|
|
-- Data for Name: row_translations; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.row_translations (row_id, language_id, translation) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3723 (class 0 OID 17054)
|
|
-- Dependencies: 262
|
|
-- Data for Name: rules_list_product_type_set_amount_of; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.rules_list_product_type_set_amount_of (id, product_type_id, component_x_product_type_id, component_y_product_type_id, component_x_amount, factor, description) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3705 (class 0 OID 16808)
|
|
-- Dependencies: 244
|
|
-- Data for Name: structure_node_product_types_list; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.structure_node_product_types_list (structure_node_id, product_type_id) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3684 (class 0 OID 16524)
|
|
-- Dependencies: 223
|
|
-- Data for Name: units; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.units (id, label, description, unit, base_unit_id, base_unit_factor) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3692 (class 0 OID 16610)
|
|
-- Dependencies: 231
|
|
-- Data for Name: value_lists; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.value_lists (property_type_id, value_id) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3682 (class 0 OID 16512)
|
|
-- Dependencies: 221
|
|
-- Data for Name: value_translations; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.value_translations (value_id, language_id, translation) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3688 (class 0 OID 16558)
|
|
-- Dependencies: 227
|
|
-- Data for Name: value_types; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public.value_types (label, id) FROM stdin;
|
|
int 1
|
|
float 2
|
|
bool 3
|
|
string 4
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3686 (class 0 OID 16539)
|
|
-- Dependencies: 225
|
|
-- Data for Name: values; Type: TABLE DATA; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
COPY public."values" (id, label, int_min_value, int_max_value, float_min_value, float_max_value, bool_value, value_type_id, value_translation_id, is_range, unit_id, is_terminal) FROM stdin;
|
|
\.
|
|
|
|
|
|
--
|
|
-- TOC entry 3776 (class 0 OID 0)
|
|
-- Dependencies: 254
|
|
-- Name: calculations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
SELECT pg_catalog.setval('public.calculations_id_seq', 1, false);
|
|
|
|
|
|
--
|
|
-- TOC entry 3777 (class 0 OID 0)
|
|
-- Dependencies: 250
|
|
-- Name: condition_application_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
SELECT pg_catalog.setval('public.condition_application_id_seq', 1, false);
|
|
|
|
|
|
--
|
|
-- TOC entry 3778 (class 0 OID 0)
|
|
-- Dependencies: 252
|
|
-- Name: conditions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
SELECT pg_catalog.setval('public.conditions_id_seq', 1, false);
|
|
|
|
|
|
--
|
|
-- TOC entry 3779 (class 0 OID 0)
|
|
-- Dependencies: 219
|
|
-- Name: languages_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
SELECT pg_catalog.setval('public.languages_id_seq', 3, true);
|
|
|
|
|
|
--
|
|
-- TOC entry 3780 (class 0 OID 0)
|
|
-- Dependencies: 247
|
|
-- Name: meta_fieldcatalog_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
SELECT pg_catalog.setval('public.meta_fieldcatalog_id_seq', 1, false);
|
|
|
|
|
|
--
|
|
-- TOC entry 3781 (class 0 OID 0)
|
|
-- Dependencies: 239
|
|
-- Name: product_type_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
SELECT pg_catalog.setval('public.product_type_groups_id_seq', 1, false);
|
|
|
|
|
|
--
|
|
-- TOC entry 3782 (class 0 OID 0)
|
|
-- Dependencies: 236
|
|
-- Name: product_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
SELECT pg_catalog.setval('public.product_type_id_seq', 1, false);
|
|
|
|
|
|
--
|
|
-- TOC entry 3783 (class 0 OID 0)
|
|
-- Dependencies: 242
|
|
-- Name: product_type_structure_nodes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
SELECT pg_catalog.setval('public.product_type_structure_nodes_id_seq', 1, false);
|
|
|
|
|
|
--
|
|
-- TOC entry 3784 (class 0 OID 0)
|
|
-- Dependencies: 232
|
|
-- Name: property_type_group_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
SELECT pg_catalog.setval('public.property_type_group_id_seq', 1, false);
|
|
|
|
|
|
--
|
|
-- TOC entry 3785 (class 0 OID 0)
|
|
-- Dependencies: 229
|
|
-- Name: property_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
SELECT pg_catalog.setval('public.property_types_id_seq', 1, false);
|
|
|
|
|
|
--
|
|
-- TOC entry 3786 (class 0 OID 0)
|
|
-- Dependencies: 256
|
|
-- Name: row_descriptions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
SELECT pg_catalog.setval('public.row_descriptions_id_seq', 1, false);
|
|
|
|
|
|
--
|
|
-- TOC entry 3787 (class 0 OID 0)
|
|
-- Dependencies: 261
|
|
-- Name: rules_list_product_type_set_amount_of_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
SELECT pg_catalog.setval('public.rules_list_product_type_set_amount_of_id_seq', 1, false);
|
|
|
|
|
|
--
|
|
-- TOC entry 3788 (class 0 OID 0)
|
|
-- Dependencies: 222
|
|
-- Name: units_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
SELECT pg_catalog.setval('public.units_id_seq', 1, false);
|
|
|
|
|
|
--
|
|
-- TOC entry 3789 (class 0 OID 0)
|
|
-- Dependencies: 224
|
|
-- Name: values_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
SELECT pg_catalog.setval('public.values_id_seq', 1, false);
|
|
|
|
|
|
--
|
|
-- TOC entry 3790 (class 0 OID 0)
|
|
-- Dependencies: 226
|
|
-- Name: values_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
SELECT pg_catalog.setval('public.values_type_id_seq', 4, true);
|
|
|
|
|
|
--
|
|
-- TOC entry 3480 (class 2606 OID 16943)
|
|
-- Name: calculations calculations_pk; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.calculations
|
|
ADD CONSTRAINT calculations_pk PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3476 (class 2606 OID 16909)
|
|
-- Name: condition_applications condition_application_pk; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.condition_applications
|
|
ADD CONSTRAINT condition_application_pk PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3478 (class 2606 OID 16927)
|
|
-- Name: conditions condition_pk; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.conditions
|
|
ADD CONSTRAINT condition_pk PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3442 (class 2606 OID 16510)
|
|
-- Name: languages languages_pk; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.languages
|
|
ADD CONSTRAINT languages_pk PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3474 (class 2606 OID 16888)
|
|
-- Name: meta_condition_fields meta_fieldcatalog_pk; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.meta_condition_fields
|
|
ADD CONSTRAINT meta_fieldcatalog_pk PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3468 (class 2606 OID 16767)
|
|
-- Name: product_type_groups product_type_groups_pk; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_groups
|
|
ADD CONSTRAINT product_type_groups_pk PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3486 (class 2606 OID 17018)
|
|
-- Name: product_type_is_part_of product_type_is_part_of_unique; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_is_part_of
|
|
ADD CONSTRAINT product_type_is_part_of_unique UNIQUE (product_type_id, is_part_of_product_tyoe_id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3464 (class 2606 OID 16730)
|
|
-- Name: product_types product_type_pk; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_types
|
|
ADD CONSTRAINT product_type_pk PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3470 (class 2606 OID 16799)
|
|
-- Name: product_type_structure_nodes product_type_structure_nodes_pk; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_structure_nodes
|
|
ADD CONSTRAINT product_type_structure_nodes_pk PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3466 (class 2606 OID 16732)
|
|
-- Name: product_types product_type_unique; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_types
|
|
ADD CONSTRAINT product_type_unique UNIQUE (product_identifierer);
|
|
|
|
|
|
--
|
|
-- TOC entry 3488 (class 2606 OID 17037)
|
|
-- Name: product_type_values_list product_type_values_list_unique; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_values_list
|
|
ADD CONSTRAINT product_type_values_list_unique UNIQUE (product_type_id, property_type_id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3472 (class 2606 OID 16853)
|
|
-- Name: product_types_group_translations product_types_group_translations_unique; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_types_group_translations
|
|
ADD CONSTRAINT product_types_group_translations_unique UNIQUE (product_types_group_id, language_id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3462 (class 2606 OID 16709)
|
|
-- Name: property_type_group_list property_type_group_list_unique; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.property_type_group_list
|
|
ADD CONSTRAINT property_type_group_list_unique UNIQUE (property_type_group_id, property_type_id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3458 (class 2606 OID 16654)
|
|
-- Name: property_type_groups property_type_group_pk; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.property_type_groups
|
|
ADD CONSTRAINT property_type_group_pk PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3460 (class 2606 OID 16702)
|
|
-- Name: property_type_group_translations property_type_group_translations_unique; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.property_type_group_translations
|
|
ADD CONSTRAINT property_type_group_translations_unique UNIQUE (property_type_group_id, language_id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3452 (class 2606 OID 16700)
|
|
-- Name: property_type_translations property_type_translations_unique; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.property_type_translations
|
|
ADD CONSTRAINT property_type_translations_unique UNIQUE (property_type_id, language_id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3454 (class 2606 OID 16604)
|
|
-- Name: property_types property_types_pk; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.property_types
|
|
ADD CONSTRAINT property_types_pk PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3482 (class 2606 OID 16958)
|
|
-- Name: row_descriptions row_descriptions_pk; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.row_descriptions
|
|
ADD CONSTRAINT row_descriptions_pk PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3484 (class 2606 OID 16984)
|
|
-- Name: row_translations row_translations_unique; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.row_translations
|
|
ADD CONSTRAINT row_translations_unique UNIQUE (row_id, language_id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3490 (class 2606 OID 17067)
|
|
-- Name: rules_list_product_type_set_amount_of rules_list_product_type_pk; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.rules_list_product_type_set_amount_of
|
|
ADD CONSTRAINT rules_list_product_type_pk PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3446 (class 2606 OID 16532)
|
|
-- Name: units units_pk; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.units
|
|
ADD CONSTRAINT units_pk PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3448 (class 2606 OID 16548)
|
|
-- Name: values value_id_pk; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public."values"
|
|
ADD CONSTRAINT value_id_pk PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3456 (class 2606 OID 16614)
|
|
-- Name: value_lists value_lists_unique; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.value_lists
|
|
ADD CONSTRAINT value_lists_unique UNIQUE (property_type_id, value_id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3444 (class 2606 OID 16698)
|
|
-- Name: value_translations value_translations_unique; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.value_translations
|
|
ADD CONSTRAINT value_translations_unique UNIQUE (value_id, language_id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3450 (class 2606 OID 16566)
|
|
-- Name: value_types values_types_pk; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.value_types
|
|
ADD CONSTRAINT values_types_pk PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3519 (class 2606 OID 16928)
|
|
-- Name: conditions conditions_condition_application_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.conditions
|
|
ADD CONSTRAINT conditions_condition_application_fk FOREIGN KEY (application_id) REFERENCES public.condition_applications(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3518 (class 2606 OID 16910)
|
|
-- Name: meta_condition_keys meta_condition_keys_meta_condition_fields_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.meta_condition_keys
|
|
ADD CONSTRAINT meta_condition_keys_meta_condition_fields_fk FOREIGN KEY (field_id) REFERENCES public.meta_condition_fields(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3509 (class 2606 OID 16840)
|
|
-- Name: product_type_group_products_types_list product_type_group_products_types_list_product_type_groups_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_group_products_types_list
|
|
ADD CONSTRAINT product_type_group_products_types_list_product_type_groups_fk FOREIGN KEY (product_type_group_id) REFERENCES public.product_type_groups(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3510 (class 2606 OID 16778)
|
|
-- Name: product_type_group_products_types_list product_type_group_products_types_list_product_types_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_group_products_types_list
|
|
ADD CONSTRAINT product_type_group_products_types_list_product_types_fk FOREIGN KEY (product_type_id) REFERENCES public.product_types(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3508 (class 2606 OID 16783)
|
|
-- Name: product_type_groups product_type_groups_product_type_groups_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_groups
|
|
ADD CONSTRAINT product_type_groups_product_type_groups_fk FOREIGN KEY (parent_group_id) REFERENCES public.product_type_groups(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3525 (class 2606 OID 17019)
|
|
-- Name: product_type_is_part_of product_type_is_part_of_product_types_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_is_part_of
|
|
ADD CONSTRAINT product_type_is_part_of_product_types_fk FOREIGN KEY (product_type_id) REFERENCES public.product_types(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3526 (class 2606 OID 17024)
|
|
-- Name: product_type_is_part_of product_type_is_part_of_product_types_fk_1; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_is_part_of
|
|
ADD CONSTRAINT product_type_is_part_of_product_types_fk_1 FOREIGN KEY (is_part_of_product_tyoe_id) REFERENCES public.product_types(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3514 (class 2606 OID 16835)
|
|
-- Name: product_type_structure_node_translations product_type_structure_node_translations_languages_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_structure_node_translations
|
|
ADD CONSTRAINT product_type_structure_node_translations_languages_fk FOREIGN KEY (language_id) REFERENCES public.languages(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3515 (class 2606 OID 16830)
|
|
-- Name: product_type_structure_node_translations product_type_structure_node_translations_product_type_structure; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_structure_node_translations
|
|
ADD CONSTRAINT product_type_structure_node_translations_product_type_structure FOREIGN KEY (structure_node_id) REFERENCES public.product_type_structure_nodes(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3511 (class 2606 OID 16803)
|
|
-- Name: product_type_structure_nodes product_type_structure_nodes_product_types_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_structure_nodes
|
|
ADD CONSTRAINT product_type_structure_nodes_product_types_fk FOREIGN KEY (product_type_id) REFERENCES public.product_types(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3506 (class 2606 OID 16748)
|
|
-- Name: product_type_translations product_type_translations_languages_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_translations
|
|
ADD CONSTRAINT product_type_translations_languages_fk FOREIGN KEY (language_id) REFERENCES public.languages(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3507 (class 2606 OID 16753)
|
|
-- Name: product_type_translations product_type_translations_product_type_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_translations
|
|
ADD CONSTRAINT product_type_translations_product_type_fk FOREIGN KEY (product_type_id) REFERENCES public.product_types(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3527 (class 2606 OID 17088)
|
|
-- Name: product_type_values_list product_type_values_list_product_types_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_values_list
|
|
ADD CONSTRAINT product_type_values_list_product_types_fk FOREIGN KEY (product_type_id) REFERENCES public.product_types(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3528 (class 2606 OID 17093)
|
|
-- Name: product_type_values_list product_type_values_list_property_types_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_values_list
|
|
ADD CONSTRAINT product_type_values_list_property_types_fk FOREIGN KEY (property_type_id) REFERENCES public.property_types(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3529 (class 2606 OID 17098)
|
|
-- Name: product_type_values_list product_type_values_list_values_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_type_values_list
|
|
ADD CONSTRAINT product_type_values_list_values_fk FOREIGN KEY (value_id) REFERENCES public."values"(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3516 (class 2606 OID 16854)
|
|
-- Name: product_types_group_translations product_types_group_translations_languages_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_types_group_translations
|
|
ADD CONSTRAINT product_types_group_translations_languages_fk FOREIGN KEY (language_id) REFERENCES public.languages(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3517 (class 2606 OID 16859)
|
|
-- Name: product_types_group_translations product_types_group_translations_product_type_groups_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.product_types_group_translations
|
|
ADD CONSTRAINT product_types_group_translations_product_type_groups_fk FOREIGN KEY (product_types_group_id) REFERENCES public.product_type_groups(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3504 (class 2606 OID 16710)
|
|
-- Name: property_type_group_list property_type_group_list_property_type_groups_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.property_type_group_list
|
|
ADD CONSTRAINT property_type_group_list_property_type_groups_fk FOREIGN KEY (property_type_group_id) REFERENCES public.property_type_groups(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3505 (class 2606 OID 16715)
|
|
-- Name: property_type_group_list property_type_group_list_property_types_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.property_type_group_list
|
|
ADD CONSTRAINT property_type_group_list_property_types_fk FOREIGN KEY (property_type_id) REFERENCES public.property_types(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3501 (class 2606 OID 16655)
|
|
-- Name: property_type_groups property_type_group_property_type_group_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.property_type_groups
|
|
ADD CONSTRAINT property_type_group_property_type_group_fk FOREIGN KEY (parent_proper_type_group_id) REFERENCES public.property_type_groups(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3502 (class 2606 OID 16692)
|
|
-- Name: property_type_group_translations property_type_group_translations_languages_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.property_type_group_translations
|
|
ADD CONSTRAINT property_type_group_translations_languages_fk FOREIGN KEY (language_id) REFERENCES public.languages(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3503 (class 2606 OID 16687)
|
|
-- Name: property_type_group_translations property_type_group_translations_property_type_group_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.property_type_group_translations
|
|
ADD CONSTRAINT property_type_group_translations_property_type_group_fk FOREIGN KEY (property_type_group_id) REFERENCES public.property_type_groups(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3496 (class 2606 OID 16635)
|
|
-- Name: property_type_translations property_type_translations_languages_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.property_type_translations
|
|
ADD CONSTRAINT property_type_translations_languages_fk FOREIGN KEY (language_id) REFERENCES public.languages(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3497 (class 2606 OID 16625)
|
|
-- Name: property_type_translations property_type_translations_property_types_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.property_type_translations
|
|
ADD CONSTRAINT property_type_translations_property_types_fk FOREIGN KEY (property_type_id) REFERENCES public.property_types(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3498 (class 2606 OID 16605)
|
|
-- Name: property_types property_types_value_types_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.property_types
|
|
ADD CONSTRAINT property_types_value_types_fk FOREIGN KEY (value_type_id) REFERENCES public.value_types(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3520 (class 2606 OID 16964)
|
|
-- Name: row_descriptions row_descriptions_calculations_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.row_descriptions
|
|
ADD CONSTRAINT row_descriptions_calculations_fk FOREIGN KEY (calculation_id) REFERENCES public.calculations(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3521 (class 2606 OID 16969)
|
|
-- Name: row_descriptions row_descriptions_conditions_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.row_descriptions
|
|
ADD CONSTRAINT row_descriptions_conditions_fk FOREIGN KEY (condition_id) REFERENCES public.conditions(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3522 (class 2606 OID 16959)
|
|
-- Name: row_descriptions row_descriptions_meta_condition_fields_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.row_descriptions
|
|
ADD CONSTRAINT row_descriptions_meta_condition_fields_fk FOREIGN KEY (field_id) REFERENCES public.meta_condition_fields(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3523 (class 2606 OID 16985)
|
|
-- Name: row_translations row_translations_languages_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.row_translations
|
|
ADD CONSTRAINT row_translations_languages_fk FOREIGN KEY (language_id) REFERENCES public.languages(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3524 (class 2606 OID 16990)
|
|
-- Name: row_translations row_translations_row_descriptions_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.row_translations
|
|
ADD CONSTRAINT row_translations_row_descriptions_fk FOREIGN KEY (row_id) REFERENCES public.row_descriptions(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3530 (class 2606 OID 17072)
|
|
-- Name: rules_list_product_type_set_amount_of rules_list_product_type_set_amount_of_product_types_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.rules_list_product_type_set_amount_of
|
|
ADD CONSTRAINT rules_list_product_type_set_amount_of_product_types_fk FOREIGN KEY (product_type_id) REFERENCES public.product_types(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3531 (class 2606 OID 17077)
|
|
-- Name: rules_list_product_type_set_amount_of rules_list_product_type_set_amount_of_product_types_fk_1; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.rules_list_product_type_set_amount_of
|
|
ADD CONSTRAINT rules_list_product_type_set_amount_of_product_types_fk_1 FOREIGN KEY (component_x_product_type_id) REFERENCES public.product_types(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3532 (class 2606 OID 17082)
|
|
-- Name: rules_list_product_type_set_amount_of rules_list_product_type_set_amount_of_product_types_fk_2; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.rules_list_product_type_set_amount_of
|
|
ADD CONSTRAINT rules_list_product_type_set_amount_of_product_types_fk_2 FOREIGN KEY (component_y_product_type_id) REFERENCES public.product_types(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3512 (class 2606 OID 16813)
|
|
-- Name: structure_node_product_types_list structure_node_product_types_list_product_type_structure_nodes_; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.structure_node_product_types_list
|
|
ADD CONSTRAINT structure_node_product_types_list_product_type_structure_nodes_ FOREIGN KEY (structure_node_id) REFERENCES public.product_type_structure_nodes(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3513 (class 2606 OID 16818)
|
|
-- Name: structure_node_product_types_list structure_node_product_types_list_product_types_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.structure_node_product_types_list
|
|
ADD CONSTRAINT structure_node_product_types_list_product_types_fk FOREIGN KEY (product_type_id) REFERENCES public.product_types(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3493 (class 2606 OID 16533)
|
|
-- Name: units units_units_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.units
|
|
ADD CONSTRAINT units_units_fk FOREIGN KEY (base_unit_id) REFERENCES public.units(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3499 (class 2606 OID 16615)
|
|
-- Name: value_lists value_lists_property_types_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.value_lists
|
|
ADD CONSTRAINT value_lists_property_types_fk FOREIGN KEY (property_type_id) REFERENCES public.property_types(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3500 (class 2606 OID 16620)
|
|
-- Name: value_lists value_lists_values_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.value_lists
|
|
ADD CONSTRAINT value_lists_values_fk FOREIGN KEY (value_id) REFERENCES public."values"(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3491 (class 2606 OID 16640)
|
|
-- Name: value_translations value_translation_languages_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.value_translations
|
|
ADD CONSTRAINT value_translation_languages_fk FOREIGN KEY (language_id) REFERENCES public.languages(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3492 (class 2606 OID 16630)
|
|
-- Name: value_translations value_translation_values_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public.value_translations
|
|
ADD CONSTRAINT value_translation_values_fk FOREIGN KEY (value_id) REFERENCES public."values"(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3494 (class 2606 OID 16573)
|
|
-- Name: values values_units_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public."values"
|
|
ADD CONSTRAINT values_units_fk FOREIGN KEY (unit_id) REFERENCES public.units(id);
|
|
|
|
|
|
--
|
|
-- TOC entry 3495 (class 2606 OID 16567)
|
|
-- Name: values values_values_type_fk; Type: FK CONSTRAINT; Schema: public; Owner: tsindt
|
|
--
|
|
|
|
ALTER TABLE ONLY public."values"
|
|
ADD CONSTRAINT values_values_type_fk FOREIGN KEY (value_type_id) REFERENCES public.value_types(id);
|
|
|
|
|
|
-- Completed on 2026-07-24 15:36:53
|
|
|
|
--
|
|
-- PostgreSQL database dump complete
|
|
--
|
|
|
|
\unrestrict fWARHY17kdKiBZPlXv9peFMuylGZ2j0VR3Oftwz9vxnvvyTa6i2DwdPqPV45Odv
|
|
|