towerops/priv/repo/structure.sql

15345 lines
613 KiB
PL/PgSQL

--
-- PostgreSQL database dump
--
\restrict fxN8VfMT4wlKMdY4b5QKMDFncMWuvcHmQoAKL88Wv4ey2erB35CfSsmUYUTugSQ
-- Dumped from database version 17.9 (Homebrew)
-- Dumped by pg_dump version 17.9 (Homebrew)
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;
--
-- Name: timescaledb; Type: EXTENSION; Schema: -; Owner: -
--
CREATE EXTENSION IF NOT EXISTS timescaledb WITH SCHEMA public;
--
-- Name: EXTENSION timescaledb; Type: COMMENT; Schema: -; Owner: -
--
COMMENT ON EXTENSION timescaledb IS 'Enables scalable inserts and complex queries for time-series data (Community Edition)';
--
-- Name: btree_gist; Type: EXTENSION; Schema: -; Owner: -
--
CREATE EXTENSION IF NOT EXISTS btree_gist WITH SCHEMA public;
--
-- Name: EXTENSION btree_gist; Type: COMMENT; Schema: -; Owner: -
--
COMMENT ON EXTENSION btree_gist IS 'support for indexing common datatypes in GiST';
--
-- Name: citext; Type: EXTENSION; Schema: -; Owner: -
--
CREATE EXTENSION IF NOT EXISTS citext WITH SCHEMA public;
--
-- Name: EXTENSION citext; Type: COMMENT; Schema: -; Owner: -
--
COMMENT ON EXTENSION citext IS 'data type for case-insensitive character strings';
--
-- Name: pg_stat_statements; Type: EXTENSION; Schema: -; Owner: -
--
CREATE EXTENSION IF NOT EXISTS pg_stat_statements WITH SCHEMA public;
--
-- Name: EXTENSION pg_stat_statements; Type: COMMENT; Schema: -; Owner: -
--
COMMENT ON EXTENSION pg_stat_statements IS 'track planning and execution statistics of all SQL statements executed';
--
-- Name: sslinfo; Type: EXTENSION; Schema: -; Owner: -
--
CREATE EXTENSION IF NOT EXISTS sslinfo WITH SCHEMA public;
--
-- Name: EXTENSION sslinfo; Type: COMMENT; Schema: -; Owner: -
--
COMMENT ON EXTENSION sslinfo IS 'information about SSL certificates';
--
-- Name: oban_job_state; Type: TYPE; Schema: public; Owner: -
--
CREATE TYPE public.oban_job_state AS ENUM (
'available',
'scheduled',
'executing',
'retryable',
'completed',
'discarded',
'cancelled',
'suspended'
);
--
-- Name: oban_count_estimate(text, text); Type: FUNCTION; Schema: public; Owner: -
--
CREATE FUNCTION public.oban_count_estimate(state text, queue text) RETURNS integer
LANGUAGE plpgsql
AS $_$
DECLARE
plan jsonb;
BEGIN
EXECUTE 'EXPLAIN (FORMAT JSON)
SELECT id
FROM public.oban_jobs
WHERE state = $1::public.oban_job_state
AND queue = $2'
INTO plan
USING state, queue;
RETURN plan->0->'Plan'->'Plan Rows';
END;
$_$;
--
-- Name: oban_state_to_bit(public.oban_job_state); Type: FUNCTION; Schema: public; Owner: -
--
CREATE FUNCTION public.oban_state_to_bit(state public.oban_job_state) RETURNS jsonb
LANGUAGE sql IMMUTABLE STRICT
AS $$
SELECT CASE
WHEN state = 'scheduled' THEN '0'::jsonb
WHEN state = 'available' THEN '1'::jsonb
WHEN state = 'executing' THEN '2'::jsonb
WHEN state = 'retryable' THEN '3'::jsonb
WHEN state = 'completed' THEN '4'::jsonb
WHEN state = 'cancelled' THEN '5'::jsonb
WHEN state = 'discarded' THEN '6'::jsonb
END;
$$;
SET default_tablespace = '';
SET default_table_access_method = heap;
--
-- Name: _compressed_hypertable_16; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._compressed_hypertable_16 (
);
--
-- Name: _compressed_hypertable_4; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._compressed_hypertable_4 (
);
--
-- Name: _compressed_hypertable_5; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._compressed_hypertable_5 (
);
--
-- Name: _compressed_hypertable_6; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._compressed_hypertable_6 (
);
--
-- Name: snmp_sensor_readings; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_sensor_readings (
id uuid NOT NULL,
sensor_id uuid NOT NULL,
value double precision,
status character varying(255) NOT NULL,
checked_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
state_descr character varying(255)
);
--
-- Name: _direct_view_10; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._direct_view_10 AS
SELECT sensor_id,
public.time_bucket('1 day'::interval, checked_at) AS bucket,
avg(value) AS avg_value,
min(value) AS min_value,
max(value) AS max_value,
count(*) AS reading_count
FROM public.snmp_sensor_readings
GROUP BY sensor_id, (public.time_bucket('1 day'::interval, checked_at));
--
-- Name: snmp_interface_stats; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_interface_stats (
id uuid NOT NULL,
interface_id uuid NOT NULL,
if_in_octets bigint,
if_out_octets bigint,
if_in_errors bigint,
if_out_errors bigint,
if_in_discards bigint,
if_out_discards bigint,
checked_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
is_hc boolean DEFAULT true NOT NULL
);
--
-- Name: _direct_view_11; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._direct_view_11 AS
SELECT interface_id,
public.time_bucket('01:00:00'::interval, checked_at) AS bucket,
max(if_in_octets) AS max_in_octets,
max(if_out_octets) AS max_out_octets,
sum(if_in_errors) AS total_in_errors,
sum(if_out_errors) AS total_out_errors,
sum(if_in_discards) AS total_in_discards,
sum(if_out_discards) AS total_out_discards,
count(*) AS sample_count
FROM public.snmp_interface_stats
GROUP BY interface_id, (public.time_bucket('01:00:00'::interval, checked_at));
--
-- Name: _direct_view_12; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._direct_view_12 AS
SELECT interface_id,
public.time_bucket('1 day'::interval, checked_at) AS bucket,
max(if_in_octets) AS max_in_octets,
max(if_out_octets) AS max_out_octets,
sum(if_in_errors) AS total_in_errors,
sum(if_out_errors) AS total_out_errors,
sum(if_in_discards) AS total_in_discards,
sum(if_out_discards) AS total_out_discards,
count(*) AS sample_count
FROM public.snmp_interface_stats
GROUP BY interface_id, (public.time_bucket('1 day'::interval, checked_at));
--
-- Name: wireless_client_readings; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.wireless_client_readings (
id uuid NOT NULL,
checked_at timestamp(0) without time zone NOT NULL,
device_id uuid NOT NULL,
wireless_client_id uuid NOT NULL,
organization_id uuid NOT NULL,
mac_address character varying(255) NOT NULL,
ip_address character varying(255),
signal_strength integer,
snr integer,
distance integer,
tx_rate integer,
rx_rate integer,
uptime_seconds integer,
metadata jsonb DEFAULT '{}'::jsonb,
inserted_at timestamp(0) without time zone NOT NULL
);
--
-- Name: _direct_view_17; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._direct_view_17 AS
SELECT device_id,
mac_address,
wireless_client_id,
organization_id,
public.time_bucket('01:00:00'::interval, checked_at) AS bucket,
avg(signal_strength) AS avg_signal_strength,
min(signal_strength) AS min_signal_strength,
max(signal_strength) AS max_signal_strength,
avg(snr) AS avg_snr,
min(snr) AS min_snr,
max(snr) AS max_snr,
avg(distance) AS avg_distance,
avg(tx_rate) AS avg_tx_rate,
avg(rx_rate) AS avg_rx_rate,
count(*) AS sample_count
FROM public.wireless_client_readings
GROUP BY device_id, mac_address, wireless_client_id, organization_id, (public.time_bucket('01:00:00'::interval, checked_at));
--
-- Name: _direct_view_18; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._direct_view_18 AS
SELECT device_id,
mac_address,
wireless_client_id,
organization_id,
public.time_bucket('1 day'::interval, checked_at) AS bucket,
avg(signal_strength) AS avg_signal_strength,
min(signal_strength) AS min_signal_strength,
max(signal_strength) AS max_signal_strength,
avg(snr) AS avg_snr,
min(snr) AS min_snr,
max(snr) AS max_snr,
avg(distance) AS avg_distance,
avg(tx_rate) AS avg_tx_rate,
avg(rx_rate) AS avg_rx_rate,
count(*) AS sample_count
FROM public.wireless_client_readings
GROUP BY device_id, mac_address, wireless_client_id, organization_id, (public.time_bucket('1 day'::interval, checked_at));
--
-- Name: monitoring_checks; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.monitoring_checks (
id uuid NOT NULL,
device_id uuid NOT NULL,
status character varying(255) NOT NULL,
response_time_ms double precision,
checked_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
agent_token_id uuid
);
--
-- Name: _direct_view_7; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._direct_view_7 AS
SELECT device_id,
public.time_bucket('01:00:00'::interval, checked_at) AS bucket,
count(*) AS total_checks,
count(*) FILTER (WHERE ((status)::text = 'success'::text)) AS successful_checks,
count(*) FILTER (WHERE ((status)::text = ANY ((ARRAY['failure'::character varying, 'timeout'::character varying])::text[]))) AS failed_checks,
avg(response_time_ms) AS avg_response_time_ms,
min(response_time_ms) AS min_response_time_ms,
max(response_time_ms) AS max_response_time_ms
FROM public.monitoring_checks
GROUP BY device_id, (public.time_bucket('01:00:00'::interval, checked_at));
--
-- Name: _direct_view_8; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._direct_view_8 AS
SELECT device_id,
public.time_bucket('1 day'::interval, checked_at) AS bucket,
count(*) AS total_checks,
count(*) FILTER (WHERE ((status)::text = 'success'::text)) AS successful_checks,
count(*) FILTER (WHERE ((status)::text = ANY ((ARRAY['failure'::character varying, 'timeout'::character varying])::text[]))) AS failed_checks,
avg(response_time_ms) AS avg_response_time_ms,
min(response_time_ms) AS min_response_time_ms,
max(response_time_ms) AS max_response_time_ms
FROM public.monitoring_checks
GROUP BY device_id, (public.time_bucket('1 day'::interval, checked_at));
--
-- Name: _direct_view_9; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._direct_view_9 AS
SELECT sensor_id,
public.time_bucket('01:00:00'::interval, checked_at) AS bucket,
avg(value) AS avg_value,
min(value) AS min_value,
max(value) AS max_value,
count(*) AS reading_count
FROM public.snmp_sensor_readings
GROUP BY sensor_id, (public.time_bucket('01:00:00'::interval, checked_at));
--
-- Name: _materialized_hypertable_10; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._materialized_hypertable_10 (
sensor_id uuid,
bucket timestamp without time zone NOT NULL,
avg_value double precision,
min_value double precision,
max_value double precision,
reading_count bigint
);
--
-- Name: _hyper_10_129_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_10_129_chunk (
CONSTRAINT constraint_83 CHECK (((bucket >= '2026-02-06 00:00:00'::timestamp without time zone) AND (bucket < '2026-02-16 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_10);
--
-- Name: _hyper_10_14_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_10_14_chunk (
CONSTRAINT constraint_14 CHECK (((bucket >= '2026-01-17 00:00:00'::timestamp without time zone) AND (bucket < '2026-01-27 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_10);
--
-- Name: _hyper_10_174_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_10_174_chunk (
CONSTRAINT constraint_109 CHECK (((bucket >= '2026-03-08 00:00:00'::timestamp without time zone) AND (bucket < '2026-03-18 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_10);
--
-- Name: _hyper_10_205_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_10_205_chunk (
CONSTRAINT constraint_125 CHECK (((bucket >= '2026-03-18 00:00:00'::timestamp without time zone) AND (bucket < '2026-03-28 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_10);
--
-- Name: _hyper_10_60_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_10_60_chunk (
CONSTRAINT constraint_47 CHECK (((bucket >= '2026-01-27 00:00:00'::timestamp without time zone) AND (bucket < '2026-02-06 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_10);
--
-- Name: _materialized_hypertable_11; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._materialized_hypertable_11 (
interface_id uuid,
bucket timestamp without time zone NOT NULL,
max_in_octets bigint,
max_out_octets bigint,
total_in_errors numeric,
total_out_errors numeric,
total_in_discards numeric,
total_out_discards numeric,
sample_count bigint
);
--
-- Name: _hyper_11_147_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_11_147_chunk (
CONSTRAINT constraint_91 CHECK (((bucket >= '2026-02-16 00:00:00'::timestamp without time zone) AND (bucket < '2026-02-26 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_11);
--
-- Name: _hyper_11_15_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_11_15_chunk (
CONSTRAINT constraint_15 CHECK (((bucket >= '2026-01-17 00:00:00'::timestamp without time zone) AND (bucket < '2026-01-27 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_11);
--
-- Name: _hyper_11_194_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_11_194_chunk (
CONSTRAINT constraint_117 CHECK (((bucket >= '2026-03-18 00:00:00'::timestamp without time zone) AND (bucket < '2026-03-28 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_11);
--
-- Name: _hyper_11_33_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_11_33_chunk (
CONSTRAINT constraint_31 CHECK (((bucket >= '2026-01-27 00:00:00'::timestamp without time zone) AND (bucket < '2026-02-06 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_11);
--
-- Name: _hyper_11_95_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_11_95_chunk (
CONSTRAINT constraint_66 CHECK (((bucket >= '2026-02-06 00:00:00'::timestamp without time zone) AND (bucket < '2026-02-16 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_11);
--
-- Name: _materialized_hypertable_12; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._materialized_hypertable_12 (
interface_id uuid,
bucket timestamp without time zone NOT NULL,
max_in_octets bigint,
max_out_octets bigint,
total_in_errors numeric,
total_out_errors numeric,
total_in_discards numeric,
total_out_discards numeric,
sample_count bigint
);
--
-- Name: _hyper_12_127_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_12_127_chunk (
CONSTRAINT constraint_81 CHECK (((bucket >= '2026-02-06 00:00:00'::timestamp without time zone) AND (bucket < '2026-02-16 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_12);
--
-- Name: _hyper_12_16_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_12_16_chunk (
CONSTRAINT constraint_16 CHECK (((bucket >= '2026-01-17 00:00:00'::timestamp without time zone) AND (bucket < '2026-01-27 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_12);
--
-- Name: _hyper_12_175_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_12_175_chunk (
CONSTRAINT constraint_110 CHECK (((bucket >= '2026-03-08 00:00:00'::timestamp without time zone) AND (bucket < '2026-03-18 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_12);
--
-- Name: _hyper_12_206_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_12_206_chunk (
CONSTRAINT constraint_126 CHECK (((bucket >= '2026-03-18 00:00:00'::timestamp without time zone) AND (bucket < '2026-03-28 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_12);
--
-- Name: _hyper_12_45_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_12_45_chunk (
CONSTRAINT constraint_38 CHECK (((bucket >= '2026-01-27 00:00:00'::timestamp without time zone) AND (bucket < '2026-02-06 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_12);
--
-- Name: check_results; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.check_results (
id uuid NOT NULL,
checked_at timestamp(0) without time zone NOT NULL,
organization_id uuid NOT NULL,
check_id uuid NOT NULL,
status integer NOT NULL,
output text,
response_time_ms double precision,
agent_token_id uuid,
value double precision
);
--
-- Name: _hyper_14_191_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_14_191_chunk (
CONSTRAINT constraint_114 CHECK (((checked_at >= '2026-03-19 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-26 00:00:00'::timestamp without time zone)))
)
INHERITS (public.check_results);
--
-- Name: _hyper_14_210_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_14_210_chunk (
CONSTRAINT constraint_130 CHECK (((checked_at >= '2026-03-26 00:00:00'::timestamp without time zone) AND (checked_at < '2026-04-02 00:00:00'::timestamp without time zone)))
)
INHERITS (public.check_results);
--
-- Name: _hyper_1_112_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_1_112_chunk (
CONSTRAINT constraint_74 CHECK (((checked_at >= '2026-02-09 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-10 00:00:00'::timestamp without time zone)))
)
INHERITS (public.monitoring_checks);
--
-- Name: _hyper_1_115_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_1_115_chunk (
CONSTRAINT constraint_75 CHECK (((checked_at >= '2026-02-10 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-11 00:00:00'::timestamp without time zone)))
)
INHERITS (public.monitoring_checks);
--
-- Name: _hyper_1_120_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_1_120_chunk (
CONSTRAINT constraint_78 CHECK (((checked_at >= '2026-02-11 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-12 00:00:00'::timestamp without time zone)))
)
INHERITS (public.monitoring_checks);
--
-- Name: _hyper_1_132_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_1_132_chunk (
CONSTRAINT constraint_84 CHECK (((checked_at >= '2026-02-15 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-16 00:00:00'::timestamp without time zone)))
)
INHERITS (public.monitoring_checks);
--
-- Name: _hyper_1_143_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_1_143_chunk (
CONSTRAINT constraint_87 CHECK (((checked_at >= '2026-02-18 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-19 00:00:00'::timestamp without time zone)))
)
INHERITS (public.monitoring_checks);
--
-- Name: _hyper_1_158_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_1_158_chunk (
CONSTRAINT constraint_93 CHECK (((checked_at >= '2026-03-12 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-13 00:00:00'::timestamp without time zone)))
)
INHERITS (public.monitoring_checks);
--
-- Name: _hyper_1_163_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_1_163_chunk (
CONSTRAINT constraint_98 CHECK (((checked_at >= '2026-03-13 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-14 00:00:00'::timestamp without time zone)))
)
INHERITS (public.monitoring_checks);
--
-- Name: _hyper_1_164_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_1_164_chunk (
CONSTRAINT constraint_99 CHECK (((checked_at >= '2026-03-14 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-15 00:00:00'::timestamp without time zone)))
)
INHERITS (public.monitoring_checks);
--
-- Name: _hyper_1_167_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_1_167_chunk (
CONSTRAINT constraint_102 CHECK (((checked_at >= '2026-03-15 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-16 00:00:00'::timestamp without time zone)))
)
INHERITS (public.monitoring_checks);
--
-- Name: _hyper_1_170_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_1_170_chunk (
CONSTRAINT constraint_105 CHECK (((checked_at >= '2026-03-16 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-17 00:00:00'::timestamp without time zone)))
)
INHERITS (public.monitoring_checks);
--
-- Name: _hyper_1_188_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_1_188_chunk (
CONSTRAINT constraint_111 CHECK (((checked_at >= '2026-03-23 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-24 00:00:00'::timestamp without time zone)))
)
INHERITS (public.monitoring_checks);
--
-- Name: _hyper_1_198_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_1_198_chunk (
CONSTRAINT constraint_118 CHECK (((checked_at >= '2026-03-24 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-25 00:00:00'::timestamp without time zone)))
)
INHERITS (public.monitoring_checks);
--
-- Name: _hyper_1_201_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_1_201_chunk (
CONSTRAINT constraint_121 CHECK (((checked_at >= '2026-03-25 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-26 00:00:00'::timestamp without time zone)))
)
INHERITS (public.monitoring_checks);
--
-- Name: _hyper_1_209_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_1_209_chunk (
CONSTRAINT constraint_129 CHECK (((checked_at >= '2026-03-26 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-27 00:00:00'::timestamp without time zone)))
)
INHERITS (public.monitoring_checks);
--
-- Name: _hyper_2_103_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_103_chunk (
CONSTRAINT constraint_68 CHECK (((checked_at >= '2026-02-08 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-09 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_111_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_111_chunk (
CONSTRAINT constraint_73 CHECK (((checked_at >= '2026-02-09 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-10 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_116_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_116_chunk (
CONSTRAINT constraint_76 CHECK (((checked_at >= '2026-02-10 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-11 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_121_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_121_chunk (
CONSTRAINT constraint_79 CHECK (((checked_at >= '2026-02-11 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-12 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_134_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_134_chunk (
CONSTRAINT constraint_86 CHECK (((checked_at >= '2026-02-15 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-16 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_144_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_144_chunk (
CONSTRAINT constraint_88 CHECK (((checked_at >= '2026-02-18 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-19 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_159_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_159_chunk (
CONSTRAINT constraint_94 CHECK (((checked_at >= '2026-03-12 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-13 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_161_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_161_chunk (
CONSTRAINT constraint_96 CHECK (((checked_at >= '2026-03-13 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-14 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_165_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_165_chunk (
CONSTRAINT constraint_100 CHECK (((checked_at >= '2026-03-14 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-15 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_168_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_168_chunk (
CONSTRAINT constraint_103 CHECK (((checked_at >= '2026-03-15 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-16 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_171_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_171_chunk (
CONSTRAINT constraint_106 CHECK (((checked_at >= '2026-03-16 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-17 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_18_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_18_chunk (
CONSTRAINT constraint_18 CHECK (((checked_at >= '2026-01-23 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-24 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_190_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_190_chunk (
CONSTRAINT constraint_113 CHECK (((checked_at >= '2026-03-23 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-24 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_200_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_200_chunk (
CONSTRAINT constraint_120 CHECK (((checked_at >= '2026-03-24 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-25 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_203_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_203_chunk (
CONSTRAINT constraint_123 CHECK (((checked_at >= '2026-03-25 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-26 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_207_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_207_chunk (
CONSTRAINT constraint_127 CHECK (((checked_at >= '2026-03-26 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-27 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_21_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_21_chunk (
CONSTRAINT constraint_21 CHECK (((checked_at >= '2026-01-24 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-25 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_24_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_24_chunk (
CONSTRAINT constraint_24 CHECK (((checked_at >= '2026-01-25 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-26 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_27_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_27_chunk (
CONSTRAINT constraint_27 CHECK (((checked_at >= '2026-01-26 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-27 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_44_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_44_chunk (
CONSTRAINT constraint_37 CHECK (((checked_at >= '2026-01-29 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-30 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_48_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_48_chunk (
CONSTRAINT constraint_41 CHECK (((checked_at >= '2026-01-30 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-31 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_55_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_55_chunk (
CONSTRAINT constraint_45 CHECK (((checked_at >= '2026-01-31 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-01 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_5_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_5_chunk (
CONSTRAINT constraint_5 CHECK (((checked_at >= '2026-01-22 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-23 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_62_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_62_chunk (
CONSTRAINT constraint_49 CHECK (((checked_at >= '2026-02-01 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-02 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_68_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_68_chunk (
CONSTRAINT constraint_52 CHECK (((checked_at >= '2026-02-02 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-03 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_6_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_6_chunk (
CONSTRAINT constraint_6 CHECK (((checked_at >= '2026-01-21 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-22 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_75_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_75_chunk (
CONSTRAINT constraint_56 CHECK (((checked_at >= '2026-02-03 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-04 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_82_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_82_chunk (
CONSTRAINT constraint_58 CHECK (((checked_at >= '2026-02-04 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-05 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_86_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_86_chunk (
CONSTRAINT constraint_61 CHECK (((checked_at >= '2026-02-05 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-06 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_2_92_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_2_92_chunk (
CONSTRAINT constraint_63 CHECK (((checked_at >= '2026-02-06 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-07 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_sensor_readings);
--
-- Name: _hyper_3_102_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_102_chunk (
CONSTRAINT constraint_67 CHECK (((checked_at >= '2026-02-08 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-09 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_10_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_10_chunk (
CONSTRAINT constraint_10 CHECK (((checked_at >= '2026-01-19 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-20 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_110_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_110_chunk (
CONSTRAINT constraint_72 CHECK (((checked_at >= '2026-02-09 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-10 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_117_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_117_chunk (
CONSTRAINT constraint_77 CHECK (((checked_at >= '2026-02-10 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-11 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_122_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_122_chunk (
CONSTRAINT constraint_80 CHECK (((checked_at >= '2026-02-11 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-12 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_133_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_133_chunk (
CONSTRAINT constraint_85 CHECK (((checked_at >= '2026-02-15 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-16 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_145_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_145_chunk (
CONSTRAINT constraint_89 CHECK (((checked_at >= '2026-02-18 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-19 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_160_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_160_chunk (
CONSTRAINT constraint_95 CHECK (((checked_at >= '2026-03-12 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-13 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_162_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_162_chunk (
CONSTRAINT constraint_97 CHECK (((checked_at >= '2026-03-13 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-14 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_166_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_166_chunk (
CONSTRAINT constraint_101 CHECK (((checked_at >= '2026-03-14 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-15 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_169_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_169_chunk (
CONSTRAINT constraint_104 CHECK (((checked_at >= '2026-03-15 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-16 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_172_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_172_chunk (
CONSTRAINT constraint_107 CHECK (((checked_at >= '2026-03-16 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-17 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_189_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_189_chunk (
CONSTRAINT constraint_112 CHECK (((checked_at >= '2026-03-23 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-24 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_199_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_199_chunk (
CONSTRAINT constraint_119 CHECK (((checked_at >= '2026-03-24 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-25 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_19_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_19_chunk (
CONSTRAINT constraint_19 CHECK (((checked_at >= '2026-01-23 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-24 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_202_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_202_chunk (
CONSTRAINT constraint_122 CHECK (((checked_at >= '2026-03-25 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-26 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_208_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_208_chunk (
CONSTRAINT constraint_128 CHECK (((checked_at >= '2026-03-26 00:00:00'::timestamp without time zone) AND (checked_at < '2026-03-27 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_22_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_22_chunk (
CONSTRAINT constraint_22 CHECK (((checked_at >= '2026-01-24 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-25 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_25_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_25_chunk (
CONSTRAINT constraint_25 CHECK (((checked_at >= '2026-01-25 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-26 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_28_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_28_chunk (
CONSTRAINT constraint_28 CHECK (((checked_at >= '2026-01-26 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-27 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_30_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_30_chunk (
CONSTRAINT constraint_30 CHECK (((checked_at >= '2026-01-27 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-28 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_37_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_37_chunk (
CONSTRAINT constraint_33 CHECK (((checked_at >= '2026-01-28 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-29 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_40_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_40_chunk (
CONSTRAINT constraint_36 CHECK (((checked_at >= '2026-01-29 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-30 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_49_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_49_chunk (
CONSTRAINT constraint_42 CHECK (((checked_at >= '2026-01-30 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-31 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_56_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_56_chunk (
CONSTRAINT constraint_46 CHECK (((checked_at >= '2026-01-31 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-01 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_63_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_63_chunk (
CONSTRAINT constraint_50 CHECK (((checked_at >= '2026-02-01 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-02 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_69_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_69_chunk (
CONSTRAINT constraint_53 CHECK (((checked_at >= '2026-02-02 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-03 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_74_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_74_chunk (
CONSTRAINT constraint_55 CHECK (((checked_at >= '2026-02-03 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-04 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_7_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_7_chunk (
CONSTRAINT constraint_7 CHECK (((checked_at >= '2026-01-20 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-21 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_83_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_83_chunk (
CONSTRAINT constraint_59 CHECK (((checked_at >= '2026-02-04 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-05 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_85_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_85_chunk (
CONSTRAINT constraint_62 CHECK (((checked_at >= '2026-02-05 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-06 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_8_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_8_chunk (
CONSTRAINT constraint_8 CHECK (((checked_at >= '2026-01-21 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-22 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_93_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_93_chunk (
CONSTRAINT constraint_64 CHECK (((checked_at >= '2026-02-06 00:00:00'::timestamp without time zone) AND (checked_at < '2026-02-07 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _hyper_3_9_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_3_9_chunk (
CONSTRAINT constraint_9 CHECK (((checked_at >= '2026-01-22 00:00:00'::timestamp without time zone) AND (checked_at < '2026-01-23 00:00:00'::timestamp without time zone)))
)
INHERITS (public.snmp_interface_stats);
--
-- Name: _materialized_hypertable_7; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._materialized_hypertable_7 (
device_id uuid,
bucket timestamp without time zone NOT NULL,
total_checks bigint,
successful_checks bigint,
failed_checks bigint,
avg_response_time_ms double precision,
min_response_time_ms double precision,
max_response_time_ms double precision
);
--
-- Name: _hyper_7_105_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_7_105_chunk (
CONSTRAINT constraint_70 CHECK (((bucket >= '2026-02-06 00:00:00'::timestamp without time zone) AND (bucket < '2026-02-16 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_7);
--
-- Name: _hyper_7_11_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_7_11_chunk (
CONSTRAINT constraint_11 CHECK (((bucket >= '2026-01-17 00:00:00'::timestamp without time zone) AND (bucket < '2026-01-27 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_7);
--
-- Name: _hyper_7_148_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_7_148_chunk (
CONSTRAINT constraint_92 CHECK (((bucket >= '2026-02-16 00:00:00'::timestamp without time zone) AND (bucket < '2026-02-26 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_7);
--
-- Name: _hyper_7_192_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_7_192_chunk (
CONSTRAINT constraint_115 CHECK (((bucket >= '2026-03-18 00:00:00'::timestamp without time zone) AND (bucket < '2026-03-28 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_7);
--
-- Name: _hyper_7_34_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_7_34_chunk (
CONSTRAINT constraint_32 CHECK (((bucket >= '2026-01-27 00:00:00'::timestamp without time zone) AND (bucket < '2026-02-06 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_7);
--
-- Name: _materialized_hypertable_8; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._materialized_hypertable_8 (
device_id uuid,
bucket timestamp without time zone NOT NULL,
total_checks bigint,
successful_checks bigint,
failed_checks bigint,
avg_response_time_ms double precision,
min_response_time_ms double precision,
max_response_time_ms double precision
);
--
-- Name: _hyper_8_128_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_8_128_chunk (
CONSTRAINT constraint_82 CHECK (((bucket >= '2026-02-06 00:00:00'::timestamp without time zone) AND (bucket < '2026-02-16 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_8);
--
-- Name: _hyper_8_12_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_8_12_chunk (
CONSTRAINT constraint_12 CHECK (((bucket >= '2026-01-17 00:00:00'::timestamp without time zone) AND (bucket < '2026-01-27 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_8);
--
-- Name: _hyper_8_173_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_8_173_chunk (
CONSTRAINT constraint_108 CHECK (((bucket >= '2026-03-08 00:00:00'::timestamp without time zone) AND (bucket < '2026-03-18 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_8);
--
-- Name: _hyper_8_204_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_8_204_chunk (
CONSTRAINT constraint_124 CHECK (((bucket >= '2026-03-18 00:00:00'::timestamp without time zone) AND (bucket < '2026-03-28 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_8);
--
-- Name: _hyper_8_46_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_8_46_chunk (
CONSTRAINT constraint_39 CHECK (((bucket >= '2026-01-27 00:00:00'::timestamp without time zone) AND (bucket < '2026-02-06 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_8);
--
-- Name: _materialized_hypertable_9; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._materialized_hypertable_9 (
sensor_id uuid,
bucket timestamp without time zone NOT NULL,
avg_value double precision,
min_value double precision,
max_value double precision,
reading_count bigint
);
--
-- Name: _hyper_9_13_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_9_13_chunk (
CONSTRAINT constraint_13 CHECK (((bucket >= '2026-01-17 00:00:00'::timestamp without time zone) AND (bucket < '2026-01-27 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_9);
--
-- Name: _hyper_9_146_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_9_146_chunk (
CONSTRAINT constraint_90 CHECK (((bucket >= '2026-02-16 00:00:00'::timestamp without time zone) AND (bucket < '2026-02-26 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_9);
--
-- Name: _hyper_9_193_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_9_193_chunk (
CONSTRAINT constraint_116 CHECK (((bucket >= '2026-03-18 00:00:00'::timestamp without time zone) AND (bucket < '2026-03-28 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_9);
--
-- Name: _hyper_9_50_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_9_50_chunk (
CONSTRAINT constraint_43 CHECK (((bucket >= '2026-01-27 00:00:00'::timestamp without time zone) AND (bucket < '2026-02-06 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_9);
--
-- Name: _hyper_9_94_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._hyper_9_94_chunk (
CONSTRAINT constraint_65 CHECK (((bucket >= '2026-02-06 00:00:00'::timestamp without time zone) AND (bucket < '2026-02-16 00:00:00'::timestamp without time zone)))
)
INHERITS (_timescaledb_internal._materialized_hypertable_9);
--
-- Name: _materialized_hypertable_17; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._materialized_hypertable_17 (
device_id uuid,
mac_address character varying(255),
wireless_client_id uuid,
organization_id uuid,
bucket timestamp without time zone NOT NULL,
avg_signal_strength numeric,
min_signal_strength integer,
max_signal_strength integer,
avg_snr numeric,
min_snr integer,
max_snr integer,
avg_distance numeric,
avg_tx_rate numeric,
avg_rx_rate numeric,
sample_count bigint
);
--
-- Name: _materialized_hypertable_18; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal._materialized_hypertable_18 (
device_id uuid,
mac_address character varying(255),
wireless_client_id uuid,
organization_id uuid,
bucket timestamp without time zone NOT NULL,
avg_signal_strength numeric,
min_signal_strength integer,
max_signal_strength integer,
avg_snr numeric,
min_snr integer,
max_snr integer,
avg_distance numeric,
avg_tx_rate numeric,
avg_rx_rate numeric,
sample_count bigint
);
--
-- Name: _partial_view_10; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._partial_view_10 AS
SELECT sensor_id,
public.time_bucket('1 day'::interval, checked_at) AS bucket,
avg(value) AS avg_value,
min(value) AS min_value,
max(value) AS max_value,
count(*) AS reading_count
FROM public.snmp_sensor_readings
GROUP BY sensor_id, (public.time_bucket('1 day'::interval, checked_at));
--
-- Name: _partial_view_11; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._partial_view_11 AS
SELECT interface_id,
public.time_bucket('01:00:00'::interval, checked_at) AS bucket,
max(if_in_octets) AS max_in_octets,
max(if_out_octets) AS max_out_octets,
sum(if_in_errors) AS total_in_errors,
sum(if_out_errors) AS total_out_errors,
sum(if_in_discards) AS total_in_discards,
sum(if_out_discards) AS total_out_discards,
count(*) AS sample_count
FROM public.snmp_interface_stats
GROUP BY interface_id, (public.time_bucket('01:00:00'::interval, checked_at));
--
-- Name: _partial_view_12; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._partial_view_12 AS
SELECT interface_id,
public.time_bucket('1 day'::interval, checked_at) AS bucket,
max(if_in_octets) AS max_in_octets,
max(if_out_octets) AS max_out_octets,
sum(if_in_errors) AS total_in_errors,
sum(if_out_errors) AS total_out_errors,
sum(if_in_discards) AS total_in_discards,
sum(if_out_discards) AS total_out_discards,
count(*) AS sample_count
FROM public.snmp_interface_stats
GROUP BY interface_id, (public.time_bucket('1 day'::interval, checked_at));
--
-- Name: _partial_view_17; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._partial_view_17 AS
SELECT device_id,
mac_address,
wireless_client_id,
organization_id,
public.time_bucket('01:00:00'::interval, checked_at) AS bucket,
avg(signal_strength) AS avg_signal_strength,
min(signal_strength) AS min_signal_strength,
max(signal_strength) AS max_signal_strength,
avg(snr) AS avg_snr,
min(snr) AS min_snr,
max(snr) AS max_snr,
avg(distance) AS avg_distance,
avg(tx_rate) AS avg_tx_rate,
avg(rx_rate) AS avg_rx_rate,
count(*) AS sample_count
FROM public.wireless_client_readings
GROUP BY device_id, mac_address, wireless_client_id, organization_id, (public.time_bucket('01:00:00'::interval, checked_at));
--
-- Name: _partial_view_18; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._partial_view_18 AS
SELECT device_id,
mac_address,
wireless_client_id,
organization_id,
public.time_bucket('1 day'::interval, checked_at) AS bucket,
avg(signal_strength) AS avg_signal_strength,
min(signal_strength) AS min_signal_strength,
max(signal_strength) AS max_signal_strength,
avg(snr) AS avg_snr,
min(snr) AS min_snr,
max(snr) AS max_snr,
avg(distance) AS avg_distance,
avg(tx_rate) AS avg_tx_rate,
avg(rx_rate) AS avg_rx_rate,
count(*) AS sample_count
FROM public.wireless_client_readings
GROUP BY device_id, mac_address, wireless_client_id, organization_id, (public.time_bucket('1 day'::interval, checked_at));
--
-- Name: _partial_view_7; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._partial_view_7 AS
SELECT device_id,
public.time_bucket('01:00:00'::interval, checked_at) AS bucket,
count(*) AS total_checks,
count(*) FILTER (WHERE ((status)::text = 'success'::text)) AS successful_checks,
count(*) FILTER (WHERE ((status)::text = ANY ((ARRAY['failure'::character varying, 'timeout'::character varying])::text[]))) AS failed_checks,
avg(response_time_ms) AS avg_response_time_ms,
min(response_time_ms) AS min_response_time_ms,
max(response_time_ms) AS max_response_time_ms
FROM public.monitoring_checks
GROUP BY device_id, (public.time_bucket('01:00:00'::interval, checked_at));
--
-- Name: _partial_view_8; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._partial_view_8 AS
SELECT device_id,
public.time_bucket('1 day'::interval, checked_at) AS bucket,
count(*) AS total_checks,
count(*) FILTER (WHERE ((status)::text = 'success'::text)) AS successful_checks,
count(*) FILTER (WHERE ((status)::text = ANY ((ARRAY['failure'::character varying, 'timeout'::character varying])::text[]))) AS failed_checks,
avg(response_time_ms) AS avg_response_time_ms,
min(response_time_ms) AS min_response_time_ms,
max(response_time_ms) AS max_response_time_ms
FROM public.monitoring_checks
GROUP BY device_id, (public.time_bucket('1 day'::interval, checked_at));
--
-- Name: _partial_view_9; Type: VIEW; Schema: _timescaledb_internal; Owner: -
--
CREATE VIEW _timescaledb_internal._partial_view_9 AS
SELECT sensor_id,
public.time_bucket('01:00:00'::interval, checked_at) AS bucket,
avg(value) AS avg_value,
min(value) AS min_value,
max(value) AS max_value,
count(*) AS reading_count
FROM public.snmp_sensor_readings
GROUP BY sensor_id, (public.time_bucket('01:00:00'::interval, checked_at));
--
-- Name: compress_hyper_4_139_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_4_139_chunk (
_ts_meta_count integer,
device_id uuid,
id _timescaledb_internal.compressed_data,
_ts_meta_v2_bloomh_status _timescaledb_internal.bloom1,
status _timescaledb_internal.compressed_data,
response_time_ms _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
_ts_meta_min_2 uuid,
_ts_meta_max_2 uuid,
agent_token_id _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_139_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_139_chunk ALTER COLUMN device_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_139_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_139_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_139_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STORAGE EXTERNAL;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_139_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_139_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_139_chunk ALTER COLUMN response_time_ms SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_139_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_139_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_139_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_139_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_139_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_139_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_139_chunk ALTER COLUMN agent_token_id SET STATISTICS 0;
--
-- Name: compress_hyper_4_140_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_4_140_chunk (
_ts_meta_count integer,
device_id uuid,
id _timescaledb_internal.compressed_data,
_ts_meta_v2_bloomh_status _timescaledb_internal.bloom1,
status _timescaledb_internal.compressed_data,
response_time_ms _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
_ts_meta_min_2 uuid,
_ts_meta_max_2 uuid,
agent_token_id _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_140_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_140_chunk ALTER COLUMN device_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_140_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_140_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_140_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STORAGE EXTERNAL;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_140_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_140_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_140_chunk ALTER COLUMN response_time_ms SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_140_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_140_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_140_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_140_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_140_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_140_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_140_chunk ALTER COLUMN agent_token_id SET STATISTICS 0;
--
-- Name: compress_hyper_4_149_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_4_149_chunk (
_ts_meta_count integer,
device_id uuid,
id _timescaledb_internal.compressed_data,
_ts_meta_v2_bloomh_status _timescaledb_internal.bloom1,
status _timescaledb_internal.compressed_data,
response_time_ms _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
_ts_meta_min_2 uuid,
_ts_meta_max_2 uuid,
agent_token_id _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_149_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_149_chunk ALTER COLUMN device_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_149_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_149_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_149_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STORAGE EXTERNAL;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_149_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_149_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_149_chunk ALTER COLUMN response_time_ms SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_149_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_149_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_149_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_149_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_149_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_149_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_149_chunk ALTER COLUMN agent_token_id SET STATISTICS 0;
--
-- Name: compress_hyper_4_152_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_4_152_chunk (
_ts_meta_count integer,
device_id uuid,
id _timescaledb_internal.compressed_data,
_ts_meta_v2_bloomh_status _timescaledb_internal.bloom1,
status _timescaledb_internal.compressed_data,
response_time_ms _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
_ts_meta_min_2 uuid,
_ts_meta_max_2 uuid,
agent_token_id _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_152_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_152_chunk ALTER COLUMN device_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_152_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_152_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_152_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STORAGE EXTERNAL;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_152_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_152_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_152_chunk ALTER COLUMN response_time_ms SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_152_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_152_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_152_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_152_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_152_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_152_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_152_chunk ALTER COLUMN agent_token_id SET STATISTICS 0;
--
-- Name: compress_hyper_4_155_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_4_155_chunk (
_ts_meta_count integer,
device_id uuid,
id _timescaledb_internal.compressed_data,
_ts_meta_v2_bloomh_status _timescaledb_internal.bloom1,
status _timescaledb_internal.compressed_data,
response_time_ms _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
_ts_meta_min_2 uuid,
_ts_meta_max_2 uuid,
agent_token_id _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_155_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_155_chunk ALTER COLUMN device_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_155_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_155_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_155_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STORAGE EXTERNAL;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_155_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_155_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_155_chunk ALTER COLUMN response_time_ms SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_155_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_155_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_155_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_155_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_155_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_155_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_155_chunk ALTER COLUMN agent_token_id SET STATISTICS 0;
--
-- Name: compress_hyper_4_178_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_4_178_chunk (
_ts_meta_count integer,
device_id uuid,
id _timescaledb_internal.compressed_data,
_ts_meta_v2_bloomh_status _timescaledb_internal.bloom1,
status _timescaledb_internal.compressed_data,
response_time_ms _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
_ts_meta_min_2 uuid,
_ts_meta_max_2 uuid,
agent_token_id _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_178_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_178_chunk ALTER COLUMN device_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_178_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_178_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_178_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STORAGE EXTERNAL;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_178_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_178_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_178_chunk ALTER COLUMN response_time_ms SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_178_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_178_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_178_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_178_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_178_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_178_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_178_chunk ALTER COLUMN agent_token_id SET STATISTICS 0;
--
-- Name: compress_hyper_4_179_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_4_179_chunk (
_ts_meta_count integer,
device_id uuid,
id _timescaledb_internal.compressed_data,
_ts_meta_v2_bloomh_status _timescaledb_internal.bloom1,
status _timescaledb_internal.compressed_data,
response_time_ms _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
_ts_meta_min_2 uuid,
_ts_meta_max_2 uuid,
agent_token_id _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_179_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_179_chunk ALTER COLUMN device_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_179_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_179_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_179_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STORAGE EXTERNAL;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_179_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_179_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_179_chunk ALTER COLUMN response_time_ms SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_179_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_179_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_179_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_179_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_179_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_179_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_179_chunk ALTER COLUMN agent_token_id SET STATISTICS 0;
--
-- Name: compress_hyper_4_183_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_4_183_chunk (
_ts_meta_count integer,
device_id uuid,
id _timescaledb_internal.compressed_data,
_ts_meta_v2_bloomh_status _timescaledb_internal.bloom1,
status _timescaledb_internal.compressed_data,
response_time_ms _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
_ts_meta_min_2 uuid,
_ts_meta_max_2 uuid,
agent_token_id _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_183_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_183_chunk ALTER COLUMN device_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_183_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_183_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_183_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STORAGE EXTERNAL;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_183_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_183_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_183_chunk ALTER COLUMN response_time_ms SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_183_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_183_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_183_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_183_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_183_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_183_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_183_chunk ALTER COLUMN agent_token_id SET STATISTICS 0;
--
-- Name: compress_hyper_4_185_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_4_185_chunk (
_ts_meta_count integer,
device_id uuid,
id _timescaledb_internal.compressed_data,
_ts_meta_v2_bloomh_status _timescaledb_internal.bloom1,
status _timescaledb_internal.compressed_data,
response_time_ms _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
_ts_meta_min_2 uuid,
_ts_meta_max_2 uuid,
agent_token_id _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_185_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_185_chunk ALTER COLUMN device_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_185_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_185_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_185_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STORAGE EXTERNAL;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_185_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_185_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_185_chunk ALTER COLUMN response_time_ms SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_185_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_185_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_185_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_185_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_185_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_185_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_185_chunk ALTER COLUMN agent_token_id SET STATISTICS 0;
--
-- Name: compress_hyper_4_195_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_4_195_chunk (
_ts_meta_count integer,
device_id uuid,
id _timescaledb_internal.compressed_data,
_ts_meta_v2_bloomh_status _timescaledb_internal.bloom1,
status _timescaledb_internal.compressed_data,
response_time_ms _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
_ts_meta_min_2 uuid,
_ts_meta_max_2 uuid,
agent_token_id _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_195_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_195_chunk ALTER COLUMN device_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_195_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_195_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_195_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STORAGE EXTERNAL;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_195_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_195_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_195_chunk ALTER COLUMN response_time_ms SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_195_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_195_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_195_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_195_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_195_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_195_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_195_chunk ALTER COLUMN agent_token_id SET STATISTICS 0;
--
-- Name: compress_hyper_4_213_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_4_213_chunk (
_ts_meta_count integer,
device_id uuid,
id _timescaledb_internal.compressed_data,
_ts_meta_v2_bloomh_status _timescaledb_internal.bloom1,
status _timescaledb_internal.compressed_data,
response_time_ms _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
_ts_meta_min_2 uuid,
_ts_meta_max_2 uuid,
agent_token_id _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_213_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_213_chunk ALTER COLUMN device_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_213_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_213_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_213_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STORAGE EXTERNAL;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_213_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_213_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_213_chunk ALTER COLUMN response_time_ms SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_213_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_213_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_213_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_213_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_213_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_213_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_213_chunk ALTER COLUMN agent_token_id SET STATISTICS 0;
--
-- Name: compress_hyper_4_214_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_4_214_chunk (
_ts_meta_count integer,
device_id uuid,
id _timescaledb_internal.compressed_data,
_ts_meta_v2_bloomh_status _timescaledb_internal.bloom1,
status _timescaledb_internal.compressed_data,
response_time_ms _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
_ts_meta_min_2 uuid,
_ts_meta_max_2 uuid,
agent_token_id _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_214_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_214_chunk ALTER COLUMN device_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_214_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_214_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_214_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STORAGE EXTERNAL;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_214_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_214_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_214_chunk ALTER COLUMN response_time_ms SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_214_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_214_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_214_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_214_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_214_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_214_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_214_chunk ALTER COLUMN agent_token_id SET STATISTICS 0;
--
-- Name: compress_hyper_4_217_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_4_217_chunk (
_ts_meta_count integer,
device_id uuid,
id _timescaledb_internal.compressed_data,
_ts_meta_v2_bloomh_status _timescaledb_internal.bloom1,
status _timescaledb_internal.compressed_data,
response_time_ms _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
_ts_meta_min_2 uuid,
_ts_meta_max_2 uuid,
agent_token_id _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_217_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_217_chunk ALTER COLUMN device_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_217_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_217_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_217_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STORAGE EXTERNAL;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_217_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_217_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_217_chunk ALTER COLUMN response_time_ms SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_217_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_217_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_217_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_217_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_217_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_217_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_217_chunk ALTER COLUMN agent_token_id SET STATISTICS 0;
--
-- Name: compress_hyper_4_220_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_4_220_chunk (
_ts_meta_count integer,
device_id uuid,
id _timescaledb_internal.compressed_data,
_ts_meta_v2_bloomh_status _timescaledb_internal.bloom1,
status _timescaledb_internal.compressed_data,
response_time_ms _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
_ts_meta_min_2 uuid,
_ts_meta_max_2 uuid,
agent_token_id _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_220_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_220_chunk ALTER COLUMN device_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_220_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_220_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_220_chunk ALTER COLUMN _ts_meta_v2_bloomh_status SET STORAGE EXTERNAL;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_220_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_220_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_220_chunk ALTER COLUMN response_time_ms SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_220_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_220_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_220_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_220_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_220_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_220_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_4_220_chunk ALTER COLUMN agent_token_id SET STATISTICS 0;
--
-- Name: compress_hyper_5_106_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_106_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_106_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_114_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_114_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_114_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_119_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_119_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_119_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_123_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_123_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_123_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_125_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_125_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_125_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_131_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_131_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_131_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_136_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_136_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_136_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_137_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_137_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_137_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_141_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_141_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_141_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_150_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_150_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_150_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_154_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_154_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_154_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_156_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_156_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_156_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_176_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_176_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_176_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_180_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_180_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_180_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_182_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_182_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_182_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_186_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_186_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_186_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_196_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_196_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_196_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_212_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_212_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_212_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_216_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_216_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_216_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_219_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_219_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_219_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_221_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_221_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_221_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_41_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_41_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_41_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_52_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_52_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_52_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_59_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_59_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_59_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_64_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_64_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_64_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_71_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_71_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_71_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_77_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_77_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_77_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_89_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_89_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_89_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_96_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_96_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_96_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_5_99_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_5_99_chunk (
_ts_meta_count integer,
sensor_id uuid,
id _timescaledb_internal.compressed_data,
value _timescaledb_internal.compressed_data,
_ts_meta_min_2 character varying(255),
_ts_meta_max_2 character varying(255),
status _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
state_descr _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN sensor_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN value SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN _ts_meta_min_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN _ts_meta_min_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN _ts_meta_max_2 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN _ts_meta_max_2 SET STORAGE PLAIN;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN status SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN status SET STORAGE EXTENDED;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN state_descr SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_5_99_chunk ALTER COLUMN state_descr SET STORAGE EXTENDED;
--
-- Name: compress_hyper_6_101_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_101_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_101_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_101_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_101_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_101_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_101_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_101_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_101_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_101_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_101_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_101_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_101_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_101_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_101_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_107_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_107_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_107_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_107_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_107_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_107_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_107_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_107_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_107_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_107_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_107_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_107_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_107_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_107_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_107_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_113_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_113_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_113_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_113_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_113_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_113_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_113_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_113_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_113_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_113_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_113_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_113_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_113_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_113_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_113_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_118_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_118_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_118_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_118_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_118_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_118_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_118_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_118_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_118_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_118_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_118_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_118_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_118_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_118_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_118_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_124_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_124_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_124_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_124_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_124_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_124_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_124_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_124_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_124_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_124_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_124_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_124_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_124_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_124_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_124_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_126_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_126_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_126_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_126_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_126_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_126_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_126_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_126_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_126_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_126_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_126_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_126_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_126_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_126_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_126_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_130_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_130_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_130_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_130_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_130_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_130_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_130_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_130_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_130_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_130_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_130_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_130_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_130_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_130_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_130_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_135_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_135_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_135_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_135_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_135_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_135_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_135_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_135_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_135_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_135_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_135_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_135_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_135_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_135_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_135_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_138_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_138_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_138_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_138_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_138_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_138_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_138_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_138_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_138_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_138_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_138_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_138_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_138_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_138_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_138_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_142_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_142_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_142_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_142_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_142_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_142_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_142_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_142_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_142_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_142_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_142_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_142_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_142_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_142_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_142_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_151_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_151_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_151_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_151_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_151_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_151_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_151_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_151_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_151_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_151_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_151_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_151_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_151_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_151_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_151_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_153_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_153_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_153_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_153_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_153_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_153_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_153_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_153_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_153_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_153_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_153_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_153_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_153_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_153_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_153_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_157_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_157_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_157_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_157_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_157_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_157_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_157_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_157_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_157_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_157_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_157_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_157_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_157_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_157_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_157_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_177_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_177_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_177_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_177_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_177_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_177_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_177_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_177_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_177_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_177_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_177_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_177_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_177_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_177_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_177_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_181_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_181_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_181_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_181_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_181_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_181_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_181_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_181_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_181_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_181_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_181_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_181_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_181_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_181_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_181_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_184_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_184_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_184_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_184_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_184_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_184_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_184_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_184_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_184_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_184_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_184_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_184_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_184_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_184_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_184_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_187_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_187_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_187_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_187_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_187_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_187_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_187_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_187_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_187_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_187_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_187_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_187_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_187_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_187_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_187_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_197_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_197_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_197_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_197_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_197_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_197_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_197_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_197_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_197_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_197_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_197_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_197_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_197_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_197_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_197_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_211_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_211_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_211_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_211_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_211_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_211_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_211_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_211_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_211_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_211_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_211_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_211_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_211_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_211_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_211_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_211_chunk ALTER COLUMN is_hc SET STATISTICS 0;
--
-- Name: compress_hyper_6_215_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_215_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_215_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_215_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_215_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_215_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_215_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_215_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_215_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_215_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_215_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_215_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_215_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_215_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_215_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_215_chunk ALTER COLUMN is_hc SET STATISTICS 0;
--
-- Name: compress_hyper_6_218_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_218_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_218_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_218_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_218_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_218_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_218_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_218_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_218_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_218_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_218_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_218_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_218_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_218_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_218_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_218_chunk ALTER COLUMN is_hc SET STATISTICS 0;
--
-- Name: compress_hyper_6_222_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_222_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_222_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_222_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_222_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_222_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_222_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_222_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_222_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_222_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_222_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_222_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_222_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_222_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_222_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_222_chunk ALTER COLUMN is_hc SET STATISTICS 0;
--
-- Name: compress_hyper_6_31_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_31_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_31_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_31_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_31_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_31_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_31_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_31_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_31_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_31_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_31_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_31_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_31_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_31_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_31_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_36_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_36_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_36_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_36_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_36_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_36_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_36_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_36_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_36_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_36_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_36_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_36_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_36_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_36_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_36_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_42_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_42_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_42_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_42_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_42_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_42_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_42_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_42_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_42_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_42_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_42_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_42_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_42_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_42_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_42_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_51_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_51_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_51_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_51_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_51_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_51_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_51_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_51_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_51_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_51_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_51_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_51_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_51_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_51_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_51_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_58_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_58_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_58_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_58_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_58_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_58_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_58_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_58_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_58_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_58_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_58_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_58_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_58_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_58_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_58_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_65_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_65_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_65_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_65_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_65_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_65_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_65_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_65_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_65_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_65_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_65_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_65_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_65_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_65_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_65_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_70_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_70_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_70_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_70_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_70_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_70_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_70_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_70_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_70_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_70_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_70_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_70_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_70_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_70_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_70_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_78_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_78_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_78_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_78_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_78_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_78_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_78_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_78_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_78_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_78_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_78_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_78_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_78_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_78_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_78_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_80_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_80_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_80_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_80_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_80_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_80_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_80_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_80_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_80_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_80_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_80_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_80_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_80_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_80_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_80_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_87_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_87_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_87_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_87_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_87_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_87_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_87_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_87_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_87_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_87_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_87_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_87_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_87_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_87_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_87_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_90_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_90_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_90_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_90_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_90_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_90_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_90_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_90_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_90_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_90_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_90_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_90_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_90_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_90_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_90_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: compress_hyper_6_98_chunk; Type: TABLE; Schema: _timescaledb_internal; Owner: -
--
CREATE TABLE _timescaledb_internal.compress_hyper_6_98_chunk (
_ts_meta_count integer,
interface_id uuid,
id _timescaledb_internal.compressed_data,
if_in_octets _timescaledb_internal.compressed_data,
if_out_octets _timescaledb_internal.compressed_data,
if_in_errors _timescaledb_internal.compressed_data,
if_out_errors _timescaledb_internal.compressed_data,
if_in_discards _timescaledb_internal.compressed_data,
if_out_discards _timescaledb_internal.compressed_data,
_ts_meta_min_1 timestamp(0) without time zone,
_ts_meta_max_1 timestamp(0) without time zone,
checked_at _timescaledb_internal.compressed_data,
inserted_at _timescaledb_internal.compressed_data,
is_hc _timescaledb_internal.compressed_data
)
WITH (toast_tuple_target='128');
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_98_chunk ALTER COLUMN _ts_meta_count SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_98_chunk ALTER COLUMN interface_id SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_98_chunk ALTER COLUMN id SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_98_chunk ALTER COLUMN if_in_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_98_chunk ALTER COLUMN if_out_octets SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_98_chunk ALTER COLUMN if_in_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_98_chunk ALTER COLUMN if_out_errors SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_98_chunk ALTER COLUMN if_in_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_98_chunk ALTER COLUMN if_out_discards SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_98_chunk ALTER COLUMN _ts_meta_min_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_98_chunk ALTER COLUMN _ts_meta_max_1 SET STATISTICS 1000;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_98_chunk ALTER COLUMN checked_at SET STATISTICS 0;
ALTER TABLE ONLY _timescaledb_internal.compress_hyper_6_98_chunk ALTER COLUMN inserted_at SET STATISTICS 0;
--
-- Name: agent_assignments; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.agent_assignments (
id uuid NOT NULL,
enabled boolean DEFAULT true NOT NULL,
agent_token_id uuid NOT NULL,
device_id uuid NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: agent_tokens; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.agent_tokens (
id uuid NOT NULL,
name character varying(255) NOT NULL,
last_seen_at timestamp(0) without time zone,
last_ip character varying(255),
enabled boolean DEFAULT true NOT NULL,
metadata jsonb DEFAULT '{}'::jsonb NOT NULL,
organization_id uuid,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
token text NOT NULL,
is_cloud_poller boolean DEFAULT false NOT NULL,
allow_remote_debug boolean DEFAULT false NOT NULL,
CONSTRAINT cloud_poller_no_org CHECK ((((is_cloud_poller = false) AND (organization_id IS NOT NULL)) OR ((is_cloud_poller = true) AND (organization_id IS NULL))))
);
--
-- Name: alert_storms; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.alert_storms (
id uuid NOT NULL,
organization_id uuid NOT NULL,
started_at timestamp(0) without time zone NOT NULL,
ended_at timestamp(0) without time zone,
alert_count integer DEFAULT 0 NOT NULL,
suppressed_count integer DEFAULT 0 NOT NULL,
summary_notification_sent boolean DEFAULT false NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: alerts; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.alerts (
id uuid NOT NULL,
device_id uuid,
alert_type character varying(255) NOT NULL,
triggered_at timestamp(0) without time zone NOT NULL,
acknowledged_at timestamp(0) without time zone,
acknowledged_by_id uuid,
resolved_at timestamp(0) without time zone,
message text,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
email_sent_at timestamp(0) without time zone,
check_id uuid,
severity integer DEFAULT 2,
notification_sent boolean DEFAULT false,
notification_sent_at timestamp(0) without time zone,
output text,
gaiia_impact jsonb,
organization_id uuid,
site_outage_id uuid,
storm_suppressed boolean DEFAULT false
);
--
-- Name: api_tokens; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.api_tokens (
id uuid NOT NULL,
organization_id uuid NOT NULL,
name character varying(255) NOT NULL,
token_hash character varying(255) NOT NULL,
last_used_at timestamp(0) without time zone,
expires_at timestamp(0) without time zone,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
user_id uuid
);
--
-- Name: application_settings; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.application_settings (
id uuid NOT NULL,
key character varying(255) NOT NULL,
value text,
value_type character varying(255) DEFAULT 'string'::character varying NOT NULL,
description text,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: audit_logs; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.audit_logs (
id uuid NOT NULL,
action character varying(255) NOT NULL,
superuser_id uuid,
target_user_id uuid,
metadata jsonb DEFAULT '{}'::jsonb,
ip_address character varying(255),
inserted_at timestamp(0) without time zone NOT NULL,
user_agent text,
request_path character varying(255),
data_accessed jsonb
);
--
-- Name: browser_sessions; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.browser_sessions (
id uuid NOT NULL,
user_id uuid,
user_token_id uuid NOT NULL,
device_name character varying(255),
browser_name character varying(255),
browser_version character varying(255),
os_name character varying(255),
os_version character varying(255),
device_type character varying(255),
ip_address character varying(255) NOT NULL,
country_code character varying(255),
country_name character varying(255),
city_name character varying(255),
subdivision_1_name character varying(255),
last_activity_at timestamp(0) without time zone NOT NULL,
expires_at timestamp(0) without time zone NOT NULL,
anonymized_at timestamp(0) without time zone,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: checks; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.checks (
id uuid NOT NULL,
organization_id uuid NOT NULL,
device_id uuid,
name character varying(255) NOT NULL,
check_type character varying(255) NOT NULL,
description text,
interval_seconds integer DEFAULT 60 NOT NULL,
retry_interval_seconds integer DEFAULT 30 NOT NULL,
max_check_attempts integer DEFAULT 3 NOT NULL,
timeout_ms integer DEFAULT 5000 NOT NULL,
enabled boolean DEFAULT true NOT NULL,
config jsonb DEFAULT '{}'::jsonb NOT NULL,
current_state integer DEFAULT 3 NOT NULL,
current_state_type character varying(255) DEFAULT 'soft'::character varying NOT NULL,
current_check_attempt integer DEFAULT 1 NOT NULL,
last_check_at timestamp(0) without time zone,
last_state_change_at timestamp(0) without time zone,
last_hard_state_change_at timestamp(0) without time zone,
enable_flapping boolean DEFAULT false NOT NULL,
flapping_threshold_low double precision DEFAULT 25.0 NOT NULL,
flapping_threshold_high double precision DEFAULT 30.0 NOT NULL,
is_flapping boolean DEFAULT false NOT NULL,
flapping_state_changes integer DEFAULT 0 NOT NULL,
flapping_window_start_at timestamp(0) without time zone,
enable_passive_checks boolean DEFAULT false NOT NULL,
freshness_threshold_seconds integer,
check_key character varying(255),
agent_token_id uuid,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
source_type character varying(255),
source_id uuid
);
--
-- Name: config_change_events; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.config_change_events (
id uuid NOT NULL,
device_id uuid NOT NULL,
organization_id uuid NOT NULL,
backup_before_id uuid,
backup_after_id uuid,
changed_at timestamp(0) without time zone NOT NULL,
diff_summary text,
sections_changed character varying(255)[] DEFAULT ARRAY[]::character varying[],
change_size integer DEFAULT 0,
inserted_at timestamp(0) without time zone NOT NULL
);
--
-- Name: device_backup_requests; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.device_backup_requests (
id uuid NOT NULL,
device_id uuid NOT NULL,
job_id character varying(255) NOT NULL,
requested_at timestamp(0) without time zone NOT NULL,
completed_at timestamp(0) without time zone,
status character varying(255) NOT NULL,
error_message text,
inserted_at timestamp(0) without time zone NOT NULL,
source character varying(255) DEFAULT 'daily_cron'::character varying
);
--
-- Name: device_events; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.device_events (
id uuid NOT NULL,
device_id uuid NOT NULL,
event_type character varying(255) NOT NULL,
severity character varying(255) NOT NULL,
message text NOT NULL,
metadata jsonb DEFAULT '{}'::jsonb,
occurred_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL
);
--
-- Name: device_firmware_history; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.device_firmware_history (
id uuid NOT NULL,
snmp_device_id uuid NOT NULL,
old_version character varying(255),
new_version character varying(255) NOT NULL,
detected_at timestamp(0) without time zone NOT NULL,
detection_method character varying(255),
inserted_at timestamp(0) without time zone NOT NULL
);
--
-- Name: device_link_evidence; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.device_link_evidence (
id uuid NOT NULL,
device_link_id uuid NOT NULL,
evidence_type character varying(255) NOT NULL,
evidence_data jsonb DEFAULT '{}'::jsonb,
observed_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: device_links; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.device_links (
id uuid NOT NULL,
source_device_id uuid NOT NULL,
target_device_id uuid,
source_interface_id uuid,
target_interface_id uuid,
link_type character varying(255) NOT NULL,
confidence double precision DEFAULT 0.5 NOT NULL,
metadata jsonb DEFAULT '{}'::jsonb,
discovered_remote_name character varying(255),
discovered_remote_ip character varying(255),
discovered_remote_mac character varying(255),
last_confirmed_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: device_mikrotik_backups; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.device_mikrotik_backups (
id uuid NOT NULL,
device_id uuid NOT NULL,
config_compressed bytea NOT NULL,
config_hash character varying(255) NOT NULL,
config_hash_normalized character varying(255) NOT NULL,
config_size_bytes integer,
compressed_size_bytes integer,
backed_up_at timestamp(0) without time zone NOT NULL,
trigger_source character varying(255) DEFAULT 'daily_cron'::character varying,
inserted_at timestamp(0) without time zone NOT NULL
);
--
-- Name: device_neighbors; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.device_neighbors (
id uuid NOT NULL,
device_id uuid NOT NULL,
neighbor_device_id uuid,
neighbor_name character varying(255) NOT NULL,
local_port character varying(255) NOT NULL,
remote_port character varying(255),
remote_port_id character varying(255),
management_addresses character varying(255)[] DEFAULT ARRAY[]::character varying[],
discovered_at timestamp(0) without time zone NOT NULL,
last_seen_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: device_profiles; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.device_profiles (
id uuid NOT NULL,
name character varying(255) NOT NULL,
vendor character varying(255) NOT NULL,
detection_pattern text,
detection_oid text,
priority integer DEFAULT 100,
enabled boolean DEFAULT true,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: device_subscriber_links; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.device_subscriber_links (
id uuid NOT NULL,
organization_id uuid NOT NULL,
device_id uuid NOT NULL,
gaiia_account_id uuid NOT NULL,
gaiia_inventory_item_id uuid,
match_method character varying(255) NOT NULL,
confidence character varying(255) NOT NULL,
subscriber_ip character varying(255),
subscriber_mac character varying(255),
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: devices; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.devices (
id uuid NOT NULL,
site_id uuid,
name character varying(255),
ip_address character varying(255) NOT NULL,
description text,
status character varying(255) DEFAULT 'unknown'::character varying NOT NULL,
last_checked_at timestamp(0) without time zone,
last_status_change_at timestamp(0) without time zone,
monitoring_enabled boolean DEFAULT true NOT NULL,
check_interval_seconds integer DEFAULT 300 NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
snmp_enabled boolean DEFAULT true NOT NULL,
snmp_version character varying(255),
snmp_community character varying(255),
snmp_port integer DEFAULT 161,
last_discovery_at timestamp(0) without time zone,
last_snmp_poll_at timestamp(0) without time zone,
display_order integer,
snmp_community_source character varying(255) DEFAULT 'device'::character varying,
mikrotik_username character varying,
mikrotik_password bytea,
mikrotik_port integer,
mikrotik_use_ssl boolean,
mikrotik_enabled boolean,
mikrotik_credential_source character varying(255) DEFAULT 'site'::character varying,
mikrotik_ssh_port integer,
snmpv3_security_level character varying(255),
snmpv3_username character varying(255),
snmpv3_auth_protocol character varying(255),
snmpv3_auth_password bytea,
snmpv3_priv_protocol character varying(255),
snmpv3_priv_password bytea,
snmpv3_credential_source character varying(255) DEFAULT 'site'::character varying,
organization_id uuid NOT NULL,
snmp_transport character varying(255) DEFAULT 'udp'::character varying NOT NULL,
snmp_transport_source character varying(255) DEFAULT 'organization'::character varying NOT NULL,
device_role character varying(255) DEFAULT 'other'::character varying NOT NULL,
escalation_policy_id uuid
);
--
-- Name: error_tracker_errors; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.error_tracker_errors (
id bigint NOT NULL,
kind character varying(255) NOT NULL,
reason text NOT NULL,
source_line text NOT NULL,
source_function text NOT NULL,
status character varying(255) NOT NULL,
fingerprint character varying(255) NOT NULL,
last_occurrence_at timestamp without time zone NOT NULL,
inserted_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
muted boolean DEFAULT false NOT NULL
);
--
-- Name: error_tracker_errors_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.error_tracker_errors_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: error_tracker_errors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.error_tracker_errors_id_seq OWNED BY public.error_tracker_errors.id;
--
-- Name: error_tracker_meta; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.error_tracker_meta (
key character varying(255) NOT NULL,
value character varying(255) NOT NULL
);
--
-- Name: error_tracker_occurrences; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.error_tracker_occurrences (
id bigint NOT NULL,
context jsonb NOT NULL,
reason text NOT NULL,
stacktrace jsonb NOT NULL,
error_id bigint NOT NULL,
inserted_at timestamp without time zone NOT NULL,
breadcrumbs character varying(255)[] DEFAULT ARRAY[]::character varying[] NOT NULL
);
--
-- Name: error_tracker_occurrences_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.error_tracker_occurrences_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: error_tracker_occurrences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.error_tracker_occurrences_id_seq OWNED BY public.error_tracker_occurrences.id;
--
-- Name: escalation_policies; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.escalation_policies (
id uuid NOT NULL,
name character varying(255) NOT NULL,
description character varying(255),
repeat_count integer DEFAULT 3 NOT NULL,
organization_id uuid NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
handoff_notifications_mode character varying(255) DEFAULT 'when_in_use_by_service'::character varying NOT NULL
);
--
-- Name: escalation_rules; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.escalation_rules (
id uuid NOT NULL,
"position" integer DEFAULT 0 NOT NULL,
timeout_minutes integer DEFAULT 30 NOT NULL,
escalation_policy_id uuid NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: escalation_targets; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.escalation_targets (
id uuid NOT NULL,
target_type character varying(255) NOT NULL,
escalation_rule_id uuid NOT NULL,
schedule_id uuid,
user_id uuid,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: firmware_releases; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.firmware_releases (
id uuid NOT NULL,
vendor character varying(255) NOT NULL,
product_line character varying(255),
version character varying(255) NOT NULL,
release_date date,
download_url character varying(255),
changelog_url character varying(255),
metadata jsonb DEFAULT '{}'::jsonb NOT NULL,
fetched_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: gaiia_accounts; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.gaiia_accounts (
id uuid NOT NULL,
organization_id uuid NOT NULL,
gaiia_id character varying(255) NOT NULL,
readable_id character varying(255),
name character varying(255),
status character varying(255),
account_type character varying(255),
address jsonb,
subscription_count integer DEFAULT 0,
mrr numeric,
raw_data jsonb,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: gaiia_billing_subscriptions; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.gaiia_billing_subscriptions (
id uuid NOT NULL,
organization_id uuid NOT NULL,
gaiia_id character varying(255) NOT NULL,
account_gaiia_id character varying(255),
status character varying(255),
product_name character varying(255),
mrr_amount numeric,
currency character varying(255),
speed_download integer,
speed_upload integer,
raw_data jsonb,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: gaiia_inventory_items; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.gaiia_inventory_items (
id uuid NOT NULL,
organization_id uuid NOT NULL,
gaiia_id character varying(255) NOT NULL,
name character varying(255),
status character varying(255),
serial_number character varying(255),
mac_address character varying(255),
ip_address character varying(255),
model_name character varying(255),
manufacturer_name character varying(255),
category character varying(255),
assigned_account_gaiia_id character varying(255),
assigned_network_site_gaiia_id character varying(255),
device_id uuid,
raw_data jsonb,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: gaiia_network_sites; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.gaiia_network_sites (
id uuid NOT NULL,
organization_id uuid NOT NULL,
gaiia_id character varying(255) NOT NULL,
name character varying(255),
address jsonb,
ip_blocks character varying(255)[] DEFAULT ARRAY[]::character varying[],
account_count integer,
total_mrr numeric,
site_id uuid,
raw_data jsonb,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: geoip_blocks; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.geoip_blocks (
id uuid NOT NULL,
network character varying(255),
start_ip_int bigint NOT NULL,
end_ip_int bigint NOT NULL,
geoname_id integer,
registered_country_geoname_id integer,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: geoip_locations; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.geoip_locations (
geoname_id integer NOT NULL,
country_code character varying(2),
country_name character varying(255),
city_name character varying(255),
subdivision_1_name character varying(255),
subdivision_2_name character varying(255),
latitude double precision,
longitude double precision,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: integrations; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.integrations (
id uuid NOT NULL,
organization_id uuid NOT NULL,
provider character varying(255) NOT NULL,
enabled boolean DEFAULT false NOT NULL,
credentials bytea,
sync_interval_minutes integer DEFAULT 10,
last_synced_at timestamp(0) without time zone,
last_sync_status character varying(255) DEFAULT 'never'::character varying,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
last_sync_message text,
subscriber_count integer DEFAULT 0,
total_mrr numeric DEFAULT 0
);
--
-- Name: ip_blocks; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.ip_blocks (
id uuid NOT NULL,
ip_address character varying(255) NOT NULL,
offense_count integer DEFAULT 1 NOT NULL,
banned_until timestamp(0) without time zone,
last_violation_at timestamp(0) without time zone NOT NULL,
reason text,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: ip_whitelist; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.ip_whitelist (
id uuid NOT NULL,
ip_or_cidr character varying(255) NOT NULL,
description text,
added_by_id uuid,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: login_attempts; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.login_attempts (
id uuid NOT NULL,
user_id uuid,
email character varying(255),
success boolean NOT NULL,
method character varying(255) NOT NULL,
failure_reason character varying(255),
ip_address character varying(255) NOT NULL,
user_agent text,
country_code character varying(255),
country_name character varying(255),
city_name character varying(255),
subdivision_1_name character varying(255),
anonymized_at timestamp(0) without time zone,
inserted_at timestamp(0) without time zone NOT NULL
);
--
-- Name: maintenance_windows; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.maintenance_windows (
id uuid NOT NULL,
organization_id uuid NOT NULL,
site_id uuid,
device_id uuid,
name character varying(255) NOT NULL,
reason character varying(255),
starts_at timestamp(0) without time zone NOT NULL,
ends_at timestamp(0) without time zone NOT NULL,
created_by_id uuid NOT NULL,
recurring boolean DEFAULT false,
recurrence_rule character varying(255),
suppress_alerts boolean DEFAULT true,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
CONSTRAINT ends_at_after_starts_at CHECK ((ends_at > starts_at))
);
--
-- Name: mobile_sessions; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.mobile_sessions (
id uuid NOT NULL,
user_id uuid NOT NULL,
token character varying(255) NOT NULL,
device_name character varying(255),
device_os character varying(255),
app_version character varying(255),
last_used_at timestamp(0) without time zone NOT NULL,
expires_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
alerts_enabled boolean DEFAULT true NOT NULL,
push_token text,
push_platform character varying(255)
);
--
-- Name: monitoring_checks_daily; Type: VIEW; Schema: public; Owner: -
--
CREATE VIEW public.monitoring_checks_daily AS
SELECT device_id,
bucket,
total_checks,
successful_checks,
failed_checks,
avg_response_time_ms,
min_response_time_ms,
max_response_time_ms
FROM _timescaledb_internal._materialized_hypertable_8;
--
-- Name: monitoring_checks_hourly; Type: VIEW; Schema: public; Owner: -
--
CREATE VIEW public.monitoring_checks_hourly AS
SELECT device_id,
bucket,
total_checks,
successful_checks,
failed_checks,
avg_response_time_ms,
min_response_time_ms,
max_response_time_ms
FROM _timescaledb_internal._materialized_hypertable_7;
--
-- Name: notification_digests; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.notification_digests (
id uuid NOT NULL,
user_id uuid NOT NULL,
organization_id uuid NOT NULL,
window_start timestamp(0) without time zone NOT NULL,
notification_count integer DEFAULT 0 NOT NULL,
digest_sent boolean DEFAULT false NOT NULL,
digest_sent_at timestamp(0) without time zone,
suppressed_alert_ids uuid[] DEFAULT ARRAY[]::uuid[],
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: oban_crons; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.oban_crons (
name text NOT NULL,
expression text NOT NULL,
worker text NOT NULL,
opts jsonb NOT NULL,
insertions timestamp without time zone[] DEFAULT ARRAY[]::timestamp without time zone[] NOT NULL,
paused boolean DEFAULT false NOT NULL,
lock_version integer DEFAULT 1,
inserted_at timestamp without time zone DEFAULT timezone('utc'::text, now()) NOT NULL,
updated_at timestamp without time zone DEFAULT timezone('utc'::text, now()) NOT NULL
);
--
-- Name: oban_jobs; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.oban_jobs (
id bigint NOT NULL,
state public.oban_job_state DEFAULT 'available'::public.oban_job_state NOT NULL,
queue text DEFAULT 'default'::text NOT NULL,
worker text NOT NULL,
args jsonb DEFAULT '{}'::jsonb NOT NULL,
errors jsonb[] DEFAULT ARRAY[]::jsonb[] NOT NULL,
attempt integer DEFAULT 0 NOT NULL,
max_attempts integer DEFAULT 20 NOT NULL,
inserted_at timestamp without time zone DEFAULT timezone('UTC'::text, now()) NOT NULL,
scheduled_at timestamp without time zone DEFAULT timezone('UTC'::text, now()) NOT NULL,
attempted_at timestamp without time zone,
completed_at timestamp without time zone,
attempted_by text[],
discarded_at timestamp without time zone,
priority integer DEFAULT 0 NOT NULL,
tags text[] DEFAULT ARRAY[]::text[],
meta jsonb DEFAULT '{}'::jsonb,
cancelled_at timestamp without time zone,
uniq_key text GENERATED ALWAYS AS (
CASE
WHEN ((meta -> 'uniq_bmp'::text) @> public.oban_state_to_bit(state)) THEN (meta ->> 'uniq_key'::text)
ELSE NULL::text
END) STORED,
partition_key text GENERATED ALWAYS AS (
CASE
WHEN (meta ? 'partition_key'::text) THEN (meta ->> 'partition_key'::text)
ELSE NULL::text
END) STORED,
CONSTRAINT attempt_range CHECK (((attempt >= 0) AND (attempt <= max_attempts))),
CONSTRAINT positive_max_attempts CHECK ((max_attempts > 0)),
CONSTRAINT queue_length CHECK (((char_length(queue) > 0) AND (char_length(queue) < 128))),
CONSTRAINT worker_length CHECK (((char_length(worker) > 0) AND (char_length(worker) < 128)))
)
WITH (autovacuum_vacuum_scale_factor='0.01', autovacuum_vacuum_threshold='100', autovacuum_analyze_scale_factor='0.005', autovacuum_vacuum_cost_delay='0');
--
-- Name: TABLE oban_jobs; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON TABLE public.oban_jobs IS '12';
--
-- Name: oban_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.oban_jobs_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: oban_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.oban_jobs_id_seq OWNED BY public.oban_jobs.id;
--
-- Name: oban_peers; Type: TABLE; Schema: public; Owner: -
--
CREATE UNLOGGED TABLE public.oban_peers (
name text NOT NULL,
node text NOT NULL,
started_at timestamp without time zone NOT NULL,
expires_at timestamp without time zone NOT NULL
);
--
-- Name: oban_producers; Type: TABLE; Schema: public; Owner: -
--
CREATE UNLOGGED TABLE public.oban_producers (
uuid uuid NOT NULL,
name text NOT NULL,
node text NOT NULL,
queue text NOT NULL,
meta jsonb DEFAULT '{}'::jsonb NOT NULL,
started_at timestamp without time zone DEFAULT timezone('utc'::text, now()) NOT NULL,
updated_at timestamp without time zone DEFAULT timezone('utc'::text, now()) NOT NULL
);
--
-- Name: TABLE oban_producers; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON TABLE public.oban_producers IS '1.6.0-schemas,1.6.0-indexes';
--
-- Name: oban_queues; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.oban_queues (
name text NOT NULL,
opts jsonb DEFAULT '{}'::jsonb NOT NULL,
"only" jsonb DEFAULT '{}'::jsonb NOT NULL,
lock_version integer DEFAULT 1,
inserted_at timestamp without time zone DEFAULT timezone('utc'::text, now()) NOT NULL,
updated_at timestamp without time zone DEFAULT timezone('utc'::text, now()) NOT NULL,
hash text
);
--
-- Name: on_call_incidents; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.on_call_incidents (
id uuid NOT NULL,
status character varying(255) DEFAULT 'triggered'::character varying NOT NULL,
current_rule_position integer DEFAULT 0 NOT NULL,
current_loop integer DEFAULT 1 NOT NULL,
triggered_at timestamp(0) without time zone NOT NULL,
acknowledged_at timestamp(0) without time zone,
resolved_at timestamp(0) without time zone,
alert_id uuid NOT NULL,
escalation_policy_id uuid NOT NULL,
organization_id uuid NOT NULL,
acknowledged_by_id uuid,
resolved_by_id uuid,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: on_call_layer_members; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.on_call_layer_members (
id uuid NOT NULL,
"position" integer DEFAULT 0 NOT NULL,
layer_id uuid NOT NULL,
user_id uuid NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: on_call_layers; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.on_call_layers (
id uuid NOT NULL,
name character varying(255) NOT NULL,
"position" integer DEFAULT 0 NOT NULL,
rotation_type character varying(255) NOT NULL,
rotation_interval integer DEFAULT 1 NOT NULL,
handoff_time time(0) without time zone NOT NULL,
handoff_day integer,
start_date timestamp(0) without time zone NOT NULL,
restriction_type character varying(255),
restrictions jsonb,
schedule_id uuid NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: on_call_notifications; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.on_call_notifications (
id uuid NOT NULL,
channel character varying(255) DEFAULT 'email'::character varying NOT NULL,
sent_at timestamp(0) without time zone,
status character varying(255) DEFAULT 'sent'::character varying NOT NULL,
error_message character varying(255),
incident_id uuid NOT NULL,
user_id uuid NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: on_call_overrides; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.on_call_overrides (
id uuid NOT NULL,
start_time timestamp(0) without time zone NOT NULL,
end_time timestamp(0) without time zone NOT NULL,
schedule_id uuid NOT NULL,
user_id uuid NOT NULL,
created_by_id uuid,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: on_call_schedules; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.on_call_schedules (
id uuid NOT NULL,
name character varying(255) NOT NULL,
description character varying(255),
timezone character varying(255) NOT NULL,
organization_id uuid NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: organization_invitations; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.organization_invitations (
id uuid NOT NULL,
organization_id uuid NOT NULL,
email character varying(255) NOT NULL,
role character varying(255) NOT NULL,
token character varying(255) NOT NULL,
invited_by_id uuid,
accepted_at timestamp(0) without time zone,
accepted_by_id uuid,
expires_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: organization_memberships; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.organization_memberships (
id uuid NOT NULL,
organization_id uuid NOT NULL,
user_id uuid NOT NULL,
role character varying(255) NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
is_default boolean DEFAULT false NOT NULL
);
--
-- Name: organizations; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.organizations (
id uuid NOT NULL,
name character varying(255) NOT NULL,
slug character varying(255) NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
default_agent_token_id uuid,
snmp_version character varying(255) DEFAULT '2c'::character varying,
snmp_community character varying(255),
subscription_plan character varying(255) DEFAULT 'free'::character varying NOT NULL,
mikrotik_username character varying,
mikrotik_password bytea,
mikrotik_port integer DEFAULT 8729,
mikrotik_use_ssl boolean DEFAULT true,
mikrotik_enabled boolean DEFAULT false,
mikrotik_ssh_port integer DEFAULT 22,
snmp_port integer DEFAULT 161 NOT NULL,
snmpv3_security_level character varying(255),
snmpv3_username character varying(255),
snmpv3_auth_protocol character varying(255) DEFAULT 'SHA-256'::character varying,
snmpv3_auth_password bytea,
snmpv3_priv_protocol character varying(255) DEFAULT 'AES'::character varying,
snmpv3_priv_password bytea,
use_sites boolean DEFAULT false NOT NULL,
snmp_transport character varying(255) DEFAULT 'udp'::character varying NOT NULL,
onboarding_completed boolean DEFAULT false NOT NULL,
stripe_customer_id character varying(255),
stripe_subscription_id character varying(255),
subscription_status character varying(255),
subscription_current_period_start timestamp(0) without time zone,
subscription_current_period_end timestamp(0) without time zone,
payment_method_status character varying(255),
last_billing_sync_at timestamp(0) without time zone,
last_synced_device_count integer,
custom_free_device_limit integer,
custom_price_per_device numeric(10,2),
default_escalation_policy_id uuid,
alert_routing character varying(255) DEFAULT 'builtin'::character varying NOT NULL,
data_retention_days integer DEFAULT 365 NOT NULL
);
--
-- Name: policy_versions; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.policy_versions (
id uuid NOT NULL,
policy_type character varying(255) NOT NULL,
version character varying(255) NOT NULL,
content text NOT NULL,
effective_date timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: preseem_access_points; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.preseem_access_points (
id uuid NOT NULL,
organization_id uuid NOT NULL,
preseem_id character varying(255) NOT NULL,
name character varying(255),
mac_address character varying(255),
ip_address character varying(255),
model character varying(255),
firmware character varying(255),
capacity_score double precision,
qoe_score double precision,
rf_score double precision,
busy_hours integer,
airtime_utilization double precision,
subscriber_count integer,
device_id uuid,
match_confidence character varying(255) DEFAULT 'unmatched'::character varying,
raw_data jsonb,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: preseem_device_baselines; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.preseem_device_baselines (
id uuid NOT NULL,
preseem_access_point_id uuid NOT NULL,
metric_name character varying(255) NOT NULL,
period character varying(255) NOT NULL,
mean double precision,
stddev double precision,
p5 double precision,
p95 double precision,
sample_count integer,
computed_at timestamp(0) without time zone NOT NULL
);
--
-- Name: preseem_fleet_profiles; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.preseem_fleet_profiles (
id uuid NOT NULL,
organization_id uuid NOT NULL,
manufacturer character varying(255) NOT NULL,
model character varying(255) NOT NULL,
firmware_version character varying(255),
device_count integer NOT NULL,
avg_subscribers double precision,
avg_qoe_score double precision,
avg_capacity_score double precision,
capacity_ceiling integer,
avg_busy_hours double precision,
performance_data jsonb,
computed_at timestamp(0) without time zone NOT NULL
);
--
-- Name: preseem_insights; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.preseem_insights (
id uuid NOT NULL,
organization_id uuid NOT NULL,
preseem_access_point_id uuid,
device_id uuid,
type character varying(255) NOT NULL,
urgency character varying(255) NOT NULL,
status character varying(255) DEFAULT 'active'::character varying NOT NULL,
channel character varying(255) NOT NULL,
title character varying(255) NOT NULL,
description text,
metadata jsonb,
dismissed_at timestamp(0) without time zone,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
source character varying(255) DEFAULT 'preseem'::character varying NOT NULL,
site_id uuid,
agent_token_id uuid
);
--
-- Name: preseem_subscriber_metrics; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.preseem_subscriber_metrics (
id uuid NOT NULL,
preseem_access_point_id uuid NOT NULL,
avg_latency double precision,
avg_jitter double precision,
avg_loss double precision,
avg_throughput double precision,
p95_latency double precision,
subscriber_count integer,
recorded_at timestamp(0) without time zone NOT NULL
);
--
-- Name: preseem_sync_logs; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.preseem_sync_logs (
id uuid NOT NULL,
organization_id uuid NOT NULL,
integration_id uuid NOT NULL,
status character varying(255) NOT NULL,
records_synced integer DEFAULT 0,
errors jsonb,
duration_ms integer,
inserted_at timestamp(0) without time zone NOT NULL
);
--
-- Name: printer_supplies; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.printer_supplies (
id uuid NOT NULL,
snmp_device_id uuid NOT NULL,
supply_index character varying(255) NOT NULL,
supply_type character varying(255),
supply_description character varying(255),
supply_unit character varying(255),
max_capacity integer,
current_level integer,
color_name character varying(255),
part_number character varying(255),
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: profile_device_oids; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.profile_device_oids (
id uuid NOT NULL,
profile_id uuid NOT NULL,
field character varying(255) NOT NULL,
mib_name character varying(255) NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: profile_sensor_oids; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.profile_sensor_oids (
id uuid NOT NULL,
profile_id uuid NOT NULL,
sensor_type character varying(255) NOT NULL,
mib_name character varying(255) NOT NULL,
sensor_descr character varying(255),
sensor_unit character varying(255),
sensor_divisor integer DEFAULT 1,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: qr_login_tokens; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.qr_login_tokens (
id uuid NOT NULL,
user_id uuid NOT NULL,
token character varying(255) NOT NULL,
expires_at timestamp(0) without time zone NOT NULL,
completed_at timestamp(0) without time zone,
mobile_session_id uuid,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: reports; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.reports (
id uuid NOT NULL,
name character varying(255) NOT NULL,
report_type character varying(255) NOT NULL,
scope jsonb DEFAULT '{}'::jsonb NOT NULL,
schedule jsonb DEFAULT '{}'::jsonb NOT NULL,
recipients character varying(255)[] DEFAULT ARRAY[]::character varying[] NOT NULL,
format character varying(255) DEFAULT 'csv'::character varying NOT NULL,
enabled boolean DEFAULT true NOT NULL,
last_run_at timestamp(0) without time zone,
last_run_status character varying(255),
organization_id uuid NOT NULL,
created_by_id uuid,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.schema_migrations (
version bigint NOT NULL,
inserted_at timestamp(0) without time zone
);
--
-- Name: site_outages; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.site_outages (
id uuid NOT NULL,
site_id uuid NOT NULL,
organization_id uuid NOT NULL,
started_at timestamp(0) without time zone NOT NULL,
resolved_at timestamp(0) without time zone,
device_count integer DEFAULT 0 NOT NULL,
total_devices_at_site integer DEFAULT 0 NOT NULL,
message character varying(255),
notification_sent boolean DEFAULT false NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: sites; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.sites (
id uuid NOT NULL,
organization_id uuid NOT NULL,
parent_site_id uuid,
name character varying(255) NOT NULL,
description text,
location character varying(255),
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
agent_token_id uuid,
snmp_version character varying(255),
snmp_community character varying(255),
display_order integer,
mikrotik_username character varying,
mikrotik_password bytea,
mikrotik_port integer,
mikrotik_use_ssl boolean,
mikrotik_enabled boolean,
mikrotik_ssh_port integer,
snmp_port integer,
snmpv3_security_level character varying(255),
snmpv3_username character varying(255),
snmpv3_auth_protocol character varying(255),
snmpv3_auth_password bytea,
snmpv3_priv_protocol character varying(255),
snmpv3_priv_password bytea,
snmp_transport character varying(255),
address character varying(255),
latitude double precision,
longitude double precision
);
--
-- Name: snmp_arp_entries; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_arp_entries (
id uuid NOT NULL,
device_id uuid NOT NULL,
interface_id uuid,
ip_address character varying(255) NOT NULL,
mac_address character varying(255) NOT NULL,
entry_type character varying(255),
if_index integer,
last_seen_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_devices; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_devices (
id uuid NOT NULL,
device_id uuid NOT NULL,
sys_descr text,
sys_object_id character varying(255),
sys_name character varying(255),
sys_uptime bigint,
sys_contact character varying(255),
sys_location character varying(255),
manufacturer character varying(255),
model character varying(255),
firmware_version character varying(255),
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
serial_number character varying(255),
raw_discovery_data jsonb,
last_discovery_at timestamp(0) without time zone
);
--
-- Name: snmp_entity_physical; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_entity_physical (
id uuid NOT NULL,
snmp_device_id uuid NOT NULL,
entity_index character varying(255) NOT NULL,
parent_index character varying(255),
parent_id uuid,
entity_class character varying(255),
entity_type character varying(255),
name character varying(255),
description text,
serial_number character varying(255),
model character varying(255),
manufacturer character varying(255),
hardware_revision character varying(255),
firmware_revision character varying(255),
software_revision character varying(255),
physical_index integer,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_entity_physical_readings; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_entity_physical_readings (
id uuid NOT NULL,
entity_physical_id uuid NOT NULL,
operational_status character varying(255),
admin_status character varying(255),
measured_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_interface_stats_daily; Type: VIEW; Schema: public; Owner: -
--
CREATE VIEW public.snmp_interface_stats_daily AS
SELECT interface_id,
bucket,
max_in_octets,
max_out_octets,
total_in_errors,
total_out_errors,
total_in_discards,
total_out_discards,
sample_count
FROM _timescaledb_internal._materialized_hypertable_12;
--
-- Name: snmp_interface_stats_hourly; Type: VIEW; Schema: public; Owner: -
--
CREATE VIEW public.snmp_interface_stats_hourly AS
SELECT interface_id,
bucket,
max_in_octets,
max_out_octets,
total_in_errors,
total_out_errors,
total_in_discards,
total_out_discards,
sample_count
FROM _timescaledb_internal._materialized_hypertable_11;
--
-- Name: snmp_interfaces; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_interfaces (
id uuid NOT NULL,
snmp_device_id uuid NOT NULL,
if_index integer NOT NULL,
if_name character varying(255),
if_descr character varying(255),
if_alias character varying(255),
if_type integer,
if_speed bigint,
if_phys_address character varying(255),
if_admin_status character varying(255),
if_oper_status character varying(255),
monitored boolean DEFAULT true NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
configured_capacity_bps bigint,
capacity_source character varying(255)
);
--
-- Name: snmp_ip_addresses; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_ip_addresses (
id uuid NOT NULL,
snmp_interface_id uuid NOT NULL,
ip_address character varying(255) NOT NULL,
subnet_mask character varying(255),
prefix_length integer,
ip_type character varying(255) DEFAULT 'ipv4'::character varying NOT NULL,
is_primary boolean DEFAULT false,
last_checked_at timestamp(0) without time zone,
metadata jsonb DEFAULT '{}'::jsonb,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_mac_addresses; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_mac_addresses (
id uuid NOT NULL,
device_id uuid NOT NULL,
interface_id uuid,
mac_address character varying(255) NOT NULL,
vlan_id integer,
port_index integer,
entry_status character varying(255),
last_seen_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_memory_pools; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_memory_pools (
id uuid NOT NULL,
snmp_device_id uuid NOT NULL,
pool_index character varying(255) NOT NULL,
pool_name character varying(255),
pool_type character varying(255) NOT NULL,
total_bytes bigint,
used_bytes bigint,
last_checked_at timestamp(0) without time zone,
metadata jsonb DEFAULT '{}'::jsonb,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_mempool_readings; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_mempool_readings (
id uuid NOT NULL,
mempool_id uuid NOT NULL,
used_bytes bigint,
total_bytes bigint,
free_bytes bigint,
usage_percent double precision,
checked_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_mempools; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_mempools (
id uuid NOT NULL,
snmp_device_id uuid NOT NULL,
mempool_index character varying(255) NOT NULL,
description character varying(255),
mempool_type character varying(255) NOT NULL,
total_bytes bigint,
used_bytes bigint,
free_bytes bigint,
usage_percent double precision,
last_checked_at timestamp(0) without time zone,
metadata jsonb DEFAULT '{}'::jsonb,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_neighbors; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_neighbors (
id uuid NOT NULL,
device_id uuid NOT NULL,
interface_id uuid NOT NULL,
protocol character varying(255) NOT NULL,
remote_chassis_id character varying(255),
remote_system_name character varying(255),
remote_system_description text,
remote_platform character varying(255),
remote_port_id character varying(255),
remote_port_description character varying(255),
remote_address character varying(255),
remote_capabilities character varying(255)[] DEFAULT ARRAY[]::character varying[],
last_discovered_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_physical_entities; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_physical_entities (
id uuid NOT NULL,
snmp_device_id uuid NOT NULL,
entity_index integer NOT NULL,
entity_class character varying(255) NOT NULL,
description character varying(255),
model_name character varying(255),
serial_number character varying(255),
firmware_revision character varying(255),
hardware_revision character varying(255),
manufacturer_name character varying(255),
"position" integer,
last_checked_at timestamp(0) without time zone,
metadata jsonb DEFAULT '{}'::jsonb,
parent_entity_id uuid,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_processor_readings; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_processor_readings (
id uuid NOT NULL,
processor_id uuid NOT NULL,
load_percent double precision,
status character varying(255) DEFAULT 'ok'::character varying NOT NULL,
checked_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_processors; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_processors (
id uuid NOT NULL,
snmp_device_id uuid NOT NULL,
processor_index character varying(255) NOT NULL,
description character varying(255),
processor_type character varying(255) NOT NULL,
load_percent double precision,
last_checked_at timestamp(0) without time zone,
metadata jsonb DEFAULT '{}'::jsonb,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_sensor_readings_daily; Type: VIEW; Schema: public; Owner: -
--
CREATE VIEW public.snmp_sensor_readings_daily AS
SELECT sensor_id,
bucket,
avg_value,
min_value,
max_value,
reading_count
FROM _timescaledb_internal._materialized_hypertable_10;
--
-- Name: snmp_sensor_readings_hourly; Type: VIEW; Schema: public; Owner: -
--
CREATE VIEW public.snmp_sensor_readings_hourly AS
SELECT sensor_id,
bucket,
avg_value,
min_value,
max_value,
reading_count
FROM _timescaledb_internal._materialized_hypertable_9;
--
-- Name: snmp_sensors; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_sensors (
id uuid NOT NULL,
snmp_device_id uuid NOT NULL,
sensor_type character varying(255) NOT NULL,
sensor_index character varying(255) NOT NULL,
sensor_oid character varying(255) NOT NULL,
sensor_descr character varying(255),
sensor_unit character varying(255),
sensor_divisor integer DEFAULT 1 NOT NULL,
monitored boolean DEFAULT true NOT NULL,
last_value double precision,
last_checked_at timestamp(0) without time zone,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
metadata jsonb DEFAULT '{}'::jsonb
);
--
-- Name: snmp_state_sensors; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_state_sensors (
id uuid NOT NULL,
snmp_device_id uuid NOT NULL,
sensor_index character varying(255) NOT NULL,
sensor_oid character varying(255) NOT NULL,
sensor_descr character varying(255),
entity_type character varying(255),
state_value integer,
state_descr character varying(255),
status character varying(255) DEFAULT 'unknown'::character varying,
last_checked_at timestamp(0) without time zone,
metadata jsonb DEFAULT '{}'::jsonb,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_storage; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_storage (
id uuid NOT NULL,
snmp_device_id uuid NOT NULL,
storage_index integer NOT NULL,
storage_type character varying(255) NOT NULL,
description character varying(255),
device_name character varying(255),
total_bytes bigint,
used_bytes bigint,
allocation_units integer,
last_checked_at timestamp(0) without time zone,
metadata jsonb DEFAULT '{}'::jsonb,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_storage_readings; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_storage_readings (
id uuid NOT NULL,
storage_id uuid NOT NULL,
used_bytes bigint,
total_bytes bigint,
usage_percent double precision,
checked_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_transceiver_readings; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_transceiver_readings (
id uuid NOT NULL,
transceiver_id uuid NOT NULL,
rx_power_dbm double precision,
tx_power_dbm double precision,
bias_current_ma double precision,
temperature_celsius double precision,
voltage_v double precision,
measured_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_transceivers; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_transceivers (
id uuid NOT NULL,
snmp_device_id uuid NOT NULL,
entity_physical_id uuid,
port_index character varying(255) NOT NULL,
transceiver_type character varying(255),
vendor_name character varying(255),
vendor_part_number character varying(255),
vendor_serial_number character varying(255),
vendor_revision character varying(255),
wavelength_nm integer,
connector_type character varying(255),
nominal_bitrate_mbps integer,
supports_dom boolean DEFAULT false NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: snmp_vlans; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.snmp_vlans (
id uuid NOT NULL,
snmp_device_id uuid NOT NULL,
vlan_id integer NOT NULL,
vlan_name character varying(255),
vlan_type character varying(255),
status character varying(255) DEFAULT 'active'::character varying,
last_checked_at timestamp(0) without time zone,
metadata jsonb DEFAULT '{}'::jsonb,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: status_incidents; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.status_incidents (
id uuid NOT NULL,
title character varying(255) NOT NULL,
body text,
severity character varying(255) DEFAULT 'minor'::character varying NOT NULL,
status character varying(255) DEFAULT 'investigating'::character varying NOT NULL,
started_at timestamp(0) without time zone NOT NULL,
resolved_at timestamp(0) without time zone,
status_page_config_id uuid NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: status_page_components; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.status_page_components (
id uuid NOT NULL,
name character varying(255) NOT NULL,
description character varying(255),
"position" integer DEFAULT 0 NOT NULL,
status character varying(255) DEFAULT 'operational'::character varying NOT NULL,
device_group jsonb DEFAULT '{}'::jsonb,
status_page_config_id uuid NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: status_page_configs; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.status_page_configs (
id uuid NOT NULL,
enabled boolean DEFAULT false NOT NULL,
slug character varying(255) NOT NULL,
company_name character varying(255),
logo_url character varying(255),
support_email character varying(255),
custom_css text,
auto_incidents boolean DEFAULT true NOT NULL,
organization_id uuid NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: stripe_webhook_events; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.stripe_webhook_events (
id character varying(255) NOT NULL,
event_type character varying(255) NOT NULL,
organization_id uuid,
processed_at timestamp(0) without time zone NOT NULL,
created_at timestamp(0) without time zone NOT NULL
);
--
-- Name: uisp_config_snapshots; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.uisp_config_snapshots (
id uuid NOT NULL,
config_compressed bytea NOT NULL,
config_hash character varying(255) NOT NULL,
config_size_bytes integer,
compressed_size_bytes integer,
source character varying(255) DEFAULT 'uisp'::character varying,
snapshot_at timestamp(0) without time zone NOT NULL,
device_id uuid NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL
);
--
-- Name: uisp_sync_logs; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.uisp_sync_logs (
id uuid NOT NULL,
organization_id uuid NOT NULL,
integration_id uuid NOT NULL,
status character varying(255) NOT NULL,
records_synced integer DEFAULT 0,
errors jsonb,
duration_ms integer,
inserted_at timestamp(0) without time zone NOT NULL
);
--
-- Name: user_consents; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.user_consents (
id uuid NOT NULL,
user_id uuid NOT NULL,
consent_type character varying(255) NOT NULL,
version character varying(255) NOT NULL,
granted_at timestamp(0) without time zone NOT NULL,
revoked_at timestamp(0) without time zone,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: user_recovery_codes; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.user_recovery_codes (
id uuid NOT NULL,
user_id uuid NOT NULL,
code_hash character varying(255) NOT NULL,
used_at timestamp(0) without time zone,
created_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL
);
--
-- Name: user_totp_devices; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.user_totp_devices (
id uuid NOT NULL,
user_id uuid NOT NULL,
name character varying(255) NOT NULL,
totp_secret bytea NOT NULL,
last_used_at timestamp(0) without time zone,
created_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: users; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.users (
id uuid NOT NULL,
email public.citext NOT NULL,
hashed_password character varying(255),
confirmed_at timestamp(0) without time zone,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL,
is_superuser boolean DEFAULT false NOT NULL,
timezone character varying(255) DEFAULT 'UTC'::character varying,
totp_secret bytea,
last_sudo_at timestamp(0) without time zone,
first_name character varying(255),
last_name character varying(255),
time_format character varying(255) DEFAULT '24h'::character varying NOT NULL,
default_organization_id uuid,
language character varying(255) DEFAULT 'en'::character varying NOT NULL
);
--
-- Name: users_tokens; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.users_tokens (
id uuid NOT NULL,
user_id uuid NOT NULL,
token bytea NOT NULL,
context character varying(255) NOT NULL,
sent_to character varying(255),
authenticated_at timestamp(0) without time zone,
inserted_at timestamp(0) without time zone NOT NULL,
totp_verified_at timestamp(0) without time zone
);
--
-- Name: weather_alerts; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.weather_alerts (
id uuid NOT NULL,
site_id uuid NOT NULL,
event character varying(255) NOT NULL,
sender character varying(255),
description text,
starts_at timestamp(0) without time zone,
ends_at timestamp(0) without time zone,
tags character varying(255)[] DEFAULT ARRAY[]::character varying[],
severity character varying(255),
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: weather_observations; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.weather_observations (
id uuid NOT NULL,
site_id uuid NOT NULL,
condition character varying(255),
condition_detail character varying(255),
icon character varying(255),
temperature_c double precision,
feels_like_c double precision,
humidity integer,
pressure_hpa integer,
visibility_m integer,
wind_speed_ms double precision,
wind_gust_ms double precision,
wind_deg integer,
rain_1h_mm double precision,
snow_1h_mm double precision,
clouds_pct integer,
raw jsonb,
observed_at timestamp(0) without time zone NOT NULL,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: wireless_client_readings_daily; Type: VIEW; Schema: public; Owner: -
--
CREATE VIEW public.wireless_client_readings_daily AS
SELECT device_id,
mac_address,
wireless_client_id,
organization_id,
bucket,
avg_signal_strength,
min_signal_strength,
max_signal_strength,
avg_snr,
min_snr,
max_snr,
avg_distance,
avg_tx_rate,
avg_rx_rate,
sample_count
FROM _timescaledb_internal._materialized_hypertable_18;
--
-- Name: wireless_client_readings_hourly; Type: VIEW; Schema: public; Owner: -
--
CREATE VIEW public.wireless_client_readings_hourly AS
SELECT device_id,
mac_address,
wireless_client_id,
organization_id,
bucket,
avg_signal_strength,
min_signal_strength,
max_signal_strength,
avg_snr,
min_snr,
max_snr,
avg_distance,
avg_tx_rate,
avg_rx_rate,
sample_count
FROM _timescaledb_internal._materialized_hypertable_17;
--
-- Name: wireless_clients; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.wireless_clients (
id uuid NOT NULL,
device_id uuid NOT NULL,
organization_id uuid NOT NULL,
mac_address character varying(255) NOT NULL,
ip_address character varying(255),
hostname character varying(255),
signal_strength integer,
snr integer,
distance integer,
tx_rate integer,
rx_rate integer,
uptime_seconds integer,
last_seen_at timestamp(0) without time zone NOT NULL,
metadata jsonb DEFAULT '{}'::jsonb,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
);
--
-- Name: _hyper_3_102_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_102_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_10_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_10_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_110_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_110_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_117_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_117_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_122_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_122_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_133_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_133_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_145_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_145_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_160_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_160_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_162_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_162_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_166_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_166_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_169_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_169_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_172_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_172_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_189_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_189_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_199_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_199_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_19_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_19_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_202_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_202_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_208_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_208_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_22_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_22_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_25_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_25_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_28_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_28_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_30_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_30_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_37_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_37_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_40_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_40_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_49_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_49_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_56_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_56_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_63_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_63_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_69_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_69_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_74_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_74_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_7_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_7_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_83_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_83_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_85_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_85_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_8_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_8_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_93_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_93_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: _hyper_3_9_chunk is_hc; Type: DEFAULT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_9_chunk ALTER COLUMN is_hc SET DEFAULT true;
--
-- Name: error_tracker_errors id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.error_tracker_errors ALTER COLUMN id SET DEFAULT nextval('public.error_tracker_errors_id_seq'::regclass);
--
-- Name: error_tracker_occurrences id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.error_tracker_occurrences ALTER COLUMN id SET DEFAULT nextval('public.error_tracker_occurrences_id_seq'::regclass);
--
-- Name: oban_jobs id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.oban_jobs ALTER COLUMN id SET DEFAULT nextval('public.oban_jobs_id_seq'::regclass);
--
-- Name: _hyper_14_191_chunk 191_124_check_results_pkey; Type: CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_14_191_chunk
ADD CONSTRAINT "191_124_check_results_pkey" PRIMARY KEY (id, checked_at);
--
-- Name: _hyper_14_210_chunk 210_140_check_results_pkey; Type: CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_14_210_chunk
ADD CONSTRAINT "210_140_check_results_pkey" PRIMARY KEY (id, checked_at);
--
-- Name: agent_assignments agent_assignments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.agent_assignments
ADD CONSTRAINT agent_assignments_pkey PRIMARY KEY (id);
--
-- Name: agent_tokens agent_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.agent_tokens
ADD CONSTRAINT agent_tokens_pkey PRIMARY KEY (id);
--
-- Name: alert_storms alert_storms_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.alert_storms
ADD CONSTRAINT alert_storms_pkey PRIMARY KEY (id);
--
-- Name: alerts alerts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.alerts
ADD CONSTRAINT alerts_pkey PRIMARY KEY (id);
--
-- Name: api_tokens api_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.api_tokens
ADD CONSTRAINT api_tokens_pkey PRIMARY KEY (id);
--
-- Name: application_settings application_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.application_settings
ADD CONSTRAINT application_settings_pkey PRIMARY KEY (id);
--
-- Name: audit_logs audit_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.audit_logs
ADD CONSTRAINT audit_logs_pkey PRIMARY KEY (id);
--
-- Name: browser_sessions browser_sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.browser_sessions
ADD CONSTRAINT browser_sessions_pkey PRIMARY KEY (id);
--
-- Name: check_results check_results_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.check_results
ADD CONSTRAINT check_results_pkey PRIMARY KEY (id, checked_at);
--
-- Name: checks checks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.checks
ADD CONSTRAINT checks_pkey PRIMARY KEY (id);
--
-- Name: config_change_events config_change_events_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.config_change_events
ADD CONSTRAINT config_change_events_pkey PRIMARY KEY (id);
--
-- Name: device_backup_requests device_backup_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_backup_requests
ADD CONSTRAINT device_backup_requests_pkey PRIMARY KEY (id);
--
-- Name: device_firmware_history device_firmware_history_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_firmware_history
ADD CONSTRAINT device_firmware_history_pkey PRIMARY KEY (id);
--
-- Name: device_link_evidence device_link_evidence_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_link_evidence
ADD CONSTRAINT device_link_evidence_pkey PRIMARY KEY (id);
--
-- Name: device_links device_links_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_links
ADD CONSTRAINT device_links_pkey PRIMARY KEY (id);
--
-- Name: device_mikrotik_backups device_mikrotik_backups_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_mikrotik_backups
ADD CONSTRAINT device_mikrotik_backups_pkey PRIMARY KEY (id);
--
-- Name: device_neighbors device_neighbors_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_neighbors
ADD CONSTRAINT device_neighbors_pkey PRIMARY KEY (id);
--
-- Name: device_profiles device_profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_profiles
ADD CONSTRAINT device_profiles_pkey PRIMARY KEY (id);
--
-- Name: device_subscriber_links device_subscriber_links_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_subscriber_links
ADD CONSTRAINT device_subscriber_links_pkey PRIMARY KEY (id);
--
-- Name: devices devices_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.devices
ADD CONSTRAINT devices_pkey PRIMARY KEY (id);
--
-- Name: device_events equipment_events_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_events
ADD CONSTRAINT equipment_events_pkey PRIMARY KEY (id);
--
-- Name: error_tracker_errors error_tracker_errors_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.error_tracker_errors
ADD CONSTRAINT error_tracker_errors_pkey PRIMARY KEY (id);
--
-- Name: error_tracker_meta error_tracker_meta_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.error_tracker_meta
ADD CONSTRAINT error_tracker_meta_pkey PRIMARY KEY (key);
--
-- Name: error_tracker_occurrences error_tracker_occurrences_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.error_tracker_occurrences
ADD CONSTRAINT error_tracker_occurrences_pkey PRIMARY KEY (id);
--
-- Name: escalation_policies escalation_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.escalation_policies
ADD CONSTRAINT escalation_policies_pkey PRIMARY KEY (id);
--
-- Name: escalation_rules escalation_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.escalation_rules
ADD CONSTRAINT escalation_rules_pkey PRIMARY KEY (id);
--
-- Name: escalation_targets escalation_targets_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.escalation_targets
ADD CONSTRAINT escalation_targets_pkey PRIMARY KEY (id);
--
-- Name: firmware_releases firmware_releases_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.firmware_releases
ADD CONSTRAINT firmware_releases_pkey PRIMARY KEY (id);
--
-- Name: gaiia_accounts gaiia_accounts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.gaiia_accounts
ADD CONSTRAINT gaiia_accounts_pkey PRIMARY KEY (id);
--
-- Name: gaiia_billing_subscriptions gaiia_billing_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.gaiia_billing_subscriptions
ADD CONSTRAINT gaiia_billing_subscriptions_pkey PRIMARY KEY (id);
--
-- Name: gaiia_inventory_items gaiia_inventory_items_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.gaiia_inventory_items
ADD CONSTRAINT gaiia_inventory_items_pkey PRIMARY KEY (id);
--
-- Name: gaiia_network_sites gaiia_network_sites_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.gaiia_network_sites
ADD CONSTRAINT gaiia_network_sites_pkey PRIMARY KEY (id);
--
-- Name: geoip_blocks geoip_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.geoip_blocks
ADD CONSTRAINT geoip_blocks_pkey PRIMARY KEY (id);
--
-- Name: geoip_locations geoip_locations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.geoip_locations
ADD CONSTRAINT geoip_locations_pkey PRIMARY KEY (geoname_id);
--
-- Name: integrations integrations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.integrations
ADD CONSTRAINT integrations_pkey PRIMARY KEY (id);
--
-- Name: ip_blocks ip_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.ip_blocks
ADD CONSTRAINT ip_blocks_pkey PRIMARY KEY (id);
--
-- Name: ip_whitelist ip_whitelist_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.ip_whitelist
ADD CONSTRAINT ip_whitelist_pkey PRIMARY KEY (id);
--
-- Name: login_attempts login_attempts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.login_attempts
ADD CONSTRAINT login_attempts_pkey PRIMARY KEY (id);
--
-- Name: maintenance_windows maintenance_windows_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.maintenance_windows
ADD CONSTRAINT maintenance_windows_pkey PRIMARY KEY (id);
--
-- Name: mobile_sessions mobile_sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.mobile_sessions
ADD CONSTRAINT mobile_sessions_pkey PRIMARY KEY (id);
--
-- Name: oban_jobs non_negative_priority; Type: CHECK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE public.oban_jobs
ADD CONSTRAINT non_negative_priority CHECK ((priority >= 0)) NOT VALID;
--
-- Name: notification_digests notification_digests_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.notification_digests
ADD CONSTRAINT notification_digests_pkey PRIMARY KEY (id);
--
-- Name: oban_crons oban_crons_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.oban_crons
ADD CONSTRAINT oban_crons_pkey PRIMARY KEY (name);
--
-- Name: oban_jobs oban_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.oban_jobs
ADD CONSTRAINT oban_jobs_pkey PRIMARY KEY (id);
--
-- Name: oban_peers oban_peers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.oban_peers
ADD CONSTRAINT oban_peers_pkey PRIMARY KEY (name);
--
-- Name: oban_producers oban_producers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.oban_producers
ADD CONSTRAINT oban_producers_pkey PRIMARY KEY (uuid);
--
-- Name: oban_queues oban_queues_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.oban_queues
ADD CONSTRAINT oban_queues_pkey PRIMARY KEY (name);
--
-- Name: on_call_incidents on_call_incidents_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_incidents
ADD CONSTRAINT on_call_incidents_pkey PRIMARY KEY (id);
--
-- Name: on_call_layer_members on_call_layer_members_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_layer_members
ADD CONSTRAINT on_call_layer_members_pkey PRIMARY KEY (id);
--
-- Name: on_call_layers on_call_layers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_layers
ADD CONSTRAINT on_call_layers_pkey PRIMARY KEY (id);
--
-- Name: on_call_notifications on_call_notifications_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_notifications
ADD CONSTRAINT on_call_notifications_pkey PRIMARY KEY (id);
--
-- Name: on_call_overrides on_call_overrides_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_overrides
ADD CONSTRAINT on_call_overrides_pkey PRIMARY KEY (id);
--
-- Name: on_call_schedules on_call_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_schedules
ADD CONSTRAINT on_call_schedules_pkey PRIMARY KEY (id);
--
-- Name: organization_invitations organization_invitations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.organization_invitations
ADD CONSTRAINT organization_invitations_pkey PRIMARY KEY (id);
--
-- Name: organization_memberships organization_memberships_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.organization_memberships
ADD CONSTRAINT organization_memberships_pkey PRIMARY KEY (id);
--
-- Name: organizations organizations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.organizations
ADD CONSTRAINT organizations_pkey PRIMARY KEY (id);
--
-- Name: policy_versions policy_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.policy_versions
ADD CONSTRAINT policy_versions_pkey PRIMARY KEY (id);
--
-- Name: preseem_access_points preseem_access_points_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_access_points
ADD CONSTRAINT preseem_access_points_pkey PRIMARY KEY (id);
--
-- Name: preseem_device_baselines preseem_device_baselines_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_device_baselines
ADD CONSTRAINT preseem_device_baselines_pkey PRIMARY KEY (id);
--
-- Name: preseem_fleet_profiles preseem_fleet_profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_fleet_profiles
ADD CONSTRAINT preseem_fleet_profiles_pkey PRIMARY KEY (id);
--
-- Name: preseem_insights preseem_insights_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_insights
ADD CONSTRAINT preseem_insights_pkey PRIMARY KEY (id);
--
-- Name: preseem_subscriber_metrics preseem_subscriber_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_subscriber_metrics
ADD CONSTRAINT preseem_subscriber_metrics_pkey PRIMARY KEY (id);
--
-- Name: preseem_sync_logs preseem_sync_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_sync_logs
ADD CONSTRAINT preseem_sync_logs_pkey PRIMARY KEY (id);
--
-- Name: printer_supplies printer_supplies_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.printer_supplies
ADD CONSTRAINT printer_supplies_pkey PRIMARY KEY (id);
--
-- Name: profile_device_oids profile_device_oids_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.profile_device_oids
ADD CONSTRAINT profile_device_oids_pkey PRIMARY KEY (id);
--
-- Name: profile_sensor_oids profile_sensor_oids_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.profile_sensor_oids
ADD CONSTRAINT profile_sensor_oids_pkey PRIMARY KEY (id);
--
-- Name: qr_login_tokens qr_login_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.qr_login_tokens
ADD CONSTRAINT qr_login_tokens_pkey PRIMARY KEY (id);
--
-- Name: reports reports_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.reports
ADD CONSTRAINT reports_pkey PRIMARY KEY (id);
--
-- Name: schema_migrations schema_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.schema_migrations
ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (version);
--
-- Name: site_outages site_outages_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.site_outages
ADD CONSTRAINT site_outages_pkey PRIMARY KEY (id);
--
-- Name: sites sites_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.sites
ADD CONSTRAINT sites_pkey PRIMARY KEY (id);
--
-- Name: snmp_arp_entries snmp_arp_entries_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_arp_entries
ADD CONSTRAINT snmp_arp_entries_pkey PRIMARY KEY (id);
--
-- Name: snmp_devices snmp_devices_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_devices
ADD CONSTRAINT snmp_devices_pkey PRIMARY KEY (id);
--
-- Name: snmp_entity_physical snmp_entity_physical_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_entity_physical
ADD CONSTRAINT snmp_entity_physical_pkey PRIMARY KEY (id);
--
-- Name: snmp_entity_physical_readings snmp_entity_physical_readings_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_entity_physical_readings
ADD CONSTRAINT snmp_entity_physical_readings_pkey PRIMARY KEY (id);
--
-- Name: snmp_interfaces snmp_interfaces_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_interfaces
ADD CONSTRAINT snmp_interfaces_pkey PRIMARY KEY (id);
--
-- Name: snmp_ip_addresses snmp_ip_addresses_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_ip_addresses
ADD CONSTRAINT snmp_ip_addresses_pkey PRIMARY KEY (id);
--
-- Name: snmp_mac_addresses snmp_mac_addresses_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_mac_addresses
ADD CONSTRAINT snmp_mac_addresses_pkey PRIMARY KEY (id);
--
-- Name: snmp_memory_pools snmp_memory_pools_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_memory_pools
ADD CONSTRAINT snmp_memory_pools_pkey PRIMARY KEY (id);
--
-- Name: snmp_mempool_readings snmp_mempool_readings_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_mempool_readings
ADD CONSTRAINT snmp_mempool_readings_pkey PRIMARY KEY (id);
--
-- Name: snmp_mempools snmp_mempools_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_mempools
ADD CONSTRAINT snmp_mempools_pkey PRIMARY KEY (id);
--
-- Name: snmp_neighbors snmp_neighbors_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_neighbors
ADD CONSTRAINT snmp_neighbors_pkey PRIMARY KEY (id);
--
-- Name: snmp_physical_entities snmp_physical_entities_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_physical_entities
ADD CONSTRAINT snmp_physical_entities_pkey PRIMARY KEY (id);
--
-- Name: snmp_processor_readings snmp_processor_readings_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_processor_readings
ADD CONSTRAINT snmp_processor_readings_pkey PRIMARY KEY (id);
--
-- Name: snmp_processors snmp_processors_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_processors
ADD CONSTRAINT snmp_processors_pkey PRIMARY KEY (id);
--
-- Name: snmp_sensors snmp_sensors_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_sensors
ADD CONSTRAINT snmp_sensors_pkey PRIMARY KEY (id);
--
-- Name: snmp_state_sensors snmp_state_sensors_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_state_sensors
ADD CONSTRAINT snmp_state_sensors_pkey PRIMARY KEY (id);
--
-- Name: snmp_storage snmp_storage_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_storage
ADD CONSTRAINT snmp_storage_pkey PRIMARY KEY (id);
--
-- Name: snmp_storage_readings snmp_storage_readings_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_storage_readings
ADD CONSTRAINT snmp_storage_readings_pkey PRIMARY KEY (id);
--
-- Name: snmp_transceiver_readings snmp_transceiver_readings_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_transceiver_readings
ADD CONSTRAINT snmp_transceiver_readings_pkey PRIMARY KEY (id);
--
-- Name: snmp_transceivers snmp_transceivers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_transceivers
ADD CONSTRAINT snmp_transceivers_pkey PRIMARY KEY (id);
--
-- Name: snmp_vlans snmp_vlans_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_vlans
ADD CONSTRAINT snmp_vlans_pkey PRIMARY KEY (id);
--
-- Name: status_incidents status_incidents_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.status_incidents
ADD CONSTRAINT status_incidents_pkey PRIMARY KEY (id);
--
-- Name: status_page_components status_page_components_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.status_page_components
ADD CONSTRAINT status_page_components_pkey PRIMARY KEY (id);
--
-- Name: status_page_configs status_page_configs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.status_page_configs
ADD CONSTRAINT status_page_configs_pkey PRIMARY KEY (id);
--
-- Name: stripe_webhook_events stripe_webhook_events_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.stripe_webhook_events
ADD CONSTRAINT stripe_webhook_events_pkey PRIMARY KEY (id);
--
-- Name: uisp_config_snapshots uisp_config_snapshots_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.uisp_config_snapshots
ADD CONSTRAINT uisp_config_snapshots_pkey PRIMARY KEY (id);
--
-- Name: uisp_sync_logs uisp_sync_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.uisp_sync_logs
ADD CONSTRAINT uisp_sync_logs_pkey PRIMARY KEY (id);
--
-- Name: user_consents user_consents_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.user_consents
ADD CONSTRAINT user_consents_pkey PRIMARY KEY (id);
--
-- Name: user_recovery_codes user_recovery_codes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.user_recovery_codes
ADD CONSTRAINT user_recovery_codes_pkey PRIMARY KEY (id);
--
-- Name: user_totp_devices user_totp_devices_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.user_totp_devices
ADD CONSTRAINT user_totp_devices_pkey PRIMARY KEY (id);
--
-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.users
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
--
-- Name: users_tokens users_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.users_tokens
ADD CONSTRAINT users_tokens_pkey PRIMARY KEY (id);
--
-- Name: weather_alerts weather_alerts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.weather_alerts
ADD CONSTRAINT weather_alerts_pkey PRIMARY KEY (id);
--
-- Name: weather_observations weather_observations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.weather_observations
ADD CONSTRAINT weather_observations_pkey PRIMARY KEY (id);
--
-- Name: wireless_client_readings wireless_client_readings_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.wireless_client_readings
ADD CONSTRAINT wireless_client_readings_pkey PRIMARY KEY (id, checked_at);
--
-- Name: wireless_clients wireless_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.wireless_clients
ADD CONSTRAINT wireless_clients_pkey PRIMARY KEY (id);
--
-- Name: _hyper_10_129_chunk__materialized_hypertable_10_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_10_129_chunk__materialized_hypertable_10_bucket_idx ON _timescaledb_internal._hyper_10_129_chunk USING btree (bucket DESC);
--
-- Name: _hyper_10_129_chunk__materialized_hypertable_10_sensor_id_bucke; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_10_129_chunk__materialized_hypertable_10_sensor_id_bucke ON _timescaledb_internal._hyper_10_129_chunk USING btree (sensor_id, bucket DESC);
--
-- Name: _hyper_10_14_chunk__materialized_hypertable_10_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_10_14_chunk__materialized_hypertable_10_bucket_idx ON _timescaledb_internal._hyper_10_14_chunk USING btree (bucket DESC);
--
-- Name: _hyper_10_14_chunk__materialized_hypertable_10_sensor_id_bucket; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_10_14_chunk__materialized_hypertable_10_sensor_id_bucket ON _timescaledb_internal._hyper_10_14_chunk USING btree (sensor_id, bucket DESC);
--
-- Name: _hyper_10_174_chunk__materialized_hypertable_10_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_10_174_chunk__materialized_hypertable_10_bucket_idx ON _timescaledb_internal._hyper_10_174_chunk USING btree (bucket DESC);
--
-- Name: _hyper_10_174_chunk__materialized_hypertable_10_sensor_id_bucke; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_10_174_chunk__materialized_hypertable_10_sensor_id_bucke ON _timescaledb_internal._hyper_10_174_chunk USING btree (sensor_id, bucket DESC);
--
-- Name: _hyper_10_205_chunk__materialized_hypertable_10_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_10_205_chunk__materialized_hypertable_10_bucket_idx ON _timescaledb_internal._hyper_10_205_chunk USING btree (bucket DESC);
--
-- Name: _hyper_10_205_chunk__materialized_hypertable_10_sensor_id_bucke; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_10_205_chunk__materialized_hypertable_10_sensor_id_bucke ON _timescaledb_internal._hyper_10_205_chunk USING btree (sensor_id, bucket DESC);
--
-- Name: _hyper_10_60_chunk__materialized_hypertable_10_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_10_60_chunk__materialized_hypertable_10_bucket_idx ON _timescaledb_internal._hyper_10_60_chunk USING btree (bucket DESC);
--
-- Name: _hyper_10_60_chunk__materialized_hypertable_10_sensor_id_bucket; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_10_60_chunk__materialized_hypertable_10_sensor_id_bucket ON _timescaledb_internal._hyper_10_60_chunk USING btree (sensor_id, bucket DESC);
--
-- Name: _hyper_11_147_chunk__materialized_hypertable_11_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_11_147_chunk__materialized_hypertable_11_bucket_idx ON _timescaledb_internal._hyper_11_147_chunk USING btree (bucket DESC);
--
-- Name: _hyper_11_147_chunk__materialized_hypertable_11_interface_id_bu; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_11_147_chunk__materialized_hypertable_11_interface_id_bu ON _timescaledb_internal._hyper_11_147_chunk USING btree (interface_id, bucket DESC);
--
-- Name: _hyper_11_15_chunk__materialized_hypertable_11_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_11_15_chunk__materialized_hypertable_11_bucket_idx ON _timescaledb_internal._hyper_11_15_chunk USING btree (bucket DESC);
--
-- Name: _hyper_11_15_chunk__materialized_hypertable_11_interface_id_buc; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_11_15_chunk__materialized_hypertable_11_interface_id_buc ON _timescaledb_internal._hyper_11_15_chunk USING btree (interface_id, bucket DESC);
--
-- Name: _hyper_11_194_chunk__materialized_hypertable_11_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_11_194_chunk__materialized_hypertable_11_bucket_idx ON _timescaledb_internal._hyper_11_194_chunk USING btree (bucket DESC);
--
-- Name: _hyper_11_194_chunk__materialized_hypertable_11_interface_id_bu; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_11_194_chunk__materialized_hypertable_11_interface_id_bu ON _timescaledb_internal._hyper_11_194_chunk USING btree (interface_id, bucket DESC);
--
-- Name: _hyper_11_33_chunk__materialized_hypertable_11_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_11_33_chunk__materialized_hypertable_11_bucket_idx ON _timescaledb_internal._hyper_11_33_chunk USING btree (bucket DESC);
--
-- Name: _hyper_11_33_chunk__materialized_hypertable_11_interface_id_buc; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_11_33_chunk__materialized_hypertable_11_interface_id_buc ON _timescaledb_internal._hyper_11_33_chunk USING btree (interface_id, bucket DESC);
--
-- Name: _hyper_11_95_chunk__materialized_hypertable_11_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_11_95_chunk__materialized_hypertable_11_bucket_idx ON _timescaledb_internal._hyper_11_95_chunk USING btree (bucket DESC);
--
-- Name: _hyper_11_95_chunk__materialized_hypertable_11_interface_id_buc; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_11_95_chunk__materialized_hypertable_11_interface_id_buc ON _timescaledb_internal._hyper_11_95_chunk USING btree (interface_id, bucket DESC);
--
-- Name: _hyper_12_127_chunk__materialized_hypertable_12_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_12_127_chunk__materialized_hypertable_12_bucket_idx ON _timescaledb_internal._hyper_12_127_chunk USING btree (bucket DESC);
--
-- Name: _hyper_12_127_chunk__materialized_hypertable_12_interface_id_bu; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_12_127_chunk__materialized_hypertable_12_interface_id_bu ON _timescaledb_internal._hyper_12_127_chunk USING btree (interface_id, bucket DESC);
--
-- Name: _hyper_12_16_chunk__materialized_hypertable_12_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_12_16_chunk__materialized_hypertable_12_bucket_idx ON _timescaledb_internal._hyper_12_16_chunk USING btree (bucket DESC);
--
-- Name: _hyper_12_16_chunk__materialized_hypertable_12_interface_id_buc; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_12_16_chunk__materialized_hypertable_12_interface_id_buc ON _timescaledb_internal._hyper_12_16_chunk USING btree (interface_id, bucket DESC);
--
-- Name: _hyper_12_175_chunk__materialized_hypertable_12_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_12_175_chunk__materialized_hypertable_12_bucket_idx ON _timescaledb_internal._hyper_12_175_chunk USING btree (bucket DESC);
--
-- Name: _hyper_12_175_chunk__materialized_hypertable_12_interface_id_bu; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_12_175_chunk__materialized_hypertable_12_interface_id_bu ON _timescaledb_internal._hyper_12_175_chunk USING btree (interface_id, bucket DESC);
--
-- Name: _hyper_12_206_chunk__materialized_hypertable_12_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_12_206_chunk__materialized_hypertable_12_bucket_idx ON _timescaledb_internal._hyper_12_206_chunk USING btree (bucket DESC);
--
-- Name: _hyper_12_206_chunk__materialized_hypertable_12_interface_id_bu; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_12_206_chunk__materialized_hypertable_12_interface_id_bu ON _timescaledb_internal._hyper_12_206_chunk USING btree (interface_id, bucket DESC);
--
-- Name: _hyper_12_45_chunk__materialized_hypertable_12_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_12_45_chunk__materialized_hypertable_12_bucket_idx ON _timescaledb_internal._hyper_12_45_chunk USING btree (bucket DESC);
--
-- Name: _hyper_12_45_chunk__materialized_hypertable_12_interface_id_buc; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_12_45_chunk__materialized_hypertable_12_interface_id_buc ON _timescaledb_internal._hyper_12_45_chunk USING btree (interface_id, bucket DESC);
--
-- Name: _hyper_14_191_chunk_check_results_check_id_checked_at_index; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_14_191_chunk_check_results_check_id_checked_at_index ON _timescaledb_internal._hyper_14_191_chunk USING btree (check_id, checked_at);
--
-- Name: _hyper_14_191_chunk_check_results_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_14_191_chunk_check_results_checked_at_idx ON _timescaledb_internal._hyper_14_191_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_14_191_chunk_check_results_organization_id_checked_at_in; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_14_191_chunk_check_results_organization_id_checked_at_in ON _timescaledb_internal._hyper_14_191_chunk USING btree (organization_id, checked_at);
--
-- Name: _hyper_14_191_chunk_check_results_organization_id_status_index; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_14_191_chunk_check_results_organization_id_status_index ON _timescaledb_internal._hyper_14_191_chunk USING btree (organization_id, status);
--
-- Name: _hyper_14_191_chunk_check_results_value_index; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_14_191_chunk_check_results_value_index ON _timescaledb_internal._hyper_14_191_chunk USING btree (value);
--
-- Name: _hyper_14_210_chunk_check_results_check_id_checked_at_index; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_14_210_chunk_check_results_check_id_checked_at_index ON _timescaledb_internal._hyper_14_210_chunk USING btree (check_id, checked_at);
--
-- Name: _hyper_14_210_chunk_check_results_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_14_210_chunk_check_results_checked_at_idx ON _timescaledb_internal._hyper_14_210_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_14_210_chunk_check_results_organization_id_checked_at_in; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_14_210_chunk_check_results_organization_id_checked_at_in ON _timescaledb_internal._hyper_14_210_chunk USING btree (organization_id, checked_at);
--
-- Name: _hyper_14_210_chunk_check_results_organization_id_status_index; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_14_210_chunk_check_results_organization_id_status_index ON _timescaledb_internal._hyper_14_210_chunk USING btree (organization_id, status);
--
-- Name: _hyper_14_210_chunk_check_results_value_index; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_14_210_chunk_check_results_value_index ON _timescaledb_internal._hyper_14_210_chunk USING btree (value);
--
-- Name: _hyper_1_112_chunk_monitoring_checks_agent_token_id_device_id_c; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_112_chunk_monitoring_checks_agent_token_id_device_id_c ON _timescaledb_internal._hyper_1_112_chunk USING btree (agent_token_id, device_id, checked_at);
--
-- Name: _hyper_1_112_chunk_monitoring_checks_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_112_chunk_monitoring_checks_checked_at_idx ON _timescaledb_internal._hyper_1_112_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_1_112_chunk_monitoring_checks_device_id_agent_token_id_s; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_112_chunk_monitoring_checks_device_id_agent_token_id_s ON _timescaledb_internal._hyper_1_112_chunk USING btree (device_id, agent_token_id, status, checked_at);
--
-- Name: _hyper_1_112_chunk_monitoring_checks_device_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_112_chunk_monitoring_checks_device_id_checked_at_idx ON _timescaledb_internal._hyper_1_112_chunk USING btree (device_id, checked_at DESC);
--
-- Name: _hyper_1_115_chunk_monitoring_checks_agent_token_id_device_id_c; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_115_chunk_monitoring_checks_agent_token_id_device_id_c ON _timescaledb_internal._hyper_1_115_chunk USING btree (agent_token_id, device_id, checked_at);
--
-- Name: _hyper_1_115_chunk_monitoring_checks_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_115_chunk_monitoring_checks_checked_at_idx ON _timescaledb_internal._hyper_1_115_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_1_115_chunk_monitoring_checks_device_id_agent_token_id_s; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_115_chunk_monitoring_checks_device_id_agent_token_id_s ON _timescaledb_internal._hyper_1_115_chunk USING btree (device_id, agent_token_id, status, checked_at);
--
-- Name: _hyper_1_115_chunk_monitoring_checks_device_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_115_chunk_monitoring_checks_device_id_checked_at_idx ON _timescaledb_internal._hyper_1_115_chunk USING btree (device_id, checked_at DESC);
--
-- Name: _hyper_1_120_chunk_monitoring_checks_agent_token_id_device_id_c; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_120_chunk_monitoring_checks_agent_token_id_device_id_c ON _timescaledb_internal._hyper_1_120_chunk USING btree (agent_token_id, device_id, checked_at);
--
-- Name: _hyper_1_120_chunk_monitoring_checks_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_120_chunk_monitoring_checks_checked_at_idx ON _timescaledb_internal._hyper_1_120_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_1_120_chunk_monitoring_checks_device_id_agent_token_id_s; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_120_chunk_monitoring_checks_device_id_agent_token_id_s ON _timescaledb_internal._hyper_1_120_chunk USING btree (device_id, agent_token_id, status, checked_at);
--
-- Name: _hyper_1_120_chunk_monitoring_checks_device_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_120_chunk_monitoring_checks_device_id_checked_at_idx ON _timescaledb_internal._hyper_1_120_chunk USING btree (device_id, checked_at DESC);
--
-- Name: _hyper_1_132_chunk_monitoring_checks_agent_token_id_device_id_c; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_132_chunk_monitoring_checks_agent_token_id_device_id_c ON _timescaledb_internal._hyper_1_132_chunk USING btree (agent_token_id, device_id, checked_at);
--
-- Name: _hyper_1_132_chunk_monitoring_checks_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_132_chunk_monitoring_checks_checked_at_idx ON _timescaledb_internal._hyper_1_132_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_1_132_chunk_monitoring_checks_device_id_agent_token_id_s; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_132_chunk_monitoring_checks_device_id_agent_token_id_s ON _timescaledb_internal._hyper_1_132_chunk USING btree (device_id, agent_token_id, status, checked_at);
--
-- Name: _hyper_1_132_chunk_monitoring_checks_device_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_132_chunk_monitoring_checks_device_id_checked_at_idx ON _timescaledb_internal._hyper_1_132_chunk USING btree (device_id, checked_at DESC);
--
-- Name: _hyper_1_143_chunk_monitoring_checks_agent_token_id_device_id_c; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_143_chunk_monitoring_checks_agent_token_id_device_id_c ON _timescaledb_internal._hyper_1_143_chunk USING btree (agent_token_id, device_id, checked_at);
--
-- Name: _hyper_1_143_chunk_monitoring_checks_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_143_chunk_monitoring_checks_checked_at_idx ON _timescaledb_internal._hyper_1_143_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_1_143_chunk_monitoring_checks_device_id_agent_token_id_s; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_143_chunk_monitoring_checks_device_id_agent_token_id_s ON _timescaledb_internal._hyper_1_143_chunk USING btree (device_id, agent_token_id, status, checked_at);
--
-- Name: _hyper_1_143_chunk_monitoring_checks_device_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_143_chunk_monitoring_checks_device_id_checked_at_idx ON _timescaledb_internal._hyper_1_143_chunk USING btree (device_id, checked_at DESC);
--
-- Name: _hyper_1_158_chunk_monitoring_checks_agent_token_id_device_id_c; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_158_chunk_monitoring_checks_agent_token_id_device_id_c ON _timescaledb_internal._hyper_1_158_chunk USING btree (agent_token_id, device_id, checked_at);
--
-- Name: _hyper_1_158_chunk_monitoring_checks_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_158_chunk_monitoring_checks_checked_at_idx ON _timescaledb_internal._hyper_1_158_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_1_158_chunk_monitoring_checks_device_id_agent_token_id_s; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_158_chunk_monitoring_checks_device_id_agent_token_id_s ON _timescaledb_internal._hyper_1_158_chunk USING btree (device_id, agent_token_id, status, checked_at);
--
-- Name: _hyper_1_158_chunk_monitoring_checks_device_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_158_chunk_monitoring_checks_device_id_checked_at_idx ON _timescaledb_internal._hyper_1_158_chunk USING btree (device_id, checked_at DESC);
--
-- Name: _hyper_1_163_chunk_monitoring_checks_agent_token_id_device_id_c; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_163_chunk_monitoring_checks_agent_token_id_device_id_c ON _timescaledb_internal._hyper_1_163_chunk USING btree (agent_token_id, device_id, checked_at);
--
-- Name: _hyper_1_163_chunk_monitoring_checks_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_163_chunk_monitoring_checks_checked_at_idx ON _timescaledb_internal._hyper_1_163_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_1_163_chunk_monitoring_checks_device_id_agent_token_id_s; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_163_chunk_monitoring_checks_device_id_agent_token_id_s ON _timescaledb_internal._hyper_1_163_chunk USING btree (device_id, agent_token_id, status, checked_at);
--
-- Name: _hyper_1_163_chunk_monitoring_checks_device_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_163_chunk_monitoring_checks_device_id_checked_at_idx ON _timescaledb_internal._hyper_1_163_chunk USING btree (device_id, checked_at DESC);
--
-- Name: _hyper_1_164_chunk_monitoring_checks_agent_token_id_device_id_c; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_164_chunk_monitoring_checks_agent_token_id_device_id_c ON _timescaledb_internal._hyper_1_164_chunk USING btree (agent_token_id, device_id, checked_at);
--
-- Name: _hyper_1_164_chunk_monitoring_checks_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_164_chunk_monitoring_checks_checked_at_idx ON _timescaledb_internal._hyper_1_164_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_1_164_chunk_monitoring_checks_device_id_agent_token_id_s; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_164_chunk_monitoring_checks_device_id_agent_token_id_s ON _timescaledb_internal._hyper_1_164_chunk USING btree (device_id, agent_token_id, status, checked_at);
--
-- Name: _hyper_1_164_chunk_monitoring_checks_device_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_164_chunk_monitoring_checks_device_id_checked_at_idx ON _timescaledb_internal._hyper_1_164_chunk USING btree (device_id, checked_at DESC);
--
-- Name: _hyper_1_167_chunk_monitoring_checks_agent_token_id_device_id_c; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_167_chunk_monitoring_checks_agent_token_id_device_id_c ON _timescaledb_internal._hyper_1_167_chunk USING btree (agent_token_id, device_id, checked_at);
--
-- Name: _hyper_1_167_chunk_monitoring_checks_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_167_chunk_monitoring_checks_checked_at_idx ON _timescaledb_internal._hyper_1_167_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_1_167_chunk_monitoring_checks_device_id_agent_token_id_s; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_167_chunk_monitoring_checks_device_id_agent_token_id_s ON _timescaledb_internal._hyper_1_167_chunk USING btree (device_id, agent_token_id, status, checked_at);
--
-- Name: _hyper_1_167_chunk_monitoring_checks_device_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_167_chunk_monitoring_checks_device_id_checked_at_idx ON _timescaledb_internal._hyper_1_167_chunk USING btree (device_id, checked_at DESC);
--
-- Name: _hyper_1_170_chunk_monitoring_checks_agent_token_id_device_id_c; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_170_chunk_monitoring_checks_agent_token_id_device_id_c ON _timescaledb_internal._hyper_1_170_chunk USING btree (agent_token_id, device_id, checked_at);
--
-- Name: _hyper_1_170_chunk_monitoring_checks_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_170_chunk_monitoring_checks_checked_at_idx ON _timescaledb_internal._hyper_1_170_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_1_170_chunk_monitoring_checks_device_id_agent_token_id_s; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_170_chunk_monitoring_checks_device_id_agent_token_id_s ON _timescaledb_internal._hyper_1_170_chunk USING btree (device_id, agent_token_id, status, checked_at);
--
-- Name: _hyper_1_170_chunk_monitoring_checks_device_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_170_chunk_monitoring_checks_device_id_checked_at_idx ON _timescaledb_internal._hyper_1_170_chunk USING btree (device_id, checked_at DESC);
--
-- Name: _hyper_1_188_chunk_monitoring_checks_agent_token_id_device_id_c; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_188_chunk_monitoring_checks_agent_token_id_device_id_c ON _timescaledb_internal._hyper_1_188_chunk USING btree (agent_token_id, device_id, checked_at);
--
-- Name: _hyper_1_188_chunk_monitoring_checks_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_188_chunk_monitoring_checks_checked_at_idx ON _timescaledb_internal._hyper_1_188_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_1_188_chunk_monitoring_checks_device_id_agent_token_id_s; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_188_chunk_monitoring_checks_device_id_agent_token_id_s ON _timescaledb_internal._hyper_1_188_chunk USING btree (device_id, agent_token_id, status, checked_at);
--
-- Name: _hyper_1_188_chunk_monitoring_checks_device_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_188_chunk_monitoring_checks_device_id_checked_at_idx ON _timescaledb_internal._hyper_1_188_chunk USING btree (device_id, checked_at DESC);
--
-- Name: _hyper_1_198_chunk_monitoring_checks_agent_token_id_device_id_c; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_198_chunk_monitoring_checks_agent_token_id_device_id_c ON _timescaledb_internal._hyper_1_198_chunk USING btree (agent_token_id, device_id, checked_at);
--
-- Name: _hyper_1_198_chunk_monitoring_checks_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_198_chunk_monitoring_checks_checked_at_idx ON _timescaledb_internal._hyper_1_198_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_1_198_chunk_monitoring_checks_device_id_agent_token_id_s; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_198_chunk_monitoring_checks_device_id_agent_token_id_s ON _timescaledb_internal._hyper_1_198_chunk USING btree (device_id, agent_token_id, status, checked_at);
--
-- Name: _hyper_1_198_chunk_monitoring_checks_device_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_198_chunk_monitoring_checks_device_id_checked_at_idx ON _timescaledb_internal._hyper_1_198_chunk USING btree (device_id, checked_at DESC);
--
-- Name: _hyper_1_201_chunk_monitoring_checks_agent_token_id_device_id_c; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_201_chunk_monitoring_checks_agent_token_id_device_id_c ON _timescaledb_internal._hyper_1_201_chunk USING btree (agent_token_id, device_id, checked_at);
--
-- Name: _hyper_1_201_chunk_monitoring_checks_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_201_chunk_monitoring_checks_checked_at_idx ON _timescaledb_internal._hyper_1_201_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_1_201_chunk_monitoring_checks_device_id_agent_token_id_s; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_201_chunk_monitoring_checks_device_id_agent_token_id_s ON _timescaledb_internal._hyper_1_201_chunk USING btree (device_id, agent_token_id, status, checked_at);
--
-- Name: _hyper_1_201_chunk_monitoring_checks_device_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_201_chunk_monitoring_checks_device_id_checked_at_idx ON _timescaledb_internal._hyper_1_201_chunk USING btree (device_id, checked_at DESC);
--
-- Name: _hyper_1_209_chunk_monitoring_checks_agent_token_id_device_id_c; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_209_chunk_monitoring_checks_agent_token_id_device_id_c ON _timescaledb_internal._hyper_1_209_chunk USING btree (agent_token_id, device_id, checked_at);
--
-- Name: _hyper_1_209_chunk_monitoring_checks_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_209_chunk_monitoring_checks_checked_at_idx ON _timescaledb_internal._hyper_1_209_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_1_209_chunk_monitoring_checks_device_id_agent_token_id_s; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_209_chunk_monitoring_checks_device_id_agent_token_id_s ON _timescaledb_internal._hyper_1_209_chunk USING btree (device_id, agent_token_id, status, checked_at);
--
-- Name: _hyper_1_209_chunk_monitoring_checks_device_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_1_209_chunk_monitoring_checks_device_id_checked_at_idx ON _timescaledb_internal._hyper_1_209_chunk USING btree (device_id, checked_at DESC);
--
-- Name: _hyper_2_103_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_103_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_103_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_103_chunk_snmp_sensor_readings_sensor_id_checked_at_id; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_103_chunk_snmp_sensor_readings_sensor_id_checked_at_id ON _timescaledb_internal._hyper_2_103_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_103_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_103_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_103_chunk USING btree (status);
--
-- Name: _hyper_2_111_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_111_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_111_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_111_chunk_snmp_sensor_readings_sensor_id_checked_at_id; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_111_chunk_snmp_sensor_readings_sensor_id_checked_at_id ON _timescaledb_internal._hyper_2_111_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_111_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_111_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_111_chunk USING btree (status);
--
-- Name: _hyper_2_116_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_116_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_116_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_116_chunk_snmp_sensor_readings_sensor_id_checked_at_id; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_116_chunk_snmp_sensor_readings_sensor_id_checked_at_id ON _timescaledb_internal._hyper_2_116_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_116_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_116_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_116_chunk USING btree (status);
--
-- Name: _hyper_2_121_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_121_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_121_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_121_chunk_snmp_sensor_readings_sensor_id_checked_at_id; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_121_chunk_snmp_sensor_readings_sensor_id_checked_at_id ON _timescaledb_internal._hyper_2_121_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_121_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_121_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_121_chunk USING btree (status);
--
-- Name: _hyper_2_134_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_134_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_134_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_134_chunk_snmp_sensor_readings_sensor_id_checked_at_id; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_134_chunk_snmp_sensor_readings_sensor_id_checked_at_id ON _timescaledb_internal._hyper_2_134_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_134_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_134_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_134_chunk USING btree (status);
--
-- Name: _hyper_2_144_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_144_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_144_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_144_chunk_snmp_sensor_readings_sensor_id_checked_at_id; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_144_chunk_snmp_sensor_readings_sensor_id_checked_at_id ON _timescaledb_internal._hyper_2_144_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_144_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_144_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_144_chunk USING btree (status);
--
-- Name: _hyper_2_159_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_159_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_159_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_159_chunk_snmp_sensor_readings_sensor_id_checked_at_id; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_159_chunk_snmp_sensor_readings_sensor_id_checked_at_id ON _timescaledb_internal._hyper_2_159_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_159_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_159_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_159_chunk USING btree (status);
--
-- Name: _hyper_2_161_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_161_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_161_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_161_chunk_snmp_sensor_readings_sensor_id_checked_at_id; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_161_chunk_snmp_sensor_readings_sensor_id_checked_at_id ON _timescaledb_internal._hyper_2_161_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_161_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_161_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_161_chunk USING btree (status);
--
-- Name: _hyper_2_165_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_165_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_165_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_165_chunk_snmp_sensor_readings_sensor_id_checked_at_id; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_165_chunk_snmp_sensor_readings_sensor_id_checked_at_id ON _timescaledb_internal._hyper_2_165_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_165_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_165_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_165_chunk USING btree (status);
--
-- Name: _hyper_2_168_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_168_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_168_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_168_chunk_snmp_sensor_readings_sensor_id_checked_at_id; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_168_chunk_snmp_sensor_readings_sensor_id_checked_at_id ON _timescaledb_internal._hyper_2_168_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_168_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_168_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_168_chunk USING btree (status);
--
-- Name: _hyper_2_171_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_171_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_171_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_171_chunk_snmp_sensor_readings_sensor_id_checked_at_id; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_171_chunk_snmp_sensor_readings_sensor_id_checked_at_id ON _timescaledb_internal._hyper_2_171_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_171_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_171_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_171_chunk USING btree (status);
--
-- Name: _hyper_2_18_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_18_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_18_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_18_chunk_snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_18_chunk_snmp_sensor_readings_sensor_id_checked_at_idx ON _timescaledb_internal._hyper_2_18_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_18_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_18_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_18_chunk USING btree (status);
--
-- Name: _hyper_2_190_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_190_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_190_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_190_chunk_snmp_sensor_readings_sensor_id_checked_at_id; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_190_chunk_snmp_sensor_readings_sensor_id_checked_at_id ON _timescaledb_internal._hyper_2_190_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_190_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_190_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_190_chunk USING btree (status);
--
-- Name: _hyper_2_200_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_200_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_200_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_200_chunk_snmp_sensor_readings_sensor_id_checked_at_id; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_200_chunk_snmp_sensor_readings_sensor_id_checked_at_id ON _timescaledb_internal._hyper_2_200_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_200_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_200_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_200_chunk USING btree (status);
--
-- Name: _hyper_2_203_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_203_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_203_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_203_chunk_snmp_sensor_readings_sensor_id_checked_at_id; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_203_chunk_snmp_sensor_readings_sensor_id_checked_at_id ON _timescaledb_internal._hyper_2_203_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_203_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_203_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_203_chunk USING btree (status);
--
-- Name: _hyper_2_207_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_207_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_207_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_207_chunk_snmp_sensor_readings_sensor_id_checked_at_id; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_207_chunk_snmp_sensor_readings_sensor_id_checked_at_id ON _timescaledb_internal._hyper_2_207_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_207_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_207_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_207_chunk USING btree (status);
--
-- Name: _hyper_2_21_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_21_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_21_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_21_chunk_snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_21_chunk_snmp_sensor_readings_sensor_id_checked_at_idx ON _timescaledb_internal._hyper_2_21_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_21_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_21_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_21_chunk USING btree (status);
--
-- Name: _hyper_2_24_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_24_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_24_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_24_chunk_snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_24_chunk_snmp_sensor_readings_sensor_id_checked_at_idx ON _timescaledb_internal._hyper_2_24_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_24_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_24_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_24_chunk USING btree (status);
--
-- Name: _hyper_2_27_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_27_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_27_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_27_chunk_snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_27_chunk_snmp_sensor_readings_sensor_id_checked_at_idx ON _timescaledb_internal._hyper_2_27_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_27_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_27_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_27_chunk USING btree (status);
--
-- Name: _hyper_2_44_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_44_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_44_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_44_chunk_snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_44_chunk_snmp_sensor_readings_sensor_id_checked_at_idx ON _timescaledb_internal._hyper_2_44_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_44_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_44_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_44_chunk USING btree (status);
--
-- Name: _hyper_2_48_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_48_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_48_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_48_chunk_snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_48_chunk_snmp_sensor_readings_sensor_id_checked_at_idx ON _timescaledb_internal._hyper_2_48_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_48_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_48_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_48_chunk USING btree (status);
--
-- Name: _hyper_2_55_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_55_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_55_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_55_chunk_snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_55_chunk_snmp_sensor_readings_sensor_id_checked_at_idx ON _timescaledb_internal._hyper_2_55_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_55_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_55_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_55_chunk USING btree (status);
--
-- Name: _hyper_2_5_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_5_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_5_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_5_chunk_snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_5_chunk_snmp_sensor_readings_sensor_id_checked_at_idx ON _timescaledb_internal._hyper_2_5_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_5_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_5_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_5_chunk USING btree (status);
--
-- Name: _hyper_2_62_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_62_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_62_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_62_chunk_snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_62_chunk_snmp_sensor_readings_sensor_id_checked_at_idx ON _timescaledb_internal._hyper_2_62_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_62_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_62_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_62_chunk USING btree (status);
--
-- Name: _hyper_2_68_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_68_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_68_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_68_chunk_snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_68_chunk_snmp_sensor_readings_sensor_id_checked_at_idx ON _timescaledb_internal._hyper_2_68_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_68_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_68_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_68_chunk USING btree (status);
--
-- Name: _hyper_2_6_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_6_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_6_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_6_chunk_snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_6_chunk_snmp_sensor_readings_sensor_id_checked_at_idx ON _timescaledb_internal._hyper_2_6_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_6_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_6_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_6_chunk USING btree (status);
--
-- Name: _hyper_2_75_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_75_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_75_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_75_chunk_snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_75_chunk_snmp_sensor_readings_sensor_id_checked_at_idx ON _timescaledb_internal._hyper_2_75_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_75_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_75_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_75_chunk USING btree (status);
--
-- Name: _hyper_2_82_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_82_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_82_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_82_chunk_snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_82_chunk_snmp_sensor_readings_sensor_id_checked_at_idx ON _timescaledb_internal._hyper_2_82_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_82_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_82_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_82_chunk USING btree (status);
--
-- Name: _hyper_2_86_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_86_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_86_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_86_chunk_snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_86_chunk_snmp_sensor_readings_sensor_id_checked_at_idx ON _timescaledb_internal._hyper_2_86_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_86_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_86_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_86_chunk USING btree (status);
--
-- Name: _hyper_2_92_chunk_snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_92_chunk_snmp_sensor_readings_checked_at_idx ON _timescaledb_internal._hyper_2_92_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_2_92_chunk_snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_92_chunk_snmp_sensor_readings_sensor_id_checked_at_idx ON _timescaledb_internal._hyper_2_92_chunk USING btree (sensor_id, checked_at DESC);
--
-- Name: _hyper_2_92_chunk_snmp_sensor_readings_status_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_2_92_chunk_snmp_sensor_readings_status_idx ON _timescaledb_internal._hyper_2_92_chunk USING btree (status);
--
-- Name: _hyper_3_102_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_102_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_102_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_102_chunk_snmp_interface_stats_interface_id_checked_at; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_102_chunk_snmp_interface_stats_interface_id_checked_at ON _timescaledb_internal._hyper_3_102_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_10_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_10_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_10_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_10_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_10_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_10_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_110_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_110_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_110_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_110_chunk_snmp_interface_stats_interface_id_checked_at; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_110_chunk_snmp_interface_stats_interface_id_checked_at ON _timescaledb_internal._hyper_3_110_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_117_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_117_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_117_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_117_chunk_snmp_interface_stats_interface_id_checked_at; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_117_chunk_snmp_interface_stats_interface_id_checked_at ON _timescaledb_internal._hyper_3_117_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_122_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_122_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_122_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_122_chunk_snmp_interface_stats_interface_id_checked_at; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_122_chunk_snmp_interface_stats_interface_id_checked_at ON _timescaledb_internal._hyper_3_122_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_133_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_133_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_133_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_133_chunk_snmp_interface_stats_interface_id_checked_at; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_133_chunk_snmp_interface_stats_interface_id_checked_at ON _timescaledb_internal._hyper_3_133_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_145_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_145_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_145_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_145_chunk_snmp_interface_stats_interface_id_checked_at; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_145_chunk_snmp_interface_stats_interface_id_checked_at ON _timescaledb_internal._hyper_3_145_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_160_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_160_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_160_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_160_chunk_snmp_interface_stats_interface_id_checked_at; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_160_chunk_snmp_interface_stats_interface_id_checked_at ON _timescaledb_internal._hyper_3_160_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_162_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_162_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_162_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_162_chunk_snmp_interface_stats_interface_id_checked_at; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_162_chunk_snmp_interface_stats_interface_id_checked_at ON _timescaledb_internal._hyper_3_162_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_166_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_166_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_166_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_166_chunk_snmp_interface_stats_interface_id_checked_at; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_166_chunk_snmp_interface_stats_interface_id_checked_at ON _timescaledb_internal._hyper_3_166_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_169_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_169_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_169_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_169_chunk_snmp_interface_stats_interface_id_checked_at; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_169_chunk_snmp_interface_stats_interface_id_checked_at ON _timescaledb_internal._hyper_3_169_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_172_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_172_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_172_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_172_chunk_snmp_interface_stats_interface_id_checked_at; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_172_chunk_snmp_interface_stats_interface_id_checked_at ON _timescaledb_internal._hyper_3_172_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_189_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_189_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_189_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_189_chunk_snmp_interface_stats_interface_id_checked_at; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_189_chunk_snmp_interface_stats_interface_id_checked_at ON _timescaledb_internal._hyper_3_189_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_199_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_199_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_199_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_199_chunk_snmp_interface_stats_interface_id_checked_at; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_199_chunk_snmp_interface_stats_interface_id_checked_at ON _timescaledb_internal._hyper_3_199_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_19_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_19_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_19_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_19_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_19_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_19_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_202_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_202_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_202_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_202_chunk_snmp_interface_stats_interface_id_checked_at; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_202_chunk_snmp_interface_stats_interface_id_checked_at ON _timescaledb_internal._hyper_3_202_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_208_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_208_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_208_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_208_chunk_snmp_interface_stats_interface_id_checked_at; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_208_chunk_snmp_interface_stats_interface_id_checked_at ON _timescaledb_internal._hyper_3_208_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_22_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_22_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_22_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_22_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_22_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_22_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_25_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_25_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_25_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_25_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_25_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_25_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_28_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_28_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_28_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_28_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_28_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_28_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_30_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_30_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_30_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_30_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_30_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_30_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_37_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_37_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_37_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_37_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_37_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_37_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_40_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_40_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_40_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_40_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_40_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_40_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_49_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_49_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_49_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_49_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_49_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_49_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_56_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_56_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_56_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_56_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_56_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_56_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_63_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_63_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_63_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_63_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_63_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_63_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_69_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_69_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_69_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_69_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_69_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_69_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_74_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_74_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_74_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_74_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_74_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_74_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_7_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_7_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_7_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_7_chunk_snmp_interface_stats_interface_id_checked_at_i; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_7_chunk_snmp_interface_stats_interface_id_checked_at_i ON _timescaledb_internal._hyper_3_7_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_83_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_83_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_83_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_83_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_83_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_83_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_85_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_85_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_85_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_85_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_85_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_85_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_8_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_8_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_8_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_8_chunk_snmp_interface_stats_interface_id_checked_at_i; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_8_chunk_snmp_interface_stats_interface_id_checked_at_i ON _timescaledb_internal._hyper_3_8_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_93_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_93_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_93_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_93_chunk_snmp_interface_stats_interface_id_checked_at_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_93_chunk_snmp_interface_stats_interface_id_checked_at_ ON _timescaledb_internal._hyper_3_93_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_3_9_chunk_snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_9_chunk_snmp_interface_stats_checked_at_idx ON _timescaledb_internal._hyper_3_9_chunk USING btree (checked_at DESC);
--
-- Name: _hyper_3_9_chunk_snmp_interface_stats_interface_id_checked_at_i; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_3_9_chunk_snmp_interface_stats_interface_id_checked_at_i ON _timescaledb_internal._hyper_3_9_chunk USING btree (interface_id, checked_at DESC);
--
-- Name: _hyper_7_105_chunk__materialized_hypertable_7_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_7_105_chunk__materialized_hypertable_7_bucket_idx ON _timescaledb_internal._hyper_7_105_chunk USING btree (bucket DESC);
--
-- Name: _hyper_7_105_chunk__materialized_hypertable_7_device_id_bucket_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_7_105_chunk__materialized_hypertable_7_device_id_bucket_ ON _timescaledb_internal._hyper_7_105_chunk USING btree (device_id, bucket DESC);
--
-- Name: _hyper_7_11_chunk__materialized_hypertable_7_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_7_11_chunk__materialized_hypertable_7_bucket_idx ON _timescaledb_internal._hyper_7_11_chunk USING btree (bucket DESC);
--
-- Name: _hyper_7_11_chunk__materialized_hypertable_7_device_id_bucket_i; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_7_11_chunk__materialized_hypertable_7_device_id_bucket_i ON _timescaledb_internal._hyper_7_11_chunk USING btree (device_id, bucket DESC);
--
-- Name: _hyper_7_148_chunk__materialized_hypertable_7_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_7_148_chunk__materialized_hypertable_7_bucket_idx ON _timescaledb_internal._hyper_7_148_chunk USING btree (bucket DESC);
--
-- Name: _hyper_7_148_chunk__materialized_hypertable_7_device_id_bucket_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_7_148_chunk__materialized_hypertable_7_device_id_bucket_ ON _timescaledb_internal._hyper_7_148_chunk USING btree (device_id, bucket DESC);
--
-- Name: _hyper_7_192_chunk__materialized_hypertable_7_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_7_192_chunk__materialized_hypertable_7_bucket_idx ON _timescaledb_internal._hyper_7_192_chunk USING btree (bucket DESC);
--
-- Name: _hyper_7_192_chunk__materialized_hypertable_7_device_id_bucket_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_7_192_chunk__materialized_hypertable_7_device_id_bucket_ ON _timescaledb_internal._hyper_7_192_chunk USING btree (device_id, bucket DESC);
--
-- Name: _hyper_7_34_chunk__materialized_hypertable_7_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_7_34_chunk__materialized_hypertable_7_bucket_idx ON _timescaledb_internal._hyper_7_34_chunk USING btree (bucket DESC);
--
-- Name: _hyper_7_34_chunk__materialized_hypertable_7_device_id_bucket_i; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_7_34_chunk__materialized_hypertable_7_device_id_bucket_i ON _timescaledb_internal._hyper_7_34_chunk USING btree (device_id, bucket DESC);
--
-- Name: _hyper_8_128_chunk__materialized_hypertable_8_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_8_128_chunk__materialized_hypertable_8_bucket_idx ON _timescaledb_internal._hyper_8_128_chunk USING btree (bucket DESC);
--
-- Name: _hyper_8_128_chunk__materialized_hypertable_8_device_id_bucket_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_8_128_chunk__materialized_hypertable_8_device_id_bucket_ ON _timescaledb_internal._hyper_8_128_chunk USING btree (device_id, bucket DESC);
--
-- Name: _hyper_8_12_chunk__materialized_hypertable_8_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_8_12_chunk__materialized_hypertable_8_bucket_idx ON _timescaledb_internal._hyper_8_12_chunk USING btree (bucket DESC);
--
-- Name: _hyper_8_12_chunk__materialized_hypertable_8_device_id_bucket_i; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_8_12_chunk__materialized_hypertable_8_device_id_bucket_i ON _timescaledb_internal._hyper_8_12_chunk USING btree (device_id, bucket DESC);
--
-- Name: _hyper_8_173_chunk__materialized_hypertable_8_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_8_173_chunk__materialized_hypertable_8_bucket_idx ON _timescaledb_internal._hyper_8_173_chunk USING btree (bucket DESC);
--
-- Name: _hyper_8_173_chunk__materialized_hypertable_8_device_id_bucket_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_8_173_chunk__materialized_hypertable_8_device_id_bucket_ ON _timescaledb_internal._hyper_8_173_chunk USING btree (device_id, bucket DESC);
--
-- Name: _hyper_8_204_chunk__materialized_hypertable_8_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_8_204_chunk__materialized_hypertable_8_bucket_idx ON _timescaledb_internal._hyper_8_204_chunk USING btree (bucket DESC);
--
-- Name: _hyper_8_204_chunk__materialized_hypertable_8_device_id_bucket_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_8_204_chunk__materialized_hypertable_8_device_id_bucket_ ON _timescaledb_internal._hyper_8_204_chunk USING btree (device_id, bucket DESC);
--
-- Name: _hyper_8_46_chunk__materialized_hypertable_8_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_8_46_chunk__materialized_hypertable_8_bucket_idx ON _timescaledb_internal._hyper_8_46_chunk USING btree (bucket DESC);
--
-- Name: _hyper_8_46_chunk__materialized_hypertable_8_device_id_bucket_i; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_8_46_chunk__materialized_hypertable_8_device_id_bucket_i ON _timescaledb_internal._hyper_8_46_chunk USING btree (device_id, bucket DESC);
--
-- Name: _hyper_9_13_chunk__materialized_hypertable_9_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_9_13_chunk__materialized_hypertable_9_bucket_idx ON _timescaledb_internal._hyper_9_13_chunk USING btree (bucket DESC);
--
-- Name: _hyper_9_13_chunk__materialized_hypertable_9_sensor_id_bucket_i; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_9_13_chunk__materialized_hypertable_9_sensor_id_bucket_i ON _timescaledb_internal._hyper_9_13_chunk USING btree (sensor_id, bucket DESC);
--
-- Name: _hyper_9_146_chunk__materialized_hypertable_9_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_9_146_chunk__materialized_hypertable_9_bucket_idx ON _timescaledb_internal._hyper_9_146_chunk USING btree (bucket DESC);
--
-- Name: _hyper_9_146_chunk__materialized_hypertable_9_sensor_id_bucket_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_9_146_chunk__materialized_hypertable_9_sensor_id_bucket_ ON _timescaledb_internal._hyper_9_146_chunk USING btree (sensor_id, bucket DESC);
--
-- Name: _hyper_9_193_chunk__materialized_hypertable_9_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_9_193_chunk__materialized_hypertable_9_bucket_idx ON _timescaledb_internal._hyper_9_193_chunk USING btree (bucket DESC);
--
-- Name: _hyper_9_193_chunk__materialized_hypertable_9_sensor_id_bucket_; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_9_193_chunk__materialized_hypertable_9_sensor_id_bucket_ ON _timescaledb_internal._hyper_9_193_chunk USING btree (sensor_id, bucket DESC);
--
-- Name: _hyper_9_50_chunk__materialized_hypertable_9_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_9_50_chunk__materialized_hypertable_9_bucket_idx ON _timescaledb_internal._hyper_9_50_chunk USING btree (bucket DESC);
--
-- Name: _hyper_9_50_chunk__materialized_hypertable_9_sensor_id_bucket_i; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_9_50_chunk__materialized_hypertable_9_sensor_id_bucket_i ON _timescaledb_internal._hyper_9_50_chunk USING btree (sensor_id, bucket DESC);
--
-- Name: _hyper_9_94_chunk__materialized_hypertable_9_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_9_94_chunk__materialized_hypertable_9_bucket_idx ON _timescaledb_internal._hyper_9_94_chunk USING btree (bucket DESC);
--
-- Name: _hyper_9_94_chunk__materialized_hypertable_9_sensor_id_bucket_i; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _hyper_9_94_chunk__materialized_hypertable_9_sensor_id_bucket_i ON _timescaledb_internal._hyper_9_94_chunk USING btree (sensor_id, bucket DESC);
--
-- Name: _materialized_hypertable_10_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_10_bucket_idx ON _timescaledb_internal._materialized_hypertable_10 USING btree (bucket DESC);
--
-- Name: _materialized_hypertable_10_sensor_id_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_10_sensor_id_bucket_idx ON _timescaledb_internal._materialized_hypertable_10 USING btree (sensor_id, bucket DESC);
--
-- Name: _materialized_hypertable_11_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_11_bucket_idx ON _timescaledb_internal._materialized_hypertable_11 USING btree (bucket DESC);
--
-- Name: _materialized_hypertable_11_interface_id_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_11_interface_id_bucket_idx ON _timescaledb_internal._materialized_hypertable_11 USING btree (interface_id, bucket DESC);
--
-- Name: _materialized_hypertable_12_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_12_bucket_idx ON _timescaledb_internal._materialized_hypertable_12 USING btree (bucket DESC);
--
-- Name: _materialized_hypertable_12_interface_id_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_12_interface_id_bucket_idx ON _timescaledb_internal._materialized_hypertable_12 USING btree (interface_id, bucket DESC);
--
-- Name: _materialized_hypertable_17_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_17_bucket_idx ON _timescaledb_internal._materialized_hypertable_17 USING btree (bucket DESC);
--
-- Name: _materialized_hypertable_17_device_id_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_17_device_id_bucket_idx ON _timescaledb_internal._materialized_hypertable_17 USING btree (device_id, bucket DESC);
--
-- Name: _materialized_hypertable_17_mac_address_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_17_mac_address_bucket_idx ON _timescaledb_internal._materialized_hypertable_17 USING btree (mac_address, bucket DESC);
--
-- Name: _materialized_hypertable_17_organization_id_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_17_organization_id_bucket_idx ON _timescaledb_internal._materialized_hypertable_17 USING btree (organization_id, bucket DESC);
--
-- Name: _materialized_hypertable_17_wireless_client_id_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_17_wireless_client_id_bucket_idx ON _timescaledb_internal._materialized_hypertable_17 USING btree (wireless_client_id, bucket DESC);
--
-- Name: _materialized_hypertable_18_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_18_bucket_idx ON _timescaledb_internal._materialized_hypertable_18 USING btree (bucket DESC);
--
-- Name: _materialized_hypertable_18_device_id_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_18_device_id_bucket_idx ON _timescaledb_internal._materialized_hypertable_18 USING btree (device_id, bucket DESC);
--
-- Name: _materialized_hypertable_18_mac_address_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_18_mac_address_bucket_idx ON _timescaledb_internal._materialized_hypertable_18 USING btree (mac_address, bucket DESC);
--
-- Name: _materialized_hypertable_18_organization_id_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_18_organization_id_bucket_idx ON _timescaledb_internal._materialized_hypertable_18 USING btree (organization_id, bucket DESC);
--
-- Name: _materialized_hypertable_18_wireless_client_id_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_18_wireless_client_id_bucket_idx ON _timescaledb_internal._materialized_hypertable_18 USING btree (wireless_client_id, bucket DESC);
--
-- Name: _materialized_hypertable_7_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_7_bucket_idx ON _timescaledb_internal._materialized_hypertable_7 USING btree (bucket DESC);
--
-- Name: _materialized_hypertable_7_device_id_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_7_device_id_bucket_idx ON _timescaledb_internal._materialized_hypertable_7 USING btree (device_id, bucket DESC);
--
-- Name: _materialized_hypertable_8_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_8_bucket_idx ON _timescaledb_internal._materialized_hypertable_8 USING btree (bucket DESC);
--
-- Name: _materialized_hypertable_8_device_id_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_8_device_id_bucket_idx ON _timescaledb_internal._materialized_hypertable_8 USING btree (device_id, bucket DESC);
--
-- Name: _materialized_hypertable_9_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_9_bucket_idx ON _timescaledb_internal._materialized_hypertable_9 USING btree (bucket DESC);
--
-- Name: _materialized_hypertable_9_sensor_id_bucket_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX _materialized_hypertable_9_sensor_id_bucket_idx ON _timescaledb_internal._materialized_hypertable_9 USING btree (sensor_id, bucket DESC);
--
-- Name: compress_hyper_4_139_chunk_device_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_4_139_chunk_device_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_4_139_chunk USING btree (device_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_4_140_chunk_device_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_4_140_chunk_device_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_4_140_chunk USING btree (device_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_4_149_chunk_device_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_4_149_chunk_device_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_4_149_chunk USING btree (device_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_4_152_chunk_device_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_4_152_chunk_device_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_4_152_chunk USING btree (device_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_4_155_chunk_device_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_4_155_chunk_device_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_4_155_chunk USING btree (device_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_4_178_chunk_device_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_4_178_chunk_device_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_4_178_chunk USING btree (device_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_4_179_chunk_device_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_4_179_chunk_device_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_4_179_chunk USING btree (device_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_4_183_chunk_device_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_4_183_chunk_device_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_4_183_chunk USING btree (device_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_4_185_chunk_device_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_4_185_chunk_device_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_4_185_chunk USING btree (device_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_4_195_chunk_device_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_4_195_chunk_device_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_4_195_chunk USING btree (device_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_4_213_chunk_device_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_4_213_chunk_device_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_4_213_chunk USING btree (device_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_4_214_chunk_device_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_4_214_chunk_device_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_4_214_chunk USING btree (device_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_4_217_chunk_device_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_4_217_chunk_device_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_4_217_chunk USING btree (device_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_4_220_chunk_device_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_4_220_chunk_device_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_4_220_chunk USING btree (device_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_106_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_106_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_106_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_114_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_114_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_114_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_119_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_119_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_119_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_123_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_123_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_123_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_125_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_125_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_125_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_131_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_131_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_131_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_136_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_136_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_136_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_137_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_137_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_137_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_141_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_141_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_141_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_150_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_150_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_150_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_154_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_154_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_154_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_156_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_156_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_156_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_176_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_176_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_176_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_180_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_180_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_180_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_182_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_182_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_182_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_186_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_186_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_186_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_196_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_196_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_196_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_212_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_212_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_212_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_216_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_216_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_216_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_219_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_219_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_219_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_221_chunk_sensor_id__ts_meta_min_1__ts_met_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_221_chunk_sensor_id__ts_meta_min_1__ts_met_idx ON _timescaledb_internal.compress_hyper_5_221_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_41_chunk_sensor_id__ts_meta_min_1__ts_meta_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_41_chunk_sensor_id__ts_meta_min_1__ts_meta_idx ON _timescaledb_internal.compress_hyper_5_41_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_52_chunk_sensor_id__ts_meta_min_1__ts_meta_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_52_chunk_sensor_id__ts_meta_min_1__ts_meta_idx ON _timescaledb_internal.compress_hyper_5_52_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_59_chunk_sensor_id__ts_meta_min_1__ts_meta_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_59_chunk_sensor_id__ts_meta_min_1__ts_meta_idx ON _timescaledb_internal.compress_hyper_5_59_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_64_chunk_sensor_id__ts_meta_min_1__ts_meta_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_64_chunk_sensor_id__ts_meta_min_1__ts_meta_idx ON _timescaledb_internal.compress_hyper_5_64_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_71_chunk_sensor_id__ts_meta_min_1__ts_meta_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_71_chunk_sensor_id__ts_meta_min_1__ts_meta_idx ON _timescaledb_internal.compress_hyper_5_71_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_77_chunk_sensor_id__ts_meta_min_1__ts_meta_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_77_chunk_sensor_id__ts_meta_min_1__ts_meta_idx ON _timescaledb_internal.compress_hyper_5_77_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_89_chunk_sensor_id__ts_meta_min_1__ts_meta_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_89_chunk_sensor_id__ts_meta_min_1__ts_meta_idx ON _timescaledb_internal.compress_hyper_5_89_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_96_chunk_sensor_id__ts_meta_min_1__ts_meta_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_96_chunk_sensor_id__ts_meta_min_1__ts_meta_idx ON _timescaledb_internal.compress_hyper_5_96_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_5_99_chunk_sensor_id__ts_meta_min_1__ts_meta_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_5_99_chunk_sensor_id__ts_meta_min_1__ts_meta_idx ON _timescaledb_internal.compress_hyper_5_99_chunk USING btree (sensor_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC, _ts_meta_min_2, _ts_meta_max_2);
--
-- Name: compress_hyper_6_101_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_101_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_101_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_107_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_107_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_107_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_113_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_113_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_113_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_118_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_118_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_118_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_124_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_124_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_124_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_126_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_126_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_126_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_130_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_130_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_130_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_135_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_135_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_135_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_138_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_138_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_138_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_142_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_142_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_142_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_151_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_151_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_151_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_153_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_153_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_153_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_157_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_157_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_157_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_177_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_177_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_177_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_181_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_181_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_181_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_184_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_184_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_184_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_187_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_187_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_187_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_197_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_197_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_197_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_211_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_211_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_211_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_215_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_215_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_215_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_218_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_218_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_218_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_222_chunk_interface_id__ts_meta_min_1__ts__idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_222_chunk_interface_id__ts_meta_min_1__ts__idx ON _timescaledb_internal.compress_hyper_6_222_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_31_chunk_interface_id__ts_meta_min_1__ts_m_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_31_chunk_interface_id__ts_meta_min_1__ts_m_idx ON _timescaledb_internal.compress_hyper_6_31_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_36_chunk_interface_id__ts_meta_min_1__ts_m_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_36_chunk_interface_id__ts_meta_min_1__ts_m_idx ON _timescaledb_internal.compress_hyper_6_36_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_42_chunk_interface_id__ts_meta_min_1__ts_m_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_42_chunk_interface_id__ts_meta_min_1__ts_m_idx ON _timescaledb_internal.compress_hyper_6_42_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_51_chunk_interface_id__ts_meta_min_1__ts_m_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_51_chunk_interface_id__ts_meta_min_1__ts_m_idx ON _timescaledb_internal.compress_hyper_6_51_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_58_chunk_interface_id__ts_meta_min_1__ts_m_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_58_chunk_interface_id__ts_meta_min_1__ts_m_idx ON _timescaledb_internal.compress_hyper_6_58_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_65_chunk_interface_id__ts_meta_min_1__ts_m_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_65_chunk_interface_id__ts_meta_min_1__ts_m_idx ON _timescaledb_internal.compress_hyper_6_65_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_70_chunk_interface_id__ts_meta_min_1__ts_m_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_70_chunk_interface_id__ts_meta_min_1__ts_m_idx ON _timescaledb_internal.compress_hyper_6_70_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_78_chunk_interface_id__ts_meta_min_1__ts_m_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_78_chunk_interface_id__ts_meta_min_1__ts_m_idx ON _timescaledb_internal.compress_hyper_6_78_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_80_chunk_interface_id__ts_meta_min_1__ts_m_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_80_chunk_interface_id__ts_meta_min_1__ts_m_idx ON _timescaledb_internal.compress_hyper_6_80_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_87_chunk_interface_id__ts_meta_min_1__ts_m_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_87_chunk_interface_id__ts_meta_min_1__ts_m_idx ON _timescaledb_internal.compress_hyper_6_87_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_90_chunk_interface_id__ts_meta_min_1__ts_m_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_90_chunk_interface_id__ts_meta_min_1__ts_m_idx ON _timescaledb_internal.compress_hyper_6_90_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: compress_hyper_6_98_chunk_interface_id__ts_meta_min_1__ts_m_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: -
--
CREATE INDEX compress_hyper_6_98_chunk_interface_id__ts_meta_min_1__ts_m_idx ON _timescaledb_internal.compress_hyper_6_98_chunk USING btree (interface_id, _ts_meta_min_1 DESC, _ts_meta_max_1 DESC);
--
-- Name: agent_assignments_agent_token_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX agent_assignments_agent_token_id_index ON public.agent_assignments USING btree (agent_token_id);
--
-- Name: agent_assignments_enabled_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX agent_assignments_enabled_index ON public.agent_assignments USING btree (enabled);
--
-- Name: agent_assignments_equipment_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX agent_assignments_equipment_id_index ON public.agent_assignments USING btree (device_id);
--
-- Name: agent_tokens_allow_remote_debug_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX agent_tokens_allow_remote_debug_index ON public.agent_tokens USING btree (allow_remote_debug);
--
-- Name: agent_tokens_is_cloud_poller_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX agent_tokens_is_cloud_poller_index ON public.agent_tokens USING btree (is_cloud_poller);
--
-- Name: agent_tokens_last_seen_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX agent_tokens_last_seen_at_index ON public.agent_tokens USING btree (last_seen_at);
--
-- Name: agent_tokens_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX agent_tokens_organization_id_index ON public.agent_tokens USING btree (organization_id);
--
-- Name: alert_storms_active_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX alert_storms_active_idx ON public.alert_storms USING btree (organization_id) WHERE (ended_at IS NULL);
--
-- Name: alert_storms_organization_id_started_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX alert_storms_organization_id_started_at_index ON public.alert_storms USING btree (organization_id, started_at);
--
-- Name: alerts_acknowledged_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX alerts_acknowledged_at_index ON public.alerts USING btree (acknowledged_at);
--
-- Name: alerts_active_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX alerts_active_idx ON public.alerts USING btree (resolved_at) WHERE (resolved_at IS NULL);
--
-- Name: alerts_alert_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX alerts_alert_type_index ON public.alerts USING btree (alert_type);
--
-- Name: alerts_check_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX alerts_check_id_index ON public.alerts USING btree (check_id);
--
-- Name: alerts_email_sent_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX alerts_email_sent_at_index ON public.alerts USING btree (email_sent_at);
--
-- Name: alerts_equipment_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX alerts_equipment_id_index ON public.alerts USING btree (device_id);
--
-- Name: alerts_notification_sent_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX alerts_notification_sent_index ON public.alerts USING btree (notification_sent);
--
-- Name: alerts_resolved_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX alerts_resolved_at_index ON public.alerts USING btree (resolved_at);
--
-- Name: alerts_severity_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX alerts_severity_index ON public.alerts USING btree (severity);
--
-- Name: alerts_site_outage_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX alerts_site_outage_id_index ON public.alerts USING btree (site_outage_id) WHERE (site_outage_id IS NOT NULL);
--
-- Name: alerts_triggered_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX alerts_triggered_at_index ON public.alerts USING btree (triggered_at);
--
-- Name: api_tokens_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX api_tokens_organization_id_index ON public.api_tokens USING btree (organization_id);
--
-- Name: api_tokens_token_hash_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX api_tokens_token_hash_index ON public.api_tokens USING btree (token_hash);
--
-- Name: api_tokens_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX api_tokens_user_id_index ON public.api_tokens USING btree (user_id);
--
-- Name: application_settings_key_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX application_settings_key_index ON public.application_settings USING btree (key);
--
-- Name: audit_logs_action_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX audit_logs_action_index ON public.audit_logs USING btree (action);
--
-- Name: audit_logs_inserted_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX audit_logs_inserted_at_index ON public.audit_logs USING btree (inserted_at);
--
-- Name: audit_logs_request_path_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX audit_logs_request_path_index ON public.audit_logs USING btree (request_path);
--
-- Name: audit_logs_superuser_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX audit_logs_superuser_id_index ON public.audit_logs USING btree (superuser_id);
--
-- Name: audit_logs_target_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX audit_logs_target_user_id_index ON public.audit_logs USING btree (target_user_id);
--
-- Name: browser_sessions_anonymized_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX browser_sessions_anonymized_at_index ON public.browser_sessions USING btree (anonymized_at);
--
-- Name: browser_sessions_expires_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX browser_sessions_expires_at_index ON public.browser_sessions USING btree (expires_at);
--
-- Name: browser_sessions_last_activity_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX browser_sessions_last_activity_at_index ON public.browser_sessions USING btree (last_activity_at);
--
-- Name: browser_sessions_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX browser_sessions_user_id_index ON public.browser_sessions USING btree (user_id);
--
-- Name: browser_sessions_user_token_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX browser_sessions_user_token_id_index ON public.browser_sessions USING btree (user_token_id);
--
-- Name: check_results_check_id_checked_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX check_results_check_id_checked_at_index ON public.check_results USING btree (check_id, checked_at);
--
-- Name: check_results_checked_at_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX check_results_checked_at_idx ON public.check_results USING btree (checked_at DESC);
--
-- Name: check_results_organization_id_checked_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX check_results_organization_id_checked_at_index ON public.check_results USING btree (organization_id, checked_at);
--
-- Name: check_results_organization_id_status_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX check_results_organization_id_status_index ON public.check_results USING btree (organization_id, status);
--
-- Name: check_results_value_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX check_results_value_index ON public.check_results USING btree (value);
--
-- Name: checks_agent_token_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX checks_agent_token_id_index ON public.checks USING btree (agent_token_id);
--
-- Name: checks_check_key_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX checks_check_key_index ON public.checks USING btree (check_key) WHERE (check_key IS NOT NULL);
--
-- Name: checks_check_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX checks_check_type_index ON public.checks USING btree (check_type);
--
-- Name: checks_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX checks_device_id_index ON public.checks USING btree (device_id);
--
-- Name: checks_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX checks_organization_id_index ON public.checks USING btree (organization_id);
--
-- Name: checks_source_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX checks_source_id_index ON public.checks USING btree (source_id);
--
-- Name: checks_source_type_source_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX checks_source_type_source_id_index ON public.checks USING btree (source_type, source_id);
--
-- Name: config_change_events_changed_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX config_change_events_changed_at_index ON public.config_change_events USING btree (changed_at);
--
-- Name: config_change_events_device_id_changed_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX config_change_events_device_id_changed_at_index ON public.config_change_events USING btree (device_id, changed_at);
--
-- Name: config_change_events_organization_id_changed_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX config_change_events_organization_id_changed_at_index ON public.config_change_events USING btree (organization_id, changed_at);
--
-- Name: device_backup_requests_device_id_status_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_backup_requests_device_id_status_index ON public.device_backup_requests USING btree (device_id, status);
--
-- Name: device_backup_requests_job_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX device_backup_requests_job_id_index ON public.device_backup_requests USING btree (job_id);
--
-- Name: device_backup_requests_requested_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_backup_requests_requested_at_index ON public.device_backup_requests USING btree (requested_at);
--
-- Name: device_firmware_history_detected_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_firmware_history_detected_at_index ON public.device_firmware_history USING btree (detected_at);
--
-- Name: device_firmware_history_snmp_device_id_detected_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_firmware_history_snmp_device_id_detected_at_index ON public.device_firmware_history USING btree (snmp_device_id, detected_at);
--
-- Name: device_link_evidence_device_link_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_link_evidence_device_link_id_index ON public.device_link_evidence USING btree (device_link_id);
--
-- Name: device_link_evidence_observed_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_link_evidence_observed_at_index ON public.device_link_evidence USING btree (observed_at);
--
-- Name: device_links_source_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_links_source_device_id_index ON public.device_links USING btree (source_device_id);
--
-- Name: device_links_src_iface_remote_mac; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX device_links_src_iface_remote_mac ON public.device_links USING btree (source_device_id, source_interface_id, discovered_remote_mac);
--
-- Name: device_links_target_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_links_target_device_id_index ON public.device_links USING btree (target_device_id);
--
-- Name: device_mikrotik_backups_device_id_backed_up_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_mikrotik_backups_device_id_backed_up_at_index ON public.device_mikrotik_backups USING btree (device_id, backed_up_at);
--
-- Name: device_neighbors_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_neighbors_device_id_index ON public.device_neighbors USING btree (device_id);
--
-- Name: device_neighbors_last_seen_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_neighbors_last_seen_at_index ON public.device_neighbors USING btree (last_seen_at);
--
-- Name: device_neighbors_neighbor_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_neighbors_neighbor_device_id_index ON public.device_neighbors USING btree (neighbor_device_id);
--
-- Name: device_neighbors_unique_link; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX device_neighbors_unique_link ON public.device_neighbors USING btree (device_id, local_port, neighbor_name);
--
-- Name: device_profiles_enabled_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_profiles_enabled_index ON public.device_profiles USING btree (enabled);
--
-- Name: device_profiles_name_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX device_profiles_name_index ON public.device_profiles USING btree (name);
--
-- Name: device_profiles_priority_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_profiles_priority_index ON public.device_profiles USING btree (priority);
--
-- Name: device_subscriber_links_device_id_gaiia_account_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX device_subscriber_links_device_id_gaiia_account_id_index ON public.device_subscriber_links USING btree (device_id, gaiia_account_id);
--
-- Name: device_subscriber_links_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_subscriber_links_device_id_index ON public.device_subscriber_links USING btree (device_id);
--
-- Name: device_subscriber_links_gaiia_account_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_subscriber_links_gaiia_account_id_index ON public.device_subscriber_links USING btree (gaiia_account_id);
--
-- Name: device_subscriber_links_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX device_subscriber_links_organization_id_index ON public.device_subscriber_links USING btree (organization_id);
--
-- Name: devices_monitoring_enabled_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX devices_monitoring_enabled_index ON public.devices USING btree (monitoring_enabled);
--
-- Name: devices_organization_id_display_order_name_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX devices_organization_id_display_order_name_index ON public.devices USING btree (organization_id, display_order, name);
--
-- Name: devices_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX devices_organization_id_index ON public.devices USING btree (organization_id);
--
-- Name: devices_organization_id_status_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX devices_organization_id_status_idx ON public.devices USING btree (organization_id, status);
--
-- Name: devices_site_id_display_order_name_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX devices_site_id_display_order_name_index ON public.devices USING btree (site_id, display_order, name);
--
-- Name: devices_site_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX devices_site_id_index ON public.devices USING btree (site_id);
--
-- Name: devices_snmp_community_source_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX devices_snmp_community_source_index ON public.devices USING btree (snmp_community_source);
--
-- Name: equipment_events_equipment_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX equipment_events_equipment_id_index ON public.device_events USING btree (device_id);
--
-- Name: equipment_events_equipment_id_occurred_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX equipment_events_equipment_id_occurred_at_index ON public.device_events USING btree (device_id, occurred_at);
--
-- Name: equipment_events_event_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX equipment_events_event_type_index ON public.device_events USING btree (event_type);
--
-- Name: equipment_events_occurred_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX equipment_events_occurred_at_index ON public.device_events USING btree (occurred_at);
--
-- Name: equipment_last_snmp_poll_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX equipment_last_snmp_poll_at_index ON public.devices USING btree (last_snmp_poll_at);
--
-- Name: equipment_status_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX equipment_status_index ON public.devices USING btree (status);
--
-- Name: error_tracker_errors_fingerprint_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX error_tracker_errors_fingerprint_index ON public.error_tracker_errors USING btree (fingerprint);
--
-- Name: error_tracker_errors_last_occurrence_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX error_tracker_errors_last_occurrence_at_index ON public.error_tracker_errors USING btree (last_occurrence_at);
--
-- Name: error_tracker_occurrences_error_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX error_tracker_occurrences_error_id_index ON public.error_tracker_occurrences USING btree (error_id);
--
-- Name: escalation_policies_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX escalation_policies_organization_id_index ON public.escalation_policies USING btree (organization_id);
--
-- Name: escalation_rules_escalation_policy_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX escalation_rules_escalation_policy_id_index ON public.escalation_rules USING btree (escalation_policy_id);
--
-- Name: escalation_targets_escalation_rule_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX escalation_targets_escalation_rule_id_index ON public.escalation_targets USING btree (escalation_rule_id);
--
-- Name: escalation_targets_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX escalation_targets_user_id_index ON public.escalation_targets USING btree (user_id);
--
-- Name: firmware_releases_vendor_product_line_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX firmware_releases_vendor_product_line_index ON public.firmware_releases USING btree (vendor, product_line);
--
-- Name: gaiia_accounts_organization_id_gaiia_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX gaiia_accounts_organization_id_gaiia_id_index ON public.gaiia_accounts USING btree (organization_id, gaiia_id);
--
-- Name: gaiia_accounts_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX gaiia_accounts_organization_id_index ON public.gaiia_accounts USING btree (organization_id);
--
-- Name: gaiia_billing_subscriptions_account_gaiia_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX gaiia_billing_subscriptions_account_gaiia_id_index ON public.gaiia_billing_subscriptions USING btree (account_gaiia_id);
--
-- Name: gaiia_billing_subscriptions_organization_id_gaiia_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX gaiia_billing_subscriptions_organization_id_gaiia_id_index ON public.gaiia_billing_subscriptions USING btree (organization_id, gaiia_id);
--
-- Name: gaiia_billing_subscriptions_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX gaiia_billing_subscriptions_organization_id_index ON public.gaiia_billing_subscriptions USING btree (organization_id);
--
-- Name: gaiia_inventory_items_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX gaiia_inventory_items_device_id_index ON public.gaiia_inventory_items USING btree (device_id);
--
-- Name: gaiia_inventory_items_organization_id_gaiia_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX gaiia_inventory_items_organization_id_gaiia_id_index ON public.gaiia_inventory_items USING btree (organization_id, gaiia_id);
--
-- Name: gaiia_inventory_items_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX gaiia_inventory_items_organization_id_index ON public.gaiia_inventory_items USING btree (organization_id);
--
-- Name: gaiia_network_sites_ip_blocks_gin_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX gaiia_network_sites_ip_blocks_gin_idx ON public.gaiia_network_sites USING gin (ip_blocks);
--
-- Name: gaiia_network_sites_organization_id_gaiia_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX gaiia_network_sites_organization_id_gaiia_id_index ON public.gaiia_network_sites USING btree (organization_id, gaiia_id);
--
-- Name: gaiia_network_sites_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX gaiia_network_sites_organization_id_index ON public.gaiia_network_sites USING btree (organization_id);
--
-- Name: gaiia_network_sites_site_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX gaiia_network_sites_site_id_index ON public.gaiia_network_sites USING btree (site_id);
--
-- Name: geoip_blocks_geoname_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX geoip_blocks_geoname_id_index ON public.geoip_blocks USING btree (geoname_id);
--
-- Name: geoip_blocks_ip_range_gist; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX geoip_blocks_ip_range_gist ON public.geoip_blocks USING gist (int8range(start_ip_int, end_ip_int, '[]'::text));
--
-- Name: geoip_blocks_network_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX geoip_blocks_network_index ON public.geoip_blocks USING btree (network);
--
-- Name: geoip_blocks_start_ip_int_end_ip_int_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX geoip_blocks_start_ip_int_end_ip_int_index ON public.geoip_blocks USING btree (start_ip_int, end_ip_int);
--
-- Name: idx_alerts_device_type_unresolved; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX idx_alerts_device_type_unresolved ON public.alerts USING btree (device_id, alert_type, resolved_at) WHERE (resolved_at IS NULL);
--
-- Name: idx_alerts_org_triggered; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX idx_alerts_org_triggered ON public.alerts USING btree (organization_id, triggered_at);
--
-- Name: idx_alerts_org_type_unresolved; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX idx_alerts_org_type_unresolved ON public.alerts USING btree (organization_id, alert_type, resolved_at) WHERE (resolved_at IS NULL);
--
-- Name: idx_devices_snmp_monitoring_site; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX idx_devices_snmp_monitoring_site ON public.devices USING btree (snmp_enabled, monitoring_enabled, site_id) WHERE ((snmp_enabled = true) AND (monitoring_enabled = true));
--
-- Name: idx_devices_snmp_poll; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX idx_devices_snmp_poll ON public.devices USING btree (snmp_enabled, last_snmp_poll_at) WHERE (snmp_enabled = true);
--
-- Name: integrations_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX integrations_organization_id_index ON public.integrations USING btree (organization_id);
--
-- Name: integrations_organization_id_provider_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX integrations_organization_id_provider_index ON public.integrations USING btree (organization_id, provider);
--
-- Name: ip_blocks_banned_until_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX ip_blocks_banned_until_index ON public.ip_blocks USING btree (banned_until);
--
-- Name: ip_blocks_ip_address_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX ip_blocks_ip_address_index ON public.ip_blocks USING btree (ip_address);
--
-- Name: ip_blocks_last_violation_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX ip_blocks_last_violation_at_index ON public.ip_blocks USING btree (last_violation_at);
--
-- Name: ip_whitelist_added_by_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX ip_whitelist_added_by_id_index ON public.ip_whitelist USING btree (added_by_id);
--
-- Name: ip_whitelist_ip_or_cidr_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX ip_whitelist_ip_or_cidr_index ON public.ip_whitelist USING btree (ip_or_cidr);
--
-- Name: login_attempts_anonymized_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX login_attempts_anonymized_at_index ON public.login_attempts USING btree (anonymized_at);
--
-- Name: login_attempts_email_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX login_attempts_email_index ON public.login_attempts USING btree (email);
--
-- Name: login_attempts_inserted_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX login_attempts_inserted_at_index ON public.login_attempts USING btree (inserted_at);
--
-- Name: login_attempts_ip_address_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX login_attempts_ip_address_index ON public.login_attempts USING btree (ip_address);
--
-- Name: login_attempts_success_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX login_attempts_success_index ON public.login_attempts USING btree (success);
--
-- Name: login_attempts_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX login_attempts_user_id_index ON public.login_attempts USING btree (user_id);
--
-- Name: login_attempts_user_id_inserted_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX login_attempts_user_id_inserted_at_index ON public.login_attempts USING btree (user_id, inserted_at);
--
-- Name: maintenance_windows_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX maintenance_windows_device_id_index ON public.maintenance_windows USING btree (device_id);
--
-- Name: maintenance_windows_ends_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX maintenance_windows_ends_at_index ON public.maintenance_windows USING btree (ends_at);
--
-- Name: maintenance_windows_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX maintenance_windows_organization_id_index ON public.maintenance_windows USING btree (organization_id);
--
-- Name: maintenance_windows_site_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX maintenance_windows_site_id_index ON public.maintenance_windows USING btree (site_id);
--
-- Name: maintenance_windows_starts_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX maintenance_windows_starts_at_index ON public.maintenance_windows USING btree (starts_at);
--
-- Name: mobile_sessions_expires_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX mobile_sessions_expires_at_index ON public.mobile_sessions USING btree (expires_at);
--
-- Name: mobile_sessions_token_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX mobile_sessions_token_index ON public.mobile_sessions USING btree (token);
--
-- Name: mobile_sessions_user_id_alerts_enabled_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX mobile_sessions_user_id_alerts_enabled_index ON public.mobile_sessions USING btree (user_id, alerts_enabled);
--
-- Name: mobile_sessions_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX mobile_sessions_user_id_index ON public.mobile_sessions USING btree (user_id);
--
-- Name: monitoring_checks_agent_token_id_device_id_checked_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX monitoring_checks_agent_token_id_device_id_checked_at_index ON public.monitoring_checks USING btree (agent_token_id, device_id, checked_at);
--
-- Name: monitoring_checks_checked_at_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX monitoring_checks_checked_at_idx ON public.monitoring_checks USING btree (checked_at DESC);
--
-- Name: monitoring_checks_device_id_agent_token_id_status_checked_at_in; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX monitoring_checks_device_id_agent_token_id_status_checked_at_in ON public.monitoring_checks USING btree (device_id, agent_token_id, status, checked_at);
--
-- Name: monitoring_checks_device_id_checked_at_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX monitoring_checks_device_id_checked_at_idx ON public.monitoring_checks USING btree (device_id, checked_at DESC);
--
-- Name: notification_digests_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX notification_digests_organization_id_index ON public.notification_digests USING btree (organization_id);
--
-- Name: notification_digests_suppressed_alert_ids_gin_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX notification_digests_suppressed_alert_ids_gin_idx ON public.notification_digests USING gin (suppressed_alert_ids);
--
-- Name: notification_digests_user_id_window_start_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX notification_digests_user_id_window_start_index ON public.notification_digests USING btree (user_id, window_start);
--
-- Name: notification_digests_user_window_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX notification_digests_user_window_idx ON public.notification_digests USING btree (user_id, window_start);
--
-- Name: oban_jobs_args_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX oban_jobs_args_index ON public.oban_jobs USING gin (args);
--
-- Name: oban_jobs_batch_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX oban_jobs_batch_index ON public.oban_jobs USING btree (state, ((meta ->> 'batch_id'::text)), ((meta ->> 'callback'::text))) WHERE (meta ? 'batch_id'::text);
--
-- Name: oban_jobs_chain_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX oban_jobs_chain_index ON public.oban_jobs USING btree (state, ((meta ->> 'chain_id'::text)), ((meta ->> 'on_hold'::text))) WHERE (meta ? 'chain_id'::text);
--
-- Name: oban_jobs_meta_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX oban_jobs_meta_index ON public.oban_jobs USING gin (meta);
--
-- Name: oban_jobs_partition_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX oban_jobs_partition_index ON public.oban_jobs USING btree (partition_key, queue, priority, scheduled_at, id) WHERE ((state = 'available'::public.oban_job_state) AND (partition_key IS NOT NULL));
--
-- Name: oban_jobs_state_queue_priority_scheduled_at_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX oban_jobs_state_queue_priority_scheduled_at_id_index ON public.oban_jobs USING btree (state, queue, priority, scheduled_at, id);
--
-- Name: oban_jobs_sup_workflow_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX oban_jobs_sup_workflow_index ON public.oban_jobs USING btree (((meta ->> 'sup_workflow_id'::text)), state, ((meta ->> 'on_hold'::text))) WHERE (meta ? 'sup_workflow_id'::text);
--
-- Name: oban_jobs_unique_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX oban_jobs_unique_index ON public.oban_jobs USING btree (uniq_key) WHERE (uniq_key IS NOT NULL);
--
-- Name: oban_jobs_workflow_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX oban_jobs_workflow_index ON public.oban_jobs USING btree (((meta ->> 'workflow_id'::text)), state, ((meta ->> 'on_hold'::text)), ((meta ->> 'name'::text))) WHERE (meta ? 'workflow_id'::text);
--
-- Name: on_call_incidents_alert_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX on_call_incidents_alert_id_index ON public.on_call_incidents USING btree (alert_id);
--
-- Name: on_call_incidents_organization_id_status_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX on_call_incidents_organization_id_status_index ON public.on_call_incidents USING btree (organization_id, status);
--
-- Name: on_call_layer_members_layer_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX on_call_layer_members_layer_id_index ON public.on_call_layer_members USING btree (layer_id);
--
-- Name: on_call_layer_members_layer_id_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX on_call_layer_members_layer_id_user_id_index ON public.on_call_layer_members USING btree (layer_id, user_id);
--
-- Name: on_call_layer_members_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX on_call_layer_members_user_id_index ON public.on_call_layer_members USING btree (user_id);
--
-- Name: on_call_layers_schedule_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX on_call_layers_schedule_id_index ON public.on_call_layers USING btree (schedule_id);
--
-- Name: on_call_notifications_incident_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX on_call_notifications_incident_id_index ON public.on_call_notifications USING btree (incident_id);
--
-- Name: on_call_notifications_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX on_call_notifications_user_id_index ON public.on_call_notifications USING btree (user_id);
--
-- Name: on_call_overrides_schedule_id_start_time_end_time_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX on_call_overrides_schedule_id_start_time_end_time_index ON public.on_call_overrides USING btree (schedule_id, start_time, end_time);
--
-- Name: on_call_overrides_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX on_call_overrides_user_id_index ON public.on_call_overrides USING btree (user_id);
--
-- Name: on_call_schedules_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX on_call_schedules_organization_id_index ON public.on_call_schedules USING btree (organization_id);
--
-- Name: organization_invitations_email_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX organization_invitations_email_index ON public.organization_invitations USING btree (email);
--
-- Name: organization_invitations_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX organization_invitations_organization_id_index ON public.organization_invitations USING btree (organization_id);
--
-- Name: organization_invitations_token_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX organization_invitations_token_index ON public.organization_invitations USING btree (token);
--
-- Name: organization_memberships_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX organization_memberships_organization_id_index ON public.organization_memberships USING btree (organization_id);
--
-- Name: organization_memberships_organization_id_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX organization_memberships_organization_id_user_id_index ON public.organization_memberships USING btree (organization_id, user_id);
--
-- Name: organization_memberships_user_id_default_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX organization_memberships_user_id_default_index ON public.organization_memberships USING btree (user_id, is_default) WHERE (is_default = true);
--
-- Name: organization_memberships_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX organization_memberships_user_id_index ON public.organization_memberships USING btree (user_id);
--
-- Name: organizations_default_agent_token_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX organizations_default_agent_token_id_index ON public.organizations USING btree (default_agent_token_id);
--
-- Name: organizations_slug_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX organizations_slug_index ON public.organizations USING btree (slug);
--
-- Name: organizations_stripe_customer_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX organizations_stripe_customer_id_index ON public.organizations USING btree (stripe_customer_id);
--
-- Name: organizations_stripe_subscription_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX organizations_stripe_subscription_id_index ON public.organizations USING btree (stripe_subscription_id);
--
-- Name: organizations_subscription_plan_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX organizations_subscription_plan_index ON public.organizations USING btree (subscription_plan);
--
-- Name: organizations_subscription_status_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX organizations_subscription_status_index ON public.organizations USING btree (subscription_status);
--
-- Name: policy_versions_effective_date_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX policy_versions_effective_date_index ON public.policy_versions USING btree (effective_date);
--
-- Name: policy_versions_policy_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX policy_versions_policy_type_index ON public.policy_versions USING btree (policy_type);
--
-- Name: policy_versions_policy_type_version_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX policy_versions_policy_type_version_index ON public.policy_versions USING btree (policy_type, version);
--
-- Name: preseem_access_points_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_access_points_device_id_index ON public.preseem_access_points USING btree (device_id);
--
-- Name: preseem_access_points_match_confidence_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_access_points_match_confidence_index ON public.preseem_access_points USING btree (match_confidence);
--
-- Name: preseem_access_points_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_access_points_organization_id_index ON public.preseem_access_points USING btree (organization_id);
--
-- Name: preseem_access_points_organization_id_preseem_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX preseem_access_points_organization_id_preseem_id_index ON public.preseem_access_points USING btree (organization_id, preseem_id);
--
-- Name: preseem_device_baselines_ap_metric_period_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX preseem_device_baselines_ap_metric_period_idx ON public.preseem_device_baselines USING btree (preseem_access_point_id, metric_name, period);
--
-- Name: preseem_device_baselines_preseem_access_point_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_device_baselines_preseem_access_point_id_index ON public.preseem_device_baselines USING btree (preseem_access_point_id);
--
-- Name: preseem_fleet_profiles_org_model_fw_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX preseem_fleet_profiles_org_model_fw_idx ON public.preseem_fleet_profiles USING btree (organization_id, manufacturer, model, firmware_version);
--
-- Name: preseem_fleet_profiles_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_fleet_profiles_organization_id_index ON public.preseem_fleet_profiles USING btree (organization_id);
--
-- Name: preseem_insights_agent_token_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_insights_agent_token_id_index ON public.preseem_insights USING btree (agent_token_id);
--
-- Name: preseem_insights_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_insights_device_id_index ON public.preseem_insights USING btree (device_id);
--
-- Name: preseem_insights_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_insights_organization_id_index ON public.preseem_insights USING btree (organization_id);
--
-- Name: preseem_insights_organization_id_source_status_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_insights_organization_id_source_status_index ON public.preseem_insights USING btree (organization_id, source, status);
--
-- Name: preseem_insights_organization_id_status_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_insights_organization_id_status_index ON public.preseem_insights USING btree (organization_id, status);
--
-- Name: preseem_insights_preseem_access_point_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_insights_preseem_access_point_id_index ON public.preseem_insights USING btree (preseem_access_point_id);
--
-- Name: preseem_insights_site_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_insights_site_id_index ON public.preseem_insights USING btree (site_id);
--
-- Name: preseem_subscriber_metrics_preseem_access_point_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_subscriber_metrics_preseem_access_point_id_index ON public.preseem_subscriber_metrics USING btree (preseem_access_point_id);
--
-- Name: preseem_subscriber_metrics_recorded_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_subscriber_metrics_recorded_at_index ON public.preseem_subscriber_metrics USING btree (recorded_at);
--
-- Name: preseem_sync_logs_inserted_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_sync_logs_inserted_at_index ON public.preseem_sync_logs USING btree (inserted_at);
--
-- Name: preseem_sync_logs_integration_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_sync_logs_integration_id_index ON public.preseem_sync_logs USING btree (integration_id);
--
-- Name: preseem_sync_logs_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX preseem_sync_logs_organization_id_index ON public.preseem_sync_logs USING btree (organization_id);
--
-- Name: printer_supplies_snmp_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX printer_supplies_snmp_device_id_index ON public.printer_supplies USING btree (snmp_device_id);
--
-- Name: printer_supplies_snmp_device_id_supply_index_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX printer_supplies_snmp_device_id_supply_index_index ON public.printer_supplies USING btree (snmp_device_id, supply_index);
--
-- Name: profile_device_oids_profile_id_field_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX profile_device_oids_profile_id_field_index ON public.profile_device_oids USING btree (profile_id, field);
--
-- Name: profile_device_oids_profile_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX profile_device_oids_profile_id_index ON public.profile_device_oids USING btree (profile_id);
--
-- Name: profile_sensor_oids_profile_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX profile_sensor_oids_profile_id_index ON public.profile_sensor_oids USING btree (profile_id);
--
-- Name: profile_sensor_oids_sensor_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX profile_sensor_oids_sensor_type_index ON public.profile_sensor_oids USING btree (sensor_type);
--
-- Name: qr_login_tokens_expires_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX qr_login_tokens_expires_at_index ON public.qr_login_tokens USING btree (expires_at);
--
-- Name: qr_login_tokens_token_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX qr_login_tokens_token_index ON public.qr_login_tokens USING btree (token);
--
-- Name: qr_login_tokens_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX qr_login_tokens_user_id_index ON public.qr_login_tokens USING btree (user_id);
--
-- Name: reports_organization_id_enabled_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX reports_organization_id_enabled_index ON public.reports USING btree (organization_id, enabled);
--
-- Name: reports_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX reports_organization_id_index ON public.reports USING btree (organization_id);
--
-- Name: reports_report_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX reports_report_type_index ON public.reports USING btree (report_type);
--
-- Name: site_outages_active_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX site_outages_active_idx ON public.site_outages USING btree (site_id) WHERE (resolved_at IS NULL);
--
-- Name: site_outages_organization_id_started_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX site_outages_organization_id_started_at_index ON public.site_outages USING btree (organization_id, started_at);
--
-- Name: site_outages_site_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX site_outages_site_id_index ON public.site_outages USING btree (site_id);
--
-- Name: sites_agent_token_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX sites_agent_token_id_index ON public.sites USING btree (agent_token_id);
--
-- Name: sites_organization_id_display_order_name_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX sites_organization_id_display_order_name_index ON public.sites USING btree (organization_id, display_order, name);
--
-- Name: sites_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX sites_organization_id_index ON public.sites USING btree (organization_id);
--
-- Name: sites_organization_id_latitude_longitude_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX sites_organization_id_latitude_longitude_index ON public.sites USING btree (organization_id, latitude, longitude);
--
-- Name: sites_organization_id_name_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX sites_organization_id_name_index ON public.sites USING btree (organization_id, name);
--
-- Name: sites_parent_site_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX sites_parent_site_id_index ON public.sites USING btree (parent_site_id);
--
-- Name: snmp_arp_entries_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_arp_entries_device_id_index ON public.snmp_arp_entries USING btree (device_id);
--
-- Name: snmp_arp_entries_device_id_ip_address_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_arp_entries_device_id_ip_address_index ON public.snmp_arp_entries USING btree (device_id, ip_address);
--
-- Name: snmp_arp_entries_device_id_ip_address_mac_address_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_arp_entries_device_id_ip_address_mac_address_index ON public.snmp_arp_entries USING btree (device_id, ip_address, mac_address);
--
-- Name: snmp_arp_entries_mac_address_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_arp_entries_mac_address_index ON public.snmp_arp_entries USING btree (mac_address);
--
-- Name: snmp_devices_equipment_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_devices_equipment_id_index ON public.snmp_devices USING btree (device_id);
--
-- Name: snmp_entity_physical_entity_class_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_entity_physical_entity_class_index ON public.snmp_entity_physical USING btree (entity_class);
--
-- Name: snmp_entity_physical_parent_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_entity_physical_parent_id_index ON public.snmp_entity_physical USING btree (parent_id);
--
-- Name: snmp_entity_physical_readings_entity_physical_id_measured_at_in; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_entity_physical_readings_entity_physical_id_measured_at_in ON public.snmp_entity_physical_readings USING btree (entity_physical_id, measured_at);
--
-- Name: snmp_entity_physical_readings_measured_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_entity_physical_readings_measured_at_index ON public.snmp_entity_physical_readings USING btree (measured_at);
--
-- Name: snmp_entity_physical_snmp_device_id_entity_index_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_entity_physical_snmp_device_id_entity_index_index ON public.snmp_entity_physical USING btree (snmp_device_id, entity_index);
--
-- Name: snmp_entity_physical_snmp_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_entity_physical_snmp_device_id_index ON public.snmp_entity_physical USING btree (snmp_device_id);
--
-- Name: snmp_interface_stats_checked_at_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_interface_stats_checked_at_idx ON public.snmp_interface_stats USING btree (checked_at DESC);
--
-- Name: snmp_interface_stats_interface_id_checked_at_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_interface_stats_interface_id_checked_at_idx ON public.snmp_interface_stats USING btree (interface_id, checked_at DESC);
--
-- Name: snmp_interfaces_monitored_true_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_interfaces_monitored_true_idx ON public.snmp_interfaces USING btree (monitored) WHERE (monitored = true);
--
-- Name: snmp_interfaces_snmp_device_id_if_index_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_interfaces_snmp_device_id_if_index_index ON public.snmp_interfaces USING btree (snmp_device_id, if_index);
--
-- Name: snmp_interfaces_snmp_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_interfaces_snmp_device_id_index ON public.snmp_interfaces USING btree (snmp_device_id);
--
-- Name: snmp_ip_addresses_ip_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_ip_addresses_ip_type_index ON public.snmp_ip_addresses USING btree (ip_type);
--
-- Name: snmp_ip_addresses_is_primary_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_ip_addresses_is_primary_index ON public.snmp_ip_addresses USING btree (is_primary);
--
-- Name: snmp_ip_addresses_snmp_interface_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_ip_addresses_snmp_interface_id_index ON public.snmp_ip_addresses USING btree (snmp_interface_id);
--
-- Name: snmp_ip_addresses_snmp_interface_id_ip_address_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_ip_addresses_snmp_interface_id_ip_address_index ON public.snmp_ip_addresses USING btree (snmp_interface_id, ip_address);
--
-- Name: snmp_mac_addresses_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_mac_addresses_device_id_index ON public.snmp_mac_addresses USING btree (device_id);
--
-- Name: snmp_mac_addresses_device_id_mac_address_vlan_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_mac_addresses_device_id_mac_address_vlan_id_index ON public.snmp_mac_addresses USING btree (device_id, mac_address, vlan_id) NULLS NOT DISTINCT;
--
-- Name: snmp_mac_addresses_interface_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_mac_addresses_interface_id_index ON public.snmp_mac_addresses USING btree (interface_id);
--
-- Name: snmp_mac_addresses_mac_address_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_mac_addresses_mac_address_index ON public.snmp_mac_addresses USING btree (mac_address);
--
-- Name: snmp_memory_pools_pool_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_memory_pools_pool_type_index ON public.snmp_memory_pools USING btree (pool_type);
--
-- Name: snmp_memory_pools_snmp_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_memory_pools_snmp_device_id_index ON public.snmp_memory_pools USING btree (snmp_device_id);
--
-- Name: snmp_memory_pools_snmp_device_id_pool_index_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_memory_pools_snmp_device_id_pool_index_index ON public.snmp_memory_pools USING btree (snmp_device_id, pool_index);
--
-- Name: snmp_mempool_readings_checked_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_mempool_readings_checked_at_index ON public.snmp_mempool_readings USING btree (checked_at);
--
-- Name: snmp_mempool_readings_mempool_id_checked_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_mempool_readings_mempool_id_checked_at_index ON public.snmp_mempool_readings USING btree (mempool_id, checked_at);
--
-- Name: snmp_mempool_readings_mempool_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_mempool_readings_mempool_id_index ON public.snmp_mempool_readings USING btree (mempool_id);
--
-- Name: snmp_mempools_snmp_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_mempools_snmp_device_id_index ON public.snmp_mempools USING btree (snmp_device_id);
--
-- Name: snmp_mempools_snmp_device_id_mempool_index_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_mempools_snmp_device_id_mempool_index_index ON public.snmp_mempools USING btree (snmp_device_id, mempool_index);
--
-- Name: snmp_neighbors_equipment_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_neighbors_equipment_id_index ON public.snmp_neighbors USING btree (device_id);
--
-- Name: snmp_neighbors_interface_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_neighbors_interface_id_index ON public.snmp_neighbors USING btree (interface_id);
--
-- Name: snmp_neighbors_interface_id_remote_chassis_id_protocol_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_neighbors_interface_id_remote_chassis_id_protocol_index ON public.snmp_neighbors USING btree (interface_id, remote_chassis_id, protocol) NULLS NOT DISTINCT;
--
-- Name: snmp_neighbors_last_discovered_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_neighbors_last_discovered_at_index ON public.snmp_neighbors USING btree (last_discovered_at);
--
-- Name: snmp_neighbors_protocol_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_neighbors_protocol_index ON public.snmp_neighbors USING btree (protocol);
--
-- Name: snmp_physical_entities_entity_class_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_physical_entities_entity_class_index ON public.snmp_physical_entities USING btree (entity_class);
--
-- Name: snmp_physical_entities_parent_entity_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_physical_entities_parent_entity_id_index ON public.snmp_physical_entities USING btree (parent_entity_id);
--
-- Name: snmp_physical_entities_serial_number_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_physical_entities_serial_number_index ON public.snmp_physical_entities USING btree (serial_number);
--
-- Name: snmp_physical_entities_snmp_device_id_entity_index_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_physical_entities_snmp_device_id_entity_index_index ON public.snmp_physical_entities USING btree (snmp_device_id, entity_index);
--
-- Name: snmp_physical_entities_snmp_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_physical_entities_snmp_device_id_index ON public.snmp_physical_entities USING btree (snmp_device_id);
--
-- Name: snmp_processor_readings_checked_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_processor_readings_checked_at_index ON public.snmp_processor_readings USING btree (checked_at);
--
-- Name: snmp_processor_readings_processor_id_checked_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_processor_readings_processor_id_checked_at_index ON public.snmp_processor_readings USING btree (processor_id, checked_at);
--
-- Name: snmp_processor_readings_processor_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_processor_readings_processor_id_index ON public.snmp_processor_readings USING btree (processor_id);
--
-- Name: snmp_processors_snmp_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_processors_snmp_device_id_index ON public.snmp_processors USING btree (snmp_device_id);
--
-- Name: snmp_processors_snmp_device_id_processor_index_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_processors_snmp_device_id_processor_index_index ON public.snmp_processors USING btree (snmp_device_id, processor_index);
--
-- Name: snmp_sensor_readings_checked_at_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_sensor_readings_checked_at_idx ON public.snmp_sensor_readings USING btree (checked_at DESC);
--
-- Name: snmp_sensor_readings_sensor_id_checked_at_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_sensor_readings_sensor_id_checked_at_idx ON public.snmp_sensor_readings USING btree (sensor_id, checked_at DESC);
--
-- Name: snmp_sensor_readings_status_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_sensor_readings_status_idx ON public.snmp_sensor_readings USING btree (status);
--
-- Name: snmp_sensors_monitored_true_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_sensors_monitored_true_idx ON public.snmp_sensors USING btree (monitored) WHERE (monitored = true);
--
-- Name: snmp_sensors_sensor_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_sensors_sensor_type_index ON public.snmp_sensors USING btree (sensor_type);
--
-- Name: snmp_sensors_snmp_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_sensors_snmp_device_id_index ON public.snmp_sensors USING btree (snmp_device_id);
--
-- Name: snmp_sensors_snmp_device_id_sensor_index_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_sensors_snmp_device_id_sensor_index_index ON public.snmp_sensors USING btree (snmp_device_id, sensor_index);
--
-- Name: snmp_state_sensors_entity_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_state_sensors_entity_type_index ON public.snmp_state_sensors USING btree (entity_type);
--
-- Name: snmp_state_sensors_snmp_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_state_sensors_snmp_device_id_index ON public.snmp_state_sensors USING btree (snmp_device_id);
--
-- Name: snmp_state_sensors_snmp_device_id_sensor_index_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_state_sensors_snmp_device_id_sensor_index_index ON public.snmp_state_sensors USING btree (snmp_device_id, sensor_index);
--
-- Name: snmp_state_sensors_status_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_state_sensors_status_index ON public.snmp_state_sensors USING btree (status);
--
-- Name: snmp_storage_readings_checked_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_storage_readings_checked_at_index ON public.snmp_storage_readings USING btree (checked_at);
--
-- Name: snmp_storage_readings_storage_id_checked_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_storage_readings_storage_id_checked_at_index ON public.snmp_storage_readings USING btree (storage_id, checked_at);
--
-- Name: snmp_storage_readings_storage_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_storage_readings_storage_id_index ON public.snmp_storage_readings USING btree (storage_id);
--
-- Name: snmp_storage_snmp_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_storage_snmp_device_id_index ON public.snmp_storage USING btree (snmp_device_id);
--
-- Name: snmp_storage_snmp_device_id_storage_index_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_storage_snmp_device_id_storage_index_index ON public.snmp_storage USING btree (snmp_device_id, storage_index);
--
-- Name: snmp_storage_storage_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_storage_storage_type_index ON public.snmp_storage USING btree (storage_type);
--
-- Name: snmp_transceiver_readings_measured_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_transceiver_readings_measured_at_index ON public.snmp_transceiver_readings USING btree (measured_at);
--
-- Name: snmp_transceiver_readings_transceiver_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_transceiver_readings_transceiver_id_index ON public.snmp_transceiver_readings USING btree (transceiver_id);
--
-- Name: snmp_transceiver_readings_transceiver_id_measured_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_transceiver_readings_transceiver_id_measured_at_index ON public.snmp_transceiver_readings USING btree (transceiver_id, measured_at);
--
-- Name: snmp_transceivers_entity_physical_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_transceivers_entity_physical_id_index ON public.snmp_transceivers USING btree (entity_physical_id);
--
-- Name: snmp_transceivers_snmp_device_id_port_index_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_transceivers_snmp_device_id_port_index_index ON public.snmp_transceivers USING btree (snmp_device_id, port_index);
--
-- Name: snmp_transceivers_transceiver_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_transceivers_transceiver_type_index ON public.snmp_transceivers USING btree (transceiver_type);
--
-- Name: snmp_vlans_snmp_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_vlans_snmp_device_id_index ON public.snmp_vlans USING btree (snmp_device_id);
--
-- Name: snmp_vlans_snmp_device_id_vlan_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX snmp_vlans_snmp_device_id_vlan_id_index ON public.snmp_vlans USING btree (snmp_device_id, vlan_id);
--
-- Name: snmp_vlans_status_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX snmp_vlans_status_index ON public.snmp_vlans USING btree (status);
--
-- Name: status_incidents_status_page_config_id_started_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX status_incidents_status_page_config_id_started_at_index ON public.status_incidents USING btree (status_page_config_id, started_at);
--
-- Name: status_page_components_status_page_config_id_position_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX status_page_components_status_page_config_id_position_index ON public.status_page_components USING btree (status_page_config_id, "position");
--
-- Name: status_page_configs_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX status_page_configs_organization_id_index ON public.status_page_configs USING btree (organization_id);
--
-- Name: status_page_configs_slug_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX status_page_configs_slug_index ON public.status_page_configs USING btree (slug);
--
-- Name: stripe_webhook_events_event_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX stripe_webhook_events_event_type_index ON public.stripe_webhook_events USING btree (event_type);
--
-- Name: stripe_webhook_events_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX stripe_webhook_events_organization_id_index ON public.stripe_webhook_events USING btree (organization_id);
--
-- Name: uisp_config_snapshots_device_id_config_hash_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX uisp_config_snapshots_device_id_config_hash_index ON public.uisp_config_snapshots USING btree (device_id, config_hash);
--
-- Name: uisp_config_snapshots_device_id_snapshot_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX uisp_config_snapshots_device_id_snapshot_at_index ON public.uisp_config_snapshots USING btree (device_id, snapshot_at);
--
-- Name: uisp_sync_logs_inserted_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX uisp_sync_logs_inserted_at_index ON public.uisp_sync_logs USING btree (inserted_at);
--
-- Name: uisp_sync_logs_integration_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX uisp_sync_logs_integration_id_index ON public.uisp_sync_logs USING btree (integration_id);
--
-- Name: uisp_sync_logs_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX uisp_sync_logs_organization_id_index ON public.uisp_sync_logs USING btree (organization_id);
--
-- Name: user_consents_consent_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX user_consents_consent_type_index ON public.user_consents USING btree (consent_type);
--
-- Name: user_consents_user_id_consent_type_version_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX user_consents_user_id_consent_type_version_index ON public.user_consents USING btree (user_id, consent_type, version);
--
-- Name: user_consents_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX user_consents_user_id_index ON public.user_consents USING btree (user_id);
--
-- Name: user_recovery_codes_code_hash_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX user_recovery_codes_code_hash_index ON public.user_recovery_codes USING btree (code_hash);
--
-- Name: user_recovery_codes_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX user_recovery_codes_user_id_index ON public.user_recovery_codes USING btree (user_id);
--
-- Name: user_recovery_codes_user_id_used_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX user_recovery_codes_user_id_used_at_index ON public.user_recovery_codes USING btree (user_id, used_at);
--
-- Name: user_totp_devices_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX user_totp_devices_user_id_index ON public.user_totp_devices USING btree (user_id);
--
-- Name: user_totp_devices_user_id_last_used_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX user_totp_devices_user_id_last_used_at_index ON public.user_totp_devices USING btree (user_id, last_used_at);
--
-- Name: users_default_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX users_default_organization_id_index ON public.users USING btree (default_organization_id);
--
-- Name: users_email_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX users_email_index ON public.users USING btree (email);
--
-- Name: users_is_superuser_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX users_is_superuser_index ON public.users USING btree (is_superuser);
--
-- Name: users_tokens_context_token_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX users_tokens_context_token_index ON public.users_tokens USING btree (context, token);
--
-- Name: users_tokens_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX users_tokens_user_id_index ON public.users_tokens USING btree (user_id);
--
-- Name: weather_alerts_site_id_ends_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX weather_alerts_site_id_ends_at_index ON public.weather_alerts USING btree (site_id, ends_at);
--
-- Name: weather_alerts_site_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX weather_alerts_site_id_index ON public.weather_alerts USING btree (site_id);
--
-- Name: weather_observations_observed_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX weather_observations_observed_at_index ON public.weather_observations USING btree (observed_at);
--
-- Name: weather_observations_site_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX weather_observations_site_id_index ON public.weather_observations USING btree (site_id);
--
-- Name: weather_observations_site_id_observed_at_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX weather_observations_site_id_observed_at_index ON public.weather_observations USING btree (site_id, observed_at);
--
-- Name: wireless_client_readings_checked_at_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX wireless_client_readings_checked_at_idx ON public.wireless_client_readings USING btree (checked_at DESC);
--
-- Name: wireless_client_readings_device_id_checked_at_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX wireless_client_readings_device_id_checked_at_idx ON public.wireless_client_readings USING btree (device_id, checked_at DESC);
--
-- Name: wireless_client_readings_mac_address_checked_at_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX wireless_client_readings_mac_address_checked_at_idx ON public.wireless_client_readings USING btree (mac_address, checked_at DESC);
--
-- Name: wireless_client_readings_organization_id_checked_at_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX wireless_client_readings_organization_id_checked_at_idx ON public.wireless_client_readings USING btree (organization_id, checked_at DESC);
--
-- Name: wireless_clients_device_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX wireless_clients_device_id_index ON public.wireless_clients USING btree (device_id);
--
-- Name: wireless_clients_device_id_mac_address_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX wireless_clients_device_id_mac_address_index ON public.wireless_clients USING btree (device_id, mac_address);
--
-- Name: wireless_clients_lower_hostname_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX wireless_clients_lower_hostname_idx ON public.wireless_clients USING btree (lower((hostname)::text));
--
-- Name: wireless_clients_mac_address_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX wireless_clients_mac_address_index ON public.wireless_clients USING btree (mac_address);
--
-- Name: wireless_clients_organization_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX wireless_clients_organization_id_index ON public.wireless_clients USING btree (organization_id);
--
-- Name: _hyper_3_102_chunk 102_71_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_102_chunk
ADD CONSTRAINT "102_71_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_103_chunk 103_72_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_103_chunk
ADD CONSTRAINT "103_72_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_10_chunk 10_10_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_10_chunk
ADD CONSTRAINT "10_10_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_110_chunk 110_77_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_110_chunk
ADD CONSTRAINT "110_77_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_111_chunk 111_78_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_111_chunk
ADD CONSTRAINT "111_78_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_1_112_chunk 112_79_monitoring_checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_112_chunk
ADD CONSTRAINT "112_79_monitoring_checks_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_1_112_chunk 112_80_monitoring_checks_device_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_112_chunk
ADD CONSTRAINT "112_80_monitoring_checks_device_id_fkey" FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: _hyper_1_115_chunk 115_81_monitoring_checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_115_chunk
ADD CONSTRAINT "115_81_monitoring_checks_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_1_115_chunk 115_82_monitoring_checks_device_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_115_chunk
ADD CONSTRAINT "115_82_monitoring_checks_device_id_fkey" FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_116_chunk 116_83_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_116_chunk
ADD CONSTRAINT "116_83_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_117_chunk 117_84_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_117_chunk
ADD CONSTRAINT "117_84_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_1_120_chunk 120_85_monitoring_checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_120_chunk
ADD CONSTRAINT "120_85_monitoring_checks_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_1_120_chunk 120_86_monitoring_checks_device_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_120_chunk
ADD CONSTRAINT "120_86_monitoring_checks_device_id_fkey" FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_121_chunk 121_87_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_121_chunk
ADD CONSTRAINT "121_87_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_122_chunk 122_88_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_122_chunk
ADD CONSTRAINT "122_88_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_1_132_chunk 132_89_monitoring_checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_132_chunk
ADD CONSTRAINT "132_89_monitoring_checks_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_1_132_chunk 132_90_monitoring_checks_device_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_132_chunk
ADD CONSTRAINT "132_90_monitoring_checks_device_id_fkey" FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_133_chunk 133_91_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_133_chunk
ADD CONSTRAINT "133_91_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_134_chunk 134_92_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_134_chunk
ADD CONSTRAINT "134_92_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_1_143_chunk 143_93_monitoring_checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_143_chunk
ADD CONSTRAINT "143_93_monitoring_checks_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_1_143_chunk 143_94_monitoring_checks_device_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_143_chunk
ADD CONSTRAINT "143_94_monitoring_checks_device_id_fkey" FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_144_chunk 144_95_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_144_chunk
ADD CONSTRAINT "144_95_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_145_chunk 145_96_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_145_chunk
ADD CONSTRAINT "145_96_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_1_158_chunk 158_97_monitoring_checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_158_chunk
ADD CONSTRAINT "158_97_monitoring_checks_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_1_158_chunk 158_98_monitoring_checks_device_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_158_chunk
ADD CONSTRAINT "158_98_monitoring_checks_device_id_fkey" FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_159_chunk 159_99_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_159_chunk
ADD CONSTRAINT "159_99_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_160_chunk 160_100_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_160_chunk
ADD CONSTRAINT "160_100_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_161_chunk 161_101_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_161_chunk
ADD CONSTRAINT "161_101_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_162_chunk 162_102_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_162_chunk
ADD CONSTRAINT "162_102_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_1_163_chunk 163_103_monitoring_checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_163_chunk
ADD CONSTRAINT "163_103_monitoring_checks_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_1_163_chunk 163_104_monitoring_checks_device_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_163_chunk
ADD CONSTRAINT "163_104_monitoring_checks_device_id_fkey" FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: _hyper_1_164_chunk 164_105_monitoring_checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_164_chunk
ADD CONSTRAINT "164_105_monitoring_checks_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_1_164_chunk 164_106_monitoring_checks_device_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_164_chunk
ADD CONSTRAINT "164_106_monitoring_checks_device_id_fkey" FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_165_chunk 165_107_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_165_chunk
ADD CONSTRAINT "165_107_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_166_chunk 166_108_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_166_chunk
ADD CONSTRAINT "166_108_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_1_167_chunk 167_109_monitoring_checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_167_chunk
ADD CONSTRAINT "167_109_monitoring_checks_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_1_167_chunk 167_110_monitoring_checks_device_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_167_chunk
ADD CONSTRAINT "167_110_monitoring_checks_device_id_fkey" FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_168_chunk 168_111_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_168_chunk
ADD CONSTRAINT "168_111_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_169_chunk 169_112_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_169_chunk
ADD CONSTRAINT "169_112_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_1_170_chunk 170_113_monitoring_checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_170_chunk
ADD CONSTRAINT "170_113_monitoring_checks_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_1_170_chunk 170_114_monitoring_checks_device_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_170_chunk
ADD CONSTRAINT "170_114_monitoring_checks_device_id_fkey" FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_171_chunk 171_115_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_171_chunk
ADD CONSTRAINT "171_115_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_172_chunk 172_116_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_172_chunk
ADD CONSTRAINT "172_116_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_1_188_chunk 188_117_monitoring_checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_188_chunk
ADD CONSTRAINT "188_117_monitoring_checks_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_1_188_chunk 188_118_monitoring_checks_device_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_188_chunk
ADD CONSTRAINT "188_118_monitoring_checks_device_id_fkey" FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_189_chunk 189_119_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_189_chunk
ADD CONSTRAINT "189_119_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_18_chunk 18_12_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_18_chunk
ADD CONSTRAINT "18_12_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_190_chunk 190_120_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_190_chunk
ADD CONSTRAINT "190_120_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_14_191_chunk 191_121_check_results_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_14_191_chunk
ADD CONSTRAINT "191_121_check_results_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_14_191_chunk 191_122_check_results_check_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_14_191_chunk
ADD CONSTRAINT "191_122_check_results_check_id_fkey" FOREIGN KEY (check_id) REFERENCES public.checks(id) ON DELETE CASCADE;
--
-- Name: _hyper_14_191_chunk 191_123_check_results_organization_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_14_191_chunk
ADD CONSTRAINT "191_123_check_results_organization_id_fkey" FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: _hyper_1_198_chunk 198_125_monitoring_checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_198_chunk
ADD CONSTRAINT "198_125_monitoring_checks_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_1_198_chunk 198_126_monitoring_checks_device_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_198_chunk
ADD CONSTRAINT "198_126_monitoring_checks_device_id_fkey" FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_199_chunk 199_127_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_199_chunk
ADD CONSTRAINT "199_127_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_19_chunk 19_13_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_19_chunk
ADD CONSTRAINT "19_13_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_200_chunk 200_128_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_200_chunk
ADD CONSTRAINT "200_128_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_1_201_chunk 201_129_monitoring_checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_201_chunk
ADD CONSTRAINT "201_129_monitoring_checks_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_1_201_chunk 201_130_monitoring_checks_device_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_201_chunk
ADD CONSTRAINT "201_130_monitoring_checks_device_id_fkey" FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_202_chunk 202_131_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_202_chunk
ADD CONSTRAINT "202_131_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_203_chunk 203_132_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_203_chunk
ADD CONSTRAINT "203_132_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_207_chunk 207_133_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_207_chunk
ADD CONSTRAINT "207_133_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_208_chunk 208_134_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_208_chunk
ADD CONSTRAINT "208_134_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_1_209_chunk 209_135_monitoring_checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_209_chunk
ADD CONSTRAINT "209_135_monitoring_checks_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_1_209_chunk 209_136_monitoring_checks_device_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_1_209_chunk
ADD CONSTRAINT "209_136_monitoring_checks_device_id_fkey" FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: _hyper_14_210_chunk 210_137_check_results_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_14_210_chunk
ADD CONSTRAINT "210_137_check_results_agent_token_id_fkey" FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: _hyper_14_210_chunk 210_138_check_results_check_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_14_210_chunk
ADD CONSTRAINT "210_138_check_results_check_id_fkey" FOREIGN KEY (check_id) REFERENCES public.checks(id) ON DELETE CASCADE;
--
-- Name: _hyper_14_210_chunk 210_139_check_results_organization_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_14_210_chunk
ADD CONSTRAINT "210_139_check_results_organization_id_fkey" FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_21_chunk 21_21_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_21_chunk
ADD CONSTRAINT "21_21_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_22_chunk 22_22_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_22_chunk
ADD CONSTRAINT "22_22_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_24_chunk 24_25_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_24_chunk
ADD CONSTRAINT "24_25_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_25_chunk 25_26_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_25_chunk
ADD CONSTRAINT "25_26_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_27_chunk 27_29_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_27_chunk
ADD CONSTRAINT "27_29_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_28_chunk 28_30_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_28_chunk
ADD CONSTRAINT "28_30_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_30_chunk 30_33_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_30_chunk
ADD CONSTRAINT "30_33_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_37_chunk 37_34_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_37_chunk
ADD CONSTRAINT "37_34_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_40_chunk 40_39_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_40_chunk
ADD CONSTRAINT "40_39_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_44_chunk 44_40_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_44_chunk
ADD CONSTRAINT "44_40_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_48_chunk 48_43_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_48_chunk
ADD CONSTRAINT "48_43_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_49_chunk 49_44_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_49_chunk
ADD CONSTRAINT "49_44_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_55_chunk 55_47_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_55_chunk
ADD CONSTRAINT "55_47_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_56_chunk 56_48_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_56_chunk
ADD CONSTRAINT "56_48_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_5_chunk 5_5_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_5_chunk
ADD CONSTRAINT "5_5_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_62_chunk 62_51_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_62_chunk
ADD CONSTRAINT "62_51_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_63_chunk 63_52_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_63_chunk
ADD CONSTRAINT "63_52_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_68_chunk 68_55_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_68_chunk
ADD CONSTRAINT "68_55_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_69_chunk 69_56_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_69_chunk
ADD CONSTRAINT "69_56_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_6_chunk 6_6_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_6_chunk
ADD CONSTRAINT "6_6_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_74_chunk 74_59_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_74_chunk
ADD CONSTRAINT "74_59_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_75_chunk 75_60_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_75_chunk
ADD CONSTRAINT "75_60_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_7_chunk 7_7_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_7_chunk
ADD CONSTRAINT "7_7_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_82_chunk 82_64_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_82_chunk
ADD CONSTRAINT "82_64_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_83_chunk 83_63_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_83_chunk
ADD CONSTRAINT "83_63_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_85_chunk 85_67_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_85_chunk
ADD CONSTRAINT "85_67_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_86_chunk 86_68_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_86_chunk
ADD CONSTRAINT "86_68_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_8_chunk 8_8_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_8_chunk
ADD CONSTRAINT "8_8_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_2_92_chunk 92_69_snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_2_92_chunk
ADD CONSTRAINT "92_69_snmp_sensor_readings_sensor_id_fkey" FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_93_chunk 93_70_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_93_chunk
ADD CONSTRAINT "93_70_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: _hyper_3_9_chunk 9_9_snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: _timescaledb_internal; Owner: -
--
ALTER TABLE ONLY _timescaledb_internal._hyper_3_9_chunk
ADD CONSTRAINT "9_9_snmp_interface_stats_interface_id_fkey" FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: agent_assignments agent_assignments_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.agent_assignments
ADD CONSTRAINT agent_assignments_agent_token_id_fkey FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE RESTRICT;
--
-- Name: agent_assignments agent_assignments_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.agent_assignments
ADD CONSTRAINT agent_assignments_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: agent_tokens agent_tokens_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.agent_tokens
ADD CONSTRAINT agent_tokens_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE RESTRICT;
--
-- Name: alert_storms alert_storms_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.alert_storms
ADD CONSTRAINT alert_storms_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: alerts alerts_acknowledged_by_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.alerts
ADD CONSTRAINT alerts_acknowledged_by_id_fkey FOREIGN KEY (acknowledged_by_id) REFERENCES public.users(id) ON DELETE SET NULL;
--
-- Name: alerts alerts_check_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.alerts
ADD CONSTRAINT alerts_check_id_fkey FOREIGN KEY (check_id) REFERENCES public.checks(id) ON DELETE CASCADE;
--
-- Name: alerts alerts_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.alerts
ADD CONSTRAINT alerts_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: alerts alerts_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.alerts
ADD CONSTRAINT alerts_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: alerts alerts_site_outage_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.alerts
ADD CONSTRAINT alerts_site_outage_id_fkey FOREIGN KEY (site_outage_id) REFERENCES public.site_outages(id) ON DELETE SET NULL;
--
-- Name: api_tokens api_tokens_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.api_tokens
ADD CONSTRAINT api_tokens_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: api_tokens api_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.api_tokens
ADD CONSTRAINT api_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
--
-- Name: audit_logs audit_logs_superuser_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.audit_logs
ADD CONSTRAINT audit_logs_superuser_id_fkey FOREIGN KEY (superuser_id) REFERENCES public.users(id) ON DELETE SET NULL;
--
-- Name: audit_logs audit_logs_target_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.audit_logs
ADD CONSTRAINT audit_logs_target_user_id_fkey FOREIGN KEY (target_user_id) REFERENCES public.users(id) ON DELETE SET NULL;
--
-- Name: browser_sessions browser_sessions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.browser_sessions
ADD CONSTRAINT browser_sessions_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL;
--
-- Name: browser_sessions browser_sessions_user_token_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.browser_sessions
ADD CONSTRAINT browser_sessions_user_token_id_fkey FOREIGN KEY (user_token_id) REFERENCES public.users_tokens(id) ON DELETE CASCADE;
--
-- Name: check_results check_results_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.check_results
ADD CONSTRAINT check_results_agent_token_id_fkey FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: check_results check_results_check_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.check_results
ADD CONSTRAINT check_results_check_id_fkey FOREIGN KEY (check_id) REFERENCES public.checks(id) ON DELETE CASCADE;
--
-- Name: check_results check_results_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.check_results
ADD CONSTRAINT check_results_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: checks checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.checks
ADD CONSTRAINT checks_agent_token_id_fkey FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: checks checks_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.checks
ADD CONSTRAINT checks_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: checks checks_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.checks
ADD CONSTRAINT checks_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: config_change_events config_change_events_backup_after_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.config_change_events
ADD CONSTRAINT config_change_events_backup_after_id_fkey FOREIGN KEY (backup_after_id) REFERENCES public.device_mikrotik_backups(id) ON DELETE SET NULL;
--
-- Name: config_change_events config_change_events_backup_before_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.config_change_events
ADD CONSTRAINT config_change_events_backup_before_id_fkey FOREIGN KEY (backup_before_id) REFERENCES public.device_mikrotik_backups(id) ON DELETE SET NULL;
--
-- Name: config_change_events config_change_events_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.config_change_events
ADD CONSTRAINT config_change_events_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: config_change_events config_change_events_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.config_change_events
ADD CONSTRAINT config_change_events_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: device_backup_requests device_backup_requests_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_backup_requests
ADD CONSTRAINT device_backup_requests_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: device_events device_events_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_events
ADD CONSTRAINT device_events_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: device_firmware_history device_firmware_history_snmp_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_firmware_history
ADD CONSTRAINT device_firmware_history_snmp_device_id_fkey FOREIGN KEY (snmp_device_id) REFERENCES public.snmp_devices(id) ON DELETE CASCADE;
--
-- Name: device_link_evidence device_link_evidence_device_link_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_link_evidence
ADD CONSTRAINT device_link_evidence_device_link_id_fkey FOREIGN KEY (device_link_id) REFERENCES public.device_links(id) ON DELETE CASCADE;
--
-- Name: device_links device_links_source_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_links
ADD CONSTRAINT device_links_source_device_id_fkey FOREIGN KEY (source_device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: device_links device_links_source_interface_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_links
ADD CONSTRAINT device_links_source_interface_id_fkey FOREIGN KEY (source_interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE SET NULL;
--
-- Name: device_links device_links_target_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_links
ADD CONSTRAINT device_links_target_device_id_fkey FOREIGN KEY (target_device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: device_links device_links_target_interface_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_links
ADD CONSTRAINT device_links_target_interface_id_fkey FOREIGN KEY (target_interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE SET NULL;
--
-- Name: device_mikrotik_backups device_mikrotik_backups_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_mikrotik_backups
ADD CONSTRAINT device_mikrotik_backups_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: device_neighbors device_neighbors_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_neighbors
ADD CONSTRAINT device_neighbors_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: device_neighbors device_neighbors_neighbor_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_neighbors
ADD CONSTRAINT device_neighbors_neighbor_device_id_fkey FOREIGN KEY (neighbor_device_id) REFERENCES public.devices(id) ON DELETE SET NULL;
--
-- Name: device_subscriber_links device_subscriber_links_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_subscriber_links
ADD CONSTRAINT device_subscriber_links_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: device_subscriber_links device_subscriber_links_gaiia_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_subscriber_links
ADD CONSTRAINT device_subscriber_links_gaiia_account_id_fkey FOREIGN KEY (gaiia_account_id) REFERENCES public.gaiia_accounts(id) ON DELETE CASCADE;
--
-- Name: device_subscriber_links device_subscriber_links_gaiia_inventory_item_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_subscriber_links
ADD CONSTRAINT device_subscriber_links_gaiia_inventory_item_id_fkey FOREIGN KEY (gaiia_inventory_item_id) REFERENCES public.gaiia_inventory_items(id) ON DELETE SET NULL;
--
-- Name: device_subscriber_links device_subscriber_links_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.device_subscriber_links
ADD CONSTRAINT device_subscriber_links_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: devices devices_escalation_policy_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.devices
ADD CONSTRAINT devices_escalation_policy_id_fkey FOREIGN KEY (escalation_policy_id) REFERENCES public.escalation_policies(id) ON DELETE SET NULL;
--
-- Name: devices devices_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.devices
ADD CONSTRAINT devices_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: devices equipment_site_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.devices
ADD CONSTRAINT equipment_site_id_fkey FOREIGN KEY (site_id) REFERENCES public.sites(id) ON DELETE CASCADE;
--
-- Name: error_tracker_occurrences error_tracker_occurrences_error_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.error_tracker_occurrences
ADD CONSTRAINT error_tracker_occurrences_error_id_fkey FOREIGN KEY (error_id) REFERENCES public.error_tracker_errors(id) ON DELETE CASCADE;
--
-- Name: escalation_policies escalation_policies_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.escalation_policies
ADD CONSTRAINT escalation_policies_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: escalation_rules escalation_rules_escalation_policy_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.escalation_rules
ADD CONSTRAINT escalation_rules_escalation_policy_id_fkey FOREIGN KEY (escalation_policy_id) REFERENCES public.escalation_policies(id) ON DELETE CASCADE;
--
-- Name: escalation_targets escalation_targets_escalation_rule_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.escalation_targets
ADD CONSTRAINT escalation_targets_escalation_rule_id_fkey FOREIGN KEY (escalation_rule_id) REFERENCES public.escalation_rules(id) ON DELETE CASCADE;
--
-- Name: escalation_targets escalation_targets_schedule_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.escalation_targets
ADD CONSTRAINT escalation_targets_schedule_id_fkey FOREIGN KEY (schedule_id) REFERENCES public.on_call_schedules(id) ON DELETE CASCADE;
--
-- Name: escalation_targets escalation_targets_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.escalation_targets
ADD CONSTRAINT escalation_targets_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
--
-- Name: gaiia_accounts gaiia_accounts_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.gaiia_accounts
ADD CONSTRAINT gaiia_accounts_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: gaiia_billing_subscriptions gaiia_billing_subscriptions_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.gaiia_billing_subscriptions
ADD CONSTRAINT gaiia_billing_subscriptions_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: gaiia_inventory_items gaiia_inventory_items_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.gaiia_inventory_items
ADD CONSTRAINT gaiia_inventory_items_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE SET NULL;
--
-- Name: gaiia_inventory_items gaiia_inventory_items_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.gaiia_inventory_items
ADD CONSTRAINT gaiia_inventory_items_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: gaiia_network_sites gaiia_network_sites_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.gaiia_network_sites
ADD CONSTRAINT gaiia_network_sites_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: gaiia_network_sites gaiia_network_sites_site_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.gaiia_network_sites
ADD CONSTRAINT gaiia_network_sites_site_id_fkey FOREIGN KEY (site_id) REFERENCES public.sites(id) ON DELETE SET NULL;
--
-- Name: geoip_blocks geoip_blocks_geoname_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.geoip_blocks
ADD CONSTRAINT geoip_blocks_geoname_id_fkey FOREIGN KEY (geoname_id) REFERENCES public.geoip_locations(geoname_id);
--
-- Name: integrations integrations_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.integrations
ADD CONSTRAINT integrations_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: ip_whitelist ip_whitelist_added_by_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.ip_whitelist
ADD CONSTRAINT ip_whitelist_added_by_id_fkey FOREIGN KEY (added_by_id) REFERENCES public.users(id) ON DELETE SET NULL;
--
-- Name: login_attempts login_attempts_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.login_attempts
ADD CONSTRAINT login_attempts_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL;
--
-- Name: maintenance_windows maintenance_windows_created_by_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.maintenance_windows
ADD CONSTRAINT maintenance_windows_created_by_id_fkey FOREIGN KEY (created_by_id) REFERENCES public.users(id) ON DELETE SET NULL;
--
-- Name: maintenance_windows maintenance_windows_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.maintenance_windows
ADD CONSTRAINT maintenance_windows_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: maintenance_windows maintenance_windows_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.maintenance_windows
ADD CONSTRAINT maintenance_windows_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: maintenance_windows maintenance_windows_site_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.maintenance_windows
ADD CONSTRAINT maintenance_windows_site_id_fkey FOREIGN KEY (site_id) REFERENCES public.sites(id) ON DELETE CASCADE;
--
-- Name: mobile_sessions mobile_sessions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.mobile_sessions
ADD CONSTRAINT mobile_sessions_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
--
-- Name: monitoring_checks monitoring_checks_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.monitoring_checks
ADD CONSTRAINT monitoring_checks_agent_token_id_fkey FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: monitoring_checks monitoring_checks_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.monitoring_checks
ADD CONSTRAINT monitoring_checks_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: notification_digests notification_digests_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.notification_digests
ADD CONSTRAINT notification_digests_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: notification_digests notification_digests_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.notification_digests
ADD CONSTRAINT notification_digests_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
--
-- Name: on_call_incidents on_call_incidents_acknowledged_by_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_incidents
ADD CONSTRAINT on_call_incidents_acknowledged_by_id_fkey FOREIGN KEY (acknowledged_by_id) REFERENCES public.users(id) ON DELETE SET NULL;
--
-- Name: on_call_incidents on_call_incidents_alert_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_incidents
ADD CONSTRAINT on_call_incidents_alert_id_fkey FOREIGN KEY (alert_id) REFERENCES public.alerts(id) ON DELETE CASCADE;
--
-- Name: on_call_incidents on_call_incidents_escalation_policy_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_incidents
ADD CONSTRAINT on_call_incidents_escalation_policy_id_fkey FOREIGN KEY (escalation_policy_id) REFERENCES public.escalation_policies(id) ON DELETE CASCADE;
--
-- Name: on_call_incidents on_call_incidents_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_incidents
ADD CONSTRAINT on_call_incidents_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: on_call_incidents on_call_incidents_resolved_by_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_incidents
ADD CONSTRAINT on_call_incidents_resolved_by_id_fkey FOREIGN KEY (resolved_by_id) REFERENCES public.users(id) ON DELETE SET NULL;
--
-- Name: on_call_layer_members on_call_layer_members_layer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_layer_members
ADD CONSTRAINT on_call_layer_members_layer_id_fkey FOREIGN KEY (layer_id) REFERENCES public.on_call_layers(id) ON DELETE CASCADE;
--
-- Name: on_call_layer_members on_call_layer_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_layer_members
ADD CONSTRAINT on_call_layer_members_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
--
-- Name: on_call_layers on_call_layers_schedule_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_layers
ADD CONSTRAINT on_call_layers_schedule_id_fkey FOREIGN KEY (schedule_id) REFERENCES public.on_call_schedules(id) ON DELETE CASCADE;
--
-- Name: on_call_notifications on_call_notifications_incident_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_notifications
ADD CONSTRAINT on_call_notifications_incident_id_fkey FOREIGN KEY (incident_id) REFERENCES public.on_call_incidents(id) ON DELETE CASCADE;
--
-- Name: on_call_notifications on_call_notifications_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_notifications
ADD CONSTRAINT on_call_notifications_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
--
-- Name: on_call_overrides on_call_overrides_created_by_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_overrides
ADD CONSTRAINT on_call_overrides_created_by_id_fkey FOREIGN KEY (created_by_id) REFERENCES public.users(id) ON DELETE SET NULL;
--
-- Name: on_call_overrides on_call_overrides_schedule_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_overrides
ADD CONSTRAINT on_call_overrides_schedule_id_fkey FOREIGN KEY (schedule_id) REFERENCES public.on_call_schedules(id) ON DELETE CASCADE;
--
-- Name: on_call_overrides on_call_overrides_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_overrides
ADD CONSTRAINT on_call_overrides_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
--
-- Name: on_call_schedules on_call_schedules_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.on_call_schedules
ADD CONSTRAINT on_call_schedules_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: organization_invitations organization_invitations_accepted_by_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.organization_invitations
ADD CONSTRAINT organization_invitations_accepted_by_id_fkey FOREIGN KEY (accepted_by_id) REFERENCES public.users(id) ON DELETE SET NULL;
--
-- Name: organization_invitations organization_invitations_invited_by_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.organization_invitations
ADD CONSTRAINT organization_invitations_invited_by_id_fkey FOREIGN KEY (invited_by_id) REFERENCES public.users(id) ON DELETE SET NULL;
--
-- Name: organization_invitations organization_invitations_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.organization_invitations
ADD CONSTRAINT organization_invitations_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: organization_memberships organization_memberships_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.organization_memberships
ADD CONSTRAINT organization_memberships_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: organization_memberships organization_memberships_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.organization_memberships
ADD CONSTRAINT organization_memberships_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
--
-- Name: organizations organizations_default_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.organizations
ADD CONSTRAINT organizations_default_agent_token_id_fkey FOREIGN KEY (default_agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: organizations organizations_default_escalation_policy_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.organizations
ADD CONSTRAINT organizations_default_escalation_policy_id_fkey FOREIGN KEY (default_escalation_policy_id) REFERENCES public.escalation_policies(id) ON DELETE SET NULL;
--
-- Name: preseem_access_points preseem_access_points_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_access_points
ADD CONSTRAINT preseem_access_points_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE SET NULL;
--
-- Name: preseem_access_points preseem_access_points_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_access_points
ADD CONSTRAINT preseem_access_points_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: preseem_device_baselines preseem_device_baselines_preseem_access_point_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_device_baselines
ADD CONSTRAINT preseem_device_baselines_preseem_access_point_id_fkey FOREIGN KEY (preseem_access_point_id) REFERENCES public.preseem_access_points(id) ON DELETE CASCADE;
--
-- Name: preseem_fleet_profiles preseem_fleet_profiles_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_fleet_profiles
ADD CONSTRAINT preseem_fleet_profiles_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: preseem_insights preseem_insights_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_insights
ADD CONSTRAINT preseem_insights_agent_token_id_fkey FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: preseem_insights preseem_insights_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_insights
ADD CONSTRAINT preseem_insights_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE SET NULL;
--
-- Name: preseem_insights preseem_insights_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_insights
ADD CONSTRAINT preseem_insights_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: preseem_insights preseem_insights_preseem_access_point_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_insights
ADD CONSTRAINT preseem_insights_preseem_access_point_id_fkey FOREIGN KEY (preseem_access_point_id) REFERENCES public.preseem_access_points(id) ON DELETE CASCADE;
--
-- Name: preseem_insights preseem_insights_site_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_insights
ADD CONSTRAINT preseem_insights_site_id_fkey FOREIGN KEY (site_id) REFERENCES public.sites(id) ON DELETE SET NULL;
--
-- Name: preseem_subscriber_metrics preseem_subscriber_metrics_preseem_access_point_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_subscriber_metrics
ADD CONSTRAINT preseem_subscriber_metrics_preseem_access_point_id_fkey FOREIGN KEY (preseem_access_point_id) REFERENCES public.preseem_access_points(id) ON DELETE CASCADE;
--
-- Name: preseem_sync_logs preseem_sync_logs_integration_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_sync_logs
ADD CONSTRAINT preseem_sync_logs_integration_id_fkey FOREIGN KEY (integration_id) REFERENCES public.integrations(id) ON DELETE CASCADE;
--
-- Name: preseem_sync_logs preseem_sync_logs_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.preseem_sync_logs
ADD CONSTRAINT preseem_sync_logs_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: printer_supplies printer_supplies_snmp_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.printer_supplies
ADD CONSTRAINT printer_supplies_snmp_device_id_fkey FOREIGN KEY (snmp_device_id) REFERENCES public.snmp_devices(id) ON DELETE CASCADE;
--
-- Name: profile_device_oids profile_device_oids_profile_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.profile_device_oids
ADD CONSTRAINT profile_device_oids_profile_id_fkey FOREIGN KEY (profile_id) REFERENCES public.device_profiles(id) ON DELETE CASCADE;
--
-- Name: profile_sensor_oids profile_sensor_oids_profile_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.profile_sensor_oids
ADD CONSTRAINT profile_sensor_oids_profile_id_fkey FOREIGN KEY (profile_id) REFERENCES public.device_profiles(id) ON DELETE CASCADE;
--
-- Name: qr_login_tokens qr_login_tokens_mobile_session_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.qr_login_tokens
ADD CONSTRAINT qr_login_tokens_mobile_session_id_fkey FOREIGN KEY (mobile_session_id) REFERENCES public.mobile_sessions(id) ON DELETE SET NULL;
--
-- Name: qr_login_tokens qr_login_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.qr_login_tokens
ADD CONSTRAINT qr_login_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
--
-- Name: reports reports_created_by_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.reports
ADD CONSTRAINT reports_created_by_id_fkey FOREIGN KEY (created_by_id) REFERENCES public.users(id) ON DELETE SET NULL;
--
-- Name: reports reports_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.reports
ADD CONSTRAINT reports_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: site_outages site_outages_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.site_outages
ADD CONSTRAINT site_outages_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: site_outages site_outages_site_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.site_outages
ADD CONSTRAINT site_outages_site_id_fkey FOREIGN KEY (site_id) REFERENCES public.sites(id) ON DELETE CASCADE;
--
-- Name: sites sites_agent_token_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.sites
ADD CONSTRAINT sites_agent_token_id_fkey FOREIGN KEY (agent_token_id) REFERENCES public.agent_tokens(id) ON DELETE SET NULL;
--
-- Name: sites sites_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.sites
ADD CONSTRAINT sites_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: sites sites_parent_site_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.sites
ADD CONSTRAINT sites_parent_site_id_fkey FOREIGN KEY (parent_site_id) REFERENCES public.sites(id) ON DELETE CASCADE;
--
-- Name: snmp_arp_entries snmp_arp_entries_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_arp_entries
ADD CONSTRAINT snmp_arp_entries_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: snmp_arp_entries snmp_arp_entries_interface_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_arp_entries
ADD CONSTRAINT snmp_arp_entries_interface_id_fkey FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: snmp_devices snmp_devices_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_devices
ADD CONSTRAINT snmp_devices_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: snmp_entity_physical snmp_entity_physical_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_entity_physical
ADD CONSTRAINT snmp_entity_physical_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES public.snmp_entity_physical(id) ON DELETE SET NULL;
--
-- Name: snmp_entity_physical_readings snmp_entity_physical_readings_entity_physical_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_entity_physical_readings
ADD CONSTRAINT snmp_entity_physical_readings_entity_physical_id_fkey FOREIGN KEY (entity_physical_id) REFERENCES public.snmp_entity_physical(id) ON DELETE CASCADE;
--
-- Name: snmp_entity_physical snmp_entity_physical_snmp_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_entity_physical
ADD CONSTRAINT snmp_entity_physical_snmp_device_id_fkey FOREIGN KEY (snmp_device_id) REFERENCES public.snmp_devices(id) ON DELETE CASCADE;
--
-- Name: snmp_interface_stats snmp_interface_stats_interface_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_interface_stats
ADD CONSTRAINT snmp_interface_stats_interface_id_fkey FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: snmp_interfaces snmp_interfaces_snmp_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_interfaces
ADD CONSTRAINT snmp_interfaces_snmp_device_id_fkey FOREIGN KEY (snmp_device_id) REFERENCES public.snmp_devices(id) ON DELETE CASCADE;
--
-- Name: snmp_ip_addresses snmp_ip_addresses_snmp_interface_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_ip_addresses
ADD CONSTRAINT snmp_ip_addresses_snmp_interface_id_fkey FOREIGN KEY (snmp_interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: snmp_mac_addresses snmp_mac_addresses_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_mac_addresses
ADD CONSTRAINT snmp_mac_addresses_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: snmp_mac_addresses snmp_mac_addresses_interface_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_mac_addresses
ADD CONSTRAINT snmp_mac_addresses_interface_id_fkey FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: snmp_memory_pools snmp_memory_pools_snmp_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_memory_pools
ADD CONSTRAINT snmp_memory_pools_snmp_device_id_fkey FOREIGN KEY (snmp_device_id) REFERENCES public.snmp_devices(id) ON DELETE CASCADE;
--
-- Name: snmp_mempool_readings snmp_mempool_readings_mempool_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_mempool_readings
ADD CONSTRAINT snmp_mempool_readings_mempool_id_fkey FOREIGN KEY (mempool_id) REFERENCES public.snmp_mempools(id) ON DELETE CASCADE;
--
-- Name: snmp_mempools snmp_mempools_snmp_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_mempools
ADD CONSTRAINT snmp_mempools_snmp_device_id_fkey FOREIGN KEY (snmp_device_id) REFERENCES public.snmp_devices(id) ON DELETE CASCADE;
--
-- Name: snmp_neighbors snmp_neighbors_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_neighbors
ADD CONSTRAINT snmp_neighbors_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: snmp_neighbors snmp_neighbors_interface_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_neighbors
ADD CONSTRAINT snmp_neighbors_interface_id_fkey FOREIGN KEY (interface_id) REFERENCES public.snmp_interfaces(id) ON DELETE CASCADE;
--
-- Name: snmp_physical_entities snmp_physical_entities_parent_entity_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_physical_entities
ADD CONSTRAINT snmp_physical_entities_parent_entity_id_fkey FOREIGN KEY (parent_entity_id) REFERENCES public.snmp_physical_entities(id) ON DELETE SET NULL;
--
-- Name: snmp_physical_entities snmp_physical_entities_snmp_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_physical_entities
ADD CONSTRAINT snmp_physical_entities_snmp_device_id_fkey FOREIGN KEY (snmp_device_id) REFERENCES public.snmp_devices(id) ON DELETE CASCADE;
--
-- Name: snmp_processor_readings snmp_processor_readings_processor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_processor_readings
ADD CONSTRAINT snmp_processor_readings_processor_id_fkey FOREIGN KEY (processor_id) REFERENCES public.snmp_processors(id) ON DELETE CASCADE;
--
-- Name: snmp_processors snmp_processors_snmp_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_processors
ADD CONSTRAINT snmp_processors_snmp_device_id_fkey FOREIGN KEY (snmp_device_id) REFERENCES public.snmp_devices(id) ON DELETE CASCADE;
--
-- Name: snmp_sensor_readings snmp_sensor_readings_sensor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_sensor_readings
ADD CONSTRAINT snmp_sensor_readings_sensor_id_fkey FOREIGN KEY (sensor_id) REFERENCES public.snmp_sensors(id) ON DELETE CASCADE;
--
-- Name: snmp_sensors snmp_sensors_snmp_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_sensors
ADD CONSTRAINT snmp_sensors_snmp_device_id_fkey FOREIGN KEY (snmp_device_id) REFERENCES public.snmp_devices(id) ON DELETE CASCADE;
--
-- Name: snmp_state_sensors snmp_state_sensors_snmp_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_state_sensors
ADD CONSTRAINT snmp_state_sensors_snmp_device_id_fkey FOREIGN KEY (snmp_device_id) REFERENCES public.snmp_devices(id) ON DELETE CASCADE;
--
-- Name: snmp_storage_readings snmp_storage_readings_storage_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_storage_readings
ADD CONSTRAINT snmp_storage_readings_storage_id_fkey FOREIGN KEY (storage_id) REFERENCES public.snmp_storage(id) ON DELETE CASCADE;
--
-- Name: snmp_storage snmp_storage_snmp_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_storage
ADD CONSTRAINT snmp_storage_snmp_device_id_fkey FOREIGN KEY (snmp_device_id) REFERENCES public.snmp_devices(id) ON DELETE CASCADE;
--
-- Name: snmp_transceiver_readings snmp_transceiver_readings_transceiver_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_transceiver_readings
ADD CONSTRAINT snmp_transceiver_readings_transceiver_id_fkey FOREIGN KEY (transceiver_id) REFERENCES public.snmp_transceivers(id) ON DELETE CASCADE;
--
-- Name: snmp_transceivers snmp_transceivers_entity_physical_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_transceivers
ADD CONSTRAINT snmp_transceivers_entity_physical_id_fkey FOREIGN KEY (entity_physical_id) REFERENCES public.snmp_entity_physical(id) ON DELETE SET NULL;
--
-- Name: snmp_transceivers snmp_transceivers_snmp_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_transceivers
ADD CONSTRAINT snmp_transceivers_snmp_device_id_fkey FOREIGN KEY (snmp_device_id) REFERENCES public.snmp_devices(id) ON DELETE CASCADE;
--
-- Name: snmp_vlans snmp_vlans_snmp_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.snmp_vlans
ADD CONSTRAINT snmp_vlans_snmp_device_id_fkey FOREIGN KEY (snmp_device_id) REFERENCES public.snmp_devices(id) ON DELETE CASCADE;
--
-- Name: status_incidents status_incidents_status_page_config_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.status_incidents
ADD CONSTRAINT status_incidents_status_page_config_id_fkey FOREIGN KEY (status_page_config_id) REFERENCES public.status_page_configs(id) ON DELETE CASCADE;
--
-- Name: status_page_components status_page_components_status_page_config_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.status_page_components
ADD CONSTRAINT status_page_components_status_page_config_id_fkey FOREIGN KEY (status_page_config_id) REFERENCES public.status_page_configs(id) ON DELETE CASCADE;
--
-- Name: status_page_configs status_page_configs_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.status_page_configs
ADD CONSTRAINT status_page_configs_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: stripe_webhook_events stripe_webhook_events_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.stripe_webhook_events
ADD CONSTRAINT stripe_webhook_events_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: uisp_config_snapshots uisp_config_snapshots_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.uisp_config_snapshots
ADD CONSTRAINT uisp_config_snapshots_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: uisp_sync_logs uisp_sync_logs_integration_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.uisp_sync_logs
ADD CONSTRAINT uisp_sync_logs_integration_id_fkey FOREIGN KEY (integration_id) REFERENCES public.integrations(id) ON DELETE CASCADE;
--
-- Name: uisp_sync_logs uisp_sync_logs_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.uisp_sync_logs
ADD CONSTRAINT uisp_sync_logs_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: user_consents user_consents_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.user_consents
ADD CONSTRAINT user_consents_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
--
-- Name: user_recovery_codes user_recovery_codes_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.user_recovery_codes
ADD CONSTRAINT user_recovery_codes_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
--
-- Name: user_totp_devices user_totp_devices_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.user_totp_devices
ADD CONSTRAINT user_totp_devices_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
--
-- Name: users users_default_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.users
ADD CONSTRAINT users_default_organization_id_fkey FOREIGN KEY (default_organization_id) REFERENCES public.organizations(id) ON DELETE SET NULL;
--
-- Name: users_tokens users_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.users_tokens
ADD CONSTRAINT users_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
--
-- Name: weather_alerts weather_alerts_site_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.weather_alerts
ADD CONSTRAINT weather_alerts_site_id_fkey FOREIGN KEY (site_id) REFERENCES public.sites(id) ON DELETE CASCADE;
--
-- Name: weather_observations weather_observations_site_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.weather_observations
ADD CONSTRAINT weather_observations_site_id_fkey FOREIGN KEY (site_id) REFERENCES public.sites(id) ON DELETE CASCADE;
--
-- Name: wireless_client_readings wireless_client_readings_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.wireless_client_readings
ADD CONSTRAINT wireless_client_readings_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.snmp_devices(id) ON DELETE CASCADE;
--
-- Name: wireless_client_readings wireless_client_readings_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.wireless_client_readings
ADD CONSTRAINT wireless_client_readings_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- Name: wireless_client_readings wireless_client_readings_wireless_client_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.wireless_client_readings
ADD CONSTRAINT wireless_client_readings_wireless_client_id_fkey FOREIGN KEY (wireless_client_id) REFERENCES public.wireless_clients(id) ON DELETE CASCADE;
--
-- Name: wireless_clients wireless_clients_device_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.wireless_clients
ADD CONSTRAINT wireless_clients_device_id_fkey FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
--
-- Name: wireless_clients wireless_clients_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.wireless_clients
ADD CONSTRAINT wireless_clients_organization_id_fkey FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE;
--
-- PostgreSQL database dump complete
--
\unrestrict fxN8VfMT4wlKMdY4b5QKMDFncMWuvcHmQoAKL88Wv4ey2erB35CfSsmUYUTugSQ
INSERT INTO public."schema_migrations" (version) VALUES (20251221192340);
INSERT INTO public."schema_migrations" (version) VALUES (20251221192454);
INSERT INTO public."schema_migrations" (version) VALUES (20251221192505);
INSERT INTO public."schema_migrations" (version) VALUES (20251221192513);
INSERT INTO public."schema_migrations" (version) VALUES (20251221193428);
INSERT INTO public."schema_migrations" (version) VALUES (20251221193436);
INSERT INTO public."schema_migrations" (version) VALUES (20251221225717);
INSERT INTO public."schema_migrations" (version) VALUES (20251221231801);
INSERT INTO public."schema_migrations" (version) VALUES (20251224201530);
INSERT INTO public."schema_migrations" (version) VALUES (20251224202206);
INSERT INTO public."schema_migrations" (version) VALUES (20260103191834);
INSERT INTO public."schema_migrations" (version) VALUES (20260103191852);
INSERT INTO public."schema_migrations" (version) VALUES (20260103191853);
INSERT INTO public."schema_migrations" (version) VALUES (20260103191854);
INSERT INTO public."schema_migrations" (version) VALUES (20260103191858);
INSERT INTO public."schema_migrations" (version) VALUES (20260103191859);
INSERT INTO public."schema_migrations" (version) VALUES (20260103192153);
INSERT INTO public."schema_migrations" (version) VALUES (20260103192154);
INSERT INTO public."schema_migrations" (version) VALUES (20260104175728);
INSERT INTO public."schema_migrations" (version) VALUES (20260104190824);
INSERT INTO public."schema_migrations" (version) VALUES (20260104192555);
INSERT INTO public."schema_migrations" (version) VALUES (20260105134321);
INSERT INTO public."schema_migrations" (version) VALUES (20260105134404);
INSERT INTO public."schema_migrations" (version) VALUES (20260105142046);
INSERT INTO public."schema_migrations" (version) VALUES (20260105163301);
INSERT INTO public."schema_migrations" (version) VALUES (20260106184002);
INSERT INTO public."schema_migrations" (version) VALUES (20260106184003);
INSERT INTO public."schema_migrations" (version) VALUES (20260106184151);
INSERT INTO public."schema_migrations" (version) VALUES (20260108160055);
INSERT INTO public."schema_migrations" (version) VALUES (20260109184838);
INSERT INTO public."schema_migrations" (version) VALUES (20260109184905);
INSERT INTO public."schema_migrations" (version) VALUES (20260109190858);
INSERT INTO public."schema_migrations" (version) VALUES (20260113192744);
INSERT INTO public."schema_migrations" (version) VALUES (20260114142010);
INSERT INTO public."schema_migrations" (version) VALUES (20260115010646);
INSERT INTO public."schema_migrations" (version) VALUES (20260115011502);
INSERT INTO public."schema_migrations" (version) VALUES (20260115194425);
INSERT INTO public."schema_migrations" (version) VALUES (20260115212928);
INSERT INTO public."schema_migrations" (version) VALUES (20260116185112);
INSERT INTO public."schema_migrations" (version) VALUES (20260116195231);
INSERT INTO public."schema_migrations" (version) VALUES (20260117174218);
INSERT INTO public."schema_migrations" (version) VALUES (20260117190134);
INSERT INTO public."schema_migrations" (version) VALUES (20260117222456);
INSERT INTO public."schema_migrations" (version) VALUES (20260117224818);
INSERT INTO public."schema_migrations" (version) VALUES (20260117231451);
INSERT INTO public."schema_migrations" (version) VALUES (20260118000250);
INSERT INTO public."schema_migrations" (version) VALUES (20260118002432);
INSERT INTO public."schema_migrations" (version) VALUES (20260118152752);
INSERT INTO public."schema_migrations" (version) VALUES (20260118162909);
INSERT INTO public."schema_migrations" (version) VALUES (20260118174155);
INSERT INTO public."schema_migrations" (version) VALUES (20260118174612);
INSERT INTO public."schema_migrations" (version) VALUES (20260118185149);
INSERT INTO public."schema_migrations" (version) VALUES (20260118193856);
INSERT INTO public."schema_migrations" (version) VALUES (20260118220947);
INSERT INTO public."schema_migrations" (version) VALUES (20260118223410);
INSERT INTO public."schema_migrations" (version) VALUES (20260118223700);
INSERT INTO public."schema_migrations" (version) VALUES (20260119162749);
INSERT INTO public."schema_migrations" (version) VALUES (20260119163701);
INSERT INTO public."schema_migrations" (version) VALUES (20260121161424);
INSERT INTO public."schema_migrations" (version) VALUES (20260121162517);
INSERT INTO public."schema_migrations" (version) VALUES (20260121163134);
INSERT INTO public."schema_migrations" (version) VALUES (20260121163706);
INSERT INTO public."schema_migrations" (version) VALUES (20260121164728);
INSERT INTO public."schema_migrations" (version) VALUES (20260121164729);
INSERT INTO public."schema_migrations" (version) VALUES (20260122191230);
INSERT INTO public."schema_migrations" (version) VALUES (20260122214253);
INSERT INTO public."schema_migrations" (version) VALUES (20260122223758);
INSERT INTO public."schema_migrations" (version) VALUES (20260122234739);
INSERT INTO public."schema_migrations" (version) VALUES (20260123142110);
INSERT INTO public."schema_migrations" (version) VALUES (20260123150047);
INSERT INTO public."schema_migrations" (version) VALUES (20260123234053);
INSERT INTO public."schema_migrations" (version) VALUES (20260124003501);
INSERT INTO public."schema_migrations" (version) VALUES (20260124003545);
INSERT INTO public."schema_migrations" (version) VALUES (20260124220530);
INSERT INTO public."schema_migrations" (version) VALUES (20260125180847);
INSERT INTO public."schema_migrations" (version) VALUES (20260125182836);
INSERT INTO public."schema_migrations" (version) VALUES (20260125183652);
INSERT INTO public."schema_migrations" (version) VALUES (20260125214415);
INSERT INTO public."schema_migrations" (version) VALUES (20260125214531);
INSERT INTO public."schema_migrations" (version) VALUES (20260126155907);
INSERT INTO public."schema_migrations" (version) VALUES (20260126155937);
INSERT INTO public."schema_migrations" (version) VALUES (20260126201725);
INSERT INTO public."schema_migrations" (version) VALUES (20260126201941);
INSERT INTO public."schema_migrations" (version) VALUES (20260126225422);
INSERT INTO public."schema_migrations" (version) VALUES (20260126225620);
INSERT INTO public."schema_migrations" (version) VALUES (20260127131415);
INSERT INTO public."schema_migrations" (version) VALUES (20260127194059);
INSERT INTO public."schema_migrations" (version) VALUES (20260128151151);
INSERT INTO public."schema_migrations" (version) VALUES (20260128171916);
INSERT INTO public."schema_migrations" (version) VALUES (20260128185500);
INSERT INTO public."schema_migrations" (version) VALUES (20260128193436);
INSERT INTO public."schema_migrations" (version) VALUES (20260128205714);
INSERT INTO public."schema_migrations" (version) VALUES (20260129164956);
INSERT INTO public."schema_migrations" (version) VALUES (20260129170433);
INSERT INTO public."schema_migrations" (version) VALUES (20260129194732);
INSERT INTO public."schema_migrations" (version) VALUES (20260129194802);
INSERT INTO public."schema_migrations" (version) VALUES (20260130232533);
INSERT INTO public."schema_migrations" (version) VALUES (20260131151011);
INSERT INTO public."schema_migrations" (version) VALUES (20260131154549);
INSERT INTO public."schema_migrations" (version) VALUES (20260131181404);
INSERT INTO public."schema_migrations" (version) VALUES (20260131195010);
INSERT INTO public."schema_migrations" (version) VALUES (20260131195046);
INSERT INTO public."schema_migrations" (version) VALUES (20260131220933);
INSERT INTO public."schema_migrations" (version) VALUES (20260201155525);
INSERT INTO public."schema_migrations" (version) VALUES (20260201155526);
INSERT INTO public."schema_migrations" (version) VALUES (20260201195548);
INSERT INTO public."schema_migrations" (version) VALUES (20260201204935);
INSERT INTO public."schema_migrations" (version) VALUES (20260201211908);
INSERT INTO public."schema_migrations" (version) VALUES (20260201211918);
INSERT INTO public."schema_migrations" (version) VALUES (20260201211919);
INSERT INTO public."schema_migrations" (version) VALUES (20260202000112);
INSERT INTO public."schema_migrations" (version) VALUES (20260202000113);
INSERT INTO public."schema_migrations" (version) VALUES (20260202144931);
INSERT INTO public."schema_migrations" (version) VALUES (20260202164115);
INSERT INTO public."schema_migrations" (version) VALUES (20260202215155);
INSERT INTO public."schema_migrations" (version) VALUES (20260202221637);
INSERT INTO public."schema_migrations" (version) VALUES (20260202225627);
INSERT INTO public."schema_migrations" (version) VALUES (20260202230847);
INSERT INTO public."schema_migrations" (version) VALUES (20260203144612);
INSERT INTO public."schema_migrations" (version) VALUES (20260203184229);
INSERT INTO public."schema_migrations" (version) VALUES (20260203214942);
INSERT INTO public."schema_migrations" (version) VALUES (20260203215025);
INSERT INTO public."schema_migrations" (version) VALUES (20260203215100);
INSERT INTO public."schema_migrations" (version) VALUES (20260204182005);
INSERT INTO public."schema_migrations" (version) VALUES (20260204182038);
INSERT INTO public."schema_migrations" (version) VALUES (20260204182109);
INSERT INTO public."schema_migrations" (version) VALUES (20260204183342);
INSERT INTO public."schema_migrations" (version) VALUES (20260204193548);
INSERT INTO public."schema_migrations" (version) VALUES (20260204220500);
INSERT INTO public."schema_migrations" (version) VALUES (20260204230342);
INSERT INTO public."schema_migrations" (version) VALUES (20260208221636);
INSERT INTO public."schema_migrations" (version) VALUES (20260209152641);
INSERT INTO public."schema_migrations" (version) VALUES (20260210214543);
INSERT INTO public."schema_migrations" (version) VALUES (20260210214544);
INSERT INTO public."schema_migrations" (version) VALUES (20260212155105);
INSERT INTO public."schema_migrations" (version) VALUES (20260212184424);
INSERT INTO public."schema_migrations" (version) VALUES (20260212184428);
INSERT INTO public."schema_migrations" (version) VALUES (20260212184432);
INSERT INTO public."schema_migrations" (version) VALUES (20260212185422);
INSERT INTO public."schema_migrations" (version) VALUES (20260212185433);
INSERT INTO public."schema_migrations" (version) VALUES (20260212185506);
INSERT INTO public."schema_migrations" (version) VALUES (20260212213808);
INSERT INTO public."schema_migrations" (version) VALUES (20260212213840);
INSERT INTO public."schema_migrations" (version) VALUES (20260212225249);
INSERT INTO public."schema_migrations" (version) VALUES (20260212231026);
INSERT INTO public."schema_migrations" (version) VALUES (20260212231052);
INSERT INTO public."schema_migrations" (version) VALUES (20260212231109);
INSERT INTO public."schema_migrations" (version) VALUES (20260213001542);
INSERT INTO public."schema_migrations" (version) VALUES (20260213001547);
INSERT INTO public."schema_migrations" (version) VALUES (20260213144412);
INSERT INTO public."schema_migrations" (version) VALUES (20260213160011);
INSERT INTO public."schema_migrations" (version) VALUES (20260213170408);
INSERT INTO public."schema_migrations" (version) VALUES (20260213201303);
INSERT INTO public."schema_migrations" (version) VALUES (20260213235031);
INSERT INTO public."schema_migrations" (version) VALUES (20260214185554);
INSERT INTO public."schema_migrations" (version) VALUES (20260214200600);
INSERT INTO public."schema_migrations" (version) VALUES (20260214204400);
INSERT INTO public."schema_migrations" (version) VALUES (20260214204700);
INSERT INTO public."schema_migrations" (version) VALUES (20260215222949);
INSERT INTO public."schema_migrations" (version) VALUES (20260215233513);
INSERT INTO public."schema_migrations" (version) VALUES (20260216155500);
INSERT INTO public."schema_migrations" (version) VALUES (20260216155538);
INSERT INTO public."schema_migrations" (version) VALUES (20260216160000);
INSERT INTO public."schema_migrations" (version) VALUES (20260216170000);
INSERT INTO public."schema_migrations" (version) VALUES (20260216180000);
INSERT INTO public."schema_migrations" (version) VALUES (20260217140215);
INSERT INTO public."schema_migrations" (version) VALUES (20260304234205);
INSERT INTO public."schema_migrations" (version) VALUES (20260305144327);
INSERT INTO public."schema_migrations" (version) VALUES (20260305152524);
INSERT INTO public."schema_migrations" (version) VALUES (20260305152930);
INSERT INTO public."schema_migrations" (version) VALUES (20260305164021);
INSERT INTO public."schema_migrations" (version) VALUES (20260305184122);
INSERT INTO public."schema_migrations" (version) VALUES (20260306145558);
INSERT INTO public."schema_migrations" (version) VALUES (20260306145559);
INSERT INTO public."schema_migrations" (version) VALUES (20260306184112);
INSERT INTO public."schema_migrations" (version) VALUES (20260306192611);
INSERT INTO public."schema_migrations" (version) VALUES (20260306234425);
INSERT INTO public."schema_migrations" (version) VALUES (20260309223347);
INSERT INTO public."schema_migrations" (version) VALUES (20260311160550);
INSERT INTO public."schema_migrations" (version) VALUES (20260311160554);
INSERT INTO public."schema_migrations" (version) VALUES (20260311160559);
INSERT INTO public."schema_migrations" (version) VALUES (20260311160604);
INSERT INTO public."schema_migrations" (version) VALUES (20260313194705);
INSERT INTO public."schema_migrations" (version) VALUES (20260315120000);
INSERT INTO public."schema_migrations" (version) VALUES (20260315150000);
INSERT INTO public."schema_migrations" (version) VALUES (20260315160000);
INSERT INTO public."schema_migrations" (version) VALUES (20260315170000);
INSERT INTO public."schema_migrations" (version) VALUES (20260315190000);
INSERT INTO public."schema_migrations" (version) VALUES (20260317224403);
INSERT INTO public."schema_migrations" (version) VALUES (20260322152809);
INSERT INTO public."schema_migrations" (version) VALUES (20260322161037);
INSERT INTO public."schema_migrations" (version) VALUES (20260322161750);
INSERT INTO public."schema_migrations" (version) VALUES (20260322175649);
INSERT INTO public."schema_migrations" (version) VALUES (20260324193531);
INSERT INTO public."schema_migrations" (version) VALUES (20260324193820);
INSERT INTO public."schema_migrations" (version) VALUES (20260325180211);
INSERT INTO public."schema_migrations" (version) VALUES (20260325200000);
INSERT INTO public."schema_migrations" (version) VALUES (20260325215632);
INSERT INTO public."schema_migrations" (version) VALUES (20260326185002);
INSERT INTO public."schema_migrations" (version) VALUES (20260326214418);
INSERT INTO public."schema_migrations" (version) VALUES (20260326214419);
INSERT INTO public."schema_migrations" (version) VALUES (20260326221432);
INSERT INTO public."schema_migrations" (version) VALUES (20260326223000);
INSERT INTO public."schema_migrations" (version) VALUES (20260326223100);
INSERT INTO public."schema_migrations" (version) VALUES (20260327000000);
INSERT INTO public."schema_migrations" (version) VALUES (20260327113929);
INSERT INTO public."schema_migrations" (version) VALUES (20260327231100);
INSERT INTO public."schema_migrations" (version) VALUES (20260404000001);
INSERT INTO public."schema_migrations" (version) VALUES (20260404000002);
INSERT INTO public."schema_migrations" (version) VALUES (20260404000003);
INSERT INTO public."schema_migrations" (version) VALUES (20260428170617);