{
  "datenmodell": {
    "version": 51,
    "stand": "2026-10-13"
  },
  "formate": {
    "csv": "CSV, Trennzeichen Semikolon, UTF-8 mit BOM, Zeilenende CRLF, Maskierung nach RFC 4180"
  },
  "tabellen": [
    {
      "name": "absences",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            },
            {
              "tabelle": "employee_work_schedules",
              "spalte": "employee_id"
            }
          ]
        },
        {
          "name": "type",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "start_date",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "end_date",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "reported_at",
          "typ": "timestamp without time zone",
          "verweistAuf": []
        },
        {
          "name": "half_day",
          "typ": "boolean",
          "verweistAuf": []
        },
        {
          "name": "substitute_employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "work_schedule_valid_from",
          "typ": "date",
          "verweistAuf": [
            {
              "tabelle": "employee_work_schedules",
              "spalte": "valid_from"
            }
          ]
        },
        {
          "name": "substitute_employee_ids",
          "typ": "uuid[]",
          "verweistAuf": []
        },
        {
          "name": "note",
          "typ": "text",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "company_closed_days",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "date",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "label",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "rule",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "created_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "company_settings",
      "spalten": [
        {
          "name": "id",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "monthly_overhead",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "overhead_allocation",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "margin_green_pct",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "margin_yellow_pct",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "updated_at",
          "typ": "timestamp without time zone",
          "verweistAuf": []
        },
        {
          "name": "wage_overhead_pct",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "school_holidays",
          "typ": "jsonb",
          "verweistAuf": []
        },
        {
          "name": "retention_months",
          "typ": "jsonb",
          "verweistAuf": []
        },
        {
          "name": "last_retention_run",
          "typ": "jsonb",
          "verweistAuf": []
        },
        {
          "name": "last_backup_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "privacy_notice",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "privacy_notice_updated_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "last_full_export_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "last_archive_backup_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "resturlaub_bis",
          "typ": "text",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "daily_car_inventory",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "tour_date",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "items",
          "typ": "text[]",
          "verweistAuf": []
        },
        {
          "name": "packed_confirmed",
          "typ": "boolean",
          "verweistAuf": []
        },
        {
          "name": "packed_at",
          "typ": "timestamp without time zone",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "daily_reports",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "report_date",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "area",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "work_start",
          "typ": "time without time zone",
          "verweistAuf": []
        },
        {
          "name": "work_end",
          "typ": "time without time zone",
          "verweistAuf": []
        },
        {
          "name": "interruption",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "objects_worked",
          "typ": "text[]",
          "verweistAuf": []
        },
        {
          "name": "works_done",
          "typ": "text[]",
          "verweistAuf": []
        },
        {
          "name": "incidents",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "went_well",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "improvements",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "missing_material",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "open_points",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "completion",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "created_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "defect_reports",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "object_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "objects",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "category",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "report_type",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "description",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "time_spent",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "fully_done",
          "typ": "boolean",
          "verweistAuf": []
        },
        {
          "name": "extra_effort",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "photos",
          "typ": "text[]",
          "verweistAuf": []
        },
        {
          "name": "status",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "special_order_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "special_orders",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "emailed_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "emailed_to",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "created_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "ticket_no",
          "typ": "integer",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "employee_day_swaps",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "date_off",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "date_on",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "note",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "created_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "employee_work_schedules",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "valid_from",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "availability",
          "typ": "jsonb",
          "verweistAuf": []
        },
        {
          "name": "hours_per_day",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "created_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "employees",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "name",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "phone",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "role",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "hours_per_day",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "employment_type",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "skills",
          "typ": "text[]",
          "verweistAuf": []
        },
        {
          "name": "push_subscription",
          "typ": "jsonb",
          "verweistAuf": []
        },
        {
          "name": "created_at",
          "typ": "timestamp without time zone",
          "verweistAuf": []
        },
        {
          "name": "tour_type",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "transport_mode",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "has_drivers_license",
          "typ": "boolean",
          "verweistAuf": []
        },
        {
          "name": "hourly_wage",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "is_flex_pool",
          "typ": "boolean",
          "verweistAuf": []
        },
        {
          "name": "availability",
          "typ": "jsonb",
          "verweistAuf": []
        },
        {
          "name": "has_main_job",
          "typ": "boolean",
          "verweistAuf": []
        },
        {
          "name": "constraints_note",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "clusters",
          "typ": "text[]",
          "verweistAuf": []
        },
        {
          "name": "tour_types",
          "typ": "text[]",
          "verweistAuf": []
        },
        {
          "name": "app_token",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "active",
          "typ": "boolean",
          "verweistAuf": []
        },
        {
          "name": "monthly_salary",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "vacation_days_per_year",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "vacation_carryover",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "exit_date",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "anonymized_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "privacy_notice_seen_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "session_version",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "hire_date",
          "typ": "date",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "fixed_costs",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "label",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "monthly_amount",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "active",
          "typ": "boolean",
          "verweistAuf": []
        },
        {
          "name": "sort_order",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "created_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "object_task_completions",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "object_task_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "object_tasks",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "performed_by_employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "entered_by",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "done_at",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "created_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "object_tasks",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "object_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "objects",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "custom_name",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "duration_min",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "sort_order",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "frequency",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "materials",
          "typ": "text[]",
          "verweistAuf": []
        },
        {
          "name": "notes",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "last_done_at",
          "typ": "timestamp without time zone",
          "verweistAuf": []
        },
        {
          "name": "next_due",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "tour_type",
          "typ": "text",
          "verweistAuf": [
            {
              "tabelle": "tour_types",
              "spalte": "code"
            }
          ]
        },
        {
          "name": "tour_template_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "tour_templates",
              "spalte": "id"
            }
          ]
        }
      ]
    },
    {
      "name": "objects",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "name",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "address",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "lat",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "lng",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "floors",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "water_location",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "water_access_score",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "building_type",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "build_year",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "units",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "has_basement",
          "typ": "boolean",
          "verweistAuf": []
        },
        {
          "name": "has_garden",
          "typ": "boolean",
          "verweistAuf": []
        },
        {
          "name": "has_parking",
          "typ": "boolean",
          "verweistAuf": []
        },
        {
          "name": "special_probability",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "special_count_6m",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "notes",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "created_at",
          "typ": "timestamp without time zone",
          "verweistAuf": []
        },
        {
          "name": "tour_type",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "cluster",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "monthly_revenue",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "active_from",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "hsv",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "contact_name",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "contact_email",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "contact_phone",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "lv_pdf_path",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "waste_calendar_url",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "waste_calendar_pdf_path",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "archived_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "active_until",
          "typ": "date",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "sick_reports",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "start_date",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "end_date",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "note",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "absence_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "absences",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "seen_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "created_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "special_orders",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "object_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "objects",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "description",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "required_equipment",
          "typ": "text[]",
          "verweistAuf": []
        },
        {
          "name": "estimated_duration_min",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "deadline",
          "typ": "timestamp without time zone",
          "verweistAuf": []
        },
        {
          "name": "assigned_to",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "status",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "ai_recommendation",
          "typ": "jsonb",
          "verweistAuf": []
        },
        {
          "name": "created_at",
          "typ": "timestamp without time zone",
          "verweistAuf": []
        },
        {
          "name": "assigned_employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "scheduled_date",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "defect_report_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "defect_reports",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "completed_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "ticket_no",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "end_date",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "color",
          "typ": "text",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "stop_tasks",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "tour_stop_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "tour_stops",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "object_task_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "object_tasks",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "status",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "completed_at",
          "typ": "timestamp without time zone",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "time_breaks",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "time_entry_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "time_entries",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "started_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "ended_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "time_entries",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "work_date",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "started_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "ended_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "break_minutes",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "note",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "corrected_by",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "corrected_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "created_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "cancelled_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "cancelled_by",
          "typ": "text",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "time_entry_changes",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "time_entry_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "time_entries",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "kind",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "actor_role",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "changed_by_owner",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "changed_by_employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "reason_code",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "reason_text",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "old_started_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "new_started_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "old_ended_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "new_ended_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "old_break_minutes",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "new_break_minutes",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "old_note",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "new_note",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "changed_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "tour_stops",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "tour_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "tours",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "object_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "objects",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "stop_order",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "status",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "estimated_duration_min",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "actual_duration_min",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "arrived_at",
          "typ": "timestamp without time zone",
          "verweistAuf": []
        },
        {
          "name": "completed_at",
          "typ": "timestamp without time zone",
          "verweistAuf": []
        },
        {
          "name": "notes",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "photo_urls",
          "typ": "text[]",
          "verweistAuf": []
        },
        {
          "name": "employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "completed_by",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        }
      ]
    },
    {
      "name": "tour_template_members",
      "spalten": [
        {
          "name": "tour_template_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "tour_templates",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        }
      ]
    },
    {
      "name": "tour_templates",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "name",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "tour_type",
          "typ": "text",
          "verweistAuf": [
            {
              "tabelle": "tour_types",
              "spalte": "code"
            }
          ]
        },
        {
          "name": "rhythm",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "days",
          "typ": "text[]",
          "verweistAuf": []
        },
        {
          "name": "start_time",
          "typ": "time without time zone",
          "verweistAuf": []
        },
        {
          "name": "team_size",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "active",
          "typ": "boolean",
          "verweistAuf": []
        },
        {
          "name": "notes",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "created_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "start_ort",
          "typ": "text",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "tour_type_equipment",
      "spalten": [
        {
          "name": "tour_type",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "items",
          "typ": "text[]",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "tour_types",
      "spalten": [
        {
          "name": "code",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "label",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "default_team_size",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "color",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "active",
          "typ": "boolean",
          "verweistAuf": []
        },
        {
          "name": "sort_order",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "short_code",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "planning_mode",
          "typ": "text",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "tours",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "tour_date",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "status",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "route_order",
          "typ": "jsonb",
          "verweistAuf": []
        },
        {
          "name": "total_minutes",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "created_at",
          "typ": "timestamp without time zone",
          "verweistAuf": []
        },
        {
          "name": "tour_type",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "vehicle_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "vehicles",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "tour_template_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "tour_templates",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "confirmed_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "confirmed_by",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "tour_group_id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "modified_after_confirm_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "vacation_requests",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "start_date",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "end_date",
          "typ": "date",
          "verweistAuf": []
        },
        {
          "name": "half_day",
          "typ": "boolean",
          "verweistAuf": []
        },
        {
          "name": "note",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "status",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "decided_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "decision_note",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "absence_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "absences",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "created_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "type",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "cancelled_at",
          "typ": "timestamp with time zone",
          "verweistAuf": []
        },
        {
          "name": "cancelled_by",
          "typ": "text",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "vacation_years",
      "spalten": [
        {
          "name": "employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "year",
          "typ": "integer",
          "verweistAuf": []
        },
        {
          "name": "entitlement",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "carryover",
          "typ": "numeric",
          "verweistAuf": []
        },
        {
          "name": "closed",
          "typ": "boolean",
          "verweistAuf": []
        }
      ]
    },
    {
      "name": "vehicles",
      "spalten": [
        {
          "name": "id",
          "typ": "uuid",
          "verweistAuf": []
        },
        {
          "name": "name",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "license_plate",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "tour_type",
          "typ": "text",
          "verweistAuf": []
        },
        {
          "name": "base_equipment",
          "typ": "text[]",
          "verweistAuf": []
        },
        {
          "name": "default_employee_id",
          "typ": "uuid",
          "verweistAuf": [
            {
              "tabelle": "employees",
              "spalte": "id"
            }
          ]
        },
        {
          "name": "active",
          "typ": "boolean",
          "verweistAuf": []
        },
        {
          "name": "created_at",
          "typ": "timestamp without time zone",
          "verweistAuf": []
        },
        {
          "name": "tour_types",
          "typ": "text[]",
          "verweistAuf": []
        }
      ]
    }
  ],
  "storageBuckets": [
    {
      "name": "maengel-fotos",
      "art": "Fotos (Bilddateien)"
    },
    {
      "name": "objekt-dokumente",
      "art": "PDF-Dokumente"
    }
  ]
}
