From ef0aec0398549767649d0a39e6260ddb2685523d Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 5 Sep 2023 20:49:49 +0200 Subject: [PATCH] Use dedicated resource nodes Signed-off-by: Christian Berendt --- .zuul.yaml | 12 +- environments/ceph/configuration.yml | 4 - .../infrastructure/files/netbox/init.sql | 17820 ---------------- inventory/10-custom | 20 +- inventory/20-roles | 3 +- inventory/99-overwrite | 4 +- inventory/group_vars/testbed-nodes.yml | 6 - .../group_vars/testbed-primary-nodes.yml | 68 + netbox/playbooks/rack-1000.yml | 15 +- scripts/deploy-manager.sh | 2 +- scripts/deploy/100-ceph-services-basic.sh | 10 +- terraform/variables.tf | 6 +- 12 files changed, 104 insertions(+), 17866 deletions(-) delete mode 100644 environments/infrastructure/files/netbox/init.sql create mode 100644 inventory/group_vars/testbed-primary-nodes.yml diff --git a/.zuul.yaml b/.zuul.yaml index 8eedff226..3b36d679b 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -149,12 +149,12 @@ - yamllint - flake8 - testbed-deploy - - testbed-deploy-ceph - - testbed-deploy-stable - - testbed-update-stable - - testbed-upgrade - - testbed-upgrade-ceph - - testbed-upgrade-stable + # - testbed-deploy-ceph + # - testbed-deploy-stable + # - testbed-update-stable + # - testbed-upgrade + # - testbed-upgrade-ceph + # - testbed-upgrade-stable gate: jobs: - ansible-lint diff --git a/environments/ceph/configuration.yml b/environments/ceph/configuration.yml index 7a0698c3c..8ee4e0e23 100644 --- a/environments/ceph/configuration.yml +++ b/environments/ceph/configuration.yml @@ -9,10 +9,6 @@ fsid: 11111111-1111-1111-1111-111111111111 dmcrypt: true -# NOTE: It is common to place more than 1 OSD on flash devices. To simulate -# upgrades etc. with this approach this is also used here. -osds_per_device: 2 - ########################## # network diff --git a/environments/infrastructure/files/netbox/init.sql b/environments/infrastructure/files/netbox/init.sql deleted file mode 100644 index c1f814dfd..000000000 --- a/environments/infrastructure/files/netbox/init.sql +++ /dev/null @@ -1,17820 +0,0 @@ --- --- PostgreSQL database dump --- - --- Dumped from database version 15.3 --- Dumped by pg_dump version 15.3 - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: auth_group; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.auth_group ( - id integer NOT NULL, - name character varying(150) NOT NULL -); - - -ALTER TABLE public.auth_group OWNER TO netbox; - --- --- Name: auth_group_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.auth_group ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.auth_group_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: auth_group_permissions; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.auth_group_permissions ( - id bigint NOT NULL, - group_id integer NOT NULL, - permission_id integer NOT NULL -); - - -ALTER TABLE public.auth_group_permissions OWNER TO netbox; - --- --- Name: auth_group_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.auth_group_permissions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.auth_group_permissions_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: auth_permission; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.auth_permission ( - id integer NOT NULL, - name character varying(255) NOT NULL, - content_type_id integer NOT NULL, - codename character varying(100) NOT NULL -); - - -ALTER TABLE public.auth_permission OWNER TO netbox; - --- --- Name: auth_permission_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.auth_permission ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.auth_permission_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: auth_user; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.auth_user ( - id integer NOT NULL, - password character varying(128) NOT NULL, - last_login timestamp with time zone, - is_superuser boolean NOT NULL, - username character varying(150) NOT NULL, - first_name character varying(150) NOT NULL, - last_name character varying(150) NOT NULL, - email character varying(254) NOT NULL, - is_staff boolean NOT NULL, - is_active boolean NOT NULL, - date_joined timestamp with time zone NOT NULL -); - - -ALTER TABLE public.auth_user OWNER TO netbox; - --- --- Name: auth_user_groups; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.auth_user_groups ( - id bigint NOT NULL, - user_id integer NOT NULL, - group_id integer NOT NULL -); - - -ALTER TABLE public.auth_user_groups OWNER TO netbox; - --- --- Name: auth_user_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.auth_user_groups ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.auth_user_groups_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: auth_user_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.auth_user ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.auth_user_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: auth_user_user_permissions; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.auth_user_user_permissions ( - id bigint NOT NULL, - user_id integer NOT NULL, - permission_id integer NOT NULL -); - - -ALTER TABLE public.auth_user_user_permissions OWNER TO netbox; - --- --- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.auth_user_user_permissions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.auth_user_user_permissions_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: circuits_circuit; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.circuits_circuit ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - cid character varying(100) NOT NULL, - status character varying(50) NOT NULL, - install_date date, - commit_rate integer, - description character varying(200) NOT NULL, - comments text NOT NULL, - provider_id bigint NOT NULL, - tenant_id bigint, - termination_a_id bigint, - termination_z_id bigint, - type_id bigint NOT NULL, - termination_date date, - CONSTRAINT circuits_circuit_commit_rate_check CHECK ((commit_rate >= 0)) -); - - -ALTER TABLE public.circuits_circuit OWNER TO netbox; - --- --- Name: circuits_circuit_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.circuits_circuit ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.circuits_circuit_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: circuits_circuittermination; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.circuits_circuittermination ( - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - mark_connected boolean NOT NULL, - term_side character varying(1) NOT NULL, - port_speed integer, - upstream_speed integer, - xconnect_id character varying(50) NOT NULL, - pp_info character varying(100) NOT NULL, - description character varying(200) NOT NULL, - cable_id bigint, - circuit_id bigint NOT NULL, - provider_network_id bigint, - site_id bigint, - custom_field_data jsonb NOT NULL, - cable_end character varying(1) NOT NULL, - CONSTRAINT circuits_circuittermination_port_speed_check CHECK ((port_speed >= 0)), - CONSTRAINT circuits_circuittermination_upstream_speed_check CHECK ((upstream_speed >= 0)) -); - - -ALTER TABLE public.circuits_circuittermination OWNER TO netbox; - --- --- Name: circuits_circuittermination_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.circuits_circuittermination ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.circuits_circuittermination_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: circuits_circuittype; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.circuits_circuittype ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.circuits_circuittype OWNER TO netbox; - --- --- Name: circuits_circuittype_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.circuits_circuittype ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.circuits_circuittype_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: circuits_provider; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.circuits_provider ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - account character varying(30) NOT NULL, - comments text NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.circuits_provider OWNER TO netbox; - --- --- Name: circuits_provider_asns; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.circuits_provider_asns ( - id bigint NOT NULL, - provider_id bigint NOT NULL, - asn_id bigint NOT NULL -); - - -ALTER TABLE public.circuits_provider_asns OWNER TO netbox; - --- --- Name: circuits_provider_asns_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.circuits_provider_asns ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.circuits_provider_asns_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: circuits_provider_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.circuits_provider ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.circuits_provider_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: circuits_providernetwork; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.circuits_providernetwork ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - description character varying(200) NOT NULL, - comments text NOT NULL, - provider_id bigint NOT NULL, - service_id character varying(100) NOT NULL -); - - -ALTER TABLE public.circuits_providernetwork OWNER TO netbox; - --- --- Name: circuits_providernetwork_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.circuits_providernetwork ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.circuits_providernetwork_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_cable; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_cable ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - type character varying(50) NOT NULL, - status character varying(50) NOT NULL, - label character varying(100) NOT NULL, - color character varying(6) NOT NULL, - length numeric(8,2), - length_unit character varying(50) NOT NULL, - _abs_length numeric(10,4), - tenant_id bigint, - comments text NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.dcim_cable OWNER TO netbox; - --- --- Name: dcim_cable_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_cable ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_cable_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_cablepath; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_cablepath ( - id bigint NOT NULL, - _nodes character varying(40)[] NOT NULL, - is_active boolean NOT NULL, - is_split boolean NOT NULL, - path jsonb NOT NULL, - is_complete boolean NOT NULL -); - - -ALTER TABLE public.dcim_cablepath OWNER TO netbox; - --- --- Name: dcim_cablepath_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_cablepath ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_cablepath_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_cabletermination; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_cabletermination ( - id bigint NOT NULL, - cable_end character varying(1) NOT NULL, - termination_id bigint NOT NULL, - cable_id bigint NOT NULL, - termination_type_id integer NOT NULL, - _device_id bigint, - _rack_id bigint, - _location_id bigint, - _site_id bigint, - CONSTRAINT dcim_cabletermination_termination_id_check CHECK ((termination_id >= 0)) -); - - -ALTER TABLE public.dcim_cabletermination OWNER TO netbox; - --- --- Name: dcim_cabletermination_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_cabletermination ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_cabletermination_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_consoleport; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_consoleport ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - mark_connected boolean NOT NULL, - type character varying(50) NOT NULL, - speed integer, - _path_id bigint, - cable_id bigint, - device_id bigint NOT NULL, - module_id bigint, - cable_end character varying(1) NOT NULL, - CONSTRAINT dcim_consoleport_speed_check CHECK ((speed >= 0)) -); - - -ALTER TABLE public.dcim_consoleport OWNER TO netbox; - --- --- Name: dcim_consoleport_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_consoleport ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_consoleport_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_consoleporttemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_consoleporttemplate ( - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - type character varying(50) NOT NULL, - device_type_id bigint, - module_type_id bigint -); - - -ALTER TABLE public.dcim_consoleporttemplate OWNER TO netbox; - --- --- Name: dcim_consoleporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_consoleporttemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_consoleporttemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_consoleserverport; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_consoleserverport ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - mark_connected boolean NOT NULL, - type character varying(50) NOT NULL, - speed integer, - _path_id bigint, - cable_id bigint, - device_id bigint NOT NULL, - module_id bigint, - cable_end character varying(1) NOT NULL, - CONSTRAINT dcim_consoleserverport_speed_check CHECK ((speed >= 0)) -); - - -ALTER TABLE public.dcim_consoleserverport OWNER TO netbox; - --- --- Name: dcim_consoleserverport_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_consoleserverport ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_consoleserverport_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_consoleserverporttemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_consoleserverporttemplate ( - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - type character varying(50) NOT NULL, - device_type_id bigint, - module_type_id bigint -); - - -ALTER TABLE public.dcim_consoleserverporttemplate OWNER TO netbox; - --- --- Name: dcim_consoleserverporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_consoleserverporttemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_consoleserverporttemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_device; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_device ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - local_context_data jsonb, - name character varying(64), - _name character varying(100), - serial character varying(50) NOT NULL, - asset_tag character varying(50), - "position" numeric(4,1), - face character varying(50) NOT NULL, - status character varying(50) NOT NULL, - vc_position smallint, - vc_priority smallint, - comments text NOT NULL, - cluster_id bigint, - device_role_id bigint NOT NULL, - device_type_id bigint NOT NULL, - location_id bigint, - platform_id bigint, - primary_ip4_id bigint, - primary_ip6_id bigint, - rack_id bigint, - site_id bigint NOT NULL, - tenant_id bigint, - virtual_chassis_id bigint, - airflow character varying(50) NOT NULL, - description character varying(200) NOT NULL, - CONSTRAINT dcim_device_vc_position_check CHECK ((vc_position >= 0)), - CONSTRAINT dcim_device_vc_priority_check CHECK ((vc_priority >= 0)) -); - - -ALTER TABLE public.dcim_device OWNER TO netbox; - --- --- Name: dcim_device_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_device ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_device_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_devicebay; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_devicebay ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - device_id bigint NOT NULL, - installed_device_id bigint -); - - -ALTER TABLE public.dcim_devicebay OWNER TO netbox; - --- --- Name: dcim_devicebay_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_devicebay ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_devicebay_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_devicebaytemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_devicebaytemplate ( - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - device_type_id bigint NOT NULL -); - - -ALTER TABLE public.dcim_devicebaytemplate OWNER TO netbox; - --- --- Name: dcim_devicebaytemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_devicebaytemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_devicebaytemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_devicerole; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_devicerole ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - color character varying(6) NOT NULL, - vm_role boolean NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.dcim_devicerole OWNER TO netbox; - --- --- Name: dcim_devicerole_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_devicerole ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_devicerole_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_devicetype; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_devicetype ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - model character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - part_number character varying(50) NOT NULL, - u_height numeric(4,1) NOT NULL, - is_full_depth boolean NOT NULL, - subdevice_role character varying(50) NOT NULL, - front_image character varying(100) NOT NULL, - rear_image character varying(100) NOT NULL, - comments text NOT NULL, - manufacturer_id bigint NOT NULL, - airflow character varying(50) NOT NULL, - weight numeric(8,2), - weight_unit character varying(50) NOT NULL, - _abs_weight bigint, - description character varying(200) NOT NULL, - CONSTRAINT dcim_devicetype__abs_weight_check CHECK ((_abs_weight >= 0)) -); - - -ALTER TABLE public.dcim_devicetype OWNER TO netbox; - --- --- Name: dcim_devicetype_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_devicetype ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_devicetype_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_frontport; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_frontport ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - mark_connected boolean NOT NULL, - type character varying(50) NOT NULL, - rear_port_position smallint NOT NULL, - cable_id bigint, - device_id bigint NOT NULL, - rear_port_id bigint NOT NULL, - color character varying(6) NOT NULL, - module_id bigint, - cable_end character varying(1) NOT NULL, - CONSTRAINT dcim_frontport_rear_port_position_check CHECK ((rear_port_position >= 0)) -); - - -ALTER TABLE public.dcim_frontport OWNER TO netbox; - --- --- Name: dcim_frontport_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_frontport ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_frontport_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_frontporttemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_frontporttemplate ( - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - type character varying(50) NOT NULL, - rear_port_position smallint NOT NULL, - device_type_id bigint, - rear_port_id bigint NOT NULL, - color character varying(6) NOT NULL, - module_type_id bigint, - CONSTRAINT dcim_frontporttemplate_rear_port_position_check CHECK ((rear_port_position >= 0)) -); - - -ALTER TABLE public.dcim_frontporttemplate OWNER TO netbox; - --- --- Name: dcim_frontporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_frontporttemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_frontporttemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_interface; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_interface ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(64) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - mark_connected boolean NOT NULL, - enabled boolean NOT NULL, - mac_address macaddr, - mtu integer, - mode character varying(50) NOT NULL, - _name character varying(100) NOT NULL, - type character varying(50) NOT NULL, - mgmt_only boolean NOT NULL, - _path_id bigint, - cable_id bigint, - device_id bigint NOT NULL, - lag_id bigint, - parent_id bigint, - untagged_vlan_id bigint, - wwn macaddr8, - bridge_id bigint, - rf_role character varying(30) NOT NULL, - rf_channel character varying(50) NOT NULL, - rf_channel_frequency numeric(7,2), - rf_channel_width numeric(7,3), - tx_power smallint, - wireless_link_id bigint, - module_id bigint, - vrf_id bigint, - duplex character varying(50), - speed integer, - poe_mode character varying(50) NOT NULL, - poe_type character varying(50) NOT NULL, - cable_end character varying(1) NOT NULL, - CONSTRAINT dcim_interface_mtu_check CHECK ((mtu >= 0)), - CONSTRAINT dcim_interface_speed_check CHECK ((speed >= 0)), - CONSTRAINT dcim_interface_tx_power_check CHECK ((tx_power >= 0)) -); - - -ALTER TABLE public.dcim_interface OWNER TO netbox; - --- --- Name: dcim_interface_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_interface ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_interface_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_interface_tagged_vlans; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_interface_tagged_vlans ( - id bigint NOT NULL, - interface_id bigint NOT NULL, - vlan_id bigint NOT NULL -); - - -ALTER TABLE public.dcim_interface_tagged_vlans OWNER TO netbox; - --- --- Name: dcim_interface_tagged_vlans_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_interface_tagged_vlans ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_interface_tagged_vlans_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_interface_vdcs; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_interface_vdcs ( - id bigint NOT NULL, - interface_id bigint NOT NULL, - virtualdevicecontext_id bigint NOT NULL -); - - -ALTER TABLE public.dcim_interface_vdcs OWNER TO netbox; - --- --- Name: dcim_interface_vdcs_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_interface_vdcs ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_interface_vdcs_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_interface_wireless_lans; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_interface_wireless_lans ( - id bigint NOT NULL, - interface_id bigint NOT NULL, - wirelesslan_id bigint NOT NULL -); - - -ALTER TABLE public.dcim_interface_wireless_lans OWNER TO netbox; - --- --- Name: dcim_interface_wireless_lans_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_interface_wireless_lans ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_interface_wireless_lans_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_interfacetemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_interfacetemplate ( - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - name character varying(64) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - _name character varying(100) NOT NULL, - type character varying(50) NOT NULL, - mgmt_only boolean NOT NULL, - device_type_id bigint, - module_type_id bigint, - poe_mode character varying(50) NOT NULL, - poe_type character varying(50) NOT NULL -); - - -ALTER TABLE public.dcim_interfacetemplate OWNER TO netbox; - --- --- Name: dcim_interfacetemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_interfacetemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_interfacetemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_inventoryitem; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_inventoryitem ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - part_id character varying(50) NOT NULL, - serial character varying(50) NOT NULL, - asset_tag character varying(50), - discovered boolean NOT NULL, - lft integer NOT NULL, - rght integer NOT NULL, - tree_id integer NOT NULL, - level integer NOT NULL, - device_id bigint NOT NULL, - manufacturer_id bigint, - parent_id bigint, - role_id bigint, - component_id bigint, - component_type_id integer, - CONSTRAINT dcim_inventoryitem_component_id_check CHECK ((component_id >= 0)), - CONSTRAINT dcim_inventoryitem_level_check CHECK ((level >= 0)), - CONSTRAINT dcim_inventoryitem_lft_check CHECK ((lft >= 0)), - CONSTRAINT dcim_inventoryitem_rght_check CHECK ((rght >= 0)), - CONSTRAINT dcim_inventoryitem_tree_id_check CHECK ((tree_id >= 0)) -); - - -ALTER TABLE public.dcim_inventoryitem OWNER TO netbox; - --- --- Name: dcim_inventoryitem_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_inventoryitem ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_inventoryitem_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_inventoryitemrole; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_inventoryitemrole ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - color character varying(6) NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.dcim_inventoryitemrole OWNER TO netbox; - --- --- Name: dcim_inventoryitemrole_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_inventoryitemrole ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_inventoryitemrole_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_inventoryitemtemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_inventoryitemtemplate ( - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - component_id bigint, - part_id character varying(50) NOT NULL, - lft integer NOT NULL, - rght integer NOT NULL, - tree_id integer NOT NULL, - level integer NOT NULL, - component_type_id integer, - device_type_id bigint NOT NULL, - manufacturer_id bigint, - parent_id bigint, - role_id bigint, - CONSTRAINT dcim_inventoryitemtemplate_component_id_check CHECK ((component_id >= 0)), - CONSTRAINT dcim_inventoryitemtemplate_level_check CHECK ((level >= 0)), - CONSTRAINT dcim_inventoryitemtemplate_lft_check CHECK ((lft >= 0)), - CONSTRAINT dcim_inventoryitemtemplate_rght_check CHECK ((rght >= 0)), - CONSTRAINT dcim_inventoryitemtemplate_tree_id_check CHECK ((tree_id >= 0)) -); - - -ALTER TABLE public.dcim_inventoryitemtemplate OWNER TO netbox; - --- --- Name: dcim_inventoryitemtemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_inventoryitemtemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_inventoryitemtemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_location; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_location ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - description character varying(200) NOT NULL, - lft integer NOT NULL, - rght integer NOT NULL, - tree_id integer NOT NULL, - level integer NOT NULL, - parent_id bigint, - site_id bigint NOT NULL, - tenant_id bigint, - status character varying(50) NOT NULL, - CONSTRAINT dcim_location_level_check CHECK ((level >= 0)), - CONSTRAINT dcim_location_lft_check CHECK ((lft >= 0)), - CONSTRAINT dcim_location_rght_check CHECK ((rght >= 0)), - CONSTRAINT dcim_location_tree_id_check CHECK ((tree_id >= 0)) -); - - -ALTER TABLE public.dcim_location OWNER TO netbox; - --- --- Name: dcim_location_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_location ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_location_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_manufacturer; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_manufacturer ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.dcim_manufacturer OWNER TO netbox; - --- --- Name: dcim_manufacturer_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_manufacturer ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_manufacturer_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_module; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_module ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - local_context_data jsonb, - serial character varying(50) NOT NULL, - asset_tag character varying(50), - comments text NOT NULL, - device_id bigint NOT NULL, - module_bay_id bigint NOT NULL, - module_type_id bigint NOT NULL, - description character varying(200) NOT NULL, - status character varying(50) NOT NULL -); - - -ALTER TABLE public.dcim_module OWNER TO netbox; - --- --- Name: dcim_module_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_module ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_module_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_modulebay; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_modulebay ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - "position" character varying(30) NOT NULL, - description character varying(200) NOT NULL, - device_id bigint NOT NULL -); - - -ALTER TABLE public.dcim_modulebay OWNER TO netbox; - --- --- Name: dcim_modulebay_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_modulebay ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_modulebay_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_modulebaytemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_modulebaytemplate ( - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - "position" character varying(30) NOT NULL, - description character varying(200) NOT NULL, - device_type_id bigint NOT NULL -); - - -ALTER TABLE public.dcim_modulebaytemplate OWNER TO netbox; - --- --- Name: dcim_modulebaytemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_modulebaytemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_modulebaytemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_moduletype; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_moduletype ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - model character varying(100) NOT NULL, - part_number character varying(50) NOT NULL, - comments text NOT NULL, - manufacturer_id bigint NOT NULL, - weight numeric(8,2), - weight_unit character varying(50) NOT NULL, - _abs_weight bigint, - description character varying(200) NOT NULL, - CONSTRAINT dcim_moduletype__abs_weight_check CHECK ((_abs_weight >= 0)) -); - - -ALTER TABLE public.dcim_moduletype OWNER TO netbox; - --- --- Name: dcim_moduletype_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_moduletype ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_moduletype_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_platform; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_platform ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - napalm_driver character varying(50) NOT NULL, - napalm_args jsonb, - description character varying(200) NOT NULL, - manufacturer_id bigint -); - - -ALTER TABLE public.dcim_platform OWNER TO netbox; - --- --- Name: dcim_platform_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_platform ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_platform_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_powerfeed; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_powerfeed ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - mark_connected boolean NOT NULL, - name character varying(100) NOT NULL, - status character varying(50) NOT NULL, - type character varying(50) NOT NULL, - supply character varying(50) NOT NULL, - phase character varying(50) NOT NULL, - voltage smallint NOT NULL, - amperage smallint NOT NULL, - max_utilization smallint NOT NULL, - available_power integer NOT NULL, - comments text NOT NULL, - _path_id bigint, - cable_id bigint, - power_panel_id bigint NOT NULL, - rack_id bigint, - cable_end character varying(1) NOT NULL, - description character varying(200) NOT NULL, - CONSTRAINT dcim_powerfeed_amperage_check CHECK ((amperage >= 0)), - CONSTRAINT dcim_powerfeed_available_power_check CHECK ((available_power >= 0)), - CONSTRAINT dcim_powerfeed_max_utilization_check CHECK ((max_utilization >= 0)) -); - - -ALTER TABLE public.dcim_powerfeed OWNER TO netbox; - --- --- Name: dcim_powerfeed_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_powerfeed ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_powerfeed_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_poweroutlet; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_poweroutlet ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - mark_connected boolean NOT NULL, - type character varying(50) NOT NULL, - feed_leg character varying(50) NOT NULL, - _path_id bigint, - cable_id bigint, - device_id bigint NOT NULL, - power_port_id bigint, - module_id bigint, - cable_end character varying(1) NOT NULL -); - - -ALTER TABLE public.dcim_poweroutlet OWNER TO netbox; - --- --- Name: dcim_poweroutlet_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_poweroutlet ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_poweroutlet_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_poweroutlettemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_poweroutlettemplate ( - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - type character varying(50) NOT NULL, - feed_leg character varying(50) NOT NULL, - device_type_id bigint, - power_port_id bigint, - module_type_id bigint -); - - -ALTER TABLE public.dcim_poweroutlettemplate OWNER TO netbox; - --- --- Name: dcim_poweroutlettemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_poweroutlettemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_poweroutlettemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_powerpanel; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_powerpanel ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - location_id bigint, - site_id bigint NOT NULL, - comments text NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.dcim_powerpanel OWNER TO netbox; - --- --- Name: dcim_powerpanel_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_powerpanel ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_powerpanel_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_powerport; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_powerport ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - mark_connected boolean NOT NULL, - type character varying(50) NOT NULL, - maximum_draw smallint, - allocated_draw smallint, - _path_id bigint, - cable_id bigint, - device_id bigint NOT NULL, - module_id bigint, - cable_end character varying(1) NOT NULL, - CONSTRAINT dcim_powerport_allocated_draw_check CHECK ((allocated_draw >= 0)), - CONSTRAINT dcim_powerport_maximum_draw_check CHECK ((maximum_draw >= 0)) -); - - -ALTER TABLE public.dcim_powerport OWNER TO netbox; - --- --- Name: dcim_powerport_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_powerport ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_powerport_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_powerporttemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_powerporttemplate ( - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - type character varying(50) NOT NULL, - maximum_draw smallint, - allocated_draw smallint, - device_type_id bigint, - module_type_id bigint, - CONSTRAINT dcim_powerporttemplate_allocated_draw_check CHECK ((allocated_draw >= 0)), - CONSTRAINT dcim_powerporttemplate_maximum_draw_check CHECK ((maximum_draw >= 0)) -); - - -ALTER TABLE public.dcim_powerporttemplate OWNER TO netbox; - --- --- Name: dcim_powerporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_powerporttemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_powerporttemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_rack; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_rack ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - _name character varying(100) NOT NULL, - facility_id character varying(50), - status character varying(50) NOT NULL, - serial character varying(50) NOT NULL, - asset_tag character varying(50), - type character varying(50) NOT NULL, - width smallint NOT NULL, - u_height smallint NOT NULL, - desc_units boolean NOT NULL, - outer_width smallint, - outer_depth smallint, - outer_unit character varying(50) NOT NULL, - comments text NOT NULL, - location_id bigint, - role_id bigint, - site_id bigint NOT NULL, - tenant_id bigint, - weight numeric(8,2), - max_weight integer, - weight_unit character varying(50) NOT NULL, - _abs_weight bigint, - _abs_max_weight bigint, - mounting_depth smallint, - description character varying(200) NOT NULL, - CONSTRAINT dcim_rack__abs_max_weight_check CHECK ((_abs_max_weight >= 0)), - CONSTRAINT dcim_rack__abs_weight_check CHECK ((_abs_weight >= 0)), - CONSTRAINT dcim_rack_max_weight_check CHECK ((max_weight >= 0)), - CONSTRAINT dcim_rack_mounting_depth_check CHECK ((mounting_depth >= 0)), - CONSTRAINT dcim_rack_outer_depth_check CHECK ((outer_depth >= 0)), - CONSTRAINT dcim_rack_outer_width_check CHECK ((outer_width >= 0)), - CONSTRAINT dcim_rack_u_height_check CHECK ((u_height >= 0)), - CONSTRAINT dcim_rack_width_check CHECK ((width >= 0)) -); - - -ALTER TABLE public.dcim_rack OWNER TO netbox; - --- --- Name: dcim_rack_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_rack ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_rack_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_rackreservation; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_rackreservation ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - units smallint[] NOT NULL, - description character varying(200) NOT NULL, - rack_id bigint NOT NULL, - tenant_id bigint, - user_id integer NOT NULL, - comments text NOT NULL -); - - -ALTER TABLE public.dcim_rackreservation OWNER TO netbox; - --- --- Name: dcim_rackreservation_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_rackreservation ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_rackreservation_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_rackrole; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_rackrole ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - color character varying(6) NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.dcim_rackrole OWNER TO netbox; - --- --- Name: dcim_rackrole_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_rackrole ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_rackrole_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_rearport; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_rearport ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - mark_connected boolean NOT NULL, - type character varying(50) NOT NULL, - positions smallint NOT NULL, - cable_id bigint, - device_id bigint NOT NULL, - color character varying(6) NOT NULL, - module_id bigint, - cable_end character varying(1) NOT NULL, - CONSTRAINT dcim_rearport_positions_check CHECK ((positions >= 0)) -); - - -ALTER TABLE public.dcim_rearport OWNER TO netbox; - --- --- Name: dcim_rearport_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_rearport ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_rearport_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_rearporttemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_rearporttemplate ( - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - type character varying(50) NOT NULL, - positions smallint NOT NULL, - device_type_id bigint, - color character varying(6) NOT NULL, - module_type_id bigint, - CONSTRAINT dcim_rearporttemplate_positions_check CHECK ((positions >= 0)) -); - - -ALTER TABLE public.dcim_rearporttemplate OWNER TO netbox; - --- --- Name: dcim_rearporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_rearporttemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_rearporttemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_region; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_region ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - description character varying(200) NOT NULL, - lft integer NOT NULL, - rght integer NOT NULL, - tree_id integer NOT NULL, - level integer NOT NULL, - parent_id bigint, - CONSTRAINT dcim_region_level_check CHECK ((level >= 0)), - CONSTRAINT dcim_region_lft_check CHECK ((lft >= 0)), - CONSTRAINT dcim_region_rght_check CHECK ((rght >= 0)), - CONSTRAINT dcim_region_tree_id_check CHECK ((tree_id >= 0)) -); - - -ALTER TABLE public.dcim_region OWNER TO netbox; - --- --- Name: dcim_region_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_region ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_region_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_site; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_site ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - _name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - status character varying(50) NOT NULL, - facility character varying(50) NOT NULL, - time_zone character varying(63) NOT NULL, - description character varying(200) NOT NULL, - physical_address character varying(200) NOT NULL, - shipping_address character varying(200) NOT NULL, - latitude numeric(8,6), - longitude numeric(9,6), - comments text NOT NULL, - group_id bigint, - region_id bigint, - tenant_id bigint -); - - -ALTER TABLE public.dcim_site OWNER TO netbox; - --- --- Name: dcim_site_asns; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_site_asns ( - id bigint NOT NULL, - site_id bigint NOT NULL, - asn_id bigint NOT NULL -); - - -ALTER TABLE public.dcim_site_asns OWNER TO netbox; - --- --- Name: dcim_site_asns_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_site_asns ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_site_asns_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_site_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_site ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_site_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_sitegroup; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_sitegroup ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - description character varying(200) NOT NULL, - lft integer NOT NULL, - rght integer NOT NULL, - tree_id integer NOT NULL, - level integer NOT NULL, - parent_id bigint, - CONSTRAINT dcim_sitegroup_level_check CHECK ((level >= 0)), - CONSTRAINT dcim_sitegroup_lft_check CHECK ((lft >= 0)), - CONSTRAINT dcim_sitegroup_rght_check CHECK ((rght >= 0)), - CONSTRAINT dcim_sitegroup_tree_id_check CHECK ((tree_id >= 0)) -); - - -ALTER TABLE public.dcim_sitegroup OWNER TO netbox; - --- --- Name: dcim_sitegroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_sitegroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_sitegroup_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_virtualchassis; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_virtualchassis ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(64) NOT NULL, - domain character varying(30) NOT NULL, - master_id bigint, - comments text NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.dcim_virtualchassis OWNER TO netbox; - --- --- Name: dcim_virtualchassis_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_virtualchassis ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_virtualchassis_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: dcim_virtualdevicecontext; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_virtualdevicecontext ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - description character varying(200) NOT NULL, - name character varying(64) NOT NULL, - status character varying(50) NOT NULL, - identifier smallint, - comments text NOT NULL, - device_id bigint, - primary_ip4_id bigint, - primary_ip6_id bigint, - tenant_id bigint, - CONSTRAINT dcim_virtualdevicecontext_identifier_check CHECK ((identifier >= 0)) -); - - -ALTER TABLE public.dcim_virtualdevicecontext OWNER TO netbox; - --- --- Name: dcim_virtualdevicecontext_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.dcim_virtualdevicecontext ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.dcim_virtualdevicecontext_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: django_admin_log; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.django_admin_log ( - id integer NOT NULL, - action_time timestamp with time zone NOT NULL, - object_id text, - object_repr character varying(200) NOT NULL, - action_flag smallint NOT NULL, - change_message text NOT NULL, - content_type_id integer, - user_id integer NOT NULL, - CONSTRAINT django_admin_log_action_flag_check CHECK ((action_flag >= 0)) -); - - -ALTER TABLE public.django_admin_log OWNER TO netbox; - --- --- Name: django_admin_log_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.django_admin_log ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.django_admin_log_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: django_content_type; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.django_content_type ( - id integer NOT NULL, - app_label character varying(100) NOT NULL, - model character varying(100) NOT NULL -); - - -ALTER TABLE public.django_content_type OWNER TO netbox; - --- --- Name: django_content_type_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.django_content_type ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.django_content_type_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: django_migrations; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.django_migrations ( - id bigint NOT NULL, - app character varying(255) NOT NULL, - name character varying(255) NOT NULL, - applied timestamp with time zone NOT NULL -); - - -ALTER TABLE public.django_migrations OWNER TO netbox; - --- --- Name: django_migrations_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.django_migrations ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.django_migrations_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: django_session; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.django_session ( - session_key character varying(40) NOT NULL, - session_data text NOT NULL, - expire_date timestamp with time zone NOT NULL -); - - -ALTER TABLE public.django_session OWNER TO netbox; - --- --- Name: extras_branch; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_branch ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - name character varying(100) NOT NULL, - description character varying(200) NOT NULL, - user_id integer -); - - -ALTER TABLE public.extras_branch OWNER TO netbox; - --- --- Name: extras_branch_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_branch ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_branch_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_cachedvalue; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_cachedvalue ( - id uuid NOT NULL, - "timestamp" timestamp with time zone NOT NULL, - object_id bigint NOT NULL, - field character varying(200) NOT NULL, - type character varying(30) NOT NULL, - value text NOT NULL, - weight smallint NOT NULL, - object_type_id integer NOT NULL, - CONSTRAINT extras_cachedvalue_object_id_check CHECK ((object_id >= 0)), - CONSTRAINT extras_cachedvalue_weight_check CHECK ((weight >= 0)) -); - - -ALTER TABLE public.extras_cachedvalue OWNER TO netbox; - --- --- Name: extras_configcontext; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext ( - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - name character varying(100) NOT NULL, - weight smallint NOT NULL, - description character varying(200) NOT NULL, - is_active boolean NOT NULL, - data jsonb NOT NULL, - CONSTRAINT extras_configcontext_weight_check CHECK ((weight >= 0)) -); - - -ALTER TABLE public.extras_configcontext OWNER TO netbox; - --- --- Name: extras_configcontext_cluster_groups; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_cluster_groups ( - id bigint NOT NULL, - configcontext_id bigint NOT NULL, - clustergroup_id bigint NOT NULL -); - - -ALTER TABLE public.extras_configcontext_cluster_groups OWNER TO netbox; - --- --- Name: extras_configcontext_cluster_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_configcontext_cluster_groups ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_configcontext_cluster_groups_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_configcontext_cluster_types; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_cluster_types ( - id bigint NOT NULL, - configcontext_id bigint NOT NULL, - clustertype_id bigint NOT NULL -); - - -ALTER TABLE public.extras_configcontext_cluster_types OWNER TO netbox; - --- --- Name: extras_configcontext_cluster_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_configcontext_cluster_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_configcontext_cluster_types_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_configcontext_clusters; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_clusters ( - id bigint NOT NULL, - configcontext_id bigint NOT NULL, - cluster_id bigint NOT NULL -); - - -ALTER TABLE public.extras_configcontext_clusters OWNER TO netbox; - --- --- Name: extras_configcontext_clusters_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_configcontext_clusters ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_configcontext_clusters_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_configcontext_device_types; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_device_types ( - id bigint NOT NULL, - configcontext_id bigint NOT NULL, - devicetype_id bigint NOT NULL -); - - -ALTER TABLE public.extras_configcontext_device_types OWNER TO netbox; - --- --- Name: extras_configcontext_device_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_configcontext_device_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_configcontext_device_types_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_configcontext_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_configcontext ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_configcontext_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_configcontext_locations; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_locations ( - id bigint NOT NULL, - configcontext_id bigint NOT NULL, - location_id bigint NOT NULL -); - - -ALTER TABLE public.extras_configcontext_locations OWNER TO netbox; - --- --- Name: extras_configcontext_locations_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_configcontext_locations ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_configcontext_locations_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_configcontext_platforms; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_platforms ( - id bigint NOT NULL, - configcontext_id bigint NOT NULL, - platform_id bigint NOT NULL -); - - -ALTER TABLE public.extras_configcontext_platforms OWNER TO netbox; - --- --- Name: extras_configcontext_platforms_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_configcontext_platforms ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_configcontext_platforms_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_configcontext_regions; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_regions ( - id bigint NOT NULL, - configcontext_id bigint NOT NULL, - region_id bigint NOT NULL -); - - -ALTER TABLE public.extras_configcontext_regions OWNER TO netbox; - --- --- Name: extras_configcontext_regions_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_configcontext_regions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_configcontext_regions_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_configcontext_roles; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_roles ( - id bigint NOT NULL, - configcontext_id bigint NOT NULL, - devicerole_id bigint NOT NULL -); - - -ALTER TABLE public.extras_configcontext_roles OWNER TO netbox; - --- --- Name: extras_configcontext_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_configcontext_roles ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_configcontext_roles_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_configcontext_site_groups; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_site_groups ( - id bigint NOT NULL, - configcontext_id bigint NOT NULL, - sitegroup_id bigint NOT NULL -); - - -ALTER TABLE public.extras_configcontext_site_groups OWNER TO netbox; - --- --- Name: extras_configcontext_site_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_configcontext_site_groups ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_configcontext_site_groups_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_configcontext_sites; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_sites ( - id bigint NOT NULL, - configcontext_id bigint NOT NULL, - site_id bigint NOT NULL -); - - -ALTER TABLE public.extras_configcontext_sites OWNER TO netbox; - --- --- Name: extras_configcontext_sites_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_configcontext_sites ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_configcontext_sites_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_configcontext_tags; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_tags ( - id bigint NOT NULL, - configcontext_id bigint NOT NULL, - tag_id bigint NOT NULL -); - - -ALTER TABLE public.extras_configcontext_tags OWNER TO netbox; - --- --- Name: extras_configcontext_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_configcontext_tags ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_configcontext_tags_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_configcontext_tenant_groups; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_tenant_groups ( - id bigint NOT NULL, - configcontext_id bigint NOT NULL, - tenantgroup_id bigint NOT NULL -); - - -ALTER TABLE public.extras_configcontext_tenant_groups OWNER TO netbox; - --- --- Name: extras_configcontext_tenant_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_configcontext_tenant_groups ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_configcontext_tenant_groups_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_configcontext_tenants; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_tenants ( - id bigint NOT NULL, - configcontext_id bigint NOT NULL, - tenant_id bigint NOT NULL -); - - -ALTER TABLE public.extras_configcontext_tenants OWNER TO netbox; - --- --- Name: extras_configcontext_tenants_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_configcontext_tenants ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_configcontext_tenants_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_configrevision; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configrevision ( - id bigint NOT NULL, - created timestamp with time zone NOT NULL, - comment character varying(200) NOT NULL, - data jsonb -); - - -ALTER TABLE public.extras_configrevision OWNER TO netbox; - --- --- Name: extras_configrevision_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_configrevision ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_configrevision_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_customfield; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_customfield ( - id bigint NOT NULL, - type character varying(50) NOT NULL, - name character varying(50) NOT NULL, - label character varying(50) NOT NULL, - description character varying(200) NOT NULL, - required boolean NOT NULL, - filter_logic character varying(50) NOT NULL, - "default" jsonb, - weight smallint NOT NULL, - validation_minimum integer, - validation_maximum integer, - validation_regex character varying(500) NOT NULL, - choices character varying(100)[], - created timestamp with time zone, - last_updated timestamp with time zone, - object_type_id integer, - group_name character varying(50) NOT NULL, - ui_visibility character varying(50) NOT NULL, - search_weight smallint NOT NULL, - CONSTRAINT extras_customfield_search_weight_check CHECK ((search_weight >= 0)), - CONSTRAINT extras_customfield_weight_check CHECK ((weight >= 0)) -); - - -ALTER TABLE public.extras_customfield OWNER TO netbox; - --- --- Name: extras_customfield_content_types; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_customfield_content_types ( - id bigint NOT NULL, - customfield_id bigint NOT NULL, - contenttype_id integer NOT NULL -); - - -ALTER TABLE public.extras_customfield_content_types OWNER TO netbox; - --- --- Name: extras_customfield_content_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_customfield_content_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_customfield_content_types_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_customfield_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_customfield ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_customfield_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_customlink; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_customlink ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - link_text text NOT NULL, - link_url text NOT NULL, - weight smallint NOT NULL, - group_name character varying(50) NOT NULL, - button_class character varying(30) NOT NULL, - new_window boolean NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - enabled boolean NOT NULL, - CONSTRAINT extras_customlink_weight_check CHECK ((weight >= 0)) -); - - -ALTER TABLE public.extras_customlink OWNER TO netbox; - --- --- Name: extras_customlink_content_types; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_customlink_content_types ( - id bigint NOT NULL, - customlink_id bigint NOT NULL, - contenttype_id integer NOT NULL -); - - -ALTER TABLE public.extras_customlink_content_types OWNER TO netbox; - --- --- Name: extras_customlink_content_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_customlink_content_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_customlink_content_types_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_customlink_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_customlink ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_customlink_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_exporttemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_exporttemplate ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - description character varying(200) NOT NULL, - template_code text NOT NULL, - mime_type character varying(50) NOT NULL, - file_extension character varying(15) NOT NULL, - as_attachment boolean NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone -); - - -ALTER TABLE public.extras_exporttemplate OWNER TO netbox; - --- --- Name: extras_exporttemplate_content_types; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_exporttemplate_content_types ( - id bigint NOT NULL, - exporttemplate_id bigint NOT NULL, - contenttype_id integer NOT NULL -); - - -ALTER TABLE public.extras_exporttemplate_content_types OWNER TO netbox; - --- --- Name: extras_exporttemplate_content_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_exporttemplate_content_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_exporttemplate_content_types_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_exporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_exporttemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_exporttemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_imageattachment; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_imageattachment ( - id bigint NOT NULL, - object_id bigint NOT NULL, - image character varying(100) NOT NULL, - image_height smallint NOT NULL, - image_width smallint NOT NULL, - name character varying(50) NOT NULL, - created timestamp with time zone, - content_type_id integer NOT NULL, - last_updated timestamp with time zone, - CONSTRAINT extras_imageattachment_image_height_check CHECK ((image_height >= 0)), - CONSTRAINT extras_imageattachment_image_width_check CHECK ((image_width >= 0)), - CONSTRAINT extras_imageattachment_object_id_check CHECK ((object_id >= 0)) -); - - -ALTER TABLE public.extras_imageattachment OWNER TO netbox; - --- --- Name: extras_imageattachment_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_imageattachment ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_imageattachment_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_jobresult; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_jobresult ( - id bigint NOT NULL, - name character varying(255) NOT NULL, - created timestamp with time zone NOT NULL, - completed timestamp with time zone, - status character varying(30) NOT NULL, - data jsonb, - job_id uuid NOT NULL, - obj_type_id integer NOT NULL, - user_id integer, - scheduled timestamp with time zone, - "interval" integer, - started timestamp with time zone, - CONSTRAINT extras_jobresult_interval_check CHECK (("interval" >= 0)) -); - - -ALTER TABLE public.extras_jobresult OWNER TO netbox; - --- --- Name: extras_jobresult_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_jobresult ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_jobresult_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_journalentry; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_journalentry ( - last_updated timestamp with time zone, - id bigint NOT NULL, - assigned_object_id bigint NOT NULL, - created timestamp with time zone, - kind character varying(30) NOT NULL, - comments text NOT NULL, - assigned_object_type_id integer NOT NULL, - created_by_id integer, - custom_field_data jsonb NOT NULL, - CONSTRAINT extras_journalentry_assigned_object_id_check CHECK ((assigned_object_id >= 0)) -); - - -ALTER TABLE public.extras_journalentry OWNER TO netbox; - --- --- Name: extras_journalentry_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_journalentry ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_journalentry_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_objectchange; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_objectchange ( - id bigint NOT NULL, - "time" timestamp with time zone NOT NULL, - user_name character varying(150) NOT NULL, - request_id uuid NOT NULL, - action character varying(50) NOT NULL, - changed_object_id bigint NOT NULL, - related_object_id bigint, - object_repr character varying(200) NOT NULL, - prechange_data jsonb, - postchange_data jsonb, - changed_object_type_id integer NOT NULL, - related_object_type_id integer, - user_id integer, - CONSTRAINT extras_objectchange_changed_object_id_check CHECK ((changed_object_id >= 0)), - CONSTRAINT extras_objectchange_related_object_id_check CHECK ((related_object_id >= 0)) -); - - -ALTER TABLE public.extras_objectchange OWNER TO netbox; - --- --- Name: extras_objectchange_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_objectchange ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_objectchange_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_savedfilter; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_savedfilter ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - description character varying(200) NOT NULL, - weight smallint NOT NULL, - enabled boolean NOT NULL, - shared boolean NOT NULL, - parameters jsonb NOT NULL, - user_id integer, - CONSTRAINT extras_savedfilter_weight_check CHECK ((weight >= 0)) -); - - -ALTER TABLE public.extras_savedfilter OWNER TO netbox; - --- --- Name: extras_savedfilter_content_types; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_savedfilter_content_types ( - id bigint NOT NULL, - savedfilter_id bigint NOT NULL, - contenttype_id integer NOT NULL -); - - -ALTER TABLE public.extras_savedfilter_content_types OWNER TO netbox; - --- --- Name: extras_savedfilter_content_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_savedfilter_content_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_savedfilter_content_types_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_savedfilter_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_savedfilter ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_savedfilter_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_stagedchange; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_stagedchange ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - action character varying(20) NOT NULL, - object_id bigint, - data jsonb, - branch_id bigint NOT NULL, - object_type_id integer NOT NULL, - CONSTRAINT extras_stagedchange_object_id_check CHECK ((object_id >= 0)) -); - - -ALTER TABLE public.extras_stagedchange OWNER TO netbox; - --- --- Name: extras_stagedchange_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_stagedchange ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_stagedchange_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_tag; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_tag ( - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - color character varying(6) NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.extras_tag OWNER TO netbox; - --- --- Name: extras_tag_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_tag ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_tag_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_taggeditem; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_taggeditem ( - object_id integer NOT NULL, - id bigint NOT NULL, - content_type_id integer NOT NULL, - tag_id bigint NOT NULL -); - - -ALTER TABLE public.extras_taggeditem OWNER TO netbox; - --- --- Name: extras_taggeditem_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_taggeditem ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_taggeditem_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_webhook; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_webhook ( - id bigint NOT NULL, - name character varying(150) NOT NULL, - type_create boolean NOT NULL, - type_update boolean NOT NULL, - type_delete boolean NOT NULL, - payload_url character varying(500) NOT NULL, - enabled boolean NOT NULL, - http_method character varying(30) NOT NULL, - http_content_type character varying(100) NOT NULL, - additional_headers text NOT NULL, - body_template text NOT NULL, - secret character varying(255) NOT NULL, - ssl_verification boolean NOT NULL, - ca_file_path character varying(4096), - created timestamp with time zone, - last_updated timestamp with time zone, - conditions jsonb -); - - -ALTER TABLE public.extras_webhook OWNER TO netbox; - --- --- Name: extras_webhook_content_types; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_webhook_content_types ( - id bigint NOT NULL, - webhook_id bigint NOT NULL, - contenttype_id integer NOT NULL -); - - -ALTER TABLE public.extras_webhook_content_types OWNER TO netbox; - --- --- Name: extras_webhook_content_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_webhook_content_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_webhook_content_types_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: extras_webhook_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.extras_webhook ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.extras_webhook_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_aggregate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_aggregate ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - prefix cidr NOT NULL, - date_added date, - description character varying(200) NOT NULL, - rir_id bigint NOT NULL, - tenant_id bigint, - comments text NOT NULL -); - - -ALTER TABLE public.ipam_aggregate OWNER TO netbox; - --- --- Name: ipam_aggregate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_aggregate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_aggregate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_asn; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_asn ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - asn bigint NOT NULL, - description character varying(200) NOT NULL, - rir_id bigint NOT NULL, - tenant_id bigint, - comments text NOT NULL -); - - -ALTER TABLE public.ipam_asn OWNER TO netbox; - --- --- Name: ipam_asn_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_asn ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_asn_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_fhrpgroup; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_fhrpgroup ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - group_id smallint NOT NULL, - protocol character varying(50) NOT NULL, - auth_type character varying(50) NOT NULL, - auth_key character varying(255) NOT NULL, - description character varying(200) NOT NULL, - name character varying(100) NOT NULL, - comments text NOT NULL, - CONSTRAINT ipam_fhrpgroup_group_id_check CHECK ((group_id >= 0)) -); - - -ALTER TABLE public.ipam_fhrpgroup OWNER TO netbox; - --- --- Name: ipam_fhrpgroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_fhrpgroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_fhrpgroup_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_fhrpgroupassignment; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_fhrpgroupassignment ( - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - interface_id bigint NOT NULL, - priority smallint NOT NULL, - group_id bigint NOT NULL, - interface_type_id integer NOT NULL, - CONSTRAINT ipam_fhrpgroupassignment_interface_id_check CHECK ((interface_id >= 0)), - CONSTRAINT ipam_fhrpgroupassignment_priority_check CHECK ((priority >= 0)) -); - - -ALTER TABLE public.ipam_fhrpgroupassignment OWNER TO netbox; - --- --- Name: ipam_fhrpgroupassignment_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_fhrpgroupassignment ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_fhrpgroupassignment_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_ipaddress; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_ipaddress ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - address inet NOT NULL, - status character varying(50) NOT NULL, - role character varying(50) NOT NULL, - assigned_object_id bigint, - dns_name character varying(255) NOT NULL, - description character varying(200) NOT NULL, - assigned_object_type_id integer, - nat_inside_id bigint, - tenant_id bigint, - vrf_id bigint, - comments text NOT NULL, - CONSTRAINT ipam_ipaddress_assigned_object_id_check CHECK ((assigned_object_id >= 0)) -); - - -ALTER TABLE public.ipam_ipaddress OWNER TO netbox; - --- --- Name: ipam_ipaddress_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_ipaddress ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_ipaddress_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_iprange; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_iprange ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - start_address inet NOT NULL, - end_address inet NOT NULL, - size integer NOT NULL, - status character varying(50) NOT NULL, - description character varying(200) NOT NULL, - role_id bigint, - tenant_id bigint, - vrf_id bigint, - comments text NOT NULL, - CONSTRAINT ipam_iprange_size_check CHECK ((size >= 0)) -); - - -ALTER TABLE public.ipam_iprange OWNER TO netbox; - --- --- Name: ipam_iprange_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_iprange ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_iprange_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_l2vpn; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_l2vpn ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - type character varying(50) NOT NULL, - identifier bigint, - description character varying(200) NOT NULL, - tenant_id bigint, - comments text NOT NULL -); - - -ALTER TABLE public.ipam_l2vpn OWNER TO netbox; - --- --- Name: ipam_l2vpn_export_targets; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_l2vpn_export_targets ( - id bigint NOT NULL, - l2vpn_id bigint NOT NULL, - routetarget_id bigint NOT NULL -); - - -ALTER TABLE public.ipam_l2vpn_export_targets OWNER TO netbox; - --- --- Name: ipam_l2vpn_export_targets_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_l2vpn_export_targets ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_l2vpn_export_targets_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_l2vpn_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_l2vpn ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_l2vpn_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_l2vpn_import_targets; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_l2vpn_import_targets ( - id bigint NOT NULL, - l2vpn_id bigint NOT NULL, - routetarget_id bigint NOT NULL -); - - -ALTER TABLE public.ipam_l2vpn_import_targets OWNER TO netbox; - --- --- Name: ipam_l2vpn_import_targets_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_l2vpn_import_targets ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_l2vpn_import_targets_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_l2vpntermination; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_l2vpntermination ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - assigned_object_id bigint NOT NULL, - assigned_object_type_id integer NOT NULL, - l2vpn_id bigint NOT NULL, - CONSTRAINT ipam_l2vpntermination_assigned_object_id_check CHECK ((assigned_object_id >= 0)) -); - - -ALTER TABLE public.ipam_l2vpntermination OWNER TO netbox; - --- --- Name: ipam_l2vpntermination_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_l2vpntermination ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_l2vpntermination_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_prefix; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_prefix ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - prefix cidr NOT NULL, - status character varying(50) NOT NULL, - is_pool boolean NOT NULL, - description character varying(200) NOT NULL, - role_id bigint, - site_id bigint, - tenant_id bigint, - vlan_id bigint, - vrf_id bigint, - _children bigint NOT NULL, - _depth smallint NOT NULL, - mark_utilized boolean NOT NULL, - comments text NOT NULL, - CONSTRAINT ipam_prefix__children_check CHECK ((_children >= 0)), - CONSTRAINT ipam_prefix__depth_check CHECK ((_depth >= 0)) -); - - -ALTER TABLE public.ipam_prefix OWNER TO netbox; - --- --- Name: ipam_prefix_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_prefix ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_prefix_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_rir; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_rir ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - is_private boolean NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.ipam_rir OWNER TO netbox; - --- --- Name: ipam_rir_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_rir ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_rir_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_role; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_role ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - weight smallint NOT NULL, - description character varying(200) NOT NULL, - CONSTRAINT ipam_role_weight_check CHECK ((weight >= 0)) -); - - -ALTER TABLE public.ipam_role OWNER TO netbox; - --- --- Name: ipam_role_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_role ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_role_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_routetarget; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_routetarget ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(21) NOT NULL, - description character varying(200) NOT NULL, - tenant_id bigint, - comments text NOT NULL -); - - -ALTER TABLE public.ipam_routetarget OWNER TO netbox; - --- --- Name: ipam_routetarget_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_routetarget ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_routetarget_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_service; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_service ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - protocol character varying(50) NOT NULL, - ports integer[] NOT NULL, - description character varying(200) NOT NULL, - device_id bigint, - virtual_machine_id bigint, - comments text NOT NULL -); - - -ALTER TABLE public.ipam_service OWNER TO netbox; - --- --- Name: ipam_service_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_service ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_service_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_service_ipaddresses; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_service_ipaddresses ( - id bigint NOT NULL, - service_id bigint NOT NULL, - ipaddress_id bigint NOT NULL -); - - -ALTER TABLE public.ipam_service_ipaddresses OWNER TO netbox; - --- --- Name: ipam_service_ipaddresses_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_service_ipaddresses ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_service_ipaddresses_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_servicetemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_servicetemplate ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - protocol character varying(50) NOT NULL, - ports integer[] NOT NULL, - description character varying(200) NOT NULL, - name character varying(100) NOT NULL, - comments text NOT NULL -); - - -ALTER TABLE public.ipam_servicetemplate OWNER TO netbox; - --- --- Name: ipam_servicetemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_servicetemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_servicetemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_vlan; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_vlan ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - vid smallint NOT NULL, - name character varying(64) NOT NULL, - status character varying(50) NOT NULL, - description character varying(200) NOT NULL, - group_id bigint, - role_id bigint, - site_id bigint, - tenant_id bigint, - comments text NOT NULL, - CONSTRAINT ipam_vlan_vid_check CHECK ((vid >= 0)) -); - - -ALTER TABLE public.ipam_vlan OWNER TO netbox; - --- --- Name: ipam_vlan_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_vlan ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_vlan_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_vlangroup; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_vlangroup ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - scope_id bigint, - description character varying(200) NOT NULL, - scope_type_id integer, - max_vid smallint NOT NULL, - min_vid smallint NOT NULL, - CONSTRAINT ipam_vlangroup_max_vid_check CHECK ((max_vid >= 0)), - CONSTRAINT ipam_vlangroup_min_vid_check CHECK ((min_vid >= 0)), - CONSTRAINT ipam_vlangroup_scope_id_check CHECK ((scope_id >= 0)) -); - - -ALTER TABLE public.ipam_vlangroup OWNER TO netbox; - --- --- Name: ipam_vlangroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_vlangroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_vlangroup_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_vrf; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_vrf ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - rd character varying(21), - enforce_unique boolean NOT NULL, - description character varying(200) NOT NULL, - tenant_id bigint, - comments text NOT NULL -); - - -ALTER TABLE public.ipam_vrf OWNER TO netbox; - --- --- Name: ipam_vrf_export_targets; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_vrf_export_targets ( - id bigint NOT NULL, - vrf_id bigint NOT NULL, - routetarget_id bigint NOT NULL -); - - -ALTER TABLE public.ipam_vrf_export_targets OWNER TO netbox; - --- --- Name: ipam_vrf_export_targets_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_vrf_export_targets ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_vrf_export_targets_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_vrf_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_vrf ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_vrf_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: ipam_vrf_import_targets; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_vrf_import_targets ( - id bigint NOT NULL, - vrf_id bigint NOT NULL, - routetarget_id bigint NOT NULL -); - - -ALTER TABLE public.ipam_vrf_import_targets OWNER TO netbox; - --- --- Name: ipam_vrf_import_targets_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.ipam_vrf_import_targets ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.ipam_vrf_import_targets_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_bgp_bgppeergroup; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_bgp_bgppeergroup ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - name character varying(100) NOT NULL, - description character varying(200) NOT NULL, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.netbox_bgp_bgppeergroup OWNER TO netbox; - --- --- Name: netbox_bgp_bgppeergroup_export_policies; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_bgp_bgppeergroup_export_policies ( - id bigint NOT NULL, - bgppeergroup_id bigint NOT NULL, - routingpolicy_id bigint NOT NULL -); - - -ALTER TABLE public.netbox_bgp_bgppeergroup_export_policies OWNER TO netbox; - --- --- Name: netbox_bgp_bgppeergroup_export_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_bgp_bgppeergroup_export_policies ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_bgp_bgppeergroup_export_policies_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_bgp_bgppeergroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_bgp_bgppeergroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_bgp_bgppeergroup_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_bgp_bgppeergroup_import_policies; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_bgp_bgppeergroup_import_policies ( - id bigint NOT NULL, - bgppeergroup_id bigint NOT NULL, - routingpolicy_id bigint NOT NULL -); - - -ALTER TABLE public.netbox_bgp_bgppeergroup_import_policies OWNER TO netbox; - --- --- Name: netbox_bgp_bgppeergroup_import_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_bgp_bgppeergroup_import_policies ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_bgp_bgppeergroup_import_policies_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_bgp_bgpsession; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_bgp_bgpsession ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - status character varying(50) NOT NULL, - description character varying(200) NOT NULL, - local_address_id bigint NOT NULL, - local_as_id bigint NOT NULL, - remote_address_id bigint NOT NULL, - remote_as_id bigint NOT NULL, - site_id bigint, - tenant_id bigint, - device_id bigint, - name character varying(64), - peer_group_id bigint, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.netbox_bgp_bgpsession OWNER TO netbox; - --- --- Name: netbox_bgp_bgpsession_export_policies; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_bgp_bgpsession_export_policies ( - id bigint NOT NULL, - bgpsession_id bigint NOT NULL, - routingpolicy_id bigint NOT NULL -); - - -ALTER TABLE public.netbox_bgp_bgpsession_export_policies OWNER TO netbox; - --- --- Name: netbox_bgp_bgpsession_export_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_bgp_bgpsession_export_policies ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_bgp_bgpsession_export_policies_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_bgp_bgpsession_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_bgp_bgpsession ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_bgp_bgpsession_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_bgp_bgpsession_import_policies; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_bgp_bgpsession_import_policies ( - id bigint NOT NULL, - bgpsession_id bigint NOT NULL, - routingpolicy_id bigint NOT NULL -); - - -ALTER TABLE public.netbox_bgp_bgpsession_import_policies OWNER TO netbox; - --- --- Name: netbox_bgp_bgpsession_import_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_bgp_bgpsession_import_policies ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_bgp_bgpsession_import_policies_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_bgp_community; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_bgp_community ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - status character varying(50) NOT NULL, - description character varying(200) NOT NULL, - value character varying(64) NOT NULL, - role_id bigint, - site_id bigint, - tenant_id bigint, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.netbox_bgp_community OWNER TO netbox; - --- --- Name: netbox_bgp_community_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_bgp_community ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_bgp_community_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_bgp_prefixlist; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_bgp_prefixlist ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - name character varying(100) NOT NULL, - description character varying(200) NOT NULL, - family character varying(10) NOT NULL -); - - -ALTER TABLE public.netbox_bgp_prefixlist OWNER TO netbox; - --- --- Name: netbox_bgp_prefixlist_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_bgp_prefixlist ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_bgp_prefixlist_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_bgp_prefixlistrule; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_bgp_prefixlistrule ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - index integer NOT NULL, - action character varying(30) NOT NULL, - prefix_custom cidr, - ge smallint, - le smallint, - prefix_id bigint, - prefix_list_id bigint NOT NULL, - CONSTRAINT netbox_bgp_prefixlistrule_ge_check CHECK ((ge >= 0)), - CONSTRAINT netbox_bgp_prefixlistrule_index_check CHECK ((index >= 0)), - CONSTRAINT netbox_bgp_prefixlistrule_le_check CHECK ((le >= 0)) -); - - -ALTER TABLE public.netbox_bgp_prefixlistrule OWNER TO netbox; - --- --- Name: netbox_bgp_prefixlistrule_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_bgp_prefixlistrule ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_bgp_prefixlistrule_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_bgp_routingpolicy; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_bgp_routingpolicy ( - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - name character varying(100) NOT NULL, - description character varying(200) NOT NULL, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.netbox_bgp_routingpolicy OWNER TO netbox; - --- --- Name: netbox_bgp_routingpolicy_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_bgp_routingpolicy ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_bgp_routingpolicy_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_bgp_routingpolicyrule; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_bgp_routingpolicyrule ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - index integer NOT NULL, - action character varying(30) NOT NULL, - description character varying(500) NOT NULL, - match_custom jsonb, - set_actions jsonb, - routing_policy_id bigint NOT NULL, - continue_entry integer, - CONSTRAINT netbox_bgp_routingpolicyrule_continue_entry_check CHECK ((continue_entry >= 0)), - CONSTRAINT netbox_bgp_routingpolicyrule_index_check CHECK ((index >= 0)) -); - - -ALTER TABLE public.netbox_bgp_routingpolicyrule OWNER TO netbox; - --- --- Name: netbox_bgp_routingpolicyrule_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_bgp_routingpolicyrule ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_bgp_routingpolicyrule_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_bgp_routingpolicyrule_match_community; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_bgp_routingpolicyrule_match_community ( - id bigint NOT NULL, - routingpolicyrule_id bigint NOT NULL, - community_id bigint NOT NULL -); - - -ALTER TABLE public.netbox_bgp_routingpolicyrule_match_community OWNER TO netbox; - --- --- Name: netbox_bgp_routingpolicyrule_match_community_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_bgp_routingpolicyrule_match_community ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_bgp_routingpolicyrule_match_community_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_bgp_routingpolicyrule_match_ip_address; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_bgp_routingpolicyrule_match_ip_address ( - id bigint NOT NULL, - routingpolicyrule_id bigint NOT NULL, - prefixlist_id bigint NOT NULL -); - - -ALTER TABLE public.netbox_bgp_routingpolicyrule_match_ip_address OWNER TO netbox; - --- --- Name: netbox_bgp_routingpolicyrule_match_ip_address_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_bgp_routingpolicyrule_match_ip_address ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_bgp_routingpolicyrule_match_ip_address_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_bgp_routingpolicyrule_match_ipv6_address; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_bgp_routingpolicyrule_match_ipv6_address ( - id bigint NOT NULL, - routingpolicyrule_id bigint NOT NULL, - prefixlist_id bigint NOT NULL -); - - -ALTER TABLE public.netbox_bgp_routingpolicyrule_match_ipv6_address OWNER TO netbox; - --- --- Name: netbox_bgp_routingpolicyrule_match_ipv6_address_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_bgp_routingpolicyrule_match_ipv6_address ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_bgp_routingpolicyrule_match_ipv6_address_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_dns_nameserver; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_dns_nameserver ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - name character varying(255) NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.netbox_dns_nameserver OWNER TO netbox; - --- --- Name: netbox_dns_nameserver_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_dns_nameserver ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_dns_nameserver_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_dns_record; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_dns_record ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - type character varying(10) NOT NULL, - name character varying(255) NOT NULL, - value character varying(1000) NOT NULL, - ttl integer, - zone_id bigint NOT NULL, - status character varying(50) NOT NULL, - description character varying(200) NOT NULL, - managed boolean NOT NULL, - disable_ptr boolean NOT NULL, - ptr_record_id bigint, - ip_address inet, - CONSTRAINT netbox_dns_record_ttl_check CHECK ((ttl >= 0)) -); - - -ALTER TABLE public.netbox_dns_record OWNER TO netbox; - --- --- Name: netbox_dns_record_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_dns_record ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_dns_record_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_dns_view; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_dns_view ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - name character varying(255) NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.netbox_dns_view OWNER TO netbox; - --- --- Name: netbox_dns_view_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_dns_view ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_dns_view_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_dns_zone; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_dns_zone ( - id bigint NOT NULL, - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - name character varying(255) NOT NULL, - status character varying(50) NOT NULL, - description character varying(200) NOT NULL, - view_id bigint, - default_ttl integer NOT NULL, - soa_expire integer NOT NULL, - soa_minimum integer NOT NULL, - soa_mname_id bigint NOT NULL, - soa_refresh integer NOT NULL, - soa_retry integer NOT NULL, - soa_rname character varying(255) NOT NULL, - soa_serial bigint, - soa_ttl integer NOT NULL, - soa_serial_auto boolean NOT NULL, - arpa_network cidr, - CONSTRAINT netbox_dns_zone_default_ttl_check CHECK ((default_ttl >= 0)), - CONSTRAINT netbox_dns_zone_soa_expire_check CHECK ((soa_expire >= 0)), - CONSTRAINT netbox_dns_zone_soa_minimum_check CHECK ((soa_minimum >= 0)), - CONSTRAINT netbox_dns_zone_soa_refresh_check CHECK ((soa_refresh >= 0)), - CONSTRAINT netbox_dns_zone_soa_retry_check CHECK ((soa_retry >= 0)), - CONSTRAINT netbox_dns_zone_soa_ttl_check CHECK ((soa_ttl >= 0)) -); - - -ALTER TABLE public.netbox_dns_zone OWNER TO netbox; - --- --- Name: netbox_dns_zone_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_dns_zone ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_dns_zone_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: netbox_dns_zone_nameservers; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.netbox_dns_zone_nameservers ( - id bigint NOT NULL, - zone_id bigint NOT NULL, - nameserver_id bigint NOT NULL -); - - -ALTER TABLE public.netbox_dns_zone_nameservers OWNER TO netbox; - --- --- Name: netbox_dns_zone_nameservers_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.netbox_dns_zone_nameservers ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.netbox_dns_zone_nameservers_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: social_auth_association; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.social_auth_association ( - id integer NOT NULL, - server_url character varying(255) NOT NULL, - handle character varying(255) NOT NULL, - secret character varying(255) NOT NULL, - issued integer NOT NULL, - lifetime integer NOT NULL, - assoc_type character varying(64) NOT NULL -); - - -ALTER TABLE public.social_auth_association OWNER TO netbox; - --- --- Name: social_auth_association_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.social_auth_association ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.social_auth_association_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: social_auth_code; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.social_auth_code ( - id integer NOT NULL, - email character varying(254) NOT NULL, - code character varying(32) NOT NULL, - verified boolean NOT NULL, - "timestamp" timestamp with time zone NOT NULL -); - - -ALTER TABLE public.social_auth_code OWNER TO netbox; - --- --- Name: social_auth_code_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.social_auth_code ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.social_auth_code_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: social_auth_nonce; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.social_auth_nonce ( - id integer NOT NULL, - server_url character varying(255) NOT NULL, - "timestamp" integer NOT NULL, - salt character varying(65) NOT NULL -); - - -ALTER TABLE public.social_auth_nonce OWNER TO netbox; - --- --- Name: social_auth_nonce_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.social_auth_nonce ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.social_auth_nonce_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: social_auth_partial; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.social_auth_partial ( - id integer NOT NULL, - token character varying(32) NOT NULL, - next_step smallint NOT NULL, - backend character varying(32) NOT NULL, - data jsonb NOT NULL, - "timestamp" timestamp with time zone NOT NULL, - CONSTRAINT social_auth_partial_next_step_check CHECK ((next_step >= 0)) -); - - -ALTER TABLE public.social_auth_partial OWNER TO netbox; - --- --- Name: social_auth_partial_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.social_auth_partial ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.social_auth_partial_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: social_auth_usersocialauth; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.social_auth_usersocialauth ( - id integer NOT NULL, - provider character varying(32) NOT NULL, - uid character varying(255) NOT NULL, - extra_data jsonb NOT NULL, - user_id integer NOT NULL, - created timestamp with time zone NOT NULL, - modified timestamp with time zone NOT NULL -); - - -ALTER TABLE public.social_auth_usersocialauth OWNER TO netbox; - --- --- Name: social_auth_usersocialauth_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.social_auth_usersocialauth ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.social_auth_usersocialauth_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: taggit_tag; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.taggit_tag ( - id integer NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL -); - - -ALTER TABLE public.taggit_tag OWNER TO netbox; - --- --- Name: taggit_tag_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.taggit_tag ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.taggit_tag_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: taggit_taggeditem; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.taggit_taggeditem ( - id integer NOT NULL, - object_id integer NOT NULL, - content_type_id integer NOT NULL, - tag_id integer NOT NULL -); - - -ALTER TABLE public.taggit_taggeditem OWNER TO netbox; - --- --- Name: taggit_taggeditem_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.taggit_taggeditem ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.taggit_taggeditem_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: tenancy_contact; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.tenancy_contact ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - title character varying(100) NOT NULL, - phone character varying(50) NOT NULL, - email character varying(254) NOT NULL, - address character varying(200) NOT NULL, - comments text NOT NULL, - group_id bigint, - link character varying(200) NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.tenancy_contact OWNER TO netbox; - --- --- Name: tenancy_contact_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.tenancy_contact ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.tenancy_contact_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: tenancy_contactassignment; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.tenancy_contactassignment ( - created timestamp with time zone, - last_updated timestamp with time zone, - id bigint NOT NULL, - object_id bigint NOT NULL, - priority character varying(50) NOT NULL, - contact_id bigint NOT NULL, - content_type_id integer NOT NULL, - role_id bigint NOT NULL, - CONSTRAINT tenancy_contactassignment_object_id_check CHECK ((object_id >= 0)) -); - - -ALTER TABLE public.tenancy_contactassignment OWNER TO netbox; - --- --- Name: tenancy_contactassignment_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.tenancy_contactassignment ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.tenancy_contactassignment_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: tenancy_contactgroup; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.tenancy_contactgroup ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - description character varying(200) NOT NULL, - lft integer NOT NULL, - rght integer NOT NULL, - tree_id integer NOT NULL, - level integer NOT NULL, - parent_id bigint, - CONSTRAINT tenancy_contactgroup_level_check CHECK ((level >= 0)), - CONSTRAINT tenancy_contactgroup_lft_check CHECK ((lft >= 0)), - CONSTRAINT tenancy_contactgroup_rght_check CHECK ((rght >= 0)), - CONSTRAINT tenancy_contactgroup_tree_id_check CHECK ((tree_id >= 0)) -); - - -ALTER TABLE public.tenancy_contactgroup OWNER TO netbox; - --- --- Name: tenancy_contactgroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.tenancy_contactgroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.tenancy_contactgroup_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: tenancy_contactrole; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.tenancy_contactrole ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.tenancy_contactrole OWNER TO netbox; - --- --- Name: tenancy_contactrole_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.tenancy_contactrole ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.tenancy_contactrole_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: tenancy_tenant; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.tenancy_tenant ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - description character varying(200) NOT NULL, - comments text NOT NULL, - group_id bigint -); - - -ALTER TABLE public.tenancy_tenant OWNER TO netbox; - --- --- Name: tenancy_tenant_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.tenancy_tenant ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.tenancy_tenant_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: tenancy_tenantgroup; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.tenancy_tenantgroup ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - description character varying(200) NOT NULL, - lft integer NOT NULL, - rght integer NOT NULL, - tree_id integer NOT NULL, - level integer NOT NULL, - parent_id bigint, - CONSTRAINT tenancy_tenantgroup_level_check CHECK ((level >= 0)), - CONSTRAINT tenancy_tenantgroup_lft_check CHECK ((lft >= 0)), - CONSTRAINT tenancy_tenantgroup_rght_check CHECK ((rght >= 0)), - CONSTRAINT tenancy_tenantgroup_tree_id_check CHECK ((tree_id >= 0)) -); - - -ALTER TABLE public.tenancy_tenantgroup OWNER TO netbox; - --- --- Name: tenancy_tenantgroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.tenancy_tenantgroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.tenancy_tenantgroup_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: users_objectpermission; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.users_objectpermission ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - description character varying(200) NOT NULL, - enabled boolean NOT NULL, - actions character varying(30)[] NOT NULL, - constraints jsonb -); - - -ALTER TABLE public.users_objectpermission OWNER TO netbox; - --- --- Name: users_objectpermission_groups; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.users_objectpermission_groups ( - id bigint NOT NULL, - objectpermission_id bigint NOT NULL, - group_id integer NOT NULL -); - - -ALTER TABLE public.users_objectpermission_groups OWNER TO netbox; - --- --- Name: users_objectpermission_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.users_objectpermission_groups ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.users_objectpermission_groups_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: users_objectpermission_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.users_objectpermission ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.users_objectpermission_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: users_objectpermission_object_types; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.users_objectpermission_object_types ( - id bigint NOT NULL, - objectpermission_id bigint NOT NULL, - contenttype_id integer NOT NULL -); - - -ALTER TABLE public.users_objectpermission_object_types OWNER TO netbox; - --- --- Name: users_objectpermission_object_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.users_objectpermission_object_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.users_objectpermission_object_types_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: users_objectpermission_users; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.users_objectpermission_users ( - id bigint NOT NULL, - objectpermission_id bigint NOT NULL, - user_id integer NOT NULL -); - - -ALTER TABLE public.users_objectpermission_users OWNER TO netbox; - --- --- Name: users_objectpermission_users_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.users_objectpermission_users ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.users_objectpermission_users_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: users_token; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.users_token ( - id bigint NOT NULL, - created timestamp with time zone NOT NULL, - expires timestamp with time zone, - key character varying(40) NOT NULL, - write_enabled boolean NOT NULL, - description character varying(200) NOT NULL, - user_id integer NOT NULL, - allowed_ips cidr[], - last_used timestamp with time zone -); - - -ALTER TABLE public.users_token OWNER TO netbox; - --- --- Name: users_token_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.users_token ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.users_token_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: users_userconfig; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.users_userconfig ( - id bigint NOT NULL, - data jsonb NOT NULL, - user_id integer NOT NULL -); - - -ALTER TABLE public.users_userconfig OWNER TO netbox; - --- --- Name: users_userconfig_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.users_userconfig ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.users_userconfig_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: virtualization_cluster; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.virtualization_cluster ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - comments text NOT NULL, - group_id bigint, - site_id bigint, - tenant_id bigint, - type_id bigint NOT NULL, - status character varying(50) NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.virtualization_cluster OWNER TO netbox; - --- --- Name: virtualization_cluster_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.virtualization_cluster ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.virtualization_cluster_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: virtualization_clustergroup; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.virtualization_clustergroup ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.virtualization_clustergroup OWNER TO netbox; - --- --- Name: virtualization_clustergroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.virtualization_clustergroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.virtualization_clustergroup_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: virtualization_clustertype; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.virtualization_clustertype ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - description character varying(200) NOT NULL -); - - -ALTER TABLE public.virtualization_clustertype OWNER TO netbox; - --- --- Name: virtualization_clustertype_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.virtualization_clustertype ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.virtualization_clustertype_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: virtualization_virtualmachine; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.virtualization_virtualmachine ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - local_context_data jsonb, - name character varying(64) NOT NULL, - status character varying(50) NOT NULL, - vcpus numeric(6,2), - memory integer, - disk integer, - comments text NOT NULL, - cluster_id bigint, - platform_id bigint, - primary_ip4_id bigint, - primary_ip6_id bigint, - role_id bigint, - tenant_id bigint, - _name character varying(100) NOT NULL, - site_id bigint, - device_id bigint, - description character varying(200) NOT NULL, - CONSTRAINT virtualization_virtualmachine_disk_check CHECK ((disk >= 0)), - CONSTRAINT virtualization_virtualmachine_memory_check CHECK ((memory >= 0)) -); - - -ALTER TABLE public.virtualization_virtualmachine OWNER TO netbox; - --- --- Name: virtualization_virtualmachine_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.virtualization_virtualmachine ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.virtualization_virtualmachine_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: virtualization_vminterface; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.virtualization_vminterface ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - enabled boolean NOT NULL, - mac_address macaddr, - mtu integer, - mode character varying(50) NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - description character varying(200) NOT NULL, - parent_id bigint, - untagged_vlan_id bigint, - virtual_machine_id bigint NOT NULL, - bridge_id bigint, - vrf_id bigint, - CONSTRAINT virtualization_vminterface_mtu_check CHECK ((mtu >= 0)) -); - - -ALTER TABLE public.virtualization_vminterface OWNER TO netbox; - --- --- Name: virtualization_vminterface_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.virtualization_vminterface ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.virtualization_vminterface_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: virtualization_vminterface_tagged_vlans; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.virtualization_vminterface_tagged_vlans ( - id bigint NOT NULL, - vminterface_id bigint NOT NULL, - vlan_id bigint NOT NULL -); - - -ALTER TABLE public.virtualization_vminterface_tagged_vlans OWNER TO netbox; - --- --- Name: virtualization_vminterface_tagged_vlans_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.virtualization_vminterface_tagged_vlans ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.virtualization_vminterface_tagged_vlans_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: wireless_wirelesslan; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.wireless_wirelesslan ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - ssid character varying(32) NOT NULL, - group_id bigint, - description character varying(200) NOT NULL, - auth_cipher character varying(50) NOT NULL, - auth_psk character varying(64) NOT NULL, - auth_type character varying(50) NOT NULL, - vlan_id bigint, - tenant_id bigint, - comments text NOT NULL, - status character varying(50) NOT NULL -); - - -ALTER TABLE public.wireless_wirelesslan OWNER TO netbox; - --- --- Name: wireless_wirelesslan_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.wireless_wirelesslan ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.wireless_wirelesslan_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: wireless_wirelesslangroup; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.wireless_wirelesslangroup ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - description character varying(200) NOT NULL, - lft integer NOT NULL, - rght integer NOT NULL, - tree_id integer NOT NULL, - level integer NOT NULL, - parent_id bigint, - CONSTRAINT wireless_wirelesslangroup_level_check CHECK ((level >= 0)), - CONSTRAINT wireless_wirelesslangroup_lft_check CHECK ((lft >= 0)), - CONSTRAINT wireless_wirelesslangroup_rght_check CHECK ((rght >= 0)), - CONSTRAINT wireless_wirelesslangroup_tree_id_check CHECK ((tree_id >= 0)) -); - - -ALTER TABLE public.wireless_wirelesslangroup OWNER TO netbox; - --- --- Name: wireless_wirelesslangroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.wireless_wirelesslangroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.wireless_wirelesslangroup_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Name: wireless_wirelesslink; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.wireless_wirelesslink ( - created timestamp with time zone, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - id bigint NOT NULL, - ssid character varying(32) NOT NULL, - status character varying(50) NOT NULL, - description character varying(200) NOT NULL, - auth_cipher character varying(50) NOT NULL, - auth_psk character varying(64) NOT NULL, - auth_type character varying(50) NOT NULL, - _interface_a_device_id bigint, - _interface_b_device_id bigint, - interface_a_id bigint NOT NULL, - interface_b_id bigint NOT NULL, - tenant_id bigint, - comments text NOT NULL -); - - -ALTER TABLE public.wireless_wirelesslink OWNER TO netbox; - --- --- Name: wireless_wirelesslink_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -ALTER TABLE public.wireless_wirelesslink ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( - SEQUENCE NAME public.wireless_wirelesslink_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 -); - - --- --- Data for Name: auth_group; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.auth_group (id, name) FROM stdin; -1 netbox-readers -2 netbox-writers -\. - - --- --- Data for Name: auth_group_permissions; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.auth_group_permissions (id, group_id, permission_id) FROM stdin; -\. - - --- --- Data for Name: auth_permission; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.auth_permission (id, name, content_type_id, codename) FROM stdin; -1 Can add log entry 5 add_logentry -2 Can change log entry 5 change_logentry -3 Can delete log entry 5 delete_logentry -4 Can view log entry 5 view_logentry -5 Can add permission 6 add_permission -6 Can change permission 6 change_permission -7 Can delete permission 6 delete_permission -8 Can view permission 6 view_permission -9 Can add group 7 add_group -10 Can change group 7 change_group -11 Can delete group 7 delete_group -12 Can view group 7 view_group -13 Can add user 8 add_user -14 Can change user 8 change_user -15 Can delete user 8 delete_user -16 Can view user 8 view_user -17 Can add content type 9 add_contenttype -18 Can change content type 9 change_contenttype -19 Can delete content type 9 delete_contenttype -20 Can view content type 9 view_contenttype -21 Can add session 10 add_session -22 Can change session 10 change_session -23 Can delete session 10 delete_session -24 Can view session 10 view_session -25 Can add association 11 add_association -26 Can change association 11 change_association -27 Can delete association 11 delete_association -28 Can view association 11 view_association -29 Can add code 12 add_code -30 Can change code 12 change_code -31 Can delete code 12 delete_code -32 Can view code 12 view_code -33 Can add nonce 13 add_nonce -34 Can change nonce 13 change_nonce -35 Can delete nonce 13 delete_nonce -36 Can view nonce 13 view_nonce -37 Can add user social auth 14 add_usersocialauth -38 Can change user social auth 14 change_usersocialauth -39 Can delete user social auth 14 delete_usersocialauth -40 Can view user social auth 14 view_usersocialauth -41 Can add partial 15 add_partial -42 Can change partial 15 change_partial -43 Can delete partial 15 delete_partial -44 Can view partial 15 view_partial -45 Can add tag 16 add_tag -46 Can change tag 16 change_tag -47 Can delete tag 16 delete_tag -48 Can view tag 16 view_tag -49 Can add tagged item 17 add_taggeditem -50 Can change tagged item 17 change_taggeditem -51 Can delete tagged item 17 delete_taggeditem -52 Can view tagged item 17 view_taggeditem -53 Can add circuit 18 add_circuit -54 Can change circuit 18 change_circuit -55 Can delete circuit 18 delete_circuit -56 Can view circuit 18 view_circuit -57 Can add circuit termination 19 add_circuittermination -58 Can change circuit termination 19 change_circuittermination -59 Can delete circuit termination 19 delete_circuittermination -60 Can view circuit termination 19 view_circuittermination -61 Can add circuit type 20 add_circuittype -62 Can change circuit type 20 change_circuittype -63 Can delete circuit type 20 delete_circuittype -64 Can view circuit type 20 view_circuittype -65 Can add provider 21 add_provider -66 Can change provider 21 change_provider -67 Can delete provider 21 delete_provider -68 Can view provider 21 view_provider -69 Can add provider network 22 add_providernetwork -70 Can change provider network 22 change_providernetwork -71 Can delete provider network 22 delete_providernetwork -72 Can view provider network 22 view_providernetwork -73 Can add cable 23 add_cable -74 Can change cable 23 change_cable -75 Can delete cable 23 delete_cable -76 Can view cable 23 view_cable -77 Can add cable path 24 add_cablepath -78 Can change cable path 24 change_cablepath -79 Can delete cable path 24 delete_cablepath -80 Can view cable path 24 view_cablepath -81 Can add console port 25 add_consoleport -82 Can change console port 25 change_consoleport -83 Can delete console port 25 delete_consoleport -84 Can view console port 25 view_consoleport -85 Can add console port template 26 add_consoleporttemplate -86 Can change console port template 26 change_consoleporttemplate -87 Can delete console port template 26 delete_consoleporttemplate -88 Can view console port template 26 view_consoleporttemplate -89 Can add console server port 27 add_consoleserverport -90 Can change console server port 27 change_consoleserverport -91 Can delete console server port 27 delete_consoleserverport -92 Can view console server port 27 view_consoleserverport -93 Can add console server port template 28 add_consoleserverporttemplate -94 Can change console server port template 28 change_consoleserverporttemplate -95 Can delete console server port template 28 delete_consoleserverporttemplate -96 Can view console server port template 28 view_consoleserverporttemplate -97 Can add device 29 add_device -98 Can change device 29 change_device -99 Can delete device 29 delete_device -100 Can view device 29 view_device -101 Can add device bay 30 add_devicebay -102 Can change device bay 30 change_devicebay -103 Can delete device bay 30 delete_devicebay -104 Can view device bay 30 view_devicebay -105 Can add device bay template 31 add_devicebaytemplate -106 Can change device bay template 31 change_devicebaytemplate -107 Can delete device bay template 31 delete_devicebaytemplate -108 Can view device bay template 31 view_devicebaytemplate -109 Can add device role 32 add_devicerole -110 Can change device role 32 change_devicerole -111 Can delete device role 32 delete_devicerole -112 Can view device role 32 view_devicerole -113 Can add device type 33 add_devicetype -114 Can change device type 33 change_devicetype -115 Can delete device type 33 delete_devicetype -116 Can view device type 33 view_devicetype -117 Can add front port 34 add_frontport -118 Can change front port 34 change_frontport -119 Can delete front port 34 delete_frontport -120 Can view front port 34 view_frontport -121 Can add front port template 35 add_frontporttemplate -122 Can change front port template 35 change_frontporttemplate -123 Can delete front port template 35 delete_frontporttemplate -124 Can view front port template 35 view_frontporttemplate -125 Can add interface 36 add_interface -126 Can change interface 36 change_interface -127 Can delete interface 36 delete_interface -128 Can view interface 36 view_interface -129 Can add interface template 37 add_interfacetemplate -130 Can change interface template 37 change_interfacetemplate -131 Can delete interface template 37 delete_interfacetemplate -132 Can view interface template 37 view_interfacetemplate -133 Can add inventory item 38 add_inventoryitem -134 Can change inventory item 38 change_inventoryitem -135 Can delete inventory item 38 delete_inventoryitem -136 Can view inventory item 38 view_inventoryitem -137 Can add location 39 add_location -138 Can change location 39 change_location -139 Can delete location 39 delete_location -140 Can view location 39 view_location -141 Can add manufacturer 40 add_manufacturer -142 Can change manufacturer 40 change_manufacturer -143 Can delete manufacturer 40 delete_manufacturer -144 Can view manufacturer 40 view_manufacturer -145 Can add platform 41 add_platform -146 Can change platform 41 change_platform -147 Can delete platform 41 delete_platform -148 Can view platform 41 view_platform -149 Can add power feed 42 add_powerfeed -150 Can change power feed 42 change_powerfeed -151 Can delete power feed 42 delete_powerfeed -152 Can view power feed 42 view_powerfeed -153 Can add power outlet 43 add_poweroutlet -154 Can change power outlet 43 change_poweroutlet -155 Can delete power outlet 43 delete_poweroutlet -156 Can view power outlet 43 view_poweroutlet -157 Can add power outlet template 44 add_poweroutlettemplate -158 Can change power outlet template 44 change_poweroutlettemplate -159 Can delete power outlet template 44 delete_poweroutlettemplate -160 Can view power outlet template 44 view_poweroutlettemplate -161 Can add power panel 45 add_powerpanel -162 Can change power panel 45 change_powerpanel -163 Can delete power panel 45 delete_powerpanel -164 Can view power panel 45 view_powerpanel -165 Can add power port 46 add_powerport -166 Can change power port 46 change_powerport -167 Can delete power port 46 delete_powerport -168 Can view power port 46 view_powerport -169 Can add power port template 47 add_powerporttemplate -170 Can change power port template 47 change_powerporttemplate -171 Can delete power port template 47 delete_powerporttemplate -172 Can view power port template 47 view_powerporttemplate -173 Can add rack 48 add_rack -174 Can change rack 48 change_rack -175 Can delete rack 48 delete_rack -176 Can view rack 48 view_rack -177 Can add rack reservation 49 add_rackreservation -178 Can change rack reservation 49 change_rackreservation -179 Can delete rack reservation 49 delete_rackreservation -180 Can view rack reservation 49 view_rackreservation -181 Can add rack role 50 add_rackrole -182 Can change rack role 50 change_rackrole -183 Can delete rack role 50 delete_rackrole -184 Can view rack role 50 view_rackrole -185 Can add rear port 51 add_rearport -186 Can change rear port 51 change_rearport -187 Can delete rear port 51 delete_rearport -188 Can view rear port 51 view_rearport -189 Can add rear port template 52 add_rearporttemplate -190 Can change rear port template 52 change_rearporttemplate -191 Can delete rear port template 52 delete_rearporttemplate -192 Can view rear port template 52 view_rearporttemplate -193 Can add region 53 add_region -194 Can change region 53 change_region -195 Can delete region 53 delete_region -196 Can view region 53 view_region -197 Can add site 54 add_site -198 Can change site 54 change_site -199 Can delete site 54 delete_site -200 Can view site 54 view_site -201 Can add site group 55 add_sitegroup -202 Can change site group 55 change_sitegroup -203 Can delete site group 55 delete_sitegroup -204 Can view site group 55 view_sitegroup -205 Can add virtual chassis 56 add_virtualchassis -206 Can change virtual chassis 56 change_virtualchassis -207 Can delete virtual chassis 56 delete_virtualchassis -208 Can view virtual chassis 56 view_virtualchassis -209 Can add module type 57 add_moduletype -210 Can change module type 57 change_moduletype -211 Can delete module type 57 delete_moduletype -212 Can view module type 57 view_moduletype -213 Can add module bay 58 add_modulebay -214 Can change module bay 58 change_modulebay -215 Can delete module bay 58 delete_modulebay -216 Can view module bay 58 view_modulebay -217 Can add module 59 add_module -218 Can change module 59 change_module -219 Can delete module 59 delete_module -220 Can view module 59 view_module -221 Can add module bay template 60 add_modulebaytemplate -222 Can change module bay template 60 change_modulebaytemplate -223 Can delete module bay template 60 delete_modulebaytemplate -224 Can view module bay template 60 view_modulebaytemplate -225 Can add inventory item role 61 add_inventoryitemrole -226 Can change inventory item role 61 change_inventoryitemrole -227 Can delete inventory item role 61 delete_inventoryitemrole -228 Can view inventory item role 61 view_inventoryitemrole -229 Can add inventory item template 62 add_inventoryitemtemplate -230 Can change inventory item template 62 change_inventoryitemtemplate -231 Can delete inventory item template 62 delete_inventoryitemtemplate -232 Can view inventory item template 62 view_inventoryitemtemplate -233 Can add cable termination 63 add_cabletermination -234 Can change cable termination 63 change_cabletermination -235 Can delete cable termination 63 delete_cabletermination -236 Can view cable termination 63 view_cabletermination -237 Can add virtual device context 64 add_virtualdevicecontext -238 Can change virtual device context 64 change_virtualdevicecontext -239 Can delete virtual device context 64 delete_virtualdevicecontext -240 Can view virtual device context 64 view_virtualdevicecontext -241 Can add aggregate 65 add_aggregate -242 Can change aggregate 65 change_aggregate -243 Can delete aggregate 65 delete_aggregate -244 Can view aggregate 65 view_aggregate -245 Can add IP address 66 add_ipaddress -246 Can change IP address 66 change_ipaddress -247 Can delete IP address 66 delete_ipaddress -248 Can view IP address 66 view_ipaddress -249 Can add prefix 67 add_prefix -250 Can change prefix 67 change_prefix -251 Can delete prefix 67 delete_prefix -252 Can view prefix 67 view_prefix -253 Can add RIR 68 add_rir -254 Can change RIR 68 change_rir -255 Can delete RIR 68 delete_rir -256 Can view RIR 68 view_rir -257 Can add role 69 add_role -258 Can change role 69 change_role -259 Can delete role 69 delete_role -260 Can view role 69 view_role -261 Can add route target 70 add_routetarget -262 Can change route target 70 change_routetarget -263 Can delete route target 70 delete_routetarget -264 Can view route target 70 view_routetarget -265 Can add VRF 71 add_vrf -266 Can change VRF 71 change_vrf -267 Can delete VRF 71 delete_vrf -268 Can view VRF 71 view_vrf -269 Can add VLAN group 72 add_vlangroup -270 Can change VLAN group 72 change_vlangroup -271 Can delete VLAN group 72 delete_vlangroup -272 Can view VLAN group 72 view_vlangroup -273 Can add VLAN 73 add_vlan -274 Can change VLAN 73 change_vlan -275 Can delete VLAN 73 delete_vlan -276 Can view VLAN 73 view_vlan -277 Can add service 74 add_service -278 Can change service 74 change_service -279 Can delete service 74 delete_service -280 Can view service 74 view_service -281 Can add IP range 75 add_iprange -282 Can change IP range 75 change_iprange -283 Can delete IP range 75 delete_iprange -284 Can view IP range 75 view_iprange -285 Can add FHRP group 76 add_fhrpgroup -286 Can change FHRP group 76 change_fhrpgroup -287 Can delete FHRP group 76 delete_fhrpgroup -288 Can view FHRP group 76 view_fhrpgroup -289 Can add FHRP group assignment 77 add_fhrpgroupassignment -290 Can change FHRP group assignment 77 change_fhrpgroupassignment -291 Can delete FHRP group assignment 77 delete_fhrpgroupassignment -292 Can view FHRP group assignment 77 view_fhrpgroupassignment -293 Can add ASN 78 add_asn -294 Can change ASN 78 change_asn -295 Can delete ASN 78 delete_asn -296 Can view ASN 78 view_asn -297 Can add service template 79 add_servicetemplate -298 Can change service template 79 change_servicetemplate -299 Can delete service template 79 delete_servicetemplate -300 Can view service template 79 view_servicetemplate -301 Can add L2VPN 80 add_l2vpn -302 Can change L2VPN 80 change_l2vpn -303 Can delete L2VPN 80 delete_l2vpn -304 Can view L2VPN 80 view_l2vpn -305 Can add L2VPN termination 81 add_l2vpntermination -306 Can change L2VPN termination 81 change_l2vpntermination -307 Can delete L2VPN termination 81 delete_l2vpntermination -308 Can view L2VPN termination 81 view_l2vpntermination -309 Can add report 82 add_report -310 Can change report 82 change_report -311 Can delete report 82 delete_report -312 Can view report 82 view_report -313 Can add script 83 add_script -314 Can change script 83 change_script -315 Can delete script 83 delete_script -316 Can view script 83 view_script -317 Can add config context 84 add_configcontext -318 Can change config context 84 change_configcontext -319 Can delete config context 84 delete_configcontext -320 Can view config context 84 view_configcontext -321 Can add tag 85 add_tag -322 Can change tag 85 change_tag -323 Can delete tag 85 delete_tag -324 Can view tag 85 view_tag -325 Can add webhook 86 add_webhook -326 Can change webhook 86 change_webhook -327 Can delete webhook 86 delete_webhook -328 Can view webhook 86 view_webhook -329 Can add tagged item 87 add_taggeditem -330 Can change tagged item 87 change_taggeditem -331 Can delete tagged item 87 delete_taggeditem -332 Can view tagged item 87 view_taggeditem -333 Can add object change 88 add_objectchange -334 Can change object change 88 change_objectchange -335 Can delete object change 88 delete_objectchange -336 Can view object change 88 view_objectchange -337 Can add journal entry 89 add_journalentry -338 Can change journal entry 89 change_journalentry -339 Can delete journal entry 89 delete_journalentry -340 Can view journal entry 89 view_journalentry -341 Can add job result 90 add_jobresult -342 Can change job result 90 change_jobresult -343 Can delete job result 90 delete_jobresult -344 Can view job result 90 view_jobresult -345 Can add image attachment 91 add_imageattachment -346 Can change image attachment 91 change_imageattachment -347 Can delete image attachment 91 delete_imageattachment -348 Can view image attachment 91 view_imageattachment -349 Can add export template 92 add_exporttemplate -350 Can change export template 92 change_exporttemplate -351 Can delete export template 92 delete_exporttemplate -352 Can view export template 92 view_exporttemplate -353 Can add custom link 93 add_customlink -354 Can change custom link 93 change_customlink -355 Can delete custom link 93 delete_customlink -356 Can view custom link 93 view_customlink -357 Can add custom field 94 add_customfield -358 Can change custom field 94 change_customfield -359 Can delete custom field 94 delete_customfield -360 Can view custom field 94 view_customfield -361 Can add config revision 95 add_configrevision -362 Can change config revision 95 change_configrevision -363 Can delete config revision 95 delete_configrevision -364 Can view config revision 95 view_configrevision -365 Can add saved filter 96 add_savedfilter -366 Can change saved filter 96 change_savedfilter -367 Can delete saved filter 96 delete_savedfilter -368 Can view saved filter 96 view_savedfilter -369 Can add cached value 97 add_cachedvalue -370 Can change cached value 97 change_cachedvalue -371 Can delete cached value 97 delete_cachedvalue -372 Can view cached value 97 view_cachedvalue -373 Can add branch 98 add_branch -374 Can change branch 98 change_branch -375 Can delete branch 98 delete_branch -376 Can view branch 98 view_branch -377 Can add staged change 99 add_stagedchange -378 Can change staged change 99 change_stagedchange -379 Can delete staged change 99 delete_stagedchange -380 Can view staged change 99 view_stagedchange -381 Can add tenant group 100 add_tenantgroup -382 Can change tenant group 100 change_tenantgroup -383 Can delete tenant group 100 delete_tenantgroup -384 Can view tenant group 100 view_tenantgroup -385 Can add tenant 101 add_tenant -386 Can change tenant 101 change_tenant -387 Can delete tenant 101 delete_tenant -388 Can view tenant 101 view_tenant -389 Can add contact role 102 add_contactrole -390 Can change contact role 102 change_contactrole -391 Can delete contact role 102 delete_contactrole -392 Can view contact role 102 view_contactrole -393 Can add contact group 103 add_contactgroup -394 Can change contact group 103 change_contactgroup -395 Can delete contact group 103 delete_contactgroup -396 Can view contact group 103 view_contactgroup -397 Can add contact 104 add_contact -398 Can change contact 104 change_contact -399 Can delete contact 104 delete_contact -400 Can view contact 104 view_contact -401 Can add contact assignment 105 add_contactassignment -402 Can change contact assignment 105 change_contactassignment -403 Can delete contact assignment 105 delete_contactassignment -404 Can view contact assignment 105 view_contactassignment -405 Can add Group 106 add_admingroup -406 Can change Group 106 change_admingroup -407 Can delete Group 106 delete_admingroup -408 Can view Group 106 view_admingroup -409 Can add User 107 add_adminuser -410 Can change User 107 change_adminuser -411 Can delete User 107 delete_adminuser -412 Can view User 107 view_adminuser -413 Can add User Preferences 108 add_userconfig -414 Can change User Preferences 108 change_userconfig -415 Can delete User Preferences 108 delete_userconfig -416 Can view User Preferences 108 view_userconfig -417 Can add token 109 add_token -418 Can change token 109 change_token -419 Can delete token 109 delete_token -420 Can view token 109 view_token -421 Can add permission 110 add_objectpermission -422 Can change permission 110 change_objectpermission -423 Can delete permission 110 delete_objectpermission -424 Can view permission 110 view_objectpermission -425 Can add cluster 111 add_cluster -426 Can change cluster 111 change_cluster -427 Can delete cluster 111 delete_cluster -428 Can view cluster 111 view_cluster -429 Can add cluster group 112 add_clustergroup -430 Can change cluster group 112 change_clustergroup -431 Can delete cluster group 112 delete_clustergroup -432 Can view cluster group 112 view_clustergroup -433 Can add cluster type 113 add_clustertype -434 Can change cluster type 113 change_clustertype -435 Can delete cluster type 113 delete_clustertype -436 Can view cluster type 113 view_clustertype -437 Can add virtual machine 114 add_virtualmachine -438 Can change virtual machine 114 change_virtualmachine -439 Can delete virtual machine 114 delete_virtualmachine -440 Can view virtual machine 114 view_virtualmachine -441 Can add interface 115 add_vminterface -442 Can change interface 115 change_vminterface -443 Can delete interface 115 delete_vminterface -444 Can view interface 115 view_vminterface -445 Can add Wireless LAN Group 116 add_wirelesslangroup -446 Can change Wireless LAN Group 116 change_wirelesslangroup -447 Can delete Wireless LAN Group 116 delete_wirelesslangroup -448 Can view Wireless LAN Group 116 view_wirelesslangroup -449 Can add Wireless LAN 117 add_wirelesslan -450 Can change Wireless LAN 117 change_wirelesslan -451 Can delete Wireless LAN 117 delete_wirelesslan -452 Can view Wireless LAN 117 view_wirelesslan -453 Can add wireless link 118 add_wirelesslink -454 Can change wireless link 118 change_wirelesslink -455 Can delete wireless link 118 delete_wirelesslink -456 Can view wireless link 118 view_wirelesslink -457 Access admin page 119 view -458 Can add community 120 add_community -459 Can change community 120 change_community -460 Can delete community 120 delete_community -461 Can view community 120 view_community -462 Can add bgp session 121 add_bgpsession -463 Can change bgp session 121 change_bgpsession -464 Can delete bgp session 121 delete_bgpsession -465 Can view bgp session 121 view_bgpsession -466 Can add bgp peer group 122 add_bgppeergroup -467 Can change bgp peer group 122 change_bgppeergroup -468 Can delete bgp peer group 122 delete_bgppeergroup -469 Can view bgp peer group 122 view_bgppeergroup -470 Can add routing policy 123 add_routingpolicy -471 Can change routing policy 123 change_routingpolicy -472 Can delete routing policy 123 delete_routingpolicy -473 Can view routing policy 123 view_routingpolicy -474 Can add routing policy rule 124 add_routingpolicyrule -475 Can change routing policy rule 124 change_routingpolicyrule -476 Can delete routing policy rule 124 delete_routingpolicyrule -477 Can view routing policy rule 124 view_routingpolicyrule -478 Can add prefix list 125 add_prefixlist -479 Can change prefix list 125 change_prefixlist -480 Can delete prefix list 125 delete_prefixlist -481 Can view prefix list 125 view_prefixlist -482 Can add prefix list rule 126 add_prefixlistrule -483 Can change prefix list rule 126 change_prefixlistrule -484 Can delete prefix list rule 126 delete_prefixlistrule -485 Can view prefix list rule 126 view_prefixlistrule -486 Can add name server 1 add_nameserver -487 Can change name server 1 change_nameserver -488 Can delete name server 1 delete_nameserver -489 Can view name server 1 view_nameserver -490 Can add view 4 add_view -491 Can change view 4 change_view -492 Can delete view 4 delete_view -493 Can view view 4 view_view -494 Can add zone 2 add_zone -495 Can change zone 2 change_zone -496 Can delete zone 2 delete_zone -497 Can view zone 2 view_zone -498 Can add record 3 add_record -499 Can change record 3 change_record -500 Can delete record 3 delete_record -501 Can view record 3 view_record -\. - - --- --- Data for Name: auth_user; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.auth_user (id, password, last_login, is_superuser, username, first_name, last_name, email, is_staff, is_active, date_joined) FROM stdin; -1 pbkdf2_sha256$390000$GVLsXRelYZskHCHzV10pTZ$zC4POcfTWoCmHXQa0f881u795CUO2qkv/mzCnpfvW5M= \N t admin netbox@osism.local t t 2023-06-23 20:10:24.50758+00 -2 pbkdf2_sha256$390000$CqKcGRPJxI3yoiifBMmKjA$hB8Wuf8paVhz0BXFEuQFU0f63NM1WAS/Ro4oAptIs/k= \N f dragon f t 2023-06-23 20:10:33.272174+00 -\. - - --- --- Data for Name: auth_user_groups; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.auth_user_groups (id, user_id, group_id) FROM stdin; -1 2 2 -\. - - --- --- Data for Name: auth_user_user_permissions; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.auth_user_user_permissions (id, user_id, permission_id) FROM stdin; -\. - - --- --- Data for Name: circuits_circuit; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.circuits_circuit (created, last_updated, custom_field_data, id, cid, status, install_date, commit_rate, description, comments, provider_id, tenant_id, termination_a_id, termination_z_id, type_id, termination_date) FROM stdin; -\. - - --- --- Data for Name: circuits_circuittermination; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.circuits_circuittermination (created, last_updated, id, mark_connected, term_side, port_speed, upstream_speed, xconnect_id, pp_info, description, cable_id, circuit_id, provider_network_id, site_id, custom_field_data, cable_end) FROM stdin; -\. - - --- --- Data for Name: circuits_circuittype; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.circuits_circuittype (created, last_updated, custom_field_data, id, name, slug, description) FROM stdin; -\. - - --- --- Data for Name: circuits_provider; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.circuits_provider (created, last_updated, custom_field_data, id, name, slug, account, comments, description) FROM stdin; -\. - - --- --- Data for Name: circuits_provider_asns; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.circuits_provider_asns (id, provider_id, asn_id) FROM stdin; -\. - - --- --- Data for Name: circuits_providernetwork; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.circuits_providernetwork (created, last_updated, custom_field_data, id, name, description, comments, provider_id, service_id) FROM stdin; -\. - - --- --- Data for Name: dcim_cable; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_cable (created, last_updated, custom_field_data, id, type, status, label, color, length, length_unit, _abs_length, tenant_id, comments, description) FROM stdin; -\. - - --- --- Data for Name: dcim_cablepath; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_cablepath (id, _nodes, is_active, is_split, path, is_complete) FROM stdin; -\. - - --- --- Data for Name: dcim_cabletermination; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_cabletermination (id, cable_end, termination_id, cable_id, termination_type_id, _device_id, _rack_id, _location_id, _site_id) FROM stdin; -\. - - --- --- Data for Name: dcim_consoleport; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_consoleport (created, last_updated, custom_field_data, id, name, _name, label, description, mark_connected, type, speed, _path_id, cable_id, device_id, module_id, cable_end) FROM stdin; -\. - - --- --- Data for Name: dcim_consoleporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_consoleporttemplate (created, last_updated, id, name, _name, label, description, type, device_type_id, module_type_id) FROM stdin; -\. - - --- --- Data for Name: dcim_consoleserverport; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_consoleserverport (created, last_updated, custom_field_data, id, name, _name, label, description, mark_connected, type, speed, _path_id, cable_id, device_id, module_id, cable_end) FROM stdin; -\. - - --- --- Data for Name: dcim_consoleserverporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_consoleserverporttemplate (created, last_updated, id, name, _name, label, description, type, device_type_id, module_type_id) FROM stdin; -\. - - --- --- Data for Name: dcim_device; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_device (created, last_updated, custom_field_data, id, local_context_data, name, _name, serial, asset_tag, "position", face, status, vc_position, vc_priority, comments, cluster_id, device_role_id, device_type_id, location_id, platform_id, primary_ip4_id, primary_ip6_id, rack_id, site_id, tenant_id, virtual_chassis_id, airflow, description) FROM stdin; -\. - - --- --- Data for Name: dcim_devicebay; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_devicebay (created, last_updated, custom_field_data, id, name, _name, label, description, device_id, installed_device_id) FROM stdin; -\. - - --- --- Data for Name: dcim_devicebaytemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_devicebaytemplate (created, last_updated, id, name, _name, label, description, device_type_id) FROM stdin; -\. - - --- --- Data for Name: dcim_devicerole; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_devicerole (created, last_updated, custom_field_data, id, name, slug, color, vm_role, description) FROM stdin; -2023-06-23 20:10:45.559949+00 2023-06-23 20:10:45.560001+00 {} 1 Compute compute 2196f3 t -2023-06-23 20:10:45.823854+00 2023-06-23 20:10:45.823904+00 {} 2 Storage storage 2196f3 t -2023-06-23 20:10:45.88884+00 2023-06-23 20:10:45.888891+00 {} 3 Control control 4caf50 t -2023-06-23 20:10:45.904182+00 2023-06-23 20:10:45.904225+00 {} 4 Manager manager 4caf50 t -2023-06-23 20:10:45.920288+00 2023-06-23 20:10:45.920416+00 {} 5 Management management 4caf50 t -2023-06-23 20:10:45.962714+00 2023-06-23 20:10:45.96276+00 {} 6 Resource resource 2196f3 t -2023-06-23 20:10:46.024608+00 2023-06-23 20:10:46.024656+00 {} 7 Network network ff9800 t -2023-06-23 20:10:46.114643+00 2023-06-23 20:10:46.114695+00 {} 8 Spine spine ffeb3b t -2023-06-23 20:10:46.134018+00 2023-06-23 20:10:46.134065+00 {} 9 Leaf leaf ffeb3b t -2023-06-23 20:10:46.151585+00 2023-06-23 20:10:46.151629+00 {} 10 Access access 9e9e9e t -2023-06-23 20:10:46.187054+00 2023-06-23 20:10:46.187099+00 {} 11 Transfer transfer 9e9e9e t -2023-06-23 20:10:46.241633+00 2023-06-23 20:10:46.241682+00 {} 12 External external 9e9e9e t -2023-06-23 20:10:46.557298+00 2023-06-23 20:10:46.557352+00 {} 13 Switch switch ffeb3b t -2023-06-23 20:10:46.622293+00 2023-06-23 20:10:46.622342+00 {} 14 Router router ffeb3b t -2023-06-23 20:10:46.724306+00 2023-06-23 20:10:46.724401+00 {} 15 Firewall firewall ffeb3b t -2023-06-23 20:10:46.80028+00 2023-06-23 20:10:46.800371+00 {} 16 Loadbalancer loadbalancer ffeb3b t -2023-06-23 20:10:46.815861+00 2023-06-23 20:10:46.815905+00 {} 17 Mixed mixed 9e9e9e t -2023-06-23 20:10:46.88546+00 2023-06-23 20:10:46.88551+00 {} 18 Generic generic 9e9e9e t -2023-06-23 20:10:47.020083+00 2023-06-23 20:10:47.020132+00 {} 19 New new 9e9e9e t -2023-06-23 20:10:47.049151+00 2023-06-23 20:10:47.049195+00 {} 20 Other other 9e9e9e t -2023-06-23 20:10:47.062924+00 2023-06-23 20:10:47.062967+00 {} 21 Power power 9e9e9e t -2023-06-23 20:10:47.127261+00 2023-06-23 20:10:47.127357+00 {} 22 Housing housing 9e9e9e t -\. - - --- --- Data for Name: dcim_devicetype; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_devicetype (created, last_updated, custom_field_data, id, model, slug, part_number, u_height, is_full_depth, subdevice_role, front_image, rear_image, comments, manufacturer_id, airflow, weight, weight_unit, _abs_weight, description) FROM stdin; -2023-06-23 20:10:47.195935+00 2023-06-23 20:10:47.195994+00 {} 1 Default device type default-device-type 1.0 t 1 \N \N -\. - - --- --- Data for Name: dcim_frontport; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_frontport (created, last_updated, custom_field_data, id, name, _name, label, description, mark_connected, type, rear_port_position, cable_id, device_id, rear_port_id, color, module_id, cable_end) FROM stdin; -\. - - --- --- Data for Name: dcim_frontporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_frontporttemplate (created, last_updated, id, name, _name, label, description, type, rear_port_position, device_type_id, rear_port_id, color, module_type_id) FROM stdin; -\. - - --- --- Data for Name: dcim_interface; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_interface (created, last_updated, custom_field_data, id, name, label, description, mark_connected, enabled, mac_address, mtu, mode, _name, type, mgmt_only, _path_id, cable_id, device_id, lag_id, parent_id, untagged_vlan_id, wwn, bridge_id, rf_role, rf_channel, rf_channel_frequency, rf_channel_width, tx_power, wireless_link_id, module_id, vrf_id, duplex, speed, poe_mode, poe_type, cable_end) FROM stdin; -\. - - --- --- Data for Name: dcim_interface_tagged_vlans; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_interface_tagged_vlans (id, interface_id, vlan_id) FROM stdin; -\. - - --- --- Data for Name: dcim_interface_vdcs; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_interface_vdcs (id, interface_id, virtualdevicecontext_id) FROM stdin; -\. - - --- --- Data for Name: dcim_interface_wireless_lans; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_interface_wireless_lans (id, interface_id, wirelesslan_id) FROM stdin; -\. - - --- --- Data for Name: dcim_interfacetemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_interfacetemplate (created, last_updated, id, name, label, description, _name, type, mgmt_only, device_type_id, module_type_id, poe_mode, poe_type) FROM stdin; -\. - - --- --- Data for Name: dcim_inventoryitem; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_inventoryitem (created, last_updated, custom_field_data, id, name, _name, label, description, part_id, serial, asset_tag, discovered, lft, rght, tree_id, level, device_id, manufacturer_id, parent_id, role_id, component_id, component_type_id) FROM stdin; -\. - - --- --- Data for Name: dcim_inventoryitemrole; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_inventoryitemrole (created, last_updated, custom_field_data, id, name, slug, color, description) FROM stdin; -\. - - --- --- Data for Name: dcim_inventoryitemtemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_inventoryitemtemplate (created, last_updated, id, name, _name, label, description, component_id, part_id, lft, rght, tree_id, level, component_type_id, device_type_id, manufacturer_id, parent_id, role_id) FROM stdin; -\. - - --- --- Data for Name: dcim_location; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_location (created, last_updated, custom_field_data, id, name, slug, description, lft, rght, tree_id, level, parent_id, site_id, tenant_id, status) FROM stdin; -\. - - --- --- Data for Name: dcim_manufacturer; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_manufacturer (created, last_updated, custom_field_data, id, name, slug, description) FROM stdin; -2023-06-23 20:10:45.443628+00 2023-06-23 20:10:45.443683+00 {} 1 Default manufacturer default-manufacturer Default manufacturer for new devices -\. - - --- --- Data for Name: dcim_module; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_module (created, last_updated, custom_field_data, id, local_context_data, serial, asset_tag, comments, device_id, module_bay_id, module_type_id, description, status) FROM stdin; -\. - - --- --- Data for Name: dcim_modulebay; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_modulebay (created, last_updated, custom_field_data, id, name, _name, label, "position", description, device_id) FROM stdin; -\. - - --- --- Data for Name: dcim_modulebaytemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_modulebaytemplate (created, last_updated, id, name, _name, label, "position", description, device_type_id) FROM stdin; -\. - - --- --- Data for Name: dcim_moduletype; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_moduletype (created, last_updated, custom_field_data, id, model, part_number, comments, manufacturer_id, weight, weight_unit, _abs_weight, description) FROM stdin; -\. - - --- --- Data for Name: dcim_platform; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_platform (created, last_updated, custom_field_data, id, name, slug, napalm_driver, napalm_args, description, manufacturer_id) FROM stdin; -\. - - --- --- Data for Name: dcim_powerfeed; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_powerfeed (created, last_updated, custom_field_data, id, mark_connected, name, status, type, supply, phase, voltage, amperage, max_utilization, available_power, comments, _path_id, cable_id, power_panel_id, rack_id, cable_end, description) FROM stdin; -\. - - --- --- Data for Name: dcim_poweroutlet; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_poweroutlet (created, last_updated, custom_field_data, id, name, _name, label, description, mark_connected, type, feed_leg, _path_id, cable_id, device_id, power_port_id, module_id, cable_end) FROM stdin; -\. - - --- --- Data for Name: dcim_poweroutlettemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_poweroutlettemplate (created, last_updated, id, name, _name, label, description, type, feed_leg, device_type_id, power_port_id, module_type_id) FROM stdin; -\. - - --- --- Data for Name: dcim_powerpanel; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_powerpanel (created, last_updated, custom_field_data, id, name, location_id, site_id, comments, description) FROM stdin; -\. - - --- --- Data for Name: dcim_powerport; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_powerport (created, last_updated, custom_field_data, id, name, _name, label, description, mark_connected, type, maximum_draw, allocated_draw, _path_id, cable_id, device_id, module_id, cable_end) FROM stdin; -\. - - --- --- Data for Name: dcim_powerporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_powerporttemplate (created, last_updated, id, name, _name, label, description, type, maximum_draw, allocated_draw, device_type_id, module_type_id) FROM stdin; -\. - - --- --- Data for Name: dcim_rack; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_rack (created, last_updated, custom_field_data, id, name, _name, facility_id, status, serial, asset_tag, type, width, u_height, desc_units, outer_width, outer_depth, outer_unit, comments, location_id, role_id, site_id, tenant_id, weight, max_weight, weight_unit, _abs_weight, _abs_max_weight, mounting_depth, description) FROM stdin; -\. - - --- --- Data for Name: dcim_rackreservation; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_rackreservation (created, last_updated, custom_field_data, id, units, description, rack_id, tenant_id, user_id, comments) FROM stdin; -\. - - --- --- Data for Name: dcim_rackrole; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_rackrole (created, last_updated, custom_field_data, id, name, slug, color, description) FROM stdin; -\. - - --- --- Data for Name: dcim_rearport; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_rearport (created, last_updated, custom_field_data, id, name, _name, label, description, mark_connected, type, positions, cable_id, device_id, color, module_id, cable_end) FROM stdin; -\. - - --- --- Data for Name: dcim_rearporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_rearporttemplate (created, last_updated, id, name, _name, label, description, type, positions, device_type_id, color, module_type_id) FROM stdin; -\. - - --- --- Data for Name: dcim_region; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_region (created, last_updated, custom_field_data, id, name, slug, description, lft, rght, tree_id, level, parent_id) FROM stdin; -\. - - --- --- Data for Name: dcim_site; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_site (created, last_updated, custom_field_data, id, name, _name, slug, status, facility, time_zone, description, physical_address, shipping_address, latitude, longitude, comments, group_id, region_id, tenant_id) FROM stdin; -2023-06-23 20:10:45.347255+00 2023-06-23 20:10:45.347373+00 {} 1 Default site Default site default-site active Default site for new devices \N \N \N \N \N -\. - - --- --- Data for Name: dcim_site_asns; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_site_asns (id, site_id, asn_id) FROM stdin; -\. - - --- --- Data for Name: dcim_sitegroup; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_sitegroup (created, last_updated, custom_field_data, id, name, slug, description, lft, rght, tree_id, level, parent_id) FROM stdin; -\. - - --- --- Data for Name: dcim_virtualchassis; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_virtualchassis (created, last_updated, custom_field_data, id, name, domain, master_id, comments, description) FROM stdin; -\. - - --- --- Data for Name: dcim_virtualdevicecontext; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_virtualdevicecontext (id, created, last_updated, custom_field_data, description, name, status, identifier, comments, device_id, primary_ip4_id, primary_ip6_id, tenant_id) FROM stdin; -\. - - --- --- Data for Name: django_admin_log; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.django_admin_log (id, action_time, object_id, object_repr, action_flag, change_message, content_type_id, user_id) FROM stdin; -\. - - --- --- Data for Name: django_content_type; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.django_content_type (id, app_label, model) FROM stdin; -1 netbox_dns nameserver -2 netbox_dns zone -3 netbox_dns record -4 netbox_dns view -5 admin logentry -6 auth permission -7 auth group -8 auth user -9 contenttypes contenttype -10 sessions session -11 social_django association -12 social_django code -13 social_django nonce -14 social_django usersocialauth -15 social_django partial -16 taggit tag -17 taggit taggeditem -18 circuits circuit -19 circuits circuittermination -20 circuits circuittype -21 circuits provider -22 circuits providernetwork -23 dcim cable -24 dcim cablepath -25 dcim consoleport -26 dcim consoleporttemplate -27 dcim consoleserverport -28 dcim consoleserverporttemplate -29 dcim device -30 dcim devicebay -31 dcim devicebaytemplate -32 dcim devicerole -33 dcim devicetype -34 dcim frontport -35 dcim frontporttemplate -36 dcim interface -37 dcim interfacetemplate -38 dcim inventoryitem -39 dcim location -40 dcim manufacturer -41 dcim platform -42 dcim powerfeed -43 dcim poweroutlet -44 dcim poweroutlettemplate -45 dcim powerpanel -46 dcim powerport -47 dcim powerporttemplate -48 dcim rack -49 dcim rackreservation -50 dcim rackrole -51 dcim rearport -52 dcim rearporttemplate -53 dcim region -54 dcim site -55 dcim sitegroup -56 dcim virtualchassis -57 dcim moduletype -58 dcim modulebay -59 dcim module -60 dcim modulebaytemplate -61 dcim inventoryitemrole -62 dcim inventoryitemtemplate -63 dcim cabletermination -64 dcim virtualdevicecontext -65 ipam aggregate -66 ipam ipaddress -67 ipam prefix -68 ipam rir -69 ipam role -70 ipam routetarget -71 ipam vrf -72 ipam vlangroup -73 ipam vlan -74 ipam service -75 ipam iprange -76 ipam fhrpgroup -77 ipam fhrpgroupassignment -78 ipam asn -79 ipam servicetemplate -80 ipam l2vpn -81 ipam l2vpntermination -82 extras report -83 extras script -84 extras configcontext -85 extras tag -86 extras webhook -87 extras taggeditem -88 extras objectchange -89 extras journalentry -90 extras jobresult -91 extras imageattachment -92 extras exporttemplate -93 extras customlink -94 extras customfield -95 extras configrevision -96 extras savedfilter -97 extras cachedvalue -98 extras branch -99 extras stagedchange -100 tenancy tenantgroup -101 tenancy tenant -102 tenancy contactrole -103 tenancy contactgroup -104 tenancy contact -105 tenancy contactassignment -106 users admingroup -107 users adminuser -108 users userconfig -109 users token -110 users objectpermission -111 virtualization cluster -112 virtualization clustergroup -113 virtualization clustertype -114 virtualization virtualmachine -115 virtualization vminterface -116 wireless wirelesslangroup -117 wireless wirelesslan -118 wireless wirelesslink -119 django_rq queue -120 netbox_bgp community -121 netbox_bgp bgpsession -122 netbox_bgp bgppeergroup -123 netbox_bgp routingpolicy -124 netbox_bgp routingpolicyrule -125 netbox_bgp prefixlist -126 netbox_bgp prefixlistrule -\. - - --- --- Data for Name: django_migrations; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.django_migrations (id, app, name, applied) FROM stdin; -1 contenttypes 0001_initial 2023-06-23 20:05:26.363449+00 -2 auth 0001_initial 2023-06-23 20:05:27.396438+00 -3 admin 0001_initial 2023-06-23 20:05:27.700431+00 -4 admin 0002_logentry_remove_auto_add 2023-06-23 20:05:27.729395+00 -5 admin 0003_logentry_add_action_flag_choices 2023-06-23 20:05:27.758561+00 -6 contenttypes 0002_remove_content_type_name 2023-06-23 20:05:27.818282+00 -7 auth 0002_alter_permission_name_max_length 2023-06-23 20:05:27.898114+00 -8 auth 0003_alter_user_email_max_length 2023-06-23 20:05:27.928962+00 -9 auth 0004_alter_user_username_opts 2023-06-23 20:05:27.960838+00 -10 auth 0005_alter_user_last_login_null 2023-06-23 20:05:27.990252+00 -11 auth 0006_require_contenttypes_0002 2023-06-23 20:05:28.035246+00 -12 auth 0007_alter_validators_add_error_messages 2023-06-23 20:05:28.080832+00 -13 auth 0008_alter_user_username_max_length 2023-06-23 20:05:28.185371+00 -14 auth 0009_alter_user_last_name_max_length 2023-06-23 20:05:28.230918+00 -15 auth 0010_alter_group_name_max_length 2023-06-23 20:05:28.267034+00 -16 auth 0011_update_proxy_permissions 2023-06-23 20:05:28.298659+00 -17 auth 0012_alter_user_first_name_max_length 2023-06-23 20:05:28.334642+00 -18 extras 0001_initial 2023-06-23 20:05:30.427951+00 -19 tenancy 0001_initial 2023-06-23 20:05:30.931534+00 -20 tenancy 0002_tenant_group_optional 2023-06-23 20:05:30.941715+00 -21 tenancy 0003_unicode_literals 2023-06-23 20:05:30.951+00 -22 tenancy 0004_tags 2023-06-23 20:05:30.960234+00 -23 tenancy 0005_change_logging 2023-06-23 20:05:30.969246+00 -24 tenancy 0006_custom_tag_models 2023-06-23 20:05:30.980083+00 -25 tenancy 0007_nested_tenantgroups 2023-06-23 20:05:30.989196+00 -26 tenancy 0008_nested_tenantgroups_rebuild 2023-06-23 20:05:30.998445+00 -27 tenancy 0009_standardize_description 2023-06-23 20:05:31.010572+00 -28 tenancy 0010_custom_field_data 2023-06-23 20:05:31.019797+00 -29 tenancy 0011_standardize_name_length 2023-06-23 20:05:31.065356+00 -30 tenancy 0012_standardize_models 2023-06-23 20:05:31.099877+00 -31 tenancy 0002_tenant_ordering 2023-06-23 20:05:31.142938+00 -32 dcim 0001_initial 2023-06-23 20:05:35.625032+00 -33 dcim 0002_auto_20160622_1821 2023-06-23 20:05:40.33461+00 -34 ipam 0001_initial 2023-06-23 20:05:42.857199+00 -35 virtualization 0001_virtualization 2023-06-23 20:05:45.49358+00 -36 virtualization 0002_virtualmachine_add_status 2023-06-23 20:05:45.504826+00 -37 virtualization 0003_cluster_add_site 2023-06-23 20:05:45.514979+00 -38 virtualization 0004_virtualmachine_add_role 2023-06-23 20:05:45.524379+00 -39 virtualization 0005_django2 2023-06-23 20:05:45.534347+00 -40 virtualization 0006_tags 2023-06-23 20:05:45.613091+00 -41 virtualization 0007_change_logging 2023-06-23 20:05:45.659244+00 -42 virtualization 0008_virtualmachine_local_context_data 2023-06-23 20:05:45.669594+00 -43 virtualization 0009_custom_tag_models 2023-06-23 20:05:45.679587+00 -44 virtualization 0010_cluster_add_tenant 2023-06-23 20:05:45.689693+00 -45 virtualization 0011_3569_virtualmachine_fields 2023-06-23 20:05:45.698998+00 -46 virtualization 0012_vm_name_nonunique 2023-06-23 20:05:45.709528+00 -47 virtualization 0013_deterministic_ordering 2023-06-23 20:05:45.747581+00 -48 virtualization 0014_standardize_description 2023-06-23 20:05:45.795219+00 -49 virtualization 0015_vminterface 2023-06-23 20:05:45.8049+00 -50 virtualization 0016_replicate_interfaces 2023-06-23 20:05:45.814568+00 -51 virtualization 0017_update_jsonfield 2023-06-23 20:05:45.825253+00 -52 virtualization 0018_custom_field_data 2023-06-23 20:05:45.834793+00 -53 virtualization 0019_standardize_name_length 2023-06-23 20:05:45.844841+00 -54 virtualization 0020_standardize_models 2023-06-23 20:05:45.853932+00 -55 virtualization 0021_virtualmachine_vcpus_decimal 2023-06-23 20:05:45.863531+00 -56 virtualization 0022_vminterface_parent 2023-06-23 20:05:45.873243+00 -57 extras 0002_custom_fields 2023-06-23 20:05:50.923438+00 -58 extras 0003_exporttemplate_add_description 2023-06-23 20:05:50.933353+00 -59 extras 0004_topologymap_change_comma_to_semicolon 2023-06-23 20:05:50.943173+00 -60 extras 0005_useraction_add_bulk_create 2023-06-23 20:05:50.953116+00 -61 extras 0006_add_imageattachments 2023-06-23 20:05:50.963692+00 -62 extras 0007_unicode_literals 2023-06-23 20:05:51.035984+00 -63 extras 0008_reports 2023-06-23 20:05:51.051431+00 -64 extras 0009_topologymap_type 2023-06-23 20:05:51.061039+00 -65 extras 0010_customfield_filter_logic 2023-06-23 20:05:51.071026+00 -66 extras 0011_django2 2023-06-23 20:05:51.081064+00 -67 extras 0012_webhooks 2023-06-23 20:05:51.091101+00 -68 extras 0013_objectchange 2023-06-23 20:05:51.111547+00 -69 extras 0014_configcontexts 2023-06-23 20:05:51.12196+00 -70 extras 0015_remove_useraction 2023-06-23 20:05:51.131971+00 -71 extras 0016_exporttemplate_add_cable 2023-06-23 20:05:51.1422+00 -72 extras 0017_exporttemplate_mime_type_length 2023-06-23 20:05:51.158453+00 -73 extras 0018_exporttemplate_add_jinja2 2023-06-23 20:05:51.167818+00 -74 extras 0019_tag_taggeditem 2023-06-23 20:05:51.178002+00 -75 extras 0020_tag_data 2023-06-23 20:05:51.213328+00 -76 extras 0021_add_color_comments_changelog_to_tag 2023-06-23 20:05:51.332188+00 -77 extras 0022_custom_links 2023-06-23 20:05:51.34172+00 -78 extras 0023_fix_tag_sequences 2023-06-23 20:05:51.350695+00 -79 extras 0024_scripts 2023-06-23 20:05:51.36018+00 -80 extras 0025_objectchange_time_index 2023-06-23 20:05:51.37005+00 -81 extras 0026_webhook_ca_file_path 2023-06-23 20:05:51.379819+00 -82 extras 0027_webhook_additional_headers 2023-06-23 20:05:51.389978+00 -83 extras 0028_remove_topology_maps 2023-06-23 20:05:51.399896+00 -84 extras 0029_3569_customfield_fields 2023-06-23 20:05:51.424142+00 -85 extras 0030_3569_objectchange_fields 2023-06-23 20:05:51.433499+00 -86 extras 0031_3569_exporttemplate_fields 2023-06-23 20:05:51.479212+00 -87 extras 0032_3569_webhook_fields 2023-06-23 20:05:51.489738+00 -88 extras 0033_graph_type_template_language 2023-06-23 20:05:51.564622+00 -89 extras 0034_configcontext_tags 2023-06-23 20:05:51.594103+00 -90 extras 0035_deterministic_ordering 2023-06-23 20:05:51.604055+00 -91 extras 0036_contenttype_filters_to_q_objects 2023-06-23 20:05:51.613407+00 -92 extras 0037_configcontexts_clusters 2023-06-23 20:05:51.622711+00 -93 extras 0038_webhook_template_support 2023-06-23 20:05:51.6321+00 -94 extras 0039_update_features_content_types 2023-06-23 20:05:51.650227+00 -95 extras 0040_standardize_description 2023-06-23 20:05:51.662368+00 -96 extras 0041_tag_description 2023-06-23 20:05:51.672933+00 -97 extras 0042_customfield_manager 2023-06-23 20:05:51.68205+00 -98 extras 0043_report 2023-06-23 20:05:51.691098+00 -99 extras 0044_jobresult 2023-06-23 20:05:51.70076+00 -100 extras 0045_configcontext_changelog 2023-06-23 20:05:51.711536+00 -101 extras 0046_update_jsonfield 2023-06-23 20:05:51.722858+00 -102 extras 0047_tag_ordering 2023-06-23 20:05:51.752576+00 -103 extras 0048_exporttemplate_remove_template_language 2023-06-23 20:05:51.763356+00 -104 extras 0049_remove_graph 2023-06-23 20:05:51.805384+00 -105 extras 0050_customfield_changes 2023-06-23 20:05:51.815731+00 -106 extras 0051_migrate_customfields 2023-06-23 20:05:51.914857+00 -107 extras 0052_customfield_cleanup 2023-06-23 20:05:51.924912+00 -108 extras 0053_rename_webhook_obj_type 2023-06-23 20:05:51.934566+00 -109 extras 0054_standardize_models 2023-06-23 20:05:51.969405+00 -110 extras 0055_objectchange_data 2023-06-23 20:05:51.98797+00 -111 extras 0056_extend_configcontext 2023-06-23 20:05:51.99794+00 -112 extras 0057_customlink_rename_fields 2023-06-23 20:05:52.008114+00 -113 extras 0058_journalentry 2023-06-23 20:05:52.018006+00 -114 extras 0059_exporttemplate_as_attachment 2023-06-23 20:05:52.046953+00 -115 extras 0060_customlink_button_class 2023-06-23 20:05:52.120979+00 -116 extras 0061_extras_change_logging 2023-06-23 20:05:52.368517+00 -117 extras 0062_clear_secrets_changelog 2023-06-23 20:05:52.781092+00 -118 tenancy 0003_contacts 2023-06-23 20:05:54.630236+00 -119 tenancy 0004_extend_tag_support 2023-06-23 20:05:54.91072+00 -120 dcim 0003_auto_20160628_1721 2023-06-23 20:06:07.989952+00 -121 dcim 0004_auto_20160701_2049 2023-06-23 20:06:07.998433+00 -122 dcim 0005_auto_20160706_1722 2023-06-23 20:06:08.033999+00 -123 dcim 0006_add_device_primary_ip4_ip6 2023-06-23 20:06:08.055918+00 -124 dcim 0007_device_copy_primary_ip 2023-06-23 20:06:08.07598+00 -125 dcim 0008_device_remove_primary_ip 2023-06-23 20:06:08.085599+00 -126 dcim 0009_site_32bit_asn_support 2023-06-23 20:06:08.129065+00 -127 dcim 0010_devicebay_installed_device_set_null 2023-06-23 20:06:08.145991+00 -128 dcim 0011_devicetype_part_number 2023-06-23 20:06:08.185688+00 -129 dcim 0012_site_rack_device_add_tenant 2023-06-23 20:06:08.201995+00 -130 dcim 0013_add_interface_form_factors 2023-06-23 20:06:08.249954+00 -131 dcim 0014_rack_add_type_width 2023-06-23 20:06:08.260783+00 -132 dcim 0015_rack_add_u_height_validator 2023-06-23 20:06:08.269766+00 -133 dcim 0016_module_add_manufacturer 2023-06-23 20:06:08.303601+00 -134 dcim 0017_rack_add_role 2023-06-23 20:06:08.328486+00 -135 dcim 0018_device_add_asset_tag 2023-06-23 20:06:08.395735+00 -136 dcim 0019_new_iface_form_factors 2023-06-23 20:06:08.405813+00 -137 dcim 0020_rack_desc_units 2023-06-23 20:06:08.416442+00 -138 dcim 0021_add_ff_flexstack 2023-06-23 20:06:08.447207+00 -139 dcim 0022_color_names_to_rgb 2023-06-23 20:06:08.45751+00 -140 dcim 0023_devicetype_comments 2023-06-23 20:06:08.48401+00 -141 dcim 0024_site_add_contact_fields 2023-06-23 20:06:08.494398+00 -142 dcim 0025_devicetype_add_interface_ordering 2023-06-23 20:06:08.521087+00 -143 dcim 0026_add_rack_reservations 2023-06-23 20:06:08.530805+00 -144 dcim 0027_device_add_site 2023-06-23 20:06:08.554099+00 -145 dcim 0028_device_copy_rack_to_site 2023-06-23 20:06:08.564391+00 -146 dcim 0029_allow_rackless_devices 2023-06-23 20:06:08.572642+00 -147 dcim 0030_interface_add_lag 2023-06-23 20:06:08.623968+00 -148 dcim 0031_regions 2023-06-23 20:06:08.634501+00 -149 dcim 0032_device_increase_name_length 2023-06-23 20:06:08.651414+00 -150 dcim 0033_rackreservation_rack_editable 2023-06-23 20:06:08.661067+00 -151 dcim 0034_rename_module_to_inventoryitem 2023-06-23 20:06:08.683395+00 -152 dcim 0035_device_expand_status_choices 2023-06-23 20:06:08.761739+00 -153 dcim 0036_add_ff_juniper_vcp 2023-06-23 20:06:08.820678+00 -154 dcim 0037_unicode_literals 2023-06-23 20:06:08.831485+00 -155 dcim 0038_wireless_interfaces 2023-06-23 20:06:08.840992+00 -156 dcim 0039_interface_add_enabled_mtu 2023-06-23 20:06:08.852065+00 -157 dcim 0040_inventoryitem_add_asset_tag_description 2023-06-23 20:06:08.862447+00 -158 dcim 0041_napalm_integration 2023-06-23 20:06:08.873589+00 -159 dcim 0042_interface_ff_10ge_cx4 2023-06-23 20:06:08.883866+00 -160 dcim 0043_device_component_name_lengths 2023-06-23 20:06:08.893617+00 -161 dcim 0044_virtualization 2023-06-23 20:06:08.918899+00 -162 dcim 0045_devicerole_vm_role 2023-06-23 20:06:08.928731+00 -163 dcim 0046_rack_lengthen_facility_id 2023-06-23 20:06:08.96161+00 -164 dcim 0047_more_100ge_form_factors 2023-06-23 20:06:08.988183+00 -165 dcim 0048_rack_serial 2023-06-23 20:06:08.997393+00 -166 dcim 0049_rackreservation_change_user 2023-06-23 20:06:09.017914+00 -167 dcim 0050_interface_vlan_tagging 2023-06-23 20:06:09.034694+00 -168 dcim 0051_rackreservation_tenant 2023-06-23 20:06:09.044086+00 -169 dcim 0052_virtual_chassis 2023-06-23 20:06:09.054529+00 -170 dcim 0053_platform_manufacturer 2023-06-23 20:06:09.086306+00 -171 dcim 0054_site_status_timezone_description 2023-06-23 20:06:09.10131+00 -172 dcim 0055_virtualchassis_ordering 2023-06-23 20:06:09.109182+00 -173 dcim 0056_django2 2023-06-23 20:06:09.116831+00 -174 dcim 0057_tags 2023-06-23 20:06:09.1251+00 -175 dcim 0058_relax_rack_naming_constraints 2023-06-23 20:06:09.154645+00 -176 dcim 0059_site_latitude_longitude 2023-06-23 20:06:09.163623+00 -177 dcim 0060_change_logging 2023-06-23 20:06:09.171934+00 -178 dcim 0061_platform_napalm_args 2023-06-23 20:06:09.180164+00 -179 dcim 0062_interface_mtu 2023-06-23 20:06:09.253221+00 -180 dcim 0063_device_local_context_data 2023-06-23 20:06:09.262288+00 -181 dcim 0064_remove_platform_rpc_client 2023-06-23 20:06:09.271292+00 -182 dcim 0065_front_rear_ports 2023-06-23 20:06:09.293899+00 -183 dcim 0066_cables 2023-06-23 20:06:09.354196+00 -184 dcim 0067_device_type_remove_qualifiers 2023-06-23 20:06:09.379608+00 -185 dcim 0068_rack_new_fields 2023-06-23 20:06:09.424479+00 -186 dcim 0069_deprecate_nullablecharfield 2023-06-23 20:06:09.450891+00 -187 dcim 0070_custom_tag_models 2023-06-23 20:06:09.46095+00 -188 dcim 0071_device_components_add_description 2023-06-23 20:06:09.533121+00 -189 dcim 0072_powerfeeds 2023-06-23 20:06:09.543599+00 -190 dcim 0073_interface_form_factor_to_type 2023-06-23 20:06:09.552264+00 -191 dcim 0074_increase_field_length_platform_name_slug 2023-06-23 20:06:09.637244+00 -192 dcim 0075_cable_devices 2023-06-23 20:06:09.64714+00 -193 dcim 0076_console_port_types 2023-06-23 20:06:09.710232+00 -194 dcim 0077_power_types 2023-06-23 20:06:09.720582+00 -195 dcim 0078_3569_site_fields 2023-06-23 20:06:09.779549+00 -196 dcim 0079_3569_rack_fields 2023-06-23 20:06:09.790122+00 -197 dcim 0080_3569_devicetype_fields 2023-06-23 20:06:09.799591+00 -198 dcim 0081_3569_device_fields 2023-06-23 20:06:09.808837+00 -199 dcim 0082_3569_interface_fields 2023-06-23 20:06:09.818241+00 -200 dcim 0082_3569_port_fields 2023-06-23 20:06:09.876853+00 -201 dcim 0083_3569_cable_fields 2023-06-23 20:06:09.994919+00 -202 dcim 0084_3569_powerfeed_fields 2023-06-23 20:06:10.017507+00 -203 dcim 0085_3569_poweroutlet_fields 2023-06-23 20:06:10.059006+00 -204 dcim 0086_device_name_nonunique 2023-06-23 20:06:10.099662+00 -205 dcim 0087_role_descriptions 2023-06-23 20:06:10.166528+00 -206 dcim 0088_powerfeed_available_power 2023-06-23 20:06:10.212469+00 -207 dcim 0089_deterministic_ordering 2023-06-23 20:06:10.222336+00 -208 dcim 0090_cable_termination_models 2023-06-23 20:06:10.253187+00 -209 dcim 0091_interface_type_other 2023-06-23 20:06:10.261924+00 -210 dcim 0092_fix_rack_outer_unit 2023-06-23 20:06:10.271577+00 -211 dcim 0093_device_component_ordering 2023-06-23 20:06:10.290102+00 -212 dcim 0094_device_component_template_ordering 2023-06-23 20:06:10.299849+00 -213 dcim 0095_primary_model_ordering 2023-06-23 20:06:10.310083+00 -214 dcim 0096_interface_ordering 2023-06-23 20:06:10.319361+00 -215 dcim 0097_interfacetemplate_type_other 2023-06-23 20:06:10.328992+00 -216 dcim 0098_devicetype_images 2023-06-23 20:06:10.371194+00 -217 dcim 0099_powerfeed_negative_voltage 2023-06-23 20:06:10.381022+00 -218 dcim 0100_mptt_remove_indexes 2023-06-23 20:06:10.390427+00 -219 dcim 0101_nested_rackgroups 2023-06-23 20:06:10.398644+00 -220 dcim 0102_nested_rackgroups_rebuild 2023-06-23 20:06:10.407091+00 -221 dcim 0103_standardize_description 2023-06-23 20:06:10.417038+00 -222 dcim 0104_correct_infiniband_types 2023-06-23 20:06:10.425892+00 -223 dcim 0105_interface_name_collation 2023-06-23 20:06:10.433968+00 -224 dcim 0106_role_default_color 2023-06-23 20:06:10.443508+00 -225 dcim 0107_component_labels 2023-06-23 20:06:10.45263+00 -226 dcim 0108_add_tags 2023-06-23 20:06:10.460919+00 -227 dcim 0109_interface_remove_vm 2023-06-23 20:06:10.469514+00 -228 dcim 0110_virtualchassis_name 2023-06-23 20:06:10.477693+00 -229 dcim 0111_component_template_description 2023-06-23 20:06:10.48693+00 -230 dcim 0112_standardize_components 2023-06-23 20:06:10.497298+00 -231 dcim 0113_nullbooleanfield_to_booleanfield 2023-06-23 20:06:10.530727+00 -232 dcim 0114_update_jsonfield 2023-06-23 20:06:10.590745+00 -233 dcim 0115_rackreservation_order 2023-06-23 20:06:10.621536+00 -234 dcim 0116_rearport_max_positions 2023-06-23 20:06:10.63158+00 -235 dcim 0117_custom_field_data 2023-06-23 20:06:10.641711+00 -236 dcim 0118_inventoryitem_mptt 2023-06-23 20:06:10.688372+00 -237 dcim 0119_inventoryitem_mptt_rebuild 2023-06-23 20:06:10.732954+00 -238 dcim 0120_cache_cable_peer 2023-06-23 20:06:10.776418+00 -239 dcim 0121_cablepath 2023-06-23 20:06:10.791577+00 -240 dcim 0122_standardize_name_length 2023-06-23 20:06:10.801461+00 -241 dcim 0123_standardize_models 2023-06-23 20:06:10.811435+00 -242 dcim 0124_mark_connected 2023-06-23 20:06:10.821866+00 -243 dcim 0125_console_port_speed 2023-06-23 20:06:10.831874+00 -244 dcim 0126_rename_rackgroup_location 2023-06-23 20:06:10.842221+00 -245 dcim 0127_device_location 2023-06-23 20:06:10.851992+00 -246 dcim 0128_device_location_populate 2023-06-23 20:06:10.862097+00 -247 dcim 0129_interface_parent 2023-06-23 20:06:10.871998+00 -248 dcim 0130_sitegroup 2023-06-23 20:06:10.882505+00 -249 ipam 0002_vrf_add_enforce_unique 2023-06-23 20:06:13.78935+00 -250 ipam 0003_ipam_add_vlangroups 2023-06-23 20:06:13.80091+00 -251 ipam 0004_ipam_vlangroup_uniqueness 2023-06-23 20:06:13.811849+00 -252 ipam 0005_auto_20160725_1842 2023-06-23 20:06:13.822488+00 -253 ipam 0006_vrf_vlan_add_tenant 2023-06-23 20:06:13.832625+00 -254 ipam 0007_prefix_ipaddress_add_tenant 2023-06-23 20:06:13.843605+00 -255 ipam 0008_prefix_change_order 2023-06-23 20:06:13.853814+00 -256 ipam 0009_ipaddress_add_status 2023-06-23 20:06:13.865118+00 -257 ipam 0010_ipaddress_help_texts 2023-06-23 20:06:13.901129+00 -258 ipam 0011_rir_add_is_private 2023-06-23 20:06:13.909264+00 -259 ipam 0012_services 2023-06-23 20:06:13.91736+00 -260 ipam 0013_prefix_add_is_pool 2023-06-23 20:06:13.926431+00 -261 ipam 0014_ipaddress_status_add_deprecated 2023-06-23 20:06:14.00378+00 -262 ipam 0015_global_vlans 2023-06-23 20:06:14.029412+00 -263 ipam 0016_unicode_literals 2023-06-23 20:06:14.070775+00 -264 ipam 0017_ipaddress_roles 2023-06-23 20:06:14.097113+00 -265 ipam 0018_remove_service_uniqueness_constraint 2023-06-23 20:06:14.107032+00 -266 ipam 0019_virtualization 2023-06-23 20:06:14.156669+00 -267 ipam 0020_ipaddress_add_role_carp 2023-06-23 20:06:14.180772+00 -268 ipam 0021_vrf_ordering 2023-06-23 20:06:14.190725+00 -269 ipam 0022_tags 2023-06-23 20:06:14.228424+00 -270 ipam 0023_change_logging 2023-06-23 20:06:14.237945+00 -271 ipam 0024_vrf_allow_null_rd 2023-06-23 20:06:14.247758+00 -272 ipam 0025_custom_tag_models 2023-06-23 20:06:14.258081+00 -273 ipam 0026_prefix_ordering_vrf_nulls_first 2023-06-23 20:06:14.267621+00 -274 ipam 0027_ipaddress_add_dns_name 2023-06-23 20:06:14.277509+00 -275 ipam 0028_3569_prefix_fields 2023-06-23 20:06:14.287179+00 -276 ipam 0029_3569_ipaddress_fields 2023-06-23 20:06:14.348753+00 -277 ipam 0030_3569_vlan_fields 2023-06-23 20:06:14.358701+00 -278 ipam 0031_3569_service_fields 2023-06-23 20:06:14.367901+00 -279 ipam 0032_role_description 2023-06-23 20:06:14.377126+00 -280 ipam 0033_deterministic_ordering 2023-06-23 20:06:14.386406+00 -281 ipam 0034_fix_ipaddress_status_dhcp 2023-06-23 20:06:14.419986+00 -282 ipam 0035_drop_ip_family 2023-06-23 20:06:14.438991+00 -283 ipam 0036_standardize_description 2023-06-23 20:06:14.476228+00 -284 ipam 0037_ipaddress_assignment 2023-06-23 20:06:14.61356+00 -285 ipam 0038_custom_field_data 2023-06-23 20:06:14.646442+00 -286 ipam 0039_service_ports_array 2023-06-23 20:06:14.712914+00 -287 ipam 0040_service_drop_port 2023-06-23 20:06:14.726141+00 -288 ipam 0041_routetarget 2023-06-23 20:06:14.735836+00 -289 ipam 0042_standardize_name_length 2023-06-23 20:06:14.767245+00 -290 ipam 0043_add_tenancy_to_aggregates 2023-06-23 20:06:14.808964+00 -291 ipam 0044_standardize_models 2023-06-23 20:06:14.824673+00 -292 ipam 0045_vlangroup_scope 2023-06-23 20:06:14.834363+00 -293 ipam 0046_set_vlangroup_scope_types 2023-06-23 20:06:14.844301+00 -294 ipam 0047_prefix_depth_children 2023-06-23 20:06:15.103057+00 -295 ipam 0048_prefix_populate_depth_children 2023-06-23 20:06:15.216012+00 -296 ipam 0049_prefix_mark_utilized 2023-06-23 20:06:15.294176+00 -297 ipam 0050_iprange 2023-06-23 20:06:15.545747+00 -298 ipam 0051_extend_tag_support 2023-06-23 20:06:16.200009+00 -299 extras 0063_webhook_conditions 2023-06-23 20:06:16.24454+00 -300 extras 0064_configrevision 2023-06-23 20:06:16.325695+00 -301 ipam 0052_fhrpgroup 2023-06-23 20:06:17.04558+00 -302 ipam 0053_asn_model 2023-06-23 20:06:17.400869+00 -303 dcim 0131_consoleport_speed 2023-06-23 20:06:18.141542+00 -304 dcim 0132_cable_length 2023-06-23 20:06:18.618463+00 -305 dcim 0133_port_colors 2023-06-23 20:06:19.260806+00 -306 dcim 0134_interface_wwn_bridge 2023-06-23 20:06:19.554551+00 -307 dcim 0135_tenancy_extensions 2023-06-23 20:06:19.916791+00 -308 dcim 0136_device_airflow 2023-06-23 20:06:20.162847+00 -309 dcim 0137_relax_uniqueness_constraints 2023-06-23 20:06:22.326051+00 -310 dcim 0138_extend_tag_support 2023-06-23 20:06:23.399797+00 -311 dcim 0139_rename_cable_peer 2023-06-23 20:06:25.541706+00 -312 wireless 0001_wireless 2023-06-23 20:06:27.563063+00 -313 dcim 0140_wireless 2023-06-23 20:06:28.810357+00 -314 dcim 0141_asn_model 2023-06-23 20:06:29.408015+00 -315 dcim 0142_rename_128gfc_qsfp28 2023-06-23 20:06:29.580405+00 -316 dcim 0143_remove_primary_for_related_name 2023-06-23 20:06:30.137703+00 -317 dcim 0144_fix_cable_abs_length 2023-06-23 20:06:30.286011+00 -318 dcim 0145_site_remove_deprecated_fields 2023-06-23 20:06:30.745716+00 -319 ipam 0054_vlangroup_min_max_vids 2023-06-23 20:06:30.992888+00 -320 virtualization 0023_virtualmachine_natural_ordering 2023-06-23 20:06:31.627052+00 -321 virtualization 0024_cluster_relax_uniqueness 2023-06-23 20:06:31.92317+00 -322 virtualization 0025_extend_tag_support 2023-06-23 20:06:32.185477+00 -323 virtualization 0026_vminterface_bridge 2023-06-23 20:06:32.332582+00 -324 extras 0065_imageattachment_change_logging 2023-06-23 20:06:32.37863+00 -325 extras 0066_customfield_name_validation 2023-06-23 20:06:32.439905+00 -326 extras 0067_customfield_min_max_values 2023-06-23 20:06:32.576237+00 -327 extras 0068_configcontext_cluster_types 2023-06-23 20:06:32.984648+00 -328 dcim 0146_modules 2023-06-23 20:06:40.938129+00 -329 dcim 0147_inventoryitemrole 2023-06-23 20:06:41.507169+00 -330 dcim 0148_inventoryitem_component 2023-06-23 20:06:41.790895+00 -331 dcim 0149_inventoryitem_templates 2023-06-23 20:06:42.679181+00 -332 dcim 0150_interface_vrf 2023-06-23 20:06:42.954524+00 -333 dcim 0151_interface_speed_duplex 2023-06-23 20:06:43.525819+00 -334 dcim 0152_standardize_id_fields 2023-06-23 20:06:53.784977+00 -335 dcim 0153_created_datetimefield 2023-06-23 20:07:12.72369+00 -336 dcim 0154_half_height_rack_units 2023-06-23 20:07:14.275949+00 -337 dcim 0155_interface_poe_mode_type 2023-06-23 20:07:15.020467+00 -338 dcim 0156_location_status 2023-06-23 20:07:15.176801+00 -339 dcim 0157_new_cabling_models 2023-06-23 20:07:18.641139+00 -340 dcim 0158_populate_cable_terminations 2023-06-23 20:07:18.908349+00 -341 dcim 0159_populate_cable_paths 2023-06-23 20:07:19.164793+00 -342 extras 0069_custom_object_field 2023-06-23 20:07:19.488903+00 -343 extras 0070_customlink_enabled 2023-06-23 20:07:19.598616+00 -344 ipam 0055_servicetemplate 2023-06-23 20:07:20.926776+00 -345 ipam 0056_standardize_id_fields 2023-06-23 20:07:24.036551+00 -346 ipam 0057_created_datetimefield 2023-06-23 20:07:38.455782+00 -347 circuits 0001_initial 2023-06-23 20:07:41.16187+00 -348 circuits 0002_auto_20160622_1821 2023-06-23 20:07:45.173537+00 -349 circuits 0003_provider_32bit_asn_support 2023-06-23 20:07:45.185524+00 -350 circuits 0004_circuit_add_tenant 2023-06-23 20:07:45.194865+00 -351 circuits 0005_circuit_add_upstream_speed 2023-06-23 20:07:45.205512+00 -352 circuits 0006_terminations 2023-06-23 20:07:45.242518+00 -353 circuits 0007_circuit_add_description 2023-06-23 20:07:45.25458+00 -354 circuits 0008_circuittermination_interface_protect_on_delete 2023-06-23 20:07:45.326653+00 -355 circuits 0009_unicode_literals 2023-06-23 20:07:45.396287+00 -356 circuits 0010_circuit_status 2023-06-23 20:07:45.619865+00 -357 circuits 0011_tags 2023-06-23 20:07:45.665286+00 -358 circuits 0012_change_logging 2023-06-23 20:07:45.813897+00 -359 circuits 0013_cables 2023-06-23 20:07:45.875888+00 -360 circuits 0014_circuittermination_description 2023-06-23 20:07:45.945015+00 -361 circuits 0015_custom_tag_models 2023-06-23 20:07:46.061718+00 -362 circuits 0016_3569_circuit_fields 2023-06-23 20:07:46.131854+00 -363 circuits 0017_circuittype_description 2023-06-23 20:07:46.197826+00 -364 circuits 0018_standardize_description 2023-06-23 20:07:46.324512+00 -365 circuits 0019_nullbooleanfield_to_booleanfield 2023-06-23 20:07:46.390571+00 -366 circuits 0020_custom_field_data 2023-06-23 20:07:46.483533+00 -367 circuits 0021_cache_cable_peer 2023-06-23 20:07:46.564482+00 -368 circuits 0022_cablepath 2023-06-23 20:07:46.611215+00 -369 circuits 0023_circuittermination_port_speed_optional 2023-06-23 20:07:46.670816+00 -370 circuits 0024_standardize_name_length 2023-06-23 20:07:46.750564+00 -371 circuits 0025_standardize_models 2023-06-23 20:07:46.763647+00 -372 circuits 0026_mark_connected 2023-06-23 20:07:46.773626+00 -373 circuits 0027_providernetwork 2023-06-23 20:07:46.783553+00 -374 circuits 0028_cache_circuit_terminations 2023-06-23 20:07:46.79403+00 -375 circuits 0029_circuit_tracing 2023-06-23 20:07:46.805815+00 -376 circuits 0003_extend_tag_support 2023-06-23 20:07:47.037883+00 -377 circuits 0004_rename_cable_peer 2023-06-23 20:07:47.284664+00 -378 circuits 0032_provider_service_id 2023-06-23 20:07:47.784522+00 -379 circuits 0033_standardize_id_fields 2023-06-23 20:07:49.26166+00 -380 circuits 0034_created_datetimefield 2023-06-23 20:07:52.948581+00 -381 circuits 0035_provider_asns 2023-06-23 20:07:53.195596+00 -382 circuits 0036_circuit_termination_date_tags_custom_fields 2023-06-23 20:07:53.604103+00 -383 circuits 0037_new_cabling_models 2023-06-23 20:07:53.723271+00 -384 dcim 0160_populate_cable_ends 2023-06-23 20:07:53.966787+00 -385 circuits 0038_cabling_cleanup 2023-06-23 20:07:54.765457+00 -386 circuits 0039_unique_constraints 2023-06-23 20:07:55.983658+00 -387 circuits 0040_provider_remove_deprecated_fields 2023-06-23 20:07:57.055448+00 -388 circuits 0041_standardize_description_comments 2023-06-23 20:07:57.229833+00 -389 tenancy 0005_standardize_id_fields 2023-06-23 20:07:59.07111+00 -390 tenancy 0006_created_datetimefield 2023-06-23 20:08:04.301103+00 -391 tenancy 0007_contact_link 2023-06-23 20:08:04.551836+00 -392 tenancy 0008_unique_constraints 2023-06-23 20:08:05.935364+00 -393 tenancy 0009_standardize_description_comments 2023-06-23 20:08:06.187198+00 -394 ipam 0058_ipaddress_nat_inside_nonunique 2023-06-23 20:08:06.497402+00 -395 extras 0071_standardize_id_fields 2023-06-23 20:08:09.855983+00 -396 extras 0072_created_datetimefield 2023-06-23 20:08:12.841496+00 -397 extras 0073_journalentry_tags_custom_fields 2023-06-23 20:08:13.436473+00 -398 extras 0074_customfield_extensions 2023-06-23 20:08:13.701225+00 -399 extras 0075_configcontext_locations 2023-06-23 20:08:14.818033+00 -400 ipam 0059_l2vpn 2023-06-23 20:08:17.922205+00 -401 ipam 0060_alter_l2vpn_slug 2023-06-23 20:08:18.406609+00 -402 ipam 0061_fhrpgroup_name 2023-06-23 20:08:18.578002+00 -403 ipam 0062_unique_constraints 2023-06-23 20:08:20.073014+00 -404 ipam 0063_standardize_description_comments 2023-06-23 20:08:22.23844+00 -405 extras 0076_tag_slug_unicode 2023-06-23 20:08:22.413246+00 -406 extras 0077_customlink_extend_text_and_url 2023-06-23 20:08:22.562848+00 -407 extras 0078_unique_constraints 2023-06-23 20:08:23.191834+00 -408 extras 0079_scheduled_jobs 2023-06-23 20:08:23.511795+00 -409 extras 0080_customlink_content_types 2023-06-23 20:08:24.578976+00 -410 extras 0081_exporttemplate_content_types 2023-06-23 20:08:26.047152+00 -411 extras 0082_savedfilter 2023-06-23 20:08:27.26844+00 -412 dcim 0161_cabling_cleanup 2023-06-23 20:08:32.645324+00 -413 dcim 0162_unique_constraints 2023-06-23 20:08:49.172409+00 -414 dcim 0163_weight_fields 2023-06-23 20:08:50.486332+00 -415 dcim 0164_rack_mounting_depth 2023-06-23 20:08:50.666463+00 -416 dcim 0165_standardize_description_comments 2023-06-23 20:08:53.297919+00 -417 dcim 0166_virtualdevicecontext 2023-06-23 20:08:56.496533+00 -418 dcim 0167_module_status 2023-06-23 20:08:57.970825+00 -419 django_rq 0001_initial 2023-06-23 20:08:58.289903+00 -420 wireless 0002_standardize_id_fields 2023-06-23 20:08:58.802037+00 -421 wireless 0003_created_datetimefield 2023-06-23 20:09:01.836422+00 -422 wireless 0004_wireless_tenancy 2023-06-23 20:09:03.04299+00 -423 wireless 0005_wirelesslink_interface_types 2023-06-23 20:09:03.387511+00 -424 wireless 0006_unique_constraints 2023-06-23 20:09:04.458178+00 -425 wireless 0007_standardize_description_comments 2023-06-23 20:09:05.137488+00 -426 wireless 0008_wirelesslan_status 2023-06-23 20:09:05.279975+00 -427 virtualization 0027_standardize_id_fields 2023-06-23 20:09:05.961577+00 -428 virtualization 0028_vminterface_vrf 2023-06-23 20:09:06.629227+00 -429 virtualization 0029_created_datetimefield 2023-06-23 20:09:10.86735+00 -430 virtualization 0030_cluster_status 2023-06-23 20:09:11.215471+00 -431 virtualization 0031_virtualmachine_site_device 2023-06-23 20:09:12.164823+00 -432 virtualization 0032_virtualmachine_update_sites 2023-06-23 20:09:12.425991+00 -433 virtualization 0033_unique_constraints 2023-06-23 20:09:13.955935+00 -434 virtualization 0034_standardize_description_comments 2023-06-23 20:09:14.283578+00 -435 extras 0083_search 2023-06-23 20:09:14.518425+00 -436 extras 0084_staging 2023-06-23 20:09:15.270011+00 -437 ipam 0064_clear_search_cache 2023-06-23 20:09:15.798864+00 -438 netbox_bgp 0001_initial 2023-06-23 20:09:17.060515+00 -439 netbox_bgp 0002_netbox_bgp 2023-06-23 20:09:17.439151+00 -440 netbox_bgp 0003_netbox_bgp 2023-06-23 20:09:17.898543+00 -441 netbox_bgp 0004_netbox_bgp 2023-06-23 20:09:18.461444+00 -442 netbox_bgp 0005_netbox_bgp 2023-06-23 20:09:18.582735+00 -443 netbox_bgp 0006_netbox_bgp 2023-06-23 20:09:18.704573+00 -444 netbox_bgp 0007_netbox_bgp 2023-06-23 20:09:19.033232+00 -445 netbox_bgp 0008_netbox_bgp 2023-06-23 20:09:20.303423+00 -446 netbox_bgp 0009_netbox_bgp 2023-06-23 20:09:20.88087+00 -447 netbox_bgp 0010_netbox_bgp 2023-06-23 20:09:24.172705+00 -448 netbox_bgp 0011_netbox_bgp 2023-06-23 20:09:25.943921+00 -449 netbox_bgp 0012_netbox_bgp 2023-06-23 20:09:26.128376+00 -450 netbox_bgp 0013_netbox_bgp 2023-06-23 20:09:26.601905+00 -451 netbox_bgp 0014_netbox_bgp 2023-06-23 20:09:26.691739+00 -452 netbox_bgp 0015_netbox_bgp 2023-06-23 20:09:27.325655+00 -453 netbox_bgp 0016_netbox_bgp 2023-06-23 20:09:27.594892+00 -454 netbox_bgp 0017_netbox_bgp 2023-06-23 20:09:28.436578+00 -455 netbox_bgp 0018_netbox_bgp 2023-06-23 20:09:28.808543+00 -456 netbox_bgp 0019_netbox_bgp 2023-06-23 20:09:28.93623+00 -457 netbox_bgp 0020_netbox_bgp 2023-06-23 20:09:29.09763+00 -458 netbox_bgp 0021_netbox32_support 2023-06-23 20:09:33.5178+00 -459 netbox_bgp 0022_netbox_bgp 2023-06-23 20:09:34.49417+00 -460 netbox_bgp 0023_netbox_bgp 2023-06-23 20:09:35.710082+00 -461 netbox_bgp 0024_netbox_bgp 2023-06-23 20:09:37.025036+00 -462 netbox_bgp 0025_netbox_bgp 2023-06-23 20:09:37.482704+00 -463 netbox_bgp 0026_netbox_bgp 2023-06-23 20:09:38.961015+00 -464 netbox_dns 0001_initial 2023-06-23 20:09:40.979216+00 -465 netbox_dns 0015_add_record_status 2023-06-23 20:09:40.992451+00 -466 netbox_dns 0013_add_nameserver_zone_record_description 2023-06-23 20:09:41.014273+00 -467 netbox_dns 0011_add_view_model 2023-06-23 20:09:41.112512+00 -468 netbox_dns 0002_zone_default_ttl 2023-06-23 20:09:41.147079+00 -469 netbox_dns 0003_soa_managed_records 2023-06-23 20:09:41.157893+00 -470 netbox_dns 0004_create_ptr_for_a_aaaa_records 2023-06-23 20:09:41.169941+00 -471 netbox_dns 0006_zone_soa_serial_auto 2023-06-23 20:09:41.181037+00 -472 netbox_dns 0007_alter_zone_soa_serial_auto 2023-06-23 20:09:41.191851+00 -473 netbox_dns 0005_update_ns_records 2023-06-23 20:09:41.202538+00 -474 netbox_dns 0008_zone_status_names 2023-06-23 20:09:41.213736+00 -475 netbox_dns 0009_netbox32 2023-06-23 20:09:41.224176+00 -476 netbox_dns 0010_update_soa_records 2023-06-23 20:09:41.274304+00 -477 netbox_dns 0012_adjust_zone_and_record 2023-06-23 20:09:41.35596+00 -478 netbox_dns 0014_add_view_description 2023-06-23 20:09:41.367631+00 -479 netbox_dns 0016_cleanup_ptr_records 2023-06-23 20:09:41.379124+00 -480 netbox_dns 0017_alter_record_ttl 2023-06-23 20:09:41.390872+00 -481 netbox_dns 0018_zone_arpa_network 2023-06-23 20:09:41.402203+00 -482 netbox_dns 0019_update_ns_ttl 2023-06-23 20:09:41.41324+00 -483 netbox_dns 0020_netbox_3_4 2023-06-23 20:09:42.299911+00 -484 netbox_dns 0021_record_ip_address 2023-06-23 20:09:43.960892+00 -485 netbox_dns 0022_search 2023-06-23 20:09:44.187188+00 -486 sessions 0001_initial 2023-06-23 20:09:44.615391+00 -487 default 0001_initial 2023-06-23 20:09:46.87089+00 -488 social_auth 0001_initial 2023-06-23 20:09:46.94608+00 -489 default 0002_add_related_name 2023-06-23 20:09:47.206434+00 -490 social_auth 0002_add_related_name 2023-06-23 20:09:47.210139+00 -491 default 0003_alter_email_max_length 2023-06-23 20:09:47.278719+00 -492 social_auth 0003_alter_email_max_length 2023-06-23 20:09:47.281413+00 -493 default 0004_auto_20160423_0400 2023-06-23 20:09:47.391311+00 -494 social_auth 0004_auto_20160423_0400 2023-06-23 20:09:47.394918+00 -495 social_auth 0005_auto_20160727_2333 2023-06-23 20:09:47.655227+00 -496 social_django 0006_partial 2023-06-23 20:09:48.310404+00 -497 social_django 0007_code_timestamp 2023-06-23 20:09:48.505041+00 -498 social_django 0008_partial_timestamp 2023-06-23 20:09:48.74239+00 -499 social_django 0009_auto_20191118_0520 2023-06-23 20:09:48.863365+00 -500 social_django 0010_uid_db_index 2023-06-23 20:09:49.201122+00 -501 taggit 0001_initial 2023-06-23 20:09:50.754312+00 -502 taggit 0002_auto_20150616_2121 2023-06-23 20:09:51.131564+00 -503 taggit 0003_taggeditem_add_unique_index 2023-06-23 20:09:51.366444+00 -504 taggit 0004_alter_taggeditem_content_type_alter_taggeditem_tag 2023-06-23 20:09:51.78524+00 -505 taggit 0005_auto_20220424_2025 2023-06-23 20:09:51.995702+00 -506 users 0001_api_tokens 2023-06-23 20:09:56.300676+00 -507 users 0002_unicode_literals 2023-06-23 20:09:56.321581+00 -508 users 0003_token_permissions 2023-06-23 20:09:56.380706+00 -509 users 0004_standardize_description 2023-06-23 20:09:56.400517+00 -510 users 0005_userconfig 2023-06-23 20:09:56.412012+00 -511 users 0006_create_userconfigs 2023-06-23 20:09:56.443897+00 -512 users 0007_proxy_group_user 2023-06-23 20:09:56.582267+00 -513 users 0008_objectpermission 2023-06-23 20:09:56.593072+00 -514 users 0009_replicate_permissions 2023-06-23 20:09:56.60482+00 -515 users 0010_update_jsonfield 2023-06-23 20:09:56.640025+00 -516 users 0011_standardize_models 2023-06-23 20:09:56.657638+00 -517 users 0002_standardize_id_fields 2023-06-23 20:09:57.375103+00 -518 users 0003_token_allowed_ips_last_used 2023-06-23 20:09:57.724572+00 -519 social_django 0001_initial 2023-06-23 20:09:57.911312+00 -520 social_django 0003_alter_email_max_length 2023-06-23 20:09:57.922824+00 -521 social_django 0005_auto_20160727_2333 2023-06-23 20:09:57.978802+00 -522 social_django 0004_auto_20160423_0400 2023-06-23 20:09:58.00476+00 -523 social_django 0002_add_related_name 2023-06-23 20:09:58.146261+00 -524 circuits 0002_squashed_0029 2023-06-23 20:09:58.179771+00 -525 circuits 0001_squashed 2023-06-23 20:09:58.204184+00 -526 dcim 0003_squashed_0130 2023-06-23 20:09:58.215412+00 -527 dcim 0001_squashed 2023-06-23 20:09:58.231302+00 -528 dcim 0002_squashed 2023-06-23 20:09:58.249375+00 -529 ipam 0001_squashed 2023-06-23 20:09:58.280144+00 -530 ipam 0002_squashed_0046 2023-06-23 20:09:58.290637+00 -531 extras 0001_squashed 2023-06-23 20:09:58.514975+00 -532 extras 0002_squashed_0059 2023-06-23 20:09:58.56015+00 -533 tenancy 0001_squashed_0012 2023-06-23 20:09:58.591033+00 -534 users 0001_squashed_0011 2023-06-23 20:09:58.602012+00 -535 virtualization 0001_squashed_0022 2023-06-23 20:09:58.646343+00 -536 netbox_dns 0001_squashed_netbox_dns_0_15 2023-06-23 20:09:58.657355+00 -537 netbox_bgp 0027_netbox_bgp 2023-06-23 20:34:16.783887+00 -\. - - --- --- Data for Name: django_session; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.django_session (session_key, session_data, expire_date) FROM stdin; -\. - - --- --- Data for Name: extras_branch; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_branch (id, created, last_updated, name, description, user_id) FROM stdin; -\. - - --- --- Data for Name: extras_cachedvalue; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_cachedvalue (id, "timestamp", object_id, field, type, value, weight, object_type_id) FROM stdin; -af2bde98-3a0b-41c2-b88b-df6540fc319f 2023-06-23 20:10:45.357619+00 1 name str Default site 100 54 -5e41a182-2960-4c33-a997-8ce557988e5c 2023-06-23 20:10:45.357747+00 1 slug str default-site 110 54 -69cc8c48-d192-47ab-aad2-1c79d9352a2e 2023-06-23 20:10:45.35783+00 1 description str Default site for new devices 500 54 -05bc6144-ce61-4c6a-af6c-0c009fdbc396 2023-06-23 20:10:45.451677+00 1 name str Default manufacturer 100 40 -18805d92-3e8e-4762-a02b-7054d3c13530 2023-06-23 20:10:45.451806+00 1 slug str default-manufacturer 110 40 -8b9171d8-6b97-4c5d-9712-c44918155b75 2023-06-23 20:10:45.451885+00 1 description str Default manufacturer for new devices 500 40 -25fa3792-ed06-4021-9f27-6d4923817c2b 2023-06-23 20:10:45.56843+00 1 name str Compute 100 32 -4c77cc04-fe7e-4860-83ee-95128a63464f 2023-06-23 20:10:45.568549+00 1 slug str compute 110 32 -3ac9a189-aabe-46c5-a5e5-8e507301e0ee 2023-06-23 20:10:45.828236+00 2 name str Storage 100 32 -567f18eb-9358-4821-ad41-3ded1831e7c1 2023-06-23 20:10:45.828404+00 2 slug str storage 110 32 -a28275e5-c8f3-413b-80dd-171555f95c63 2023-06-23 20:10:45.893196+00 3 name str Control 100 32 -691389a7-69ad-415b-b9af-e56e08aa9027 2023-06-23 20:10:45.893307+00 3 slug str control 110 32 -6302b530-aaba-4707-be00-231eb00a4710 2023-06-23 20:10:45.908411+00 4 name str Manager 100 32 -53649b51-4624-4c24-8097-7fa840e113cb 2023-06-23 20:10:45.908521+00 4 slug str manager 110 32 -44508d7d-5223-486b-812d-919fb9962c5b 2023-06-23 20:10:45.924664+00 5 name str Management 100 32 -88598294-c9db-45f0-9f25-c501e23049e8 2023-06-23 20:10:45.924772+00 5 slug str management 110 32 -ecf7aae8-f1e1-4460-bf92-ce26deae076a 2023-06-23 20:10:45.966846+00 6 name str Resource 100 32 -f6c758d0-872f-48b5-a646-2e9447f9ea98 2023-06-23 20:10:45.966959+00 6 slug str resource 110 32 -12ea8191-e4a3-45e2-b1b4-e23fe21e6863 2023-06-23 20:10:46.028817+00 7 name str Network 100 32 -3542cf40-adb6-4a97-969d-f281dab1a7dd 2023-06-23 20:10:46.028926+00 7 slug str network 110 32 -ef0b79dc-5f5a-4198-8dd9-d2f769527139 2023-06-23 20:10:46.119364+00 8 name str Spine 100 32 -6b480778-ef90-4086-99dd-82ac5a062a1f 2023-06-23 20:10:46.119476+00 8 slug str spine 110 32 -06143e25-747a-4624-9b29-609c42cc87b3 2023-06-23 20:10:46.138103+00 9 name str Leaf 100 32 -ecfaa90a-817e-4eee-a319-71426b95623a 2023-06-23 20:10:46.138231+00 9 slug str leaf 110 32 -1c00cbef-8fd1-4ed1-8275-c78fddc0b49e 2023-06-23 20:10:46.155196+00 10 name str Access 100 32 -94062449-db13-4ba6-87a5-f2e599b79055 2023-06-23 20:10:46.155371+00 10 slug str access 110 32 -c7da3a9a-ba8b-406c-a705-7187ea00ea7d 2023-06-23 20:10:46.189667+00 11 name str Transfer 100 32 -25800624-88bc-44ed-806b-52e39d6ff853 2023-06-23 20:10:46.189725+00 11 slug str transfer 110 32 -8a969206-3853-4e42-9cef-a3d04489917c 2023-06-23 20:10:46.246089+00 12 name str External 100 32 -ee78a9d1-d15c-4359-a49a-6ec6ee058dc0 2023-06-23 20:10:46.2462+00 12 slug str external 110 32 -5887fc79-e3a1-490c-85a8-3935fc768b21 2023-06-23 20:10:46.561681+00 13 name str Switch 100 32 -01404344-2129-4695-9710-652ad3e6fb27 2023-06-23 20:10:46.561794+00 13 slug str switch 110 32 -23380caf-df83-4be1-8d0f-63f51e02a42c 2023-06-23 20:10:46.626427+00 14 name str Router 100 32 -63805bf4-0d61-4909-8849-7452e99f4309 2023-06-23 20:10:46.626756+00 14 slug str router 110 32 -3e1d2cc6-0146-47de-9ad9-32920a39189e 2023-06-23 20:10:46.728694+00 15 name str Firewall 100 32 -109ca299-eec5-489e-8300-04162c586e71 2023-06-23 20:10:46.728808+00 15 slug str firewall 110 32 -3d584835-86c8-406b-9a60-b9cf6ca0bea4 2023-06-23 20:10:46.804712+00 16 name str Loadbalancer 100 32 -04b9ed11-598e-44eb-802e-dc3306273281 2023-06-23 20:10:46.804839+00 16 slug str loadbalancer 110 32 -394adfec-c9f4-491b-9809-75c108415ef9 2023-06-23 20:10:46.819911+00 17 name str Mixed 100 32 -28c80163-36b9-4cc0-926f-2a0e178f57d5 2023-06-23 20:10:46.82002+00 17 slug str mixed 110 32 -48082105-a788-4621-b6a4-d38367aec26e 2023-06-23 20:10:46.88988+00 18 name str Generic 100 32 -5b636315-e8f4-4327-9e4f-74ad1d7cb6b7 2023-06-23 20:10:46.890027+00 18 slug str generic 110 32 -3d03948e-9f93-4df2-8a8a-1e7590b39865 2023-06-23 20:10:47.024398+00 19 name str New 100 32 -2506d354-aa6b-44b1-a4b9-b21dc8a5be77 2023-06-23 20:10:47.024515+00 19 slug str new 110 32 -08db447b-64e7-4232-bd26-367a864cc370 2023-06-23 20:10:47.05252+00 20 name str Other 100 32 -5cb75ebd-635f-4254-b645-661cbd0599ac 2023-06-23 20:10:47.052628+00 20 slug str other 110 32 -cc1506b1-839e-4dbb-b799-83e3451088bd 2023-06-23 20:10:47.066219+00 21 name str Power 100 32 -ce7f7b93-b759-4359-9b7f-494c16a80ca6 2023-06-23 20:10:47.066328+00 21 slug str power 110 32 -645c3d2b-e337-4a2c-b9cd-cae2faf4d840 2023-06-23 20:10:47.131092+00 22 name str Housing 100 32 -368c10c0-bc8e-4ffb-b02f-500cd415515d 2023-06-23 20:10:47.131207+00 22 slug str housing 110 32 -21cda9e6-b8ba-468d-81c5-76ce86cac079 2023-06-23 20:10:47.204135+00 1 model str Default device type 100 33 -b819e449-593c-44ea-965c-897678304562 2023-06-23 20:10:47.441696+00 1 name str Control 100 69 -4d092016-7e6a-465a-afbb-cd966260c8d9 2023-06-23 20:10:47.441815+00 1 slug str control 110 69 -4ab2958b-c2e3-4706-ac73-67db45119978 2023-06-23 20:10:47.508749+00 2 name str Data 100 69 -10fb166c-d614-4be7-8576-150c409de315 2023-06-23 20:10:47.508869+00 2 slug str data 110 69 -7ea81c41-68dd-482d-af05-eca2df3def05 2023-06-23 20:10:47.529241+00 3 name str Internal 100 69 -117a60e0-c228-4b07-96b5-3a55b3d9938c 2023-06-23 20:10:47.529387+00 3 slug str internal 110 69 -3339a3e0-fb39-427f-bbf6-8da3e0d28752 2023-06-23 20:10:47.60499+00 4 name str External 100 69 -47d6c94c-71d6-4e7e-a3c4-3851fdcdb96c 2023-06-23 20:10:47.605102+00 4 slug str external 110 69 -0a471ecd-2d3e-4e0a-8b59-4fb075b6e74f 2023-06-23 20:10:47.679904+00 5 name str Management 100 69 -4cba1cd7-53a2-4ddb-aa65-0671a424b78a 2023-06-23 20:10:47.680023+00 5 slug str management 110 69 -613dfdfd-a939-4b43-b472-70875e5d6b60 2023-06-23 20:10:47.708966+00 6 name str Out of band 100 69 -0dc7c1ef-e5aa-4437-a1bf-51754824bfec 2023-06-23 20:10:47.709085+00 6 slug str out-of-band 110 69 -d698c13b-7dbe-4ce3-92a2-9f85e3451e45 2023-06-23 20:10:47.725142+00 7 name str Provisioning 100 69 -625f19f0-1cab-4219-97e0-151b186bc5eb 2023-06-23 20:10:47.725252+00 7 slug str provisioning 110 69 -d0f98ca0-68fd-4348-8c43-8701b3f74330 2023-06-23 20:10:47.739766+00 8 name str Reserved 100 69 -b724811e-283b-4fe0-87fa-1b86c9d5af54 2023-06-23 20:10:47.739878+00 8 slug str reserved 110 69 -8fca18d9-9796-42f7-ba1b-d87f928845f7 2023-06-23 20:10:47.756219+00 9 name str Parking lot 100 69 -7783149c-19bc-492b-88d0-b69a69132fab 2023-06-23 20:10:47.75638+00 9 slug str parking-lot 110 69 -\. - - --- --- Data for Name: extras_configcontext; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configcontext (created, last_updated, id, name, weight, description, is_active, data) FROM stdin; -\. - - --- --- Data for Name: extras_configcontext_cluster_groups; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configcontext_cluster_groups (id, configcontext_id, clustergroup_id) FROM stdin; -\. - - --- --- Data for Name: extras_configcontext_cluster_types; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configcontext_cluster_types (id, configcontext_id, clustertype_id) FROM stdin; -\. - - --- --- Data for Name: extras_configcontext_clusters; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configcontext_clusters (id, configcontext_id, cluster_id) FROM stdin; -\. - - --- --- Data for Name: extras_configcontext_device_types; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configcontext_device_types (id, configcontext_id, devicetype_id) FROM stdin; -\. - - --- --- Data for Name: extras_configcontext_locations; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configcontext_locations (id, configcontext_id, location_id) FROM stdin; -\. - - --- --- Data for Name: extras_configcontext_platforms; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configcontext_platforms (id, configcontext_id, platform_id) FROM stdin; -\. - - --- --- Data for Name: extras_configcontext_regions; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configcontext_regions (id, configcontext_id, region_id) FROM stdin; -\. - - --- --- Data for Name: extras_configcontext_roles; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configcontext_roles (id, configcontext_id, devicerole_id) FROM stdin; -\. - - --- --- Data for Name: extras_configcontext_site_groups; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configcontext_site_groups (id, configcontext_id, sitegroup_id) FROM stdin; -\. - - --- --- Data for Name: extras_configcontext_sites; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configcontext_sites (id, configcontext_id, site_id) FROM stdin; -\. - - --- --- Data for Name: extras_configcontext_tags; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configcontext_tags (id, configcontext_id, tag_id) FROM stdin; -\. - - --- --- Data for Name: extras_configcontext_tenant_groups; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configcontext_tenant_groups (id, configcontext_id, tenantgroup_id) FROM stdin; -\. - - --- --- Data for Name: extras_configcontext_tenants; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configcontext_tenants (id, configcontext_id, tenant_id) FROM stdin; -\. - - --- --- Data for Name: extras_configrevision; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configrevision (id, created, comment, data) FROM stdin; -\. - - --- --- Data for Name: extras_customfield; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_customfield (id, type, name, label, description, required, filter_logic, "default", weight, validation_minimum, validation_maximum, validation_regex, choices, created, last_updated, object_type_id, group_name, ui_visibility, search_weight) FROM stdin; -1 boolean deployment_enabled Deployment enabled Deployment enabled f loose \N 0 \N \N \N 2023-06-23 20:10:38.060943+00 2023-06-23 20:10:38.296715+00 \N read-write 1000 -2 boolean ironic_enabled Ironic enabled Ironic enabled f loose \N 0 \N \N \N 2023-06-23 20:10:38.326716+00 2023-06-23 20:10:38.356927+00 \N read-write 1000 -3 text configuration_template Configuration template Configuration template of a device f loose \N 0 \N \N \N 2023-06-23 20:10:38.395042+00 2023-06-23 20:10:38.56919+00 \N read-write 1000 -4 text device_state Device state State of a device f loose "0" 0 \N \N \N 2023-06-23 20:10:38.643466+00 2023-06-23 20:10:38.707203+00 \N read-write 1000 -5 text device_transition Device transition Action/transition just performed f loose "0" 0 \N \N \N 2023-06-23 20:10:38.758101+00 2023-06-23 20:10:38.851732+00 \N read-write 1000 -6 text device_type Device type Type of a device f loose \N 0 \N \N \N 2023-06-23 20:10:39.01484+00 2023-06-23 20:10:39.122679+00 \N read-write 1000 -7 text deployment_type Deployment type Deployment type for a device f loose \N 0 \N \N \N 2023-06-23 20:10:39.220614+00 2023-06-23 20:10:39.633077+00 \N read-write 1000 -8 text deployment_state Deployment state Deployment state of a device f loose \N 0 \N \N \N 2023-06-23 20:10:39.829462+00 2023-06-23 20:10:39.965265+00 \N read-write 1000 -9 boolean maintenance Maintenance Maintenance f loose \N 0 \N \N \N 2023-06-23 20:10:39.982032+00 2023-06-23 20:10:40.096741+00 \N read-write 1000 -10 text provision_state Provision state Provision state of a device f loose \N 0 \N \N \N 2023-06-23 20:10:40.130284+00 2023-06-23 20:10:40.167727+00 \N read-write 1000 -11 text power_state Power state Power state of a device f loose \N 0 \N \N \N 2023-06-23 20:10:40.205458+00 2023-06-23 20:10:40.439699+00 \N read-write 1000 -12 text introspection_state Introspection state Introspection state of a device f loose \N 0 \N \N \N 2023-06-23 20:10:40.458365+00 2023-06-23 20:10:40.557066+00 \N read-write 1000 -13 text network_interface_name Network interface name Network interface name f loose \N 0 \N \N \N 2023-06-23 20:10:40.585137+00 2023-06-23 20:10:40.689773+00 \N read-write 1000 -14 text ironic_state Ironic state Is the device available in Ironic f loose "unregistered" 0 \N \N \N 2023-06-23 20:10:40.708909+00 2023-06-23 20:10:40.854064+00 \N read-write 1000 -15 text out_of_band_type Out-of-band type Out-of-band type for a device f loose \N 0 \N \N \N 2023-06-23 20:10:40.928147+00 2023-06-23 20:10:41.086342+00 \N read-write 1000 -\. - - --- --- Data for Name: extras_customfield_content_types; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_customfield_content_types (id, customfield_id, contenttype_id) FROM stdin; -1 1 29 -2 2 29 -3 3 29 -4 4 29 -5 5 29 -6 6 29 -7 7 29 -8 8 29 -9 9 29 -10 10 29 -11 11 29 -12 12 29 -13 13 36 -14 14 29 -15 15 29 -\. - - --- --- Data for Name: extras_customlink; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_customlink (id, name, link_text, link_url, weight, group_name, button_class, new_window, created, last_updated, enabled) FROM stdin; -\. - - --- --- Data for Name: extras_customlink_content_types; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_customlink_content_types (id, customlink_id, contenttype_id) FROM stdin; -\. - - --- --- Data for Name: extras_exporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_exporttemplate (id, name, description, template_code, mime_type, file_extension, as_attachment, created, last_updated) FROM stdin; -\. - - --- --- Data for Name: extras_exporttemplate_content_types; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_exporttemplate_content_types (id, exporttemplate_id, contenttype_id) FROM stdin; -\. - - --- --- Data for Name: extras_imageattachment; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_imageattachment (id, object_id, image, image_height, image_width, name, created, content_type_id, last_updated) FROM stdin; -\. - - --- --- Data for Name: extras_jobresult; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_jobresult (id, name, created, completed, status, data, job_id, obj_type_id, user_id, scheduled, "interval", started) FROM stdin; -\. - - --- --- Data for Name: extras_journalentry; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_journalentry (last_updated, id, assigned_object_id, created, kind, comments, assigned_object_type_id, created_by_id, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: extras_objectchange; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_objectchange (id, "time", user_name, request_id, action, changed_object_id, related_object_id, object_repr, prechange_data, postchange_data, changed_object_type_id, related_object_type_id, user_id) FROM stdin; -\. - - --- --- Data for Name: extras_savedfilter; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_savedfilter (id, created, last_updated, name, slug, description, weight, enabled, shared, parameters, user_id) FROM stdin; -\. - - --- --- Data for Name: extras_savedfilter_content_types; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_savedfilter_content_types (id, savedfilter_id, contenttype_id) FROM stdin; -\. - - --- --- Data for Name: extras_stagedchange; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_stagedchange (id, created, last_updated, action, object_id, data, branch_id, object_type_id) FROM stdin; -\. - - --- --- Data for Name: extras_tag; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_tag (name, slug, created, last_updated, id, color, description) FROM stdin; -ceph-control ceph-control 2023-06-23 20:10:41.237268+00 2023-06-23 20:10:41.237313+00 1 ff9800 -ceph-resource ceph-resource 2023-06-23 20:10:41.393073+00 2023-06-23 20:10:41.393119+00 2 ff9800 -ceph-storage ceph-storage 2023-06-23 20:10:41.424257+00 2023-06-23 20:10:41.424306+00 3 ff9800 -control control 2023-06-23 20:10:41.490207+00 2023-06-23 20:10:41.490255+00 4 2196f3 -compute compute 2023-06-23 20:10:41.551887+00 2023-06-23 20:10:41.551933+00 5 2196f3 -openstack-compute openstack-compute 2023-06-23 20:10:41.74018+00 2023-06-23 20:10:41.740239+00 6 2196f3 -openstack-control openstack-control 2023-06-23 20:10:41.899813+00 2023-06-23 20:10:41.89986+00 7 2196f3 -generic generic 2023-06-23 20:10:42.140158+00 2023-06-23 20:10:42.1402+00 8 cddc39 -manager manager 2023-06-23 20:10:42.392275+00 2023-06-23 20:10:42.392378+00 9 4caf50 -monitoring monitoring 2023-06-23 20:10:42.570756+00 2023-06-23 20:10:42.570802+00 10 4caf50 -network network 2023-06-23 20:10:42.790897+00 2023-06-23 20:10:42.790956+00 11 2196f3 -openstack-network openstack-network 2023-06-23 20:10:42.842185+00 2023-06-23 20:10:42.842232+00 12 2196f3 -resource resource 2023-06-23 20:10:42.96745+00 2023-06-23 20:10:42.967498+00 13 ffeb3b -reserved reserved 2023-06-23 20:10:43.102549+00 2023-06-23 20:10:43.102596+00 14 111111 -unusable unusable 2023-06-23 20:10:43.358886+00 2023-06-23 20:10:43.358933+00 15 f44336 -Managed by Ironic managed-by-ironic 2023-06-23 20:10:43.690902+00 2023-06-23 20:10:43.690959+00 16 ffeb3b -Managed by Bifrost managed-by-bifrost 2023-06-23 20:10:43.822037+00 2023-06-23 20:10:43.822083+00 17 ffeb3b -Managed by OSISM managed-by-osism 2023-06-23 20:10:43.917668+00 2023-06-23 20:10:43.917716+00 18 ffeb3b -\. - - --- --- Data for Name: extras_taggeditem; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_taggeditem (object_id, id, content_type_id, tag_id) FROM stdin; -\. - - --- --- Data for Name: extras_webhook; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_webhook (id, name, type_create, type_update, type_delete, payload_url, enabled, http_method, http_content_type, additional_headers, body_template, secret, ssl_verification, ca_file_path, created, last_updated, conditions) FROM stdin; -1 osism_api_webhook t t t http://netbox.testbed.osism.xyz:8000/webhook/netbox t POST application/json t \N 2023-06-23 20:10:44.31887+00 2023-06-23 20:10:45.003744+00 \N -\. - - --- --- Data for Name: extras_webhook_content_types; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_webhook_content_types (id, webhook_id, contenttype_id) FROM stdin; -1 1 36 -2 1 29 -\. - - --- --- Data for Name: ipam_aggregate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_aggregate (created, last_updated, custom_field_data, id, prefix, date_added, description, rir_id, tenant_id, comments) FROM stdin; -\. - - --- --- Data for Name: ipam_asn; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_asn (created, last_updated, custom_field_data, id, asn, description, rir_id, tenant_id, comments) FROM stdin; -\. - - --- --- Data for Name: ipam_fhrpgroup; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_fhrpgroup (created, last_updated, custom_field_data, id, group_id, protocol, auth_type, auth_key, description, name, comments) FROM stdin; -\. - - --- --- Data for Name: ipam_fhrpgroupassignment; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_fhrpgroupassignment (created, last_updated, id, interface_id, priority, group_id, interface_type_id) FROM stdin; -\. - - --- --- Data for Name: ipam_ipaddress; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_ipaddress (created, last_updated, custom_field_data, id, address, status, role, assigned_object_id, dns_name, description, assigned_object_type_id, nat_inside_id, tenant_id, vrf_id, comments) FROM stdin; -\. - - --- --- Data for Name: ipam_iprange; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_iprange (created, last_updated, custom_field_data, id, start_address, end_address, size, status, description, role_id, tenant_id, vrf_id, comments) FROM stdin; -\. - - --- --- Data for Name: ipam_l2vpn; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_l2vpn (id, created, last_updated, custom_field_data, name, slug, type, identifier, description, tenant_id, comments) FROM stdin; -\. - - --- --- Data for Name: ipam_l2vpn_export_targets; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_l2vpn_export_targets (id, l2vpn_id, routetarget_id) FROM stdin; -\. - - --- --- Data for Name: ipam_l2vpn_import_targets; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_l2vpn_import_targets (id, l2vpn_id, routetarget_id) FROM stdin; -\. - - --- --- Data for Name: ipam_l2vpntermination; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_l2vpntermination (id, created, last_updated, custom_field_data, assigned_object_id, assigned_object_type_id, l2vpn_id) FROM stdin; -\. - - --- --- Data for Name: ipam_prefix; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_prefix (created, last_updated, custom_field_data, id, prefix, status, is_pool, description, role_id, site_id, tenant_id, vlan_id, vrf_id, _children, _depth, mark_utilized, comments) FROM stdin; -\. - - --- --- Data for Name: ipam_rir; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_rir (created, last_updated, custom_field_data, id, name, slug, is_private, description) FROM stdin; -\. - - --- --- Data for Name: ipam_role; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_role (created, last_updated, custom_field_data, id, name, slug, weight, description) FROM stdin; -2023-06-23 20:10:47.434025+00 2023-06-23 20:10:47.434081+00 {} 1 Control control 1000 -2023-06-23 20:10:47.503672+00 2023-06-23 20:10:47.503723+00 {} 2 Data data 1000 -2023-06-23 20:10:47.522771+00 2023-06-23 20:10:47.522817+00 {} 3 Internal internal 1000 -2023-06-23 20:10:47.600594+00 2023-06-23 20:10:47.600643+00 {} 4 External external 1000 -2023-06-23 20:10:47.675623+00 2023-06-23 20:10:47.675676+00 {} 5 Management management 1000 -2023-06-23 20:10:47.70385+00 2023-06-23 20:10:47.703908+00 {} 6 Out of band out-of-band 1000 -2023-06-23 20:10:47.721646+00 2023-06-23 20:10:47.721693+00 {} 7 Provisioning provisioning 1000 -2023-06-23 20:10:47.73626+00 2023-06-23 20:10:47.736306+00 {} 8 Reserved reserved 1000 -2023-06-23 20:10:47.751256+00 2023-06-23 20:10:47.751359+00 {} 9 Parking lot parking-lot 1000 -\. - - --- --- Data for Name: ipam_routetarget; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_routetarget (created, last_updated, custom_field_data, id, name, description, tenant_id, comments) FROM stdin; -\. - - --- --- Data for Name: ipam_service; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_service (created, last_updated, custom_field_data, id, name, protocol, ports, description, device_id, virtual_machine_id, comments) FROM stdin; -\. - - --- --- Data for Name: ipam_service_ipaddresses; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_service_ipaddresses (id, service_id, ipaddress_id) FROM stdin; -\. - - --- --- Data for Name: ipam_servicetemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_servicetemplate (created, last_updated, custom_field_data, id, protocol, ports, description, name, comments) FROM stdin; -\. - - --- --- Data for Name: ipam_vlan; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_vlan (created, last_updated, custom_field_data, id, vid, name, status, description, group_id, role_id, site_id, tenant_id, comments) FROM stdin; -\. - - --- --- Data for Name: ipam_vlangroup; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_vlangroup (created, last_updated, custom_field_data, id, name, slug, scope_id, description, scope_type_id, max_vid, min_vid) FROM stdin; -\. - - --- --- Data for Name: ipam_vrf; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_vrf (created, last_updated, custom_field_data, id, name, rd, enforce_unique, description, tenant_id, comments) FROM stdin; -\. - - --- --- Data for Name: ipam_vrf_export_targets; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_vrf_export_targets (id, vrf_id, routetarget_id) FROM stdin; -\. - - --- --- Data for Name: ipam_vrf_import_targets; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_vrf_import_targets (id, vrf_id, routetarget_id) FROM stdin; -\. - - --- --- Data for Name: netbox_bgp_bgppeergroup; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_bgp_bgppeergroup (id, created, last_updated, name, description, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: netbox_bgp_bgppeergroup_export_policies; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_bgp_bgppeergroup_export_policies (id, bgppeergroup_id, routingpolicy_id) FROM stdin; -\. - - --- --- Data for Name: netbox_bgp_bgppeergroup_import_policies; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_bgp_bgppeergroup_import_policies (id, bgppeergroup_id, routingpolicy_id) FROM stdin; -\. - - --- --- Data for Name: netbox_bgp_bgpsession; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_bgp_bgpsession (id, created, last_updated, status, description, local_address_id, local_as_id, remote_address_id, remote_as_id, site_id, tenant_id, device_id, name, peer_group_id, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: netbox_bgp_bgpsession_export_policies; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_bgp_bgpsession_export_policies (id, bgpsession_id, routingpolicy_id) FROM stdin; -\. - - --- --- Data for Name: netbox_bgp_bgpsession_import_policies; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_bgp_bgpsession_import_policies (id, bgpsession_id, routingpolicy_id) FROM stdin; -\. - - --- --- Data for Name: netbox_bgp_community; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_bgp_community (id, created, last_updated, status, description, value, role_id, site_id, tenant_id, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: netbox_bgp_prefixlist; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_bgp_prefixlist (id, created, last_updated, custom_field_data, name, description, family) FROM stdin; -\. - - --- --- Data for Name: netbox_bgp_prefixlistrule; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_bgp_prefixlistrule (id, created, last_updated, custom_field_data, index, action, prefix_custom, ge, le, prefix_id, prefix_list_id) FROM stdin; -\. - - --- --- Data for Name: netbox_bgp_routingpolicy; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_bgp_routingpolicy (created, last_updated, id, name, description, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: netbox_bgp_routingpolicyrule; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_bgp_routingpolicyrule (id, created, last_updated, custom_field_data, index, action, description, match_custom, set_actions, routing_policy_id, continue_entry) FROM stdin; -\. - - --- --- Data for Name: netbox_bgp_routingpolicyrule_match_community; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_bgp_routingpolicyrule_match_community (id, routingpolicyrule_id, community_id) FROM stdin; -\. - - --- --- Data for Name: netbox_bgp_routingpolicyrule_match_ip_address; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_bgp_routingpolicyrule_match_ip_address (id, routingpolicyrule_id, prefixlist_id) FROM stdin; -\. - - --- --- Data for Name: netbox_bgp_routingpolicyrule_match_ipv6_address; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_bgp_routingpolicyrule_match_ipv6_address (id, routingpolicyrule_id, prefixlist_id) FROM stdin; -\. - - --- --- Data for Name: netbox_dns_nameserver; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_dns_nameserver (id, created, last_updated, custom_field_data, name, description) FROM stdin; -\. - - --- --- Data for Name: netbox_dns_record; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_dns_record (id, created, last_updated, custom_field_data, type, name, value, ttl, zone_id, status, description, managed, disable_ptr, ptr_record_id, ip_address) FROM stdin; -\. - - --- --- Data for Name: netbox_dns_view; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_dns_view (id, created, last_updated, custom_field_data, name, description) FROM stdin; -\. - - --- --- Data for Name: netbox_dns_zone; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_dns_zone (id, created, last_updated, custom_field_data, name, status, description, view_id, default_ttl, soa_expire, soa_minimum, soa_mname_id, soa_refresh, soa_retry, soa_rname, soa_serial, soa_ttl, soa_serial_auto, arpa_network) FROM stdin; -\. - - --- --- Data for Name: netbox_dns_zone_nameservers; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.netbox_dns_zone_nameservers (id, zone_id, nameserver_id) FROM stdin; -\. - - --- --- Data for Name: social_auth_association; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.social_auth_association (id, server_url, handle, secret, issued, lifetime, assoc_type) FROM stdin; -\. - - --- --- Data for Name: social_auth_code; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.social_auth_code (id, email, code, verified, "timestamp") FROM stdin; -\. - - --- --- Data for Name: social_auth_nonce; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.social_auth_nonce (id, server_url, "timestamp", salt) FROM stdin; -\. - - --- --- Data for Name: social_auth_partial; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.social_auth_partial (id, token, next_step, backend, data, "timestamp") FROM stdin; -\. - - --- --- Data for Name: social_auth_usersocialauth; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.social_auth_usersocialauth (id, provider, uid, extra_data, user_id, created, modified) FROM stdin; -\. - - --- --- Data for Name: taggit_tag; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.taggit_tag (id, name, slug) FROM stdin; -\. - - --- --- Data for Name: taggit_taggeditem; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.taggit_taggeditem (id, object_id, content_type_id, tag_id) FROM stdin; -\. - - --- --- Data for Name: tenancy_contact; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.tenancy_contact (created, last_updated, custom_field_data, id, name, title, phone, email, address, comments, group_id, link, description) FROM stdin; -\. - - --- --- Data for Name: tenancy_contactassignment; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.tenancy_contactassignment (created, last_updated, id, object_id, priority, contact_id, content_type_id, role_id) FROM stdin; -\. - - --- --- Data for Name: tenancy_contactgroup; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.tenancy_contactgroup (created, last_updated, custom_field_data, id, name, slug, description, lft, rght, tree_id, level, parent_id) FROM stdin; -\. - - --- --- Data for Name: tenancy_contactrole; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.tenancy_contactrole (created, last_updated, custom_field_data, id, name, slug, description) FROM stdin; -\. - - --- --- Data for Name: tenancy_tenant; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.tenancy_tenant (created, last_updated, custom_field_data, id, name, slug, description, comments, group_id) FROM stdin; -\. - - --- --- Data for Name: tenancy_tenantgroup; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.tenancy_tenantgroup (created, last_updated, custom_field_data, id, name, slug, description, lft, rght, tree_id, level, parent_id) FROM stdin; -\. - - --- --- Data for Name: users_objectpermission; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.users_objectpermission (id, name, description, enabled, actions, constraints) FROM stdin; -1 read_all Read all objects t {view} \N -2 read_write_all Read/Write all objects t {add,change,delete,view} \N -\. - - --- --- Data for Name: users_objectpermission_groups; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.users_objectpermission_groups (id, objectpermission_id, group_id) FROM stdin; -1 1 1 -2 2 2 -\. - - --- --- Data for Name: users_objectpermission_object_types; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.users_objectpermission_object_types (id, objectpermission_id, contenttype_id) FROM stdin; -1 1 1 -2 1 2 -3 1 3 -4 1 4 -5 1 5 -6 1 6 -7 1 7 -8 1 8 -9 1 9 -10 1 10 -11 1 11 -12 1 12 -13 1 13 -14 1 14 -15 1 15 -16 1 16 -17 1 17 -18 1 18 -19 1 19 -20 1 20 -21 1 21 -22 1 22 -23 1 23 -24 1 24 -25 1 25 -26 1 26 -27 1 27 -28 1 28 -29 1 29 -30 1 30 -31 1 31 -32 1 32 -33 1 33 -34 1 34 -35 1 35 -36 1 36 -37 1 37 -38 1 38 -39 1 39 -40 1 40 -41 1 41 -42 1 42 -43 1 43 -44 1 44 -45 1 45 -46 1 46 -47 1 47 -48 1 48 -49 1 49 -50 1 50 -51 1 51 -52 1 52 -53 1 53 -54 1 54 -55 1 55 -56 1 56 -57 1 57 -58 1 58 -59 1 59 -60 1 60 -61 1 61 -62 1 62 -63 1 63 -64 1 64 -65 1 65 -66 1 66 -67 1 67 -68 1 68 -69 1 69 -70 1 70 -71 1 71 -72 1 72 -73 1 73 -74 1 74 -75 1 75 -76 1 76 -77 1 77 -78 1 78 -79 1 79 -80 1 80 -81 1 81 -82 1 82 -83 1 83 -84 1 84 -85 1 85 -86 1 86 -87 1 87 -88 1 88 -89 1 89 -90 1 90 -91 1 91 -92 1 92 -93 1 93 -94 1 94 -95 1 95 -96 1 96 -97 1 97 -98 1 98 -99 1 99 -100 1 100 -101 1 101 -102 1 102 -103 1 103 -104 1 104 -105 1 105 -106 1 106 -107 1 107 -108 1 108 -109 1 109 -110 1 110 -111 1 111 -112 1 112 -113 1 113 -114 1 114 -115 1 115 -116 1 116 -117 1 117 -118 1 118 -119 1 119 -120 1 120 -121 1 121 -122 1 122 -123 1 123 -124 1 124 -125 1 125 -126 1 126 -127 2 1 -128 2 2 -129 2 3 -130 2 4 -131 2 5 -132 2 6 -133 2 7 -134 2 8 -135 2 9 -136 2 10 -137 2 11 -138 2 12 -139 2 13 -140 2 14 -141 2 15 -142 2 16 -143 2 17 -144 2 18 -145 2 19 -146 2 20 -147 2 21 -148 2 22 -149 2 23 -150 2 24 -151 2 25 -152 2 26 -153 2 27 -154 2 28 -155 2 29 -156 2 30 -157 2 31 -158 2 32 -159 2 33 -160 2 34 -161 2 35 -162 2 36 -163 2 37 -164 2 38 -165 2 39 -166 2 40 -167 2 41 -168 2 42 -169 2 43 -170 2 44 -171 2 45 -172 2 46 -173 2 47 -174 2 48 -175 2 49 -176 2 50 -177 2 51 -178 2 52 -179 2 53 -180 2 54 -181 2 55 -182 2 56 -183 2 57 -184 2 58 -185 2 59 -186 2 60 -187 2 61 -188 2 62 -189 2 63 -190 2 64 -191 2 65 -192 2 66 -193 2 67 -194 2 68 -195 2 69 -196 2 70 -197 2 71 -198 2 72 -199 2 73 -200 2 74 -201 2 75 -202 2 76 -203 2 77 -204 2 78 -205 2 79 -206 2 80 -207 2 81 -208 2 82 -209 2 83 -210 2 84 -211 2 85 -212 2 86 -213 2 87 -214 2 88 -215 2 89 -216 2 90 -217 2 91 -218 2 92 -219 2 93 -220 2 94 -221 2 95 -222 2 96 -223 2 97 -224 2 98 -225 2 99 -226 2 100 -227 2 101 -228 2 102 -229 2 103 -230 2 104 -231 2 105 -232 2 106 -233 2 107 -234 2 108 -235 2 109 -236 2 110 -237 2 111 -238 2 112 -239 2 113 -240 2 114 -241 2 115 -242 2 116 -243 2 117 -244 2 118 -245 2 119 -246 2 120 -247 2 121 -248 2 122 -249 2 123 -250 2 124 -251 2 125 -252 2 126 -\. - - --- --- Data for Name: users_objectpermission_users; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.users_objectpermission_users (id, objectpermission_id, user_id) FROM stdin; -\. - - --- --- Data for Name: users_token; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.users_token (id, created, expires, key, write_enabled, description, user_id, allowed_ips, last_used) FROM stdin; -1 2023-06-23 20:10:24.957022+00 \N 0000000000000000000000000000000000000000 t 1 \N \N -2 2023-06-23 20:10:34.96079+00 \N 1111111111111111111111111111111111111111 t 2 \N \N -\. - - --- --- Data for Name: users_userconfig; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.users_userconfig (id, data, user_id) FROM stdin; -1 {} 1 -2 {} 2 -\. - - --- --- Data for Name: virtualization_cluster; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.virtualization_cluster (created, last_updated, custom_field_data, id, name, comments, group_id, site_id, tenant_id, type_id, status, description) FROM stdin; -\. - - --- --- Data for Name: virtualization_clustergroup; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.virtualization_clustergroup (created, last_updated, custom_field_data, id, name, slug, description) FROM stdin; -\. - - --- --- Data for Name: virtualization_clustertype; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.virtualization_clustertype (created, last_updated, custom_field_data, id, name, slug, description) FROM stdin; -\. - - --- --- Data for Name: virtualization_virtualmachine; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.virtualization_virtualmachine (created, last_updated, custom_field_data, id, local_context_data, name, status, vcpus, memory, disk, comments, cluster_id, platform_id, primary_ip4_id, primary_ip6_id, role_id, tenant_id, _name, site_id, device_id, description) FROM stdin; -\. - - --- --- Data for Name: virtualization_vminterface; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.virtualization_vminterface (created, last_updated, custom_field_data, id, enabled, mac_address, mtu, mode, name, _name, description, parent_id, untagged_vlan_id, virtual_machine_id, bridge_id, vrf_id) FROM stdin; -\. - - --- --- Data for Name: virtualization_vminterface_tagged_vlans; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.virtualization_vminterface_tagged_vlans (id, vminterface_id, vlan_id) FROM stdin; -\. - - --- --- Data for Name: wireless_wirelesslan; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.wireless_wirelesslan (created, last_updated, custom_field_data, id, ssid, group_id, description, auth_cipher, auth_psk, auth_type, vlan_id, tenant_id, comments, status) FROM stdin; -\. - - --- --- Data for Name: wireless_wirelesslangroup; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.wireless_wirelesslangroup (created, last_updated, custom_field_data, id, name, slug, description, lft, rght, tree_id, level, parent_id) FROM stdin; -\. - - --- --- Data for Name: wireless_wirelesslink; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.wireless_wirelesslink (created, last_updated, custom_field_data, id, ssid, status, description, auth_cipher, auth_psk, auth_type, _interface_a_device_id, _interface_b_device_id, interface_a_id, interface_b_id, tenant_id, comments) FROM stdin; -\. - - --- --- Name: auth_group_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.auth_group_id_seq', 2, true); - - --- --- Name: auth_group_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.auth_group_permissions_id_seq', 1, false); - - --- --- Name: auth_permission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.auth_permission_id_seq', 501, true); - - --- --- Name: auth_user_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.auth_user_groups_id_seq', 1, true); - - --- --- Name: auth_user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.auth_user_id_seq', 2, true); - - --- --- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.auth_user_user_permissions_id_seq', 1, false); - - --- --- Name: circuits_circuit_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.circuits_circuit_id_seq', 1, false); - - --- --- Name: circuits_circuittermination_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.circuits_circuittermination_id_seq', 1, false); - - --- --- Name: circuits_circuittype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.circuits_circuittype_id_seq', 1, false); - - --- --- Name: circuits_provider_asns_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.circuits_provider_asns_id_seq', 1, false); - - --- --- Name: circuits_provider_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.circuits_provider_id_seq', 1, false); - - --- --- Name: circuits_providernetwork_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.circuits_providernetwork_id_seq', 1, false); - - --- --- Name: dcim_cable_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_cable_id_seq', 1, false); - - --- --- Name: dcim_cablepath_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_cablepath_id_seq', 1, false); - - --- --- Name: dcim_cabletermination_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_cabletermination_id_seq', 1, false); - - --- --- Name: dcim_consoleport_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_consoleport_id_seq', 1, false); - - --- --- Name: dcim_consoleporttemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_consoleporttemplate_id_seq', 1, false); - - --- --- Name: dcim_consoleserverport_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_consoleserverport_id_seq', 1, false); - - --- --- Name: dcim_consoleserverporttemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_consoleserverporttemplate_id_seq', 1, false); - - --- --- Name: dcim_device_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_device_id_seq', 1, false); - - --- --- Name: dcim_devicebay_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_devicebay_id_seq', 1, false); - - --- --- Name: dcim_devicebaytemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_devicebaytemplate_id_seq', 1, false); - - --- --- Name: dcim_devicerole_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_devicerole_id_seq', 22, true); - - --- --- Name: dcim_devicetype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_devicetype_id_seq', 1, true); - - --- --- Name: dcim_frontport_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_frontport_id_seq', 1, false); - - --- --- Name: dcim_frontporttemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_frontporttemplate_id_seq', 1, false); - - --- --- Name: dcim_interface_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_interface_id_seq', 1, false); - - --- --- Name: dcim_interface_tagged_vlans_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_interface_tagged_vlans_id_seq', 1, false); - - --- --- Name: dcim_interface_vdcs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_interface_vdcs_id_seq', 1, false); - - --- --- Name: dcim_interface_wireless_lans_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_interface_wireless_lans_id_seq', 1, false); - - --- --- Name: dcim_interfacetemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_interfacetemplate_id_seq', 1, false); - - --- --- Name: dcim_inventoryitem_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_inventoryitem_id_seq', 1, false); - - --- --- Name: dcim_inventoryitemrole_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_inventoryitemrole_id_seq', 1, false); - - --- --- Name: dcim_inventoryitemtemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_inventoryitemtemplate_id_seq', 1, false); - - --- --- Name: dcim_location_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_location_id_seq', 1, false); - - --- --- Name: dcim_manufacturer_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_manufacturer_id_seq', 1, true); - - --- --- Name: dcim_module_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_module_id_seq', 1, false); - - --- --- Name: dcim_modulebay_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_modulebay_id_seq', 1, false); - - --- --- Name: dcim_modulebaytemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_modulebaytemplate_id_seq', 1, false); - - --- --- Name: dcim_moduletype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_moduletype_id_seq', 1, false); - - --- --- Name: dcim_platform_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_platform_id_seq', 1, false); - - --- --- Name: dcim_powerfeed_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_powerfeed_id_seq', 1, false); - - --- --- Name: dcim_poweroutlet_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_poweroutlet_id_seq', 1, false); - - --- --- Name: dcim_poweroutlettemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_poweroutlettemplate_id_seq', 1, false); - - --- --- Name: dcim_powerpanel_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_powerpanel_id_seq', 1, false); - - --- --- Name: dcim_powerport_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_powerport_id_seq', 1, false); - - --- --- Name: dcim_powerporttemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_powerporttemplate_id_seq', 1, false); - - --- --- Name: dcim_rack_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_rack_id_seq', 1, false); - - --- --- Name: dcim_rackreservation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_rackreservation_id_seq', 1, false); - - --- --- Name: dcim_rackrole_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_rackrole_id_seq', 1, false); - - --- --- Name: dcim_rearport_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_rearport_id_seq', 1, false); - - --- --- Name: dcim_rearporttemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_rearporttemplate_id_seq', 1, false); - - --- --- Name: dcim_region_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_region_id_seq', 1, false); - - --- --- Name: dcim_site_asns_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_site_asns_id_seq', 1, false); - - --- --- Name: dcim_site_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_site_id_seq', 1, true); - - --- --- Name: dcim_sitegroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_sitegroup_id_seq', 1, false); - - --- --- Name: dcim_virtualchassis_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_virtualchassis_id_seq', 1, false); - - --- --- Name: dcim_virtualdevicecontext_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_virtualdevicecontext_id_seq', 1, false); - - --- --- Name: django_admin_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.django_admin_log_id_seq', 1, false); - - --- --- Name: django_content_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.django_content_type_id_seq', 126, true); - - --- --- Name: django_migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.django_migrations_id_seq', 537, true); - - --- --- Name: extras_branch_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_branch_id_seq', 1, false); - - --- --- Name: extras_configcontext_cluster_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_configcontext_cluster_groups_id_seq', 1, false); - - --- --- Name: extras_configcontext_cluster_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_configcontext_cluster_types_id_seq', 1, false); - - --- --- Name: extras_configcontext_clusters_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_configcontext_clusters_id_seq', 1, false); - - --- --- Name: extras_configcontext_device_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_configcontext_device_types_id_seq', 1, false); - - --- --- Name: extras_configcontext_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_configcontext_id_seq', 1, false); - - --- --- Name: extras_configcontext_locations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_configcontext_locations_id_seq', 1, false); - - --- --- Name: extras_configcontext_platforms_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_configcontext_platforms_id_seq', 1, false); - - --- --- Name: extras_configcontext_regions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_configcontext_regions_id_seq', 1, false); - - --- --- Name: extras_configcontext_roles_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_configcontext_roles_id_seq', 1, false); - - --- --- Name: extras_configcontext_site_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_configcontext_site_groups_id_seq', 1, false); - - --- --- Name: extras_configcontext_sites_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_configcontext_sites_id_seq', 1, false); - - --- --- Name: extras_configcontext_tags_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_configcontext_tags_id_seq', 1, false); - - --- --- Name: extras_configcontext_tenant_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_configcontext_tenant_groups_id_seq', 1, false); - - --- --- Name: extras_configcontext_tenants_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_configcontext_tenants_id_seq', 1, false); - - --- --- Name: extras_configrevision_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_configrevision_id_seq', 1, false); - - --- --- Name: extras_customfield_content_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_customfield_content_types_id_seq', 15, true); - - --- --- Name: extras_customfield_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_customfield_id_seq', 15, true); - - --- --- Name: extras_customlink_content_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_customlink_content_types_id_seq', 1, false); - - --- --- Name: extras_customlink_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_customlink_id_seq', 1, false); - - --- --- Name: extras_exporttemplate_content_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_exporttemplate_content_types_id_seq', 1, false); - - --- --- Name: extras_exporttemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_exporttemplate_id_seq', 1, false); - - --- --- Name: extras_imageattachment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_imageattachment_id_seq', 1, false); - - --- --- Name: extras_jobresult_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_jobresult_id_seq', 1, false); - - --- --- Name: extras_journalentry_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_journalentry_id_seq', 1, false); - - --- --- Name: extras_objectchange_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_objectchange_id_seq', 1, false); - - --- --- Name: extras_savedfilter_content_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_savedfilter_content_types_id_seq', 1, false); - - --- --- Name: extras_savedfilter_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_savedfilter_id_seq', 1, false); - - --- --- Name: extras_stagedchange_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_stagedchange_id_seq', 1, false); - - --- --- Name: extras_tag_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_tag_id_seq', 18, true); - - --- --- Name: extras_taggeditem_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_taggeditem_id_seq', 1, false); - - --- --- Name: extras_webhook_content_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_webhook_content_types_id_seq', 2, true); - - --- --- Name: extras_webhook_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_webhook_id_seq', 1, true); - - --- --- Name: ipam_aggregate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_aggregate_id_seq', 1, false); - - --- --- Name: ipam_asn_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_asn_id_seq', 1, false); - - --- --- Name: ipam_fhrpgroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_fhrpgroup_id_seq', 1, false); - - --- --- Name: ipam_fhrpgroupassignment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_fhrpgroupassignment_id_seq', 1, false); - - --- --- Name: ipam_ipaddress_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_ipaddress_id_seq', 1, false); - - --- --- Name: ipam_iprange_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_iprange_id_seq', 1, false); - - --- --- Name: ipam_l2vpn_export_targets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_l2vpn_export_targets_id_seq', 1, false); - - --- --- Name: ipam_l2vpn_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_l2vpn_id_seq', 1, false); - - --- --- Name: ipam_l2vpn_import_targets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_l2vpn_import_targets_id_seq', 1, false); - - --- --- Name: ipam_l2vpntermination_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_l2vpntermination_id_seq', 1, false); - - --- --- Name: ipam_prefix_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_prefix_id_seq', 1, false); - - --- --- Name: ipam_rir_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_rir_id_seq', 1, false); - - --- --- Name: ipam_role_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_role_id_seq', 9, true); - - --- --- Name: ipam_routetarget_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_routetarget_id_seq', 1, false); - - --- --- Name: ipam_service_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_service_id_seq', 1, false); - - --- --- Name: ipam_service_ipaddresses_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_service_ipaddresses_id_seq', 1, false); - - --- --- Name: ipam_servicetemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_servicetemplate_id_seq', 1, false); - - --- --- Name: ipam_vlan_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_vlan_id_seq', 1, false); - - --- --- Name: ipam_vlangroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_vlangroup_id_seq', 1, false); - - --- --- Name: ipam_vrf_export_targets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_vrf_export_targets_id_seq', 1, false); - - --- --- Name: ipam_vrf_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_vrf_id_seq', 1, false); - - --- --- Name: ipam_vrf_import_targets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_vrf_import_targets_id_seq', 1, false); - - --- --- Name: netbox_bgp_bgppeergroup_export_policies_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_bgp_bgppeergroup_export_policies_id_seq', 1, false); - - --- --- Name: netbox_bgp_bgppeergroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_bgp_bgppeergroup_id_seq', 1, false); - - --- --- Name: netbox_bgp_bgppeergroup_import_policies_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_bgp_bgppeergroup_import_policies_id_seq', 1, false); - - --- --- Name: netbox_bgp_bgpsession_export_policies_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_bgp_bgpsession_export_policies_id_seq', 1, false); - - --- --- Name: netbox_bgp_bgpsession_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_bgp_bgpsession_id_seq', 1, false); - - --- --- Name: netbox_bgp_bgpsession_import_policies_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_bgp_bgpsession_import_policies_id_seq', 1, false); - - --- --- Name: netbox_bgp_community_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_bgp_community_id_seq', 1, false); - - --- --- Name: netbox_bgp_prefixlist_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_bgp_prefixlist_id_seq', 1, false); - - --- --- Name: netbox_bgp_prefixlistrule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_bgp_prefixlistrule_id_seq', 1, false); - - --- --- Name: netbox_bgp_routingpolicy_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_bgp_routingpolicy_id_seq', 1, false); - - --- --- Name: netbox_bgp_routingpolicyrule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_bgp_routingpolicyrule_id_seq', 1, false); - - --- --- Name: netbox_bgp_routingpolicyrule_match_community_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_bgp_routingpolicyrule_match_community_id_seq', 1, false); - - --- --- Name: netbox_bgp_routingpolicyrule_match_ip_address_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_bgp_routingpolicyrule_match_ip_address_id_seq', 1, false); - - --- --- Name: netbox_bgp_routingpolicyrule_match_ipv6_address_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_bgp_routingpolicyrule_match_ipv6_address_id_seq', 1, false); - - --- --- Name: netbox_dns_nameserver_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_dns_nameserver_id_seq', 1, false); - - --- --- Name: netbox_dns_record_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_dns_record_id_seq', 1, false); - - --- --- Name: netbox_dns_view_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_dns_view_id_seq', 1, false); - - --- --- Name: netbox_dns_zone_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_dns_zone_id_seq', 1, false); - - --- --- Name: netbox_dns_zone_nameservers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.netbox_dns_zone_nameservers_id_seq', 1, false); - - --- --- Name: social_auth_association_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.social_auth_association_id_seq', 1, false); - - --- --- Name: social_auth_code_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.social_auth_code_id_seq', 1, false); - - --- --- Name: social_auth_nonce_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.social_auth_nonce_id_seq', 1, false); - - --- --- Name: social_auth_partial_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.social_auth_partial_id_seq', 1, false); - - --- --- Name: social_auth_usersocialauth_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.social_auth_usersocialauth_id_seq', 1, false); - - --- --- Name: taggit_tag_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.taggit_tag_id_seq', 1, false); - - --- --- Name: taggit_taggeditem_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.taggit_taggeditem_id_seq', 1, false); - - --- --- Name: tenancy_contact_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.tenancy_contact_id_seq', 1, false); - - --- --- Name: tenancy_contactassignment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.tenancy_contactassignment_id_seq', 1, false); - - --- --- Name: tenancy_contactgroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.tenancy_contactgroup_id_seq', 1, false); - - --- --- Name: tenancy_contactrole_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.tenancy_contactrole_id_seq', 1, false); - - --- --- Name: tenancy_tenant_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.tenancy_tenant_id_seq', 1, false); - - --- --- Name: tenancy_tenantgroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.tenancy_tenantgroup_id_seq', 1, false); - - --- --- Name: users_objectpermission_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.users_objectpermission_groups_id_seq', 2, true); - - --- --- Name: users_objectpermission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.users_objectpermission_id_seq', 2, true); - - --- --- Name: users_objectpermission_object_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.users_objectpermission_object_types_id_seq', 252, true); - - --- --- Name: users_objectpermission_users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.users_objectpermission_users_id_seq', 1, false); - - --- --- Name: users_token_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.users_token_id_seq', 2, true); - - --- --- Name: users_userconfig_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.users_userconfig_id_seq', 2, true); - - --- --- Name: virtualization_cluster_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.virtualization_cluster_id_seq', 1, false); - - --- --- Name: virtualization_clustergroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.virtualization_clustergroup_id_seq', 1, false); - - --- --- Name: virtualization_clustertype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.virtualization_clustertype_id_seq', 1, false); - - --- --- Name: virtualization_virtualmachine_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.virtualization_virtualmachine_id_seq', 1, false); - - --- --- Name: virtualization_vminterface_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.virtualization_vminterface_id_seq', 1, false); - - --- --- Name: virtualization_vminterface_tagged_vlans_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.virtualization_vminterface_tagged_vlans_id_seq', 1, false); - - --- --- Name: wireless_wirelesslan_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.wireless_wirelesslan_id_seq', 1, false); - - --- --- Name: wireless_wirelesslangroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.wireless_wirelesslangroup_id_seq', 1, false); - - --- --- Name: wireless_wirelesslink_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.wireless_wirelesslink_id_seq', 1, false); - - --- --- Name: auth_group auth_group_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_group - ADD CONSTRAINT auth_group_name_key UNIQUE (name); - - --- --- Name: auth_group_permissions auth_group_permissions_group_id_permission_id_0cd325b0_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_group_permissions - ADD CONSTRAINT auth_group_permissions_group_id_permission_id_0cd325b0_uniq UNIQUE (group_id, permission_id); - - --- --- Name: auth_group_permissions auth_group_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_group_permissions - ADD CONSTRAINT auth_group_permissions_pkey PRIMARY KEY (id); - - --- --- Name: auth_group auth_group_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_group - ADD CONSTRAINT auth_group_pkey PRIMARY KEY (id); - - --- --- Name: auth_permission auth_permission_content_type_id_codename_01ab375a_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_permission - ADD CONSTRAINT auth_permission_content_type_id_codename_01ab375a_uniq UNIQUE (content_type_id, codename); - - --- --- Name: auth_permission auth_permission_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_permission - ADD CONSTRAINT auth_permission_pkey PRIMARY KEY (id); - - --- --- Name: auth_user_groups auth_user_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_user_groups - ADD CONSTRAINT auth_user_groups_pkey PRIMARY KEY (id); - - --- --- Name: auth_user_groups auth_user_groups_user_id_group_id_94350c0c_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_user_groups - ADD CONSTRAINT auth_user_groups_user_id_group_id_94350c0c_uniq UNIQUE (user_id, group_id); - - --- --- Name: auth_user auth_user_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_user - ADD CONSTRAINT auth_user_pkey PRIMARY KEY (id); - - --- --- Name: auth_user_user_permissions auth_user_user_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_user_user_permissions - ADD CONSTRAINT auth_user_user_permissions_pkey PRIMARY KEY (id); - - --- --- Name: auth_user_user_permissions auth_user_user_permissions_user_id_permission_id_14a6b632_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_user_user_permissions - ADD CONSTRAINT auth_user_user_permissions_user_id_permission_id_14a6b632_uniq UNIQUE (user_id, permission_id); - - --- --- Name: auth_user auth_user_username_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_user - ADD CONSTRAINT auth_user_username_key UNIQUE (username); - - --- --- Name: circuits_circuit circuits_circuit_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuit - ADD CONSTRAINT circuits_circuit_pkey PRIMARY KEY (id); - - --- --- Name: circuits_circuit circuits_circuit_unique_provider_cid; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuit - ADD CONSTRAINT circuits_circuit_unique_provider_cid UNIQUE (provider_id, cid); - - --- --- Name: circuits_circuittermination circuits_circuittermination_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuittermination - ADD CONSTRAINT circuits_circuittermination_pkey PRIMARY KEY (id); - - --- --- Name: circuits_circuittermination circuits_circuittermination_unique_circuit_term_side; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuittermination - ADD CONSTRAINT circuits_circuittermination_unique_circuit_term_side UNIQUE (circuit_id, term_side); - - --- --- Name: circuits_circuittype circuits_circuittype_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuittype - ADD CONSTRAINT circuits_circuittype_name_key UNIQUE (name); - - --- --- Name: circuits_circuittype circuits_circuittype_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuittype - ADD CONSTRAINT circuits_circuittype_pkey PRIMARY KEY (id); - - --- --- Name: circuits_circuittype circuits_circuittype_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuittype - ADD CONSTRAINT circuits_circuittype_slug_key UNIQUE (slug); - - --- --- Name: circuits_provider_asns circuits_provider_asns_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_provider_asns - ADD CONSTRAINT circuits_provider_asns_pkey PRIMARY KEY (id); - - --- --- Name: circuits_provider_asns circuits_provider_asns_provider_id_asn_id_6e573798_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_provider_asns - ADD CONSTRAINT circuits_provider_asns_provider_id_asn_id_6e573798_uniq UNIQUE (provider_id, asn_id); - - --- --- Name: circuits_provider circuits_provider_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_provider - ADD CONSTRAINT circuits_provider_name_key UNIQUE (name); - - --- --- Name: circuits_provider circuits_provider_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_provider - ADD CONSTRAINT circuits_provider_pkey PRIMARY KEY (id); - - --- --- Name: circuits_provider circuits_provider_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_provider - ADD CONSTRAINT circuits_provider_slug_key UNIQUE (slug); - - --- --- Name: circuits_providernetwork circuits_providernetwork_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_providernetwork - ADD CONSTRAINT circuits_providernetwork_pkey PRIMARY KEY (id); - - --- --- Name: circuits_providernetwork circuits_providernetwork_unique_provider_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_providernetwork - ADD CONSTRAINT circuits_providernetwork_unique_provider_name UNIQUE (provider_id, name); - - --- --- Name: dcim_cable dcim_cable_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cable - ADD CONSTRAINT dcim_cable_pkey PRIMARY KEY (id); - - --- --- Name: dcim_cablepath dcim_cablepath_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cablepath - ADD CONSTRAINT dcim_cablepath_pkey PRIMARY KEY (id); - - --- --- Name: dcim_cabletermination dcim_cabletermination_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cabletermination - ADD CONSTRAINT dcim_cabletermination_pkey PRIMARY KEY (id); - - --- --- Name: dcim_cabletermination dcim_cabletermination_unique_termination; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cabletermination - ADD CONSTRAINT dcim_cabletermination_unique_termination UNIQUE (termination_type_id, termination_id); - - --- --- Name: dcim_consoleport dcim_consoleport_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleport - ADD CONSTRAINT dcim_consoleport_pkey PRIMARY KEY (id); - - --- --- Name: dcim_consoleport dcim_consoleport_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleport - ADD CONSTRAINT dcim_consoleport_unique_device_name UNIQUE (device_id, name); - - --- --- Name: dcim_consoleporttemplate dcim_consoleporttemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleporttemplate - ADD CONSTRAINT dcim_consoleporttemplate_pkey PRIMARY KEY (id); - - --- --- Name: dcim_consoleporttemplate dcim_consoleporttemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleporttemplate - ADD CONSTRAINT dcim_consoleporttemplate_unique_device_type_name UNIQUE (device_type_id, name); - - --- --- Name: dcim_consoleporttemplate dcim_consoleporttemplate_unique_module_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleporttemplate - ADD CONSTRAINT dcim_consoleporttemplate_unique_module_type_name UNIQUE (module_type_id, name); - - --- --- Name: dcim_consoleserverport dcim_consoleserverport_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverport - ADD CONSTRAINT dcim_consoleserverport_pkey PRIMARY KEY (id); - - --- --- Name: dcim_consoleserverport dcim_consoleserverport_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverport - ADD CONSTRAINT dcim_consoleserverport_unique_device_name UNIQUE (device_id, name); - - --- --- Name: dcim_consoleserverporttemplate dcim_consoleserverporttemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverporttemplate - ADD CONSTRAINT dcim_consoleserverporttemplate_pkey PRIMARY KEY (id); - - --- --- Name: dcim_consoleserverporttemplate dcim_consoleserverporttemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverporttemplate - ADD CONSTRAINT dcim_consoleserverporttemplate_unique_device_type_name UNIQUE (device_type_id, name); - - --- --- Name: dcim_consoleserverporttemplate dcim_consoleserverporttemplate_unique_module_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverporttemplate - ADD CONSTRAINT dcim_consoleserverporttemplate_unique_module_type_name UNIQUE (module_type_id, name); - - --- --- Name: dcim_device dcim_device_asset_tag_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_asset_tag_key UNIQUE (asset_tag); - - --- --- Name: dcim_device dcim_device_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_pkey PRIMARY KEY (id); - - --- --- Name: dcim_device dcim_device_primary_ip4_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_primary_ip4_id_key UNIQUE (primary_ip4_id); - - --- --- Name: dcim_device dcim_device_primary_ip6_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_primary_ip6_id_key UNIQUE (primary_ip6_id); - - --- --- Name: dcim_device dcim_device_unique_rack_position_face; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_unique_rack_position_face UNIQUE (rack_id, "position", face); - - --- --- Name: dcim_device dcim_device_unique_virtual_chassis_vc_position; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_unique_virtual_chassis_vc_position UNIQUE (virtual_chassis_id, vc_position); - - --- --- Name: dcim_devicebay dcim_devicebay_installed_device_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicebay - ADD CONSTRAINT dcim_devicebay_installed_device_id_key UNIQUE (installed_device_id); - - --- --- Name: dcim_devicebay dcim_devicebay_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicebay - ADD CONSTRAINT dcim_devicebay_pkey PRIMARY KEY (id); - - --- --- Name: dcim_devicebay dcim_devicebay_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicebay - ADD CONSTRAINT dcim_devicebay_unique_device_name UNIQUE (device_id, name); - - --- --- Name: dcim_devicebaytemplate dcim_devicebaytemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicebaytemplate - ADD CONSTRAINT dcim_devicebaytemplate_pkey PRIMARY KEY (id); - - --- --- Name: dcim_devicebaytemplate dcim_devicebaytemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicebaytemplate - ADD CONSTRAINT dcim_devicebaytemplate_unique_device_type_name UNIQUE (device_type_id, name); - - --- --- Name: dcim_devicerole dcim_devicerole_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicerole - ADD CONSTRAINT dcim_devicerole_name_key UNIQUE (name); - - --- --- Name: dcim_devicerole dcim_devicerole_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicerole - ADD CONSTRAINT dcim_devicerole_pkey PRIMARY KEY (id); - - --- --- Name: dcim_devicerole dcim_devicerole_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicerole - ADD CONSTRAINT dcim_devicerole_slug_key UNIQUE (slug); - - --- --- Name: dcim_devicetype dcim_devicetype_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicetype - ADD CONSTRAINT dcim_devicetype_pkey PRIMARY KEY (id); - - --- --- Name: dcim_devicetype dcim_devicetype_unique_manufacturer_model; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicetype - ADD CONSTRAINT dcim_devicetype_unique_manufacturer_model UNIQUE (manufacturer_id, model); - - --- --- Name: dcim_devicetype dcim_devicetype_unique_manufacturer_slug; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicetype - ADD CONSTRAINT dcim_devicetype_unique_manufacturer_slug UNIQUE (manufacturer_id, slug); - - --- --- Name: dcim_frontport dcim_frontport_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontport - ADD CONSTRAINT dcim_frontport_pkey PRIMARY KEY (id); - - --- --- Name: dcim_frontport dcim_frontport_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontport - ADD CONSTRAINT dcim_frontport_unique_device_name UNIQUE (device_id, name); - - --- --- Name: dcim_frontport dcim_frontport_unique_rear_port_position; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontport - ADD CONSTRAINT dcim_frontport_unique_rear_port_position UNIQUE (rear_port_id, rear_port_position); - - --- --- Name: dcim_frontporttemplate dcim_frontporttemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontporttemplate - ADD CONSTRAINT dcim_frontporttemplate_pkey PRIMARY KEY (id); - - --- --- Name: dcim_frontporttemplate dcim_frontporttemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontporttemplate - ADD CONSTRAINT dcim_frontporttemplate_unique_device_type_name UNIQUE (device_type_id, name); - - --- --- Name: dcim_frontporttemplate dcim_frontporttemplate_unique_module_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontporttemplate - ADD CONSTRAINT dcim_frontporttemplate_unique_module_type_name UNIQUE (module_type_id, name); - - --- --- Name: dcim_frontporttemplate dcim_frontporttemplate_unique_rear_port_position; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontporttemplate - ADD CONSTRAINT dcim_frontporttemplate_unique_rear_port_position UNIQUE (rear_port_id, rear_port_position); - - --- --- Name: dcim_interface dcim_interface_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface_pkey PRIMARY KEY (id); - - --- --- Name: dcim_interface_tagged_vlans dcim_interface_tagged_vlans_interface_id_vlan_id_0d55c576_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface_tagged_vlans - ADD CONSTRAINT dcim_interface_tagged_vlans_interface_id_vlan_id_0d55c576_uniq UNIQUE (interface_id, vlan_id); - - --- --- Name: dcim_interface_tagged_vlans dcim_interface_tagged_vlans_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface_tagged_vlans - ADD CONSTRAINT dcim_interface_tagged_vlans_pkey PRIMARY KEY (id); - - --- --- Name: dcim_interface dcim_interface_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface_unique_device_name UNIQUE (device_id, name); - - --- --- Name: dcim_interface_vdcs dcim_interface_vdcs_interface_id_virtualdevi_cca9c2a6_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface_vdcs - ADD CONSTRAINT dcim_interface_vdcs_interface_id_virtualdevi_cca9c2a6_uniq UNIQUE (interface_id, virtualdevicecontext_id); - - --- --- Name: dcim_interface_vdcs dcim_interface_vdcs_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface_vdcs - ADD CONSTRAINT dcim_interface_vdcs_pkey PRIMARY KEY (id); - - --- --- Name: dcim_interface_wireless_lans dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface_wireless_lans - ADD CONSTRAINT dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq UNIQUE (interface_id, wirelesslan_id); - - --- --- Name: dcim_interface_wireless_lans dcim_interface_wireless_lans_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface_wireless_lans - ADD CONSTRAINT dcim_interface_wireless_lans_pkey PRIMARY KEY (id); - - --- --- Name: dcim_interfacetemplate dcim_interfacetemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interfacetemplate - ADD CONSTRAINT dcim_interfacetemplate_pkey PRIMARY KEY (id); - - --- --- Name: dcim_interfacetemplate dcim_interfacetemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interfacetemplate - ADD CONSTRAINT dcim_interfacetemplate_unique_device_type_name UNIQUE (device_type_id, name); - - --- --- Name: dcim_interfacetemplate dcim_interfacetemplate_unique_module_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interfacetemplate - ADD CONSTRAINT dcim_interfacetemplate_unique_module_type_name UNIQUE (module_type_id, name); - - --- --- Name: dcim_inventoryitem dcim_inventoryitem_asset_tag_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitem - ADD CONSTRAINT dcim_inventoryitem_asset_tag_key UNIQUE (asset_tag); - - --- --- Name: dcim_inventoryitem dcim_inventoryitem_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitem - ADD CONSTRAINT dcim_inventoryitem_pkey PRIMARY KEY (id); - - --- --- Name: dcim_inventoryitem dcim_inventoryitem_unique_device_parent_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitem - ADD CONSTRAINT dcim_inventoryitem_unique_device_parent_name UNIQUE (device_id, parent_id, name); - - --- --- Name: dcim_inventoryitemrole dcim_inventoryitemrole_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitemrole - ADD CONSTRAINT dcim_inventoryitemrole_name_key UNIQUE (name); - - --- --- Name: dcim_inventoryitemrole dcim_inventoryitemrole_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitemrole - ADD CONSTRAINT dcim_inventoryitemrole_pkey PRIMARY KEY (id); - - --- --- Name: dcim_inventoryitemrole dcim_inventoryitemrole_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitemrole - ADD CONSTRAINT dcim_inventoryitemrole_slug_key UNIQUE (slug); - - --- --- Name: dcim_inventoryitemtemplate dcim_inventoryitemtemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitemtemplate - ADD CONSTRAINT dcim_inventoryitemtemplate_pkey PRIMARY KEY (id); - - --- --- Name: dcim_inventoryitemtemplate dcim_inventoryitemtemplate_unique_device_type_parent_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitemtemplate - ADD CONSTRAINT dcim_inventoryitemtemplate_unique_device_type_parent_name UNIQUE (device_type_id, parent_id, name); - - --- --- Name: dcim_location dcim_location_parent_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_location - ADD CONSTRAINT dcim_location_parent_name UNIQUE (site_id, parent_id, name); - - --- --- Name: dcim_location dcim_location_parent_slug; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_location - ADD CONSTRAINT dcim_location_parent_slug UNIQUE (site_id, parent_id, slug); - - --- --- Name: dcim_location dcim_location_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_location - ADD CONSTRAINT dcim_location_pkey PRIMARY KEY (id); - - --- --- Name: dcim_manufacturer dcim_manufacturer_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_manufacturer - ADD CONSTRAINT dcim_manufacturer_name_key UNIQUE (name); - - --- --- Name: dcim_manufacturer dcim_manufacturer_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_manufacturer - ADD CONSTRAINT dcim_manufacturer_pkey PRIMARY KEY (id); - - --- --- Name: dcim_manufacturer dcim_manufacturer_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_manufacturer - ADD CONSTRAINT dcim_manufacturer_slug_key UNIQUE (slug); - - --- --- Name: dcim_module dcim_module_asset_tag_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_module - ADD CONSTRAINT dcim_module_asset_tag_key UNIQUE (asset_tag); - - --- --- Name: dcim_module dcim_module_module_bay_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_module - ADD CONSTRAINT dcim_module_module_bay_id_key UNIQUE (module_bay_id); - - --- --- Name: dcim_module dcim_module_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_module - ADD CONSTRAINT dcim_module_pkey PRIMARY KEY (id); - - --- --- Name: dcim_modulebay dcim_modulebay_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_modulebay - ADD CONSTRAINT dcim_modulebay_pkey PRIMARY KEY (id); - - --- --- Name: dcim_modulebay dcim_modulebay_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_modulebay - ADD CONSTRAINT dcim_modulebay_unique_device_name UNIQUE (device_id, name); - - --- --- Name: dcim_modulebaytemplate dcim_modulebaytemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_modulebaytemplate - ADD CONSTRAINT dcim_modulebaytemplate_pkey PRIMARY KEY (id); - - --- --- Name: dcim_modulebaytemplate dcim_modulebaytemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_modulebaytemplate - ADD CONSTRAINT dcim_modulebaytemplate_unique_device_type_name UNIQUE (device_type_id, name); - - --- --- Name: dcim_moduletype dcim_moduletype_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_moduletype - ADD CONSTRAINT dcim_moduletype_pkey PRIMARY KEY (id); - - --- --- Name: dcim_moduletype dcim_moduletype_unique_manufacturer_model; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_moduletype - ADD CONSTRAINT dcim_moduletype_unique_manufacturer_model UNIQUE (manufacturer_id, model); - - --- --- Name: dcim_platform dcim_platform_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_platform - ADD CONSTRAINT dcim_platform_name_key UNIQUE (name); - - --- --- Name: dcim_platform dcim_platform_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_platform - ADD CONSTRAINT dcim_platform_pkey PRIMARY KEY (id); - - --- --- Name: dcim_platform dcim_platform_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_platform - ADD CONSTRAINT dcim_platform_slug_key UNIQUE (slug); - - --- --- Name: dcim_powerfeed dcim_powerfeed_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerfeed - ADD CONSTRAINT dcim_powerfeed_pkey PRIMARY KEY (id); - - --- --- Name: dcim_powerfeed dcim_powerfeed_unique_power_panel_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerfeed - ADD CONSTRAINT dcim_powerfeed_unique_power_panel_name UNIQUE (power_panel_id, name); - - --- --- Name: dcim_poweroutlet dcim_poweroutlet_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlet - ADD CONSTRAINT dcim_poweroutlet_pkey PRIMARY KEY (id); - - --- --- Name: dcim_poweroutlet dcim_poweroutlet_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlet - ADD CONSTRAINT dcim_poweroutlet_unique_device_name UNIQUE (device_id, name); - - --- --- Name: dcim_poweroutlettemplate dcim_poweroutlettemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlettemplate - ADD CONSTRAINT dcim_poweroutlettemplate_pkey PRIMARY KEY (id); - - --- --- Name: dcim_poweroutlettemplate dcim_poweroutlettemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlettemplate - ADD CONSTRAINT dcim_poweroutlettemplate_unique_device_type_name UNIQUE (device_type_id, name); - - --- --- Name: dcim_poweroutlettemplate dcim_poweroutlettemplate_unique_module_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlettemplate - ADD CONSTRAINT dcim_poweroutlettemplate_unique_module_type_name UNIQUE (module_type_id, name); - - --- --- Name: dcim_powerpanel dcim_powerpanel_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerpanel - ADD CONSTRAINT dcim_powerpanel_pkey PRIMARY KEY (id); - - --- --- Name: dcim_powerpanel dcim_powerpanel_unique_site_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerpanel - ADD CONSTRAINT dcim_powerpanel_unique_site_name UNIQUE (site_id, name); - - --- --- Name: dcim_powerport dcim_powerport_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerport - ADD CONSTRAINT dcim_powerport_pkey PRIMARY KEY (id); - - --- --- Name: dcim_powerport dcim_powerport_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerport - ADD CONSTRAINT dcim_powerport_unique_device_name UNIQUE (device_id, name); - - --- --- Name: dcim_powerporttemplate dcim_powerporttemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerporttemplate - ADD CONSTRAINT dcim_powerporttemplate_pkey PRIMARY KEY (id); - - --- --- Name: dcim_powerporttemplate dcim_powerporttemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerporttemplate - ADD CONSTRAINT dcim_powerporttemplate_unique_device_type_name UNIQUE (device_type_id, name); - - --- --- Name: dcim_powerporttemplate dcim_powerporttemplate_unique_module_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerporttemplate - ADD CONSTRAINT dcim_powerporttemplate_unique_module_type_name UNIQUE (module_type_id, name); - - --- --- Name: dcim_rack dcim_rack_asset_tag_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rack - ADD CONSTRAINT dcim_rack_asset_tag_key UNIQUE (asset_tag); - - --- --- Name: dcim_rack dcim_rack_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rack - ADD CONSTRAINT dcim_rack_pkey PRIMARY KEY (id); - - --- --- Name: dcim_rack dcim_rack_unique_location_facility_id; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rack - ADD CONSTRAINT dcim_rack_unique_location_facility_id UNIQUE (location_id, facility_id); - - --- --- Name: dcim_rack dcim_rack_unique_location_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rack - ADD CONSTRAINT dcim_rack_unique_location_name UNIQUE (location_id, name); - - --- --- Name: dcim_rackreservation dcim_rackreservation_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rackreservation - ADD CONSTRAINT dcim_rackreservation_pkey PRIMARY KEY (id); - - --- --- Name: dcim_rackrole dcim_rackrole_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rackrole - ADD CONSTRAINT dcim_rackrole_name_key UNIQUE (name); - - --- --- Name: dcim_rackrole dcim_rackrole_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rackrole - ADD CONSTRAINT dcim_rackrole_pkey PRIMARY KEY (id); - - --- --- Name: dcim_rackrole dcim_rackrole_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rackrole - ADD CONSTRAINT dcim_rackrole_slug_key UNIQUE (slug); - - --- --- Name: dcim_rearport dcim_rearport_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearport - ADD CONSTRAINT dcim_rearport_pkey PRIMARY KEY (id); - - --- --- Name: dcim_rearport dcim_rearport_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearport - ADD CONSTRAINT dcim_rearport_unique_device_name UNIQUE (device_id, name); - - --- --- Name: dcim_rearporttemplate dcim_rearporttemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearporttemplate - ADD CONSTRAINT dcim_rearporttemplate_pkey PRIMARY KEY (id); - - --- --- Name: dcim_rearporttemplate dcim_rearporttemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearporttemplate - ADD CONSTRAINT dcim_rearporttemplate_unique_device_type_name UNIQUE (device_type_id, name); - - --- --- Name: dcim_rearporttemplate dcim_rearporttemplate_unique_module_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearporttemplate - ADD CONSTRAINT dcim_rearporttemplate_unique_module_type_name UNIQUE (module_type_id, name); - - --- --- Name: dcim_region dcim_region_parent_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_region - ADD CONSTRAINT dcim_region_parent_name UNIQUE (parent_id, name); - - --- --- Name: dcim_region dcim_region_parent_slug; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_region - ADD CONSTRAINT dcim_region_parent_slug UNIQUE (parent_id, slug); - - --- --- Name: dcim_region dcim_region_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_region - ADD CONSTRAINT dcim_region_pkey PRIMARY KEY (id); - - --- --- Name: dcim_site_asns dcim_site_asns_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_site_asns - ADD CONSTRAINT dcim_site_asns_pkey PRIMARY KEY (id); - - --- --- Name: dcim_site_asns dcim_site_asns_site_id_asn_id_1a5a6f23_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_site_asns - ADD CONSTRAINT dcim_site_asns_site_id_asn_id_1a5a6f23_uniq UNIQUE (site_id, asn_id); - - --- --- Name: dcim_site dcim_site_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_site - ADD CONSTRAINT dcim_site_name_key UNIQUE (name); - - --- --- Name: dcim_site dcim_site_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_site - ADD CONSTRAINT dcim_site_pkey PRIMARY KEY (id); - - --- --- Name: dcim_site dcim_site_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_site - ADD CONSTRAINT dcim_site_slug_key UNIQUE (slug); - - --- --- Name: dcim_sitegroup dcim_sitegroup_parent_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_sitegroup - ADD CONSTRAINT dcim_sitegroup_parent_name UNIQUE (parent_id, name); - - --- --- Name: dcim_sitegroup dcim_sitegroup_parent_slug; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_sitegroup - ADD CONSTRAINT dcim_sitegroup_parent_slug UNIQUE (parent_id, slug); - - --- --- Name: dcim_sitegroup dcim_sitegroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_sitegroup - ADD CONSTRAINT dcim_sitegroup_pkey PRIMARY KEY (id); - - --- --- Name: dcim_virtualchassis dcim_virtualchassis_master_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_virtualchassis - ADD CONSTRAINT dcim_virtualchassis_master_id_key UNIQUE (master_id); - - --- --- Name: dcim_virtualchassis dcim_virtualchassis_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_virtualchassis - ADD CONSTRAINT dcim_virtualchassis_pkey PRIMARY KEY (id); - - --- --- Name: dcim_virtualdevicecontext dcim_virtualdevicecontext_device_identifier; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_virtualdevicecontext - ADD CONSTRAINT dcim_virtualdevicecontext_device_identifier UNIQUE (device_id, identifier); - - --- --- Name: dcim_virtualdevicecontext dcim_virtualdevicecontext_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_virtualdevicecontext - ADD CONSTRAINT dcim_virtualdevicecontext_device_name UNIQUE (device_id, name); - - --- --- Name: dcim_virtualdevicecontext dcim_virtualdevicecontext_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_virtualdevicecontext - ADD CONSTRAINT dcim_virtualdevicecontext_pkey PRIMARY KEY (id); - - --- --- Name: dcim_virtualdevicecontext dcim_virtualdevicecontext_primary_ip4_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_virtualdevicecontext - ADD CONSTRAINT dcim_virtualdevicecontext_primary_ip4_id_key UNIQUE (primary_ip4_id); - - --- --- Name: dcim_virtualdevicecontext dcim_virtualdevicecontext_primary_ip6_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_virtualdevicecontext - ADD CONSTRAINT dcim_virtualdevicecontext_primary_ip6_id_key UNIQUE (primary_ip6_id); - - --- --- Name: django_admin_log django_admin_log_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.django_admin_log - ADD CONSTRAINT django_admin_log_pkey PRIMARY KEY (id); - - --- --- Name: django_content_type django_content_type_app_label_model_76bd3d3b_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.django_content_type - ADD CONSTRAINT django_content_type_app_label_model_76bd3d3b_uniq UNIQUE (app_label, model); - - --- --- Name: django_content_type django_content_type_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.django_content_type - ADD CONSTRAINT django_content_type_pkey PRIMARY KEY (id); - - --- --- Name: django_migrations django_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.django_migrations - ADD CONSTRAINT django_migrations_pkey PRIMARY KEY (id); - - --- --- Name: django_session django_session_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.django_session - ADD CONSTRAINT django_session_pkey PRIMARY KEY (session_key); - - --- --- Name: extras_branch extras_branch_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_branch - ADD CONSTRAINT extras_branch_name_key UNIQUE (name); - - --- --- Name: extras_branch extras_branch_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_branch - ADD CONSTRAINT extras_branch_pkey PRIMARY KEY (id); - - --- --- Name: extras_cachedvalue extras_cachedvalue_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_cachedvalue - ADD CONSTRAINT extras_cachedvalue_pkey PRIMARY KEY (id); - - --- --- Name: extras_configcontext_clusters extras_configcontext_clu_configcontext_id_cluster_0c7e5d20_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_clusters - ADD CONSTRAINT extras_configcontext_clu_configcontext_id_cluster_0c7e5d20_uniq UNIQUE (configcontext_id, cluster_id); - - --- --- Name: extras_configcontext_cluster_types extras_configcontext_clu_configcontext_id_cluster_4a2d5e56_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_cluster_types - ADD CONSTRAINT extras_configcontext_clu_configcontext_id_cluster_4a2d5e56_uniq UNIQUE (configcontext_id, clustertype_id); - - --- --- Name: extras_configcontext_cluster_groups extras_configcontext_clu_configcontext_id_cluster_bc530192_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_cluster_groups - ADD CONSTRAINT extras_configcontext_clu_configcontext_id_cluster_bc530192_uniq UNIQUE (configcontext_id, clustergroup_id); - - --- --- Name: extras_configcontext_cluster_groups extras_configcontext_cluster_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_cluster_groups - ADD CONSTRAINT extras_configcontext_cluster_groups_pkey PRIMARY KEY (id); - - --- --- Name: extras_configcontext_cluster_types extras_configcontext_cluster_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_cluster_types - ADD CONSTRAINT extras_configcontext_cluster_types_pkey PRIMARY KEY (id); - - --- --- Name: extras_configcontext_clusters extras_configcontext_clusters_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_clusters - ADD CONSTRAINT extras_configcontext_clusters_pkey PRIMARY KEY (id); - - --- --- Name: extras_configcontext_device_types extras_configcontext_dev_configcontext_id_devicet_a0aaba6f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_device_types - ADD CONSTRAINT extras_configcontext_dev_configcontext_id_devicet_a0aaba6f_uniq UNIQUE (configcontext_id, devicetype_id); - - --- --- Name: extras_configcontext_device_types extras_configcontext_device_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_device_types - ADD CONSTRAINT extras_configcontext_device_types_pkey PRIMARY KEY (id); - - --- --- Name: extras_configcontext_locations extras_configcontext_loc_configcontext_id_locatio_15d9b342_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_locations - ADD CONSTRAINT extras_configcontext_loc_configcontext_id_locatio_15d9b342_uniq UNIQUE (configcontext_id, location_id); - - --- --- Name: extras_configcontext_locations extras_configcontext_locations_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_locations - ADD CONSTRAINT extras_configcontext_locations_pkey PRIMARY KEY (id); - - --- --- Name: extras_configcontext extras_configcontext_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext - ADD CONSTRAINT extras_configcontext_name_key UNIQUE (name); - - --- --- Name: extras_configcontext extras_configcontext_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext - ADD CONSTRAINT extras_configcontext_pkey PRIMARY KEY (id); - - --- --- Name: extras_configcontext_platforms extras_configcontext_pla_configcontext_id_platfor_3c67c104_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_platforms - ADD CONSTRAINT extras_configcontext_pla_configcontext_id_platfor_3c67c104_uniq UNIQUE (configcontext_id, platform_id); - - --- --- Name: extras_configcontext_platforms extras_configcontext_platforms_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_platforms - ADD CONSTRAINT extras_configcontext_platforms_pkey PRIMARY KEY (id); - - --- --- Name: extras_configcontext_regions extras_configcontext_reg_configcontext_id_region__d4a1d77f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_regions - ADD CONSTRAINT extras_configcontext_reg_configcontext_id_region__d4a1d77f_uniq UNIQUE (configcontext_id, region_id); - - --- --- Name: extras_configcontext_regions extras_configcontext_regions_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_regions - ADD CONSTRAINT extras_configcontext_regions_pkey PRIMARY KEY (id); - - --- --- Name: extras_configcontext_roles extras_configcontext_rol_configcontext_id_devicer_4d8dbb50_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_roles - ADD CONSTRAINT extras_configcontext_rol_configcontext_id_devicer_4d8dbb50_uniq UNIQUE (configcontext_id, devicerole_id); - - --- --- Name: extras_configcontext_roles extras_configcontext_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_roles - ADD CONSTRAINT extras_configcontext_roles_pkey PRIMARY KEY (id); - - --- --- Name: extras_configcontext_sites extras_configcontext_sit_configcontext_id_site_id_a4fe5f4f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_sites - ADD CONSTRAINT extras_configcontext_sit_configcontext_id_site_id_a4fe5f4f_uniq UNIQUE (configcontext_id, site_id); - - --- --- Name: extras_configcontext_site_groups extras_configcontext_sit_configcontext_id_sitegro_4caa52ec_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_site_groups - ADD CONSTRAINT extras_configcontext_sit_configcontext_id_sitegro_4caa52ec_uniq UNIQUE (configcontext_id, sitegroup_id); - - --- --- Name: extras_configcontext_site_groups extras_configcontext_site_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_site_groups - ADD CONSTRAINT extras_configcontext_site_groups_pkey PRIMARY KEY (id); - - --- --- Name: extras_configcontext_sites extras_configcontext_sites_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_sites - ADD CONSTRAINT extras_configcontext_sites_pkey PRIMARY KEY (id); - - --- --- Name: extras_configcontext_tags extras_configcontext_tags_configcontext_id_tag_id_f6c53016_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_tags - ADD CONSTRAINT extras_configcontext_tags_configcontext_id_tag_id_f6c53016_uniq UNIQUE (configcontext_id, tag_id); - - --- --- Name: extras_configcontext_tags extras_configcontext_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_tags - ADD CONSTRAINT extras_configcontext_tags_pkey PRIMARY KEY (id); - - --- --- Name: extras_configcontext_tenants extras_configcontext_ten_configcontext_id_tenant__aefb257d_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_tenants - ADD CONSTRAINT extras_configcontext_ten_configcontext_id_tenant__aefb257d_uniq UNIQUE (configcontext_id, tenant_id); - - --- --- Name: extras_configcontext_tenant_groups extras_configcontext_ten_configcontext_id_tenantg_d6afc6f5_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_tenant_groups - ADD CONSTRAINT extras_configcontext_ten_configcontext_id_tenantg_d6afc6f5_uniq UNIQUE (configcontext_id, tenantgroup_id); - - --- --- Name: extras_configcontext_tenant_groups extras_configcontext_tenant_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_tenant_groups - ADD CONSTRAINT extras_configcontext_tenant_groups_pkey PRIMARY KEY (id); - - --- --- Name: extras_configcontext_tenants extras_configcontext_tenants_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_tenants - ADD CONSTRAINT extras_configcontext_tenants_pkey PRIMARY KEY (id); - - --- --- Name: extras_configrevision extras_configrevision_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configrevision - ADD CONSTRAINT extras_configrevision_pkey PRIMARY KEY (id); - - --- --- Name: extras_customfield_content_types extras_customfield_conte_customfield_id_contentty_51136c2b_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customfield_content_types - ADD CONSTRAINT extras_customfield_conte_customfield_id_contentty_51136c2b_uniq UNIQUE (customfield_id, contenttype_id); - - --- --- Name: extras_customfield_content_types extras_customfield_content_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customfield_content_types - ADD CONSTRAINT extras_customfield_content_types_pkey PRIMARY KEY (id); - - --- --- Name: extras_customfield extras_customfield_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customfield - ADD CONSTRAINT extras_customfield_name_key UNIQUE (name); - - --- --- Name: extras_customfield extras_customfield_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customfield - ADD CONSTRAINT extras_customfield_pkey PRIMARY KEY (id); - - --- --- Name: extras_customlink_content_types extras_customlink_conten_customlink_id_contenttyp_518ef1b8_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customlink_content_types - ADD CONSTRAINT extras_customlink_conten_customlink_id_contenttyp_518ef1b8_uniq UNIQUE (customlink_id, contenttype_id); - - --- --- Name: extras_customlink_content_types extras_customlink_content_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customlink_content_types - ADD CONSTRAINT extras_customlink_content_types_pkey PRIMARY KEY (id); - - --- --- Name: extras_customlink extras_customlink_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customlink - ADD CONSTRAINT extras_customlink_name_key UNIQUE (name); - - --- --- Name: extras_customlink extras_customlink_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customlink - ADD CONSTRAINT extras_customlink_pkey PRIMARY KEY (id); - - --- --- Name: extras_exporttemplate_content_types extras_exporttemplate_co_exporttemplate_id_conten_b4645653_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_exporttemplate_content_types - ADD CONSTRAINT extras_exporttemplate_co_exporttemplate_id_conten_b4645653_uniq UNIQUE (exporttemplate_id, contenttype_id); - - --- --- Name: extras_exporttemplate_content_types extras_exporttemplate_content_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_exporttemplate_content_types - ADD CONSTRAINT extras_exporttemplate_content_types_pkey PRIMARY KEY (id); - - --- --- Name: extras_exporttemplate extras_exporttemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_exporttemplate - ADD CONSTRAINT extras_exporttemplate_pkey PRIMARY KEY (id); - - --- --- Name: extras_imageattachment extras_imageattachment_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_imageattachment - ADD CONSTRAINT extras_imageattachment_pkey PRIMARY KEY (id); - - --- --- Name: extras_jobresult extras_jobresult_job_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_jobresult - ADD CONSTRAINT extras_jobresult_job_id_key UNIQUE (job_id); - - --- --- Name: extras_jobresult extras_jobresult_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_jobresult - ADD CONSTRAINT extras_jobresult_pkey PRIMARY KEY (id); - - --- --- Name: extras_journalentry extras_journalentry_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_journalentry - ADD CONSTRAINT extras_journalentry_pkey PRIMARY KEY (id); - - --- --- Name: extras_objectchange extras_objectchange_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_objectchange - ADD CONSTRAINT extras_objectchange_pkey PRIMARY KEY (id); - - --- --- Name: extras_savedfilter_content_types extras_savedfilter_conte_savedfilter_id_contentty_133ba781_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_savedfilter_content_types - ADD CONSTRAINT extras_savedfilter_conte_savedfilter_id_contentty_133ba781_uniq UNIQUE (savedfilter_id, contenttype_id); - - --- --- Name: extras_savedfilter_content_types extras_savedfilter_content_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_savedfilter_content_types - ADD CONSTRAINT extras_savedfilter_content_types_pkey PRIMARY KEY (id); - - --- --- Name: extras_savedfilter extras_savedfilter_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_savedfilter - ADD CONSTRAINT extras_savedfilter_name_key UNIQUE (name); - - --- --- Name: extras_savedfilter extras_savedfilter_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_savedfilter - ADD CONSTRAINT extras_savedfilter_pkey PRIMARY KEY (id); - - --- --- Name: extras_savedfilter extras_savedfilter_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_savedfilter - ADD CONSTRAINT extras_savedfilter_slug_key UNIQUE (slug); - - --- --- Name: extras_stagedchange extras_stagedchange_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_stagedchange - ADD CONSTRAINT extras_stagedchange_pkey PRIMARY KEY (id); - - --- --- Name: extras_tag extras_tag_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_tag - ADD CONSTRAINT extras_tag_name_key UNIQUE (name); - - --- --- Name: extras_tag extras_tag_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_tag - ADD CONSTRAINT extras_tag_pkey PRIMARY KEY (id); - - --- --- Name: extras_tag extras_tag_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_tag - ADD CONSTRAINT extras_tag_slug_key UNIQUE (slug); - - --- --- Name: extras_taggeditem extras_taggeditem_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_taggeditem - ADD CONSTRAINT extras_taggeditem_pkey PRIMARY KEY (id); - - --- --- Name: extras_webhook_content_types extras_webhook_content_t_webhook_id_contenttype_i_485b9e93_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_webhook_content_types - ADD CONSTRAINT extras_webhook_content_t_webhook_id_contenttype_i_485b9e93_uniq UNIQUE (webhook_id, contenttype_id); - - --- --- Name: extras_webhook_content_types extras_webhook_content_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_webhook_content_types - ADD CONSTRAINT extras_webhook_content_types_pkey PRIMARY KEY (id); - - --- --- Name: extras_webhook extras_webhook_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_webhook - ADD CONSTRAINT extras_webhook_name_key UNIQUE (name); - - --- --- Name: extras_webhook extras_webhook_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_webhook - ADD CONSTRAINT extras_webhook_pkey PRIMARY KEY (id); - - --- --- Name: extras_webhook extras_webhook_unique_payload_url_types; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_webhook - ADD CONSTRAINT extras_webhook_unique_payload_url_types UNIQUE (payload_url, type_create, type_update, type_delete); - - --- --- Name: ipam_aggregate ipam_aggregate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_aggregate - ADD CONSTRAINT ipam_aggregate_pkey PRIMARY KEY (id); - - --- --- Name: ipam_asn ipam_asn_asn_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_asn - ADD CONSTRAINT ipam_asn_asn_key UNIQUE (asn); - - --- --- Name: ipam_asn ipam_asn_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_asn - ADD CONSTRAINT ipam_asn_pkey PRIMARY KEY (id); - - --- --- Name: ipam_fhrpgroup ipam_fhrpgroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_fhrpgroup - ADD CONSTRAINT ipam_fhrpgroup_pkey PRIMARY KEY (id); - - --- --- Name: ipam_fhrpgroupassignment ipam_fhrpgroupassignment_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_fhrpgroupassignment - ADD CONSTRAINT ipam_fhrpgroupassignment_pkey PRIMARY KEY (id); - - --- --- Name: ipam_fhrpgroupassignment ipam_fhrpgroupassignment_unique_interface_group; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_fhrpgroupassignment - ADD CONSTRAINT ipam_fhrpgroupassignment_unique_interface_group UNIQUE (interface_type_id, interface_id, group_id); - - --- --- Name: ipam_ipaddress ipam_ipaddress_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_ipaddress - ADD CONSTRAINT ipam_ipaddress_pkey PRIMARY KEY (id); - - --- --- Name: ipam_iprange ipam_iprange_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_iprange - ADD CONSTRAINT ipam_iprange_pkey PRIMARY KEY (id); - - --- --- Name: ipam_l2vpn_export_targets ipam_l2vpn_export_targets_l2vpn_id_routetarget_id_eea90661_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpn_export_targets - ADD CONSTRAINT ipam_l2vpn_export_targets_l2vpn_id_routetarget_id_eea90661_uniq UNIQUE (l2vpn_id, routetarget_id); - - --- --- Name: ipam_l2vpn_export_targets ipam_l2vpn_export_targets_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpn_export_targets - ADD CONSTRAINT ipam_l2vpn_export_targets_pkey PRIMARY KEY (id); - - --- --- Name: ipam_l2vpn_import_targets ipam_l2vpn_import_targets_l2vpn_id_routetarget_id_96af344c_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpn_import_targets - ADD CONSTRAINT ipam_l2vpn_import_targets_l2vpn_id_routetarget_id_96af344c_uniq UNIQUE (l2vpn_id, routetarget_id); - - --- --- Name: ipam_l2vpn_import_targets ipam_l2vpn_import_targets_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpn_import_targets - ADD CONSTRAINT ipam_l2vpn_import_targets_pkey PRIMARY KEY (id); - - --- --- Name: ipam_l2vpn ipam_l2vpn_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpn - ADD CONSTRAINT ipam_l2vpn_name_key UNIQUE (name); - - --- --- Name: ipam_l2vpn ipam_l2vpn_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpn - ADD CONSTRAINT ipam_l2vpn_pkey PRIMARY KEY (id); - - --- --- Name: ipam_l2vpn ipam_l2vpn_slug_24008406_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpn - ADD CONSTRAINT ipam_l2vpn_slug_24008406_uniq UNIQUE (slug); - - --- --- Name: ipam_l2vpntermination ipam_l2vpntermination_assigned_object; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpntermination - ADD CONSTRAINT ipam_l2vpntermination_assigned_object UNIQUE (assigned_object_type_id, assigned_object_id); - - --- --- Name: ipam_l2vpntermination ipam_l2vpntermination_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpntermination - ADD CONSTRAINT ipam_l2vpntermination_pkey PRIMARY KEY (id); - - --- --- Name: ipam_prefix ipam_prefix_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_prefix - ADD CONSTRAINT ipam_prefix_pkey PRIMARY KEY (id); - - --- --- Name: ipam_rir ipam_rir_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_rir - ADD CONSTRAINT ipam_rir_name_key UNIQUE (name); - - --- --- Name: ipam_rir ipam_rir_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_rir - ADD CONSTRAINT ipam_rir_pkey PRIMARY KEY (id); - - --- --- Name: ipam_rir ipam_rir_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_rir - ADD CONSTRAINT ipam_rir_slug_key UNIQUE (slug); - - --- --- Name: ipam_role ipam_role_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_role - ADD CONSTRAINT ipam_role_name_key UNIQUE (name); - - --- --- Name: ipam_role ipam_role_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_role - ADD CONSTRAINT ipam_role_pkey PRIMARY KEY (id); - - --- --- Name: ipam_role ipam_role_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_role - ADD CONSTRAINT ipam_role_slug_key UNIQUE (slug); - - --- --- Name: ipam_routetarget ipam_routetarget_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_routetarget - ADD CONSTRAINT ipam_routetarget_name_key UNIQUE (name); - - --- --- Name: ipam_routetarget ipam_routetarget_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_routetarget - ADD CONSTRAINT ipam_routetarget_pkey PRIMARY KEY (id); - - --- --- Name: ipam_service_ipaddresses ipam_service_ipaddresses_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_service_ipaddresses - ADD CONSTRAINT ipam_service_ipaddresses_pkey PRIMARY KEY (id); - - --- --- Name: ipam_service_ipaddresses ipam_service_ipaddresses_service_id_ipaddress_id_d019a805_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_service_ipaddresses - ADD CONSTRAINT ipam_service_ipaddresses_service_id_ipaddress_id_d019a805_uniq UNIQUE (service_id, ipaddress_id); - - --- --- Name: ipam_service ipam_service_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_service - ADD CONSTRAINT ipam_service_pkey PRIMARY KEY (id); - - --- --- Name: ipam_servicetemplate ipam_servicetemplate_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_servicetemplate - ADD CONSTRAINT ipam_servicetemplate_name_key UNIQUE (name); - - --- --- Name: ipam_servicetemplate ipam_servicetemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_servicetemplate - ADD CONSTRAINT ipam_servicetemplate_pkey PRIMARY KEY (id); - - --- --- Name: ipam_vlan ipam_vlan_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlan - ADD CONSTRAINT ipam_vlan_pkey PRIMARY KEY (id); - - --- --- Name: ipam_vlan ipam_vlan_unique_group_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlan - ADD CONSTRAINT ipam_vlan_unique_group_name UNIQUE (group_id, name); - - --- --- Name: ipam_vlan ipam_vlan_unique_group_vid; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlan - ADD CONSTRAINT ipam_vlan_unique_group_vid UNIQUE (group_id, vid); - - --- --- Name: ipam_vlangroup ipam_vlangroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlangroup - ADD CONSTRAINT ipam_vlangroup_pkey PRIMARY KEY (id); - - --- --- Name: ipam_vlangroup ipam_vlangroup_unique_scope_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlangroup - ADD CONSTRAINT ipam_vlangroup_unique_scope_name UNIQUE (scope_type_id, scope_id, name); - - --- --- Name: ipam_vlangroup ipam_vlangroup_unique_scope_slug; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlangroup - ADD CONSTRAINT ipam_vlangroup_unique_scope_slug UNIQUE (scope_type_id, scope_id, slug); - - --- --- Name: ipam_vrf_export_targets ipam_vrf_export_targets_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vrf_export_targets - ADD CONSTRAINT ipam_vrf_export_targets_pkey PRIMARY KEY (id); - - --- --- Name: ipam_vrf_export_targets ipam_vrf_export_targets_vrf_id_routetarget_id_63ba8c62_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vrf_export_targets - ADD CONSTRAINT ipam_vrf_export_targets_vrf_id_routetarget_id_63ba8c62_uniq UNIQUE (vrf_id, routetarget_id); - - --- --- Name: ipam_vrf_import_targets ipam_vrf_import_targets_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vrf_import_targets - ADD CONSTRAINT ipam_vrf_import_targets_pkey PRIMARY KEY (id); - - --- --- Name: ipam_vrf_import_targets ipam_vrf_import_targets_vrf_id_routetarget_id_399b155f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vrf_import_targets - ADD CONSTRAINT ipam_vrf_import_targets_vrf_id_routetarget_id_399b155f_uniq UNIQUE (vrf_id, routetarget_id); - - --- --- Name: ipam_vrf ipam_vrf_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vrf - ADD CONSTRAINT ipam_vrf_pkey PRIMARY KEY (id); - - --- --- Name: ipam_vrf ipam_vrf_rd_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vrf - ADD CONSTRAINT ipam_vrf_rd_key UNIQUE (rd); - - --- --- Name: netbox_bgp_bgppeergroup_import_policies netbox_bgp_bgppeergroup__bgppeergroup_id_routingp_1706c568_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgppeergroup_import_policies - ADD CONSTRAINT netbox_bgp_bgppeergroup__bgppeergroup_id_routingp_1706c568_uniq UNIQUE (bgppeergroup_id, routingpolicy_id); - - --- --- Name: netbox_bgp_bgppeergroup_export_policies netbox_bgp_bgppeergroup__bgppeergroup_id_routingp_5c6fdc11_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgppeergroup_export_policies - ADD CONSTRAINT netbox_bgp_bgppeergroup__bgppeergroup_id_routingp_5c6fdc11_uniq UNIQUE (bgppeergroup_id, routingpolicy_id); - - --- --- Name: netbox_bgp_bgppeergroup_export_policies netbox_bgp_bgppeergroup_export_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgppeergroup_export_policies - ADD CONSTRAINT netbox_bgp_bgppeergroup_export_policies_pkey PRIMARY KEY (id); - - --- --- Name: netbox_bgp_bgppeergroup_import_policies netbox_bgp_bgppeergroup_import_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgppeergroup_import_policies - ADD CONSTRAINT netbox_bgp_bgppeergroup_import_policies_pkey PRIMARY KEY (id); - - --- --- Name: netbox_bgp_bgppeergroup netbox_bgp_bgppeergroup_name_description_14fedd72_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgppeergroup - ADD CONSTRAINT netbox_bgp_bgppeergroup_name_description_14fedd72_uniq UNIQUE (name, description); - - --- --- Name: netbox_bgp_bgppeergroup netbox_bgp_bgppeergroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgppeergroup - ADD CONSTRAINT netbox_bgp_bgppeergroup_pkey PRIMARY KEY (id); - - --- --- Name: netbox_bgp_bgpsession netbox_bgp_bgpsession_device_id_local_address__07772c7d_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession - ADD CONSTRAINT netbox_bgp_bgpsession_device_id_local_address__07772c7d_uniq UNIQUE (device_id, local_address_id, local_as_id, remote_address_id, remote_as_id); - - --- --- Name: netbox_bgp_bgpsession_export_policies netbox_bgp_bgpsession_ex_bgpsession_id_routingpol_4302cebd_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession_export_policies - ADD CONSTRAINT netbox_bgp_bgpsession_ex_bgpsession_id_routingpol_4302cebd_uniq UNIQUE (bgpsession_id, routingpolicy_id); - - --- --- Name: netbox_bgp_bgpsession_export_policies netbox_bgp_bgpsession_export_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession_export_policies - ADD CONSTRAINT netbox_bgp_bgpsession_export_policies_pkey PRIMARY KEY (id); - - --- --- Name: netbox_bgp_bgpsession_import_policies netbox_bgp_bgpsession_im_bgpsession_id_routingpol_36046a44_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession_import_policies - ADD CONSTRAINT netbox_bgp_bgpsession_im_bgpsession_id_routingpol_36046a44_uniq UNIQUE (bgpsession_id, routingpolicy_id); - - --- --- Name: netbox_bgp_bgpsession_import_policies netbox_bgp_bgpsession_import_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession_import_policies - ADD CONSTRAINT netbox_bgp_bgpsession_import_policies_pkey PRIMARY KEY (id); - - --- --- Name: netbox_bgp_bgpsession netbox_bgp_bgpsession_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession - ADD CONSTRAINT netbox_bgp_bgpsession_pkey PRIMARY KEY (id); - - --- --- Name: netbox_bgp_community netbox_bgp_community_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_community - ADD CONSTRAINT netbox_bgp_community_pkey PRIMARY KEY (id); - - --- --- Name: netbox_bgp_prefixlist netbox_bgp_prefixlist_name_description_family_248a214c_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_prefixlist - ADD CONSTRAINT netbox_bgp_prefixlist_name_description_family_248a214c_uniq UNIQUE (name, description, family); - - --- --- Name: netbox_bgp_prefixlist netbox_bgp_prefixlist_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_prefixlist - ADD CONSTRAINT netbox_bgp_prefixlist_pkey PRIMARY KEY (id); - - --- --- Name: netbox_bgp_prefixlistrule netbox_bgp_prefixlistrule_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_prefixlistrule - ADD CONSTRAINT netbox_bgp_prefixlistrule_pkey PRIMARY KEY (id); - - --- --- Name: netbox_bgp_prefixlistrule netbox_bgp_prefixlistrule_prefix_list_id_index_6dd16d2f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_prefixlistrule - ADD CONSTRAINT netbox_bgp_prefixlistrule_prefix_list_id_index_6dd16d2f_uniq UNIQUE (prefix_list_id, index); - - --- --- Name: netbox_bgp_routingpolicy netbox_bgp_routingpolicy_name_description_79b3cfc6_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicy - ADD CONSTRAINT netbox_bgp_routingpolicy_name_description_79b3cfc6_uniq UNIQUE (name, description); - - --- --- Name: netbox_bgp_routingpolicy netbox_bgp_routingpolicy_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicy - ADD CONSTRAINT netbox_bgp_routingpolicy_pkey PRIMARY KEY (id); - - --- --- Name: netbox_bgp_routingpolicyrule netbox_bgp_routingpolicy_routing_policy_id_index_ae6cf1b1_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicyrule - ADD CONSTRAINT netbox_bgp_routingpolicy_routing_policy_id_index_ae6cf1b1_uniq UNIQUE (routing_policy_id, index); - - --- --- Name: netbox_bgp_routingpolicyrule_match_community netbox_bgp_routingpolicy_routingpolicyrule_id_com_17b014de_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicyrule_match_community - ADD CONSTRAINT netbox_bgp_routingpolicy_routingpolicyrule_id_com_17b014de_uniq UNIQUE (routingpolicyrule_id, community_id); - - --- --- Name: netbox_bgp_routingpolicyrule_match_ipv6_address netbox_bgp_routingpolicy_routingpolicyrule_id_pre_7c25be0c_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicyrule_match_ipv6_address - ADD CONSTRAINT netbox_bgp_routingpolicy_routingpolicyrule_id_pre_7c25be0c_uniq UNIQUE (routingpolicyrule_id, prefixlist_id); - - --- --- Name: netbox_bgp_routingpolicyrule_match_ip_address netbox_bgp_routingpolicy_routingpolicyrule_id_pre_ea1527f7_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicyrule_match_ip_address - ADD CONSTRAINT netbox_bgp_routingpolicy_routingpolicyrule_id_pre_ea1527f7_uniq UNIQUE (routingpolicyrule_id, prefixlist_id); - - --- --- Name: netbox_bgp_routingpolicyrule_match_community netbox_bgp_routingpolicyrule_match_community_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicyrule_match_community - ADD CONSTRAINT netbox_bgp_routingpolicyrule_match_community_pkey PRIMARY KEY (id); - - --- --- Name: netbox_bgp_routingpolicyrule_match_ip_address netbox_bgp_routingpolicyrule_match_ip_address_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicyrule_match_ip_address - ADD CONSTRAINT netbox_bgp_routingpolicyrule_match_ip_address_pkey PRIMARY KEY (id); - - --- --- Name: netbox_bgp_routingpolicyrule_match_ipv6_address netbox_bgp_routingpolicyrule_match_ipv6_address_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicyrule_match_ipv6_address - ADD CONSTRAINT netbox_bgp_routingpolicyrule_match_ipv6_address_pkey PRIMARY KEY (id); - - --- --- Name: netbox_bgp_routingpolicyrule netbox_bgp_routingpolicyrule_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicyrule - ADD CONSTRAINT netbox_bgp_routingpolicyrule_pkey PRIMARY KEY (id); - - --- --- Name: netbox_dns_nameserver netbox_dns_nameserver_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_nameserver - ADD CONSTRAINT netbox_dns_nameserver_name_key UNIQUE (name); - - --- --- Name: netbox_dns_nameserver netbox_dns_nameserver_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_nameserver - ADD CONSTRAINT netbox_dns_nameserver_pkey PRIMARY KEY (id); - - --- --- Name: netbox_dns_record netbox_dns_record_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_record - ADD CONSTRAINT netbox_dns_record_pkey PRIMARY KEY (id); - - --- --- Name: netbox_dns_record netbox_dns_record_ptr_record_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_record - ADD CONSTRAINT netbox_dns_record_ptr_record_id_key UNIQUE (ptr_record_id); - - --- --- Name: netbox_dns_view netbox_dns_view_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_view - ADD CONSTRAINT netbox_dns_view_name_key UNIQUE (name); - - --- --- Name: netbox_dns_view netbox_dns_view_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_view - ADD CONSTRAINT netbox_dns_view_pkey PRIMARY KEY (id); - - --- --- Name: netbox_dns_zone_nameservers netbox_dns_zone_nameservers_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_zone_nameservers - ADD CONSTRAINT netbox_dns_zone_nameservers_pkey PRIMARY KEY (id); - - --- --- Name: netbox_dns_zone_nameservers netbox_dns_zone_nameservers_zone_id_nameserver_id_5d8b461f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_zone_nameservers - ADD CONSTRAINT netbox_dns_zone_nameservers_zone_id_nameserver_id_5d8b461f_uniq UNIQUE (zone_id, nameserver_id); - - --- --- Name: netbox_dns_zone netbox_dns_zone_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_zone - ADD CONSTRAINT netbox_dns_zone_pkey PRIMARY KEY (id); - - --- --- Name: netbox_dns_zone netbox_dns_zone_view_id_name_82fd3eb0_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_zone - ADD CONSTRAINT netbox_dns_zone_view_id_name_82fd3eb0_uniq UNIQUE (view_id, name); - - --- --- Name: social_auth_association social_auth_association_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.social_auth_association - ADD CONSTRAINT social_auth_association_pkey PRIMARY KEY (id); - - --- --- Name: social_auth_association social_auth_association_server_url_handle_078befa2_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.social_auth_association - ADD CONSTRAINT social_auth_association_server_url_handle_078befa2_uniq UNIQUE (server_url, handle); - - --- --- Name: social_auth_code social_auth_code_email_code_801b2d02_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.social_auth_code - ADD CONSTRAINT social_auth_code_email_code_801b2d02_uniq UNIQUE (email, code); - - --- --- Name: social_auth_code social_auth_code_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.social_auth_code - ADD CONSTRAINT social_auth_code_pkey PRIMARY KEY (id); - - --- --- Name: social_auth_nonce social_auth_nonce_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.social_auth_nonce - ADD CONSTRAINT social_auth_nonce_pkey PRIMARY KEY (id); - - --- --- Name: social_auth_nonce social_auth_nonce_server_url_timestamp_salt_f6284463_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.social_auth_nonce - ADD CONSTRAINT social_auth_nonce_server_url_timestamp_salt_f6284463_uniq UNIQUE (server_url, "timestamp", salt); - - --- --- Name: social_auth_partial social_auth_partial_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.social_auth_partial - ADD CONSTRAINT social_auth_partial_pkey PRIMARY KEY (id); - - --- --- Name: social_auth_usersocialauth social_auth_usersocialauth_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.social_auth_usersocialauth - ADD CONSTRAINT social_auth_usersocialauth_pkey PRIMARY KEY (id); - - --- --- Name: social_auth_usersocialauth social_auth_usersocialauth_provider_uid_e6b5e668_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.social_auth_usersocialauth - ADD CONSTRAINT social_auth_usersocialauth_provider_uid_e6b5e668_uniq UNIQUE (provider, uid); - - --- --- Name: taggit_tag taggit_tag_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.taggit_tag - ADD CONSTRAINT taggit_tag_name_key UNIQUE (name); - - --- --- Name: taggit_tag taggit_tag_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.taggit_tag - ADD CONSTRAINT taggit_tag_pkey PRIMARY KEY (id); - - --- --- Name: taggit_tag taggit_tag_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.taggit_tag - ADD CONSTRAINT taggit_tag_slug_key UNIQUE (slug); - - --- --- Name: taggit_taggeditem taggit_taggeditem_content_type_id_object_i_4bb97a8e_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.taggit_taggeditem - ADD CONSTRAINT taggit_taggeditem_content_type_id_object_i_4bb97a8e_uniq UNIQUE (content_type_id, object_id, tag_id); - - --- --- Name: taggit_taggeditem taggit_taggeditem_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.taggit_taggeditem - ADD CONSTRAINT taggit_taggeditem_pkey PRIMARY KEY (id); - - --- --- Name: tenancy_contact tenancy_contact_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_contact - ADD CONSTRAINT tenancy_contact_pkey PRIMARY KEY (id); - - --- --- Name: tenancy_contact tenancy_contact_unique_group_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_contact - ADD CONSTRAINT tenancy_contact_unique_group_name UNIQUE (group_id, name); - - --- --- Name: tenancy_contactassignment tenancy_contactassignment_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_contactassignment - ADD CONSTRAINT tenancy_contactassignment_pkey PRIMARY KEY (id); - - --- --- Name: tenancy_contactassignment tenancy_contactassignment_unique_object_contact_role; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_contactassignment - ADD CONSTRAINT tenancy_contactassignment_unique_object_contact_role UNIQUE (content_type_id, object_id, contact_id, role_id); - - --- --- Name: tenancy_contactgroup tenancy_contactgroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_contactgroup - ADD CONSTRAINT tenancy_contactgroup_pkey PRIMARY KEY (id); - - --- --- Name: tenancy_contactgroup tenancy_contactgroup_unique_parent_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_contactgroup - ADD CONSTRAINT tenancy_contactgroup_unique_parent_name UNIQUE (parent_id, name); - - --- --- Name: tenancy_contactrole tenancy_contactrole_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_contactrole - ADD CONSTRAINT tenancy_contactrole_name_key UNIQUE (name); - - --- --- Name: tenancy_contactrole tenancy_contactrole_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_contactrole - ADD CONSTRAINT tenancy_contactrole_pkey PRIMARY KEY (id); - - --- --- Name: tenancy_contactrole tenancy_contactrole_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_contactrole - ADD CONSTRAINT tenancy_contactrole_slug_key UNIQUE (slug); - - --- --- Name: tenancy_tenant tenancy_tenant_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_tenant - ADD CONSTRAINT tenancy_tenant_name_key UNIQUE (name); - - --- --- Name: tenancy_tenant tenancy_tenant_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_tenant - ADD CONSTRAINT tenancy_tenant_pkey PRIMARY KEY (id); - - --- --- Name: tenancy_tenant tenancy_tenant_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_tenant - ADD CONSTRAINT tenancy_tenant_slug_key UNIQUE (slug); - - --- --- Name: tenancy_tenantgroup tenancy_tenantgroup_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_tenantgroup - ADD CONSTRAINT tenancy_tenantgroup_name_key UNIQUE (name); - - --- --- Name: tenancy_tenantgroup tenancy_tenantgroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_tenantgroup - ADD CONSTRAINT tenancy_tenantgroup_pkey PRIMARY KEY (id); - - --- --- Name: tenancy_tenantgroup tenancy_tenantgroup_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_tenantgroup - ADD CONSTRAINT tenancy_tenantgroup_slug_key UNIQUE (slug); - - --- --- Name: users_objectpermission_groups users_objectpermission_g_objectpermission_id_grou_3b62a39c_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission_groups - ADD CONSTRAINT users_objectpermission_g_objectpermission_id_grou_3b62a39c_uniq UNIQUE (objectpermission_id, group_id); - - --- --- Name: users_objectpermission_groups users_objectpermission_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission_groups - ADD CONSTRAINT users_objectpermission_groups_pkey PRIMARY KEY (id); - - --- --- Name: users_objectpermission_object_types users_objectpermission_o_objectpermission_id_cont_7c40d31a_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission_object_types - ADD CONSTRAINT users_objectpermission_o_objectpermission_id_cont_7c40d31a_uniq UNIQUE (objectpermission_id, contenttype_id); - - --- --- Name: users_objectpermission_object_types users_objectpermission_object_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission_object_types - ADD CONSTRAINT users_objectpermission_object_types_pkey PRIMARY KEY (id); - - --- --- Name: users_objectpermission users_objectpermission_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission - ADD CONSTRAINT users_objectpermission_pkey PRIMARY KEY (id); - - --- --- Name: users_objectpermission_users users_objectpermission_u_objectpermission_id_user_3a7db108_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission_users - ADD CONSTRAINT users_objectpermission_u_objectpermission_id_user_3a7db108_uniq UNIQUE (objectpermission_id, user_id); - - --- --- Name: users_objectpermission_users users_objectpermission_users_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission_users - ADD CONSTRAINT users_objectpermission_users_pkey PRIMARY KEY (id); - - --- --- Name: users_token users_token_key_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_token - ADD CONSTRAINT users_token_key_key UNIQUE (key); - - --- --- Name: users_token users_token_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_token - ADD CONSTRAINT users_token_pkey PRIMARY KEY (id); - - --- --- Name: users_userconfig users_userconfig_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_userconfig - ADD CONSTRAINT users_userconfig_pkey PRIMARY KEY (id); - - --- --- Name: users_userconfig users_userconfig_user_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_userconfig - ADD CONSTRAINT users_userconfig_user_id_key UNIQUE (user_id); - - --- --- Name: virtualization_cluster virtualization_cluster_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_cluster - ADD CONSTRAINT virtualization_cluster_pkey PRIMARY KEY (id); - - --- --- Name: virtualization_cluster virtualization_cluster_unique_group_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_cluster - ADD CONSTRAINT virtualization_cluster_unique_group_name UNIQUE (group_id, name); - - --- --- Name: virtualization_cluster virtualization_cluster_unique_site_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_cluster - ADD CONSTRAINT virtualization_cluster_unique_site_name UNIQUE (site_id, name); - - --- --- Name: virtualization_clustergroup virtualization_clustergroup_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_clustergroup - ADD CONSTRAINT virtualization_clustergroup_name_key UNIQUE (name); - - --- --- Name: virtualization_clustergroup virtualization_clustergroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_clustergroup - ADD CONSTRAINT virtualization_clustergroup_pkey PRIMARY KEY (id); - - --- --- Name: virtualization_clustergroup virtualization_clustergroup_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_clustergroup - ADD CONSTRAINT virtualization_clustergroup_slug_key UNIQUE (slug); - - --- --- Name: virtualization_clustertype virtualization_clustertype_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_clustertype - ADD CONSTRAINT virtualization_clustertype_name_key UNIQUE (name); - - --- --- Name: virtualization_clustertype virtualization_clustertype_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_clustertype - ADD CONSTRAINT virtualization_clustertype_pkey PRIMARY KEY (id); - - --- --- Name: virtualization_clustertype virtualization_clustertype_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_clustertype - ADD CONSTRAINT virtualization_clustertype_slug_key UNIQUE (slug); - - --- --- Name: virtualization_virtualmachine virtualization_virtualmachine_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtualmachine_pkey PRIMARY KEY (id); - - --- --- Name: virtualization_virtualmachine virtualization_virtualmachine_primary_ip4_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtualmachine_primary_ip4_id_key UNIQUE (primary_ip4_id); - - --- --- Name: virtualization_virtualmachine virtualization_virtualmachine_primary_ip6_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtualmachine_primary_ip6_id_key UNIQUE (primary_ip6_id); - - --- --- Name: virtualization_vminterface_tagged_vlans virtualization_vminterfa_vminterface_id_vlan_id_27e907db_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface_tagged_vlans - ADD CONSTRAINT virtualization_vminterfa_vminterface_id_vlan_id_27e907db_uniq UNIQUE (vminterface_id, vlan_id); - - --- --- Name: virtualization_vminterface virtualization_vminterface_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface - ADD CONSTRAINT virtualization_vminterface_pkey PRIMARY KEY (id); - - --- --- Name: virtualization_vminterface_tagged_vlans virtualization_vminterface_tagged_vlans_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface_tagged_vlans - ADD CONSTRAINT virtualization_vminterface_tagged_vlans_pkey PRIMARY KEY (id); - - --- --- Name: virtualization_vminterface virtualization_vminterface_unique_virtual_machine_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface - ADD CONSTRAINT virtualization_vminterface_unique_virtual_machine_name UNIQUE (virtual_machine_id, name); - - --- --- Name: wireless_wirelesslan wireless_wirelesslan_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslan - ADD CONSTRAINT wireless_wirelesslan_pkey PRIMARY KEY (id); - - --- --- Name: wireless_wirelesslangroup wireless_wirelesslangroup_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslangroup - ADD CONSTRAINT wireless_wirelesslangroup_name_key UNIQUE (name); - - --- --- Name: wireless_wirelesslangroup wireless_wirelesslangroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslangroup - ADD CONSTRAINT wireless_wirelesslangroup_pkey PRIMARY KEY (id); - - --- --- Name: wireless_wirelesslangroup wireless_wirelesslangroup_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslangroup - ADD CONSTRAINT wireless_wirelesslangroup_slug_key UNIQUE (slug); - - --- --- Name: wireless_wirelesslangroup wireless_wirelesslangroup_unique_parent_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslangroup - ADD CONSTRAINT wireless_wirelesslangroup_unique_parent_name UNIQUE (parent_id, name); - - --- --- Name: wireless_wirelesslink wireless_wirelesslink_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslink - ADD CONSTRAINT wireless_wirelesslink_pkey PRIMARY KEY (id); - - --- --- Name: wireless_wirelesslink wireless_wirelesslink_unique_interfaces; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslink - ADD CONSTRAINT wireless_wirelesslink_unique_interfaces UNIQUE (interface_a_id, interface_b_id); - - --- --- Name: auth_group_name_a6ea08ec_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX auth_group_name_a6ea08ec_like ON public.auth_group USING btree (name varchar_pattern_ops); - - --- --- Name: auth_group_permissions_group_id_b120cbf9; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX auth_group_permissions_group_id_b120cbf9 ON public.auth_group_permissions USING btree (group_id); - - --- --- Name: auth_group_permissions_permission_id_84c5c92e; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX auth_group_permissions_permission_id_84c5c92e ON public.auth_group_permissions USING btree (permission_id); - - --- --- Name: auth_permission_content_type_id_2f476e4b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX auth_permission_content_type_id_2f476e4b ON public.auth_permission USING btree (content_type_id); - - --- --- Name: auth_user_groups_group_id_97559544; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX auth_user_groups_group_id_97559544 ON public.auth_user_groups USING btree (group_id); - - --- --- Name: auth_user_groups_user_id_6a12ed8b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX auth_user_groups_user_id_6a12ed8b ON public.auth_user_groups USING btree (user_id); - - --- --- Name: auth_user_user_permissions_permission_id_1fbb5f2c; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX auth_user_user_permissions_permission_id_1fbb5f2c ON public.auth_user_user_permissions USING btree (permission_id); - - --- --- Name: auth_user_user_permissions_user_id_a95ead1b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX auth_user_user_permissions_user_id_a95ead1b ON public.auth_user_user_permissions USING btree (user_id); - - --- --- Name: auth_user_username_6821ab7c_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX auth_user_username_6821ab7c_like ON public.auth_user USING btree (username varchar_pattern_ops); - - --- --- Name: circuits_circuit_provider_id_d9195418; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_circuit_provider_id_d9195418 ON public.circuits_circuit USING btree (provider_id); - - --- --- Name: circuits_circuit_tenant_id_812508a5; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_circuit_tenant_id_812508a5 ON public.circuits_circuit USING btree (tenant_id); - - --- --- Name: circuits_circuit_termination_a_id_f891adac; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_circuit_termination_a_id_f891adac ON public.circuits_circuit USING btree (termination_a_id); - - --- --- Name: circuits_circuit_termination_z_id_377b8551; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_circuit_termination_z_id_377b8551 ON public.circuits_circuit USING btree (termination_z_id); - - --- --- Name: circuits_circuit_type_id_1b9f485a; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_circuit_type_id_1b9f485a ON public.circuits_circuit USING btree (type_id); - - --- --- Name: circuits_circuittermination_cable_id_35e9f703; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_circuittermination_cable_id_35e9f703 ON public.circuits_circuittermination USING btree (cable_id); - - --- --- Name: circuits_circuittermination_circuit_id_257e87e7; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_circuittermination_circuit_id_257e87e7 ON public.circuits_circuittermination USING btree (circuit_id); - - --- --- Name: circuits_circuittermination_provider_network_id_b0c660f1; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_circuittermination_provider_network_id_b0c660f1 ON public.circuits_circuittermination USING btree (provider_network_id); - - --- --- Name: circuits_circuittermination_site_id_e6fe5652; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_circuittermination_site_id_e6fe5652 ON public.circuits_circuittermination USING btree (site_id); - - --- --- Name: circuits_circuittype_name_8256ea9a_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_circuittype_name_8256ea9a_like ON public.circuits_circuittype USING btree (name varchar_pattern_ops); - - --- --- Name: circuits_circuittype_slug_9b4b3cf9_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_circuittype_slug_9b4b3cf9_like ON public.circuits_circuittype USING btree (slug varchar_pattern_ops); - - --- --- Name: circuits_provider_asns_asn_id_0a6c53b3; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_provider_asns_asn_id_0a6c53b3 ON public.circuits_provider_asns USING btree (asn_id); - - --- --- Name: circuits_provider_asns_provider_id_becc3f7e; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_provider_asns_provider_id_becc3f7e ON public.circuits_provider_asns USING btree (provider_id); - - --- --- Name: circuits_provider_name_8f2514f5_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_provider_name_8f2514f5_like ON public.circuits_provider USING btree (name varchar_pattern_ops); - - --- --- Name: circuits_provider_slug_c3c0aa10_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_provider_slug_c3c0aa10_like ON public.circuits_provider USING btree (slug varchar_pattern_ops); - - --- --- Name: circuits_providernetwork_provider_id_7992236c; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_providernetwork_provider_id_7992236c ON public.circuits_providernetwork USING btree (provider_id); - - --- --- Name: dcim_cable_tenant_id_3a7fdbb8; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_cable_tenant_id_3a7fdbb8 ON public.dcim_cable USING btree (tenant_id); - - --- --- Name: dcim_cabletermination__device_id_f5884934; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_cabletermination__device_id_f5884934 ON public.dcim_cabletermination USING btree (_device_id); - - --- --- Name: dcim_cabletermination__location_id_ff4be503; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_cabletermination__location_id_ff4be503 ON public.dcim_cabletermination USING btree (_location_id); - - --- --- Name: dcim_cabletermination__rack_id_83a548e1; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_cabletermination__rack_id_83a548e1 ON public.dcim_cabletermination USING btree (_rack_id); - - --- --- Name: dcim_cabletermination__site_id_616962fa; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_cabletermination__site_id_616962fa ON public.dcim_cabletermination USING btree (_site_id); - - --- --- Name: dcim_cabletermination_cable_id_b50010d1; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_cabletermination_cable_id_b50010d1 ON public.dcim_cabletermination USING btree (cable_id); - - --- --- Name: dcim_cabletermination_termination_type_id_20da439e; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_cabletermination_termination_type_id_20da439e ON public.dcim_cabletermination USING btree (termination_type_id); - - --- --- Name: dcim_consoleport__path_id_e40a4436; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_consoleport__path_id_e40a4436 ON public.dcim_consoleport USING btree (_path_id); - - --- --- Name: dcim_consoleport_cable_id_a9ae5465; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_consoleport_cable_id_a9ae5465 ON public.dcim_consoleport USING btree (cable_id); - - --- --- Name: dcim_consoleport_device_id_f2d90d3c; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_consoleport_device_id_f2d90d3c ON public.dcim_consoleport USING btree (device_id); - - --- --- Name: dcim_consoleport_module_id_d17b2519; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_consoleport_module_id_d17b2519 ON public.dcim_consoleport USING btree (module_id); - - --- --- Name: dcim_consoleporttemplate_device_type_id_075d4015; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_consoleporttemplate_device_type_id_075d4015 ON public.dcim_consoleporttemplate USING btree (device_type_id); - - --- --- Name: dcim_consoleporttemplate_module_type_id_c0f35d97; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_consoleporttemplate_module_type_id_c0f35d97 ON public.dcim_consoleporttemplate USING btree (module_type_id); - - --- --- Name: dcim_consoleserverport__path_id_dc5abe09; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_consoleserverport__path_id_dc5abe09 ON public.dcim_consoleserverport USING btree (_path_id); - - --- --- Name: dcim_consoleserverport_cable_id_f2940dfd; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_consoleserverport_cable_id_f2940dfd ON public.dcim_consoleserverport USING btree (cable_id); - - --- --- Name: dcim_consoleserverport_device_id_d9866581; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_consoleserverport_device_id_d9866581 ON public.dcim_consoleserverport USING btree (device_id); - - --- --- Name: dcim_consoleserverport_module_id_d060cfc8; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_consoleserverport_module_id_d060cfc8 ON public.dcim_consoleserverport USING btree (module_id); - - --- --- Name: dcim_consoleserverporttemplate_device_type_id_579bdc86; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_consoleserverporttemplate_device_type_id_579bdc86 ON public.dcim_consoleserverporttemplate USING btree (device_type_id); - - --- --- Name: dcim_consoleserverporttemplate_module_type_id_4abf751a; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_consoleserverporttemplate_module_type_id_4abf751a ON public.dcim_consoleserverporttemplate USING btree (module_type_id); - - --- --- Name: dcim_device_asset_tag_8dac1079_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_device_asset_tag_8dac1079_like ON public.dcim_device USING btree (asset_tag varchar_pattern_ops); - - --- --- Name: dcim_device_cluster_id_cf852f78; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_device_cluster_id_cf852f78 ON public.dcim_device USING btree (cluster_id); - - --- --- Name: dcim_device_device_role_id_682e8188; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_device_device_role_id_682e8188 ON public.dcim_device USING btree (device_role_id); - - --- --- Name: dcim_device_device_type_id_d61b4086; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_device_device_type_id_d61b4086 ON public.dcim_device USING btree (device_type_id); - - --- --- Name: dcim_device_location_id_11a7bedb; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_device_location_id_11a7bedb ON public.dcim_device USING btree (location_id); - - --- --- Name: dcim_device_platform_id_468138f1; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_device_platform_id_468138f1 ON public.dcim_device USING btree (platform_id); - - --- --- Name: dcim_device_rack_id_23bde71f; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_device_rack_id_23bde71f ON public.dcim_device USING btree (rack_id); - - --- --- Name: dcim_device_site_id_ff897cf6; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_device_site_id_ff897cf6 ON public.dcim_device USING btree (site_id); - - --- --- Name: dcim_device_tenant_id_dcea7969; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_device_tenant_id_dcea7969 ON public.dcim_device USING btree (tenant_id); - - --- --- Name: dcim_device_unique_name_site; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE UNIQUE INDEX dcim_device_unique_name_site ON public.dcim_device USING btree (lower((name)::text), site_id) WHERE (tenant_id IS NULL); - - --- --- Name: dcim_device_unique_name_site_tenant; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE UNIQUE INDEX dcim_device_unique_name_site_tenant ON public.dcim_device USING btree (lower((name)::text), site_id, tenant_id); - - --- --- Name: dcim_device_virtual_chassis_id_aed51693; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_device_virtual_chassis_id_aed51693 ON public.dcim_device USING btree (virtual_chassis_id); - - --- --- Name: dcim_devicebay_device_id_0c8a1218; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_devicebay_device_id_0c8a1218 ON public.dcim_devicebay USING btree (device_id); - - --- --- Name: dcim_devicebaytemplate_device_type_id_f4b24a29; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_devicebaytemplate_device_type_id_f4b24a29 ON public.dcim_devicebaytemplate USING btree (device_type_id); - - --- --- Name: dcim_devicerole_name_1c813306_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_devicerole_name_1c813306_like ON public.dcim_devicerole USING btree (name varchar_pattern_ops); - - --- --- Name: dcim_devicerole_slug_7952643b_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_devicerole_slug_7952643b_like ON public.dcim_devicerole USING btree (slug varchar_pattern_ops); - - --- --- Name: dcim_devicetype_manufacturer_id_a3e8029e; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_devicetype_manufacturer_id_a3e8029e ON public.dcim_devicetype USING btree (manufacturer_id); - - --- --- Name: dcim_devicetype_slug_448745bd; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_devicetype_slug_448745bd ON public.dcim_devicetype USING btree (slug); - - --- --- Name: dcim_devicetype_slug_448745bd_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_devicetype_slug_448745bd_like ON public.dcim_devicetype USING btree (slug varchar_pattern_ops); - - --- --- Name: dcim_frontport_cable_id_04ff8aab; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_frontport_cable_id_04ff8aab ON public.dcim_frontport USING btree (cable_id); - - --- --- Name: dcim_frontport_device_id_950557b5; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_frontport_device_id_950557b5 ON public.dcim_frontport USING btree (device_id); - - --- --- Name: dcim_frontport_module_id_952c3f9a; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_frontport_module_id_952c3f9a ON public.dcim_frontport USING btree (module_id); - - --- --- Name: dcim_frontport_rear_port_id_78df2532; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_frontport_rear_port_id_78df2532 ON public.dcim_frontport USING btree (rear_port_id); - - --- --- Name: dcim_frontporttemplate_device_type_id_f088b952; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_frontporttemplate_device_type_id_f088b952 ON public.dcim_frontporttemplate USING btree (device_type_id); - - --- --- Name: dcim_frontporttemplate_module_type_id_66851ff9; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_frontporttemplate_module_type_id_66851ff9 ON public.dcim_frontporttemplate USING btree (module_type_id); - - --- --- Name: dcim_frontporttemplate_rear_port_id_9775411b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_frontporttemplate_rear_port_id_9775411b ON public.dcim_frontporttemplate USING btree (rear_port_id); - - --- --- Name: dcim_interface__path_id_f8f4f7f0; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface__path_id_f8f4f7f0 ON public.dcim_interface USING btree (_path_id); - - --- --- Name: dcim_interface_bridge_id_f2a8df85; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface_bridge_id_f2a8df85 ON public.dcim_interface USING btree (bridge_id); - - --- --- Name: dcim_interface_cable_id_1b264edb; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface_cable_id_1b264edb ON public.dcim_interface USING btree (cable_id); - - --- --- Name: dcim_interface_device_id_359c6115; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface_device_id_359c6115 ON public.dcim_interface USING btree (device_id); - - --- --- Name: dcim_interface_lag_id_ea1a1d12; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface_lag_id_ea1a1d12 ON public.dcim_interface USING btree (lag_id); - - --- --- Name: dcim_interface_module_id_05ca2da5; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface_module_id_05ca2da5 ON public.dcim_interface USING btree (module_id); - - --- --- Name: dcim_interface_parent_id_3e2b159b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface_parent_id_3e2b159b ON public.dcim_interface USING btree (parent_id); - - --- --- Name: dcim_interface_tagged_vlans_interface_id_5870c9e9; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface_tagged_vlans_interface_id_5870c9e9 ON public.dcim_interface_tagged_vlans USING btree (interface_id); - - --- --- Name: dcim_interface_tagged_vlans_vlan_id_e027005c; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface_tagged_vlans_vlan_id_e027005c ON public.dcim_interface_tagged_vlans USING btree (vlan_id); - - --- --- Name: dcim_interface_untagged_vlan_id_838dc7be; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface_untagged_vlan_id_838dc7be ON public.dcim_interface USING btree (untagged_vlan_id); - - --- --- Name: dcim_interface_vdcs_interface_id_6d58dbaf; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface_vdcs_interface_id_6d58dbaf ON public.dcim_interface_vdcs USING btree (interface_id); - - --- --- Name: dcim_interface_vdcs_virtualdevicecontext_id_af0bfd4b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface_vdcs_virtualdevicecontext_id_af0bfd4b ON public.dcim_interface_vdcs USING btree (virtualdevicecontext_id); - - --- --- Name: dcim_interface_vrf_id_a92e59b2; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface_vrf_id_a92e59b2 ON public.dcim_interface USING btree (vrf_id); - - --- --- Name: dcim_interface_wireless_lans_interface_id_80df3785; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface_wireless_lans_interface_id_80df3785 ON public.dcim_interface_wireless_lans USING btree (interface_id); - - --- --- Name: dcim_interface_wireless_lans_wirelesslan_id_f081e278; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface_wireless_lans_wirelesslan_id_f081e278 ON public.dcim_interface_wireless_lans USING btree (wirelesslan_id); - - --- --- Name: dcim_interface_wireless_link_id_bc91108f; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface_wireless_link_id_bc91108f ON public.dcim_interface USING btree (wireless_link_id); - - --- --- Name: dcim_interfacetemplate_device_type_id_4bfcbfab; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interfacetemplate_device_type_id_4bfcbfab ON public.dcim_interfacetemplate USING btree (device_type_id); - - --- --- Name: dcim_interfacetemplate_module_type_id_f941f180; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interfacetemplate_module_type_id_f941f180 ON public.dcim_interfacetemplate USING btree (module_type_id); - - --- --- Name: dcim_inventoryitem_asset_tag_d3289273_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_inventoryitem_asset_tag_d3289273_like ON public.dcim_inventoryitem USING btree (asset_tag varchar_pattern_ops); - - --- --- Name: dcim_inventoryitem_component_type_id_f0e4d83a; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_inventoryitem_component_type_id_f0e4d83a ON public.dcim_inventoryitem USING btree (component_type_id); - - --- --- Name: dcim_inventoryitem_device_id_033d83f8; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_inventoryitem_device_id_033d83f8 ON public.dcim_inventoryitem USING btree (device_id); - - --- --- Name: dcim_inventoryitem_manufacturer_id_dcd1b78a; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_inventoryitem_manufacturer_id_dcd1b78a ON public.dcim_inventoryitem USING btree (manufacturer_id); - - --- --- Name: dcim_inventoryitem_parent_id_7ebcd457; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_inventoryitem_parent_id_7ebcd457 ON public.dcim_inventoryitem USING btree (parent_id); - - --- --- Name: dcim_inventoryitem_role_id_2bcfcb04; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_inventoryitem_role_id_2bcfcb04 ON public.dcim_inventoryitem USING btree (role_id); - - --- --- Name: dcim_inventoryitem_tree_id_4676ade2; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_inventoryitem_tree_id_4676ade2 ON public.dcim_inventoryitem USING btree (tree_id); - - --- --- Name: dcim_inventoryitemrole_name_4c8cfe6d_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_inventoryitemrole_name_4c8cfe6d_like ON public.dcim_inventoryitemrole USING btree (name varchar_pattern_ops); - - --- --- Name: dcim_inventoryitemrole_slug_3556c227_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_inventoryitemrole_slug_3556c227_like ON public.dcim_inventoryitemrole USING btree (slug varchar_pattern_ops); - - --- --- Name: dcim_inventoryitemtemplate_component_type_id_161623a2; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_inventoryitemtemplate_component_type_id_161623a2 ON public.dcim_inventoryitemtemplate USING btree (component_type_id); - - --- --- Name: dcim_inventoryitemtemplate_device_type_id_6a1be904; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_inventoryitemtemplate_device_type_id_6a1be904 ON public.dcim_inventoryitemtemplate USING btree (device_type_id); - - --- --- Name: dcim_inventoryitemtemplate_manufacturer_id_b388c5d9; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_inventoryitemtemplate_manufacturer_id_b388c5d9 ON public.dcim_inventoryitemtemplate USING btree (manufacturer_id); - - --- --- Name: dcim_inventoryitemtemplate_parent_id_0dac73bb; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_inventoryitemtemplate_parent_id_0dac73bb ON public.dcim_inventoryitemtemplate USING btree (parent_id); - - --- --- Name: dcim_inventoryitemtemplate_role_id_292676e6; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_inventoryitemtemplate_role_id_292676e6 ON public.dcim_inventoryitemtemplate USING btree (role_id); - - --- --- Name: dcim_inventoryitemtemplate_tree_id_75ebcb8e; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_inventoryitemtemplate_tree_id_75ebcb8e ON public.dcim_inventoryitemtemplate USING btree (tree_id); - - --- --- Name: dcim_location_name; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE UNIQUE INDEX dcim_location_name ON public.dcim_location USING btree (site_id, name) WHERE (parent_id IS NULL); - - --- --- Name: dcim_location_parent_id_d77f3318; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_location_parent_id_d77f3318 ON public.dcim_location USING btree (parent_id); - - --- --- Name: dcim_location_site_id_b55e975f; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_location_site_id_b55e975f ON public.dcim_location USING btree (site_id); - - --- --- Name: dcim_location_slug; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE UNIQUE INDEX dcim_location_slug ON public.dcim_location USING btree (site_id, slug) WHERE (parent_id IS NULL); - - --- --- Name: dcim_location_slug_352c5472; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_location_slug_352c5472 ON public.dcim_location USING btree (slug); - - --- --- Name: dcim_location_slug_352c5472_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_location_slug_352c5472_like ON public.dcim_location USING btree (slug varchar_pattern_ops); - - --- --- Name: dcim_location_tenant_id_2c4df974; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_location_tenant_id_2c4df974 ON public.dcim_location USING btree (tenant_id); - - --- --- Name: dcim_location_tree_id_5089ef14; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_location_tree_id_5089ef14 ON public.dcim_location USING btree (tree_id); - - --- --- Name: dcim_manufacturer_name_841fcd92_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_manufacturer_name_841fcd92_like ON public.dcim_manufacturer USING btree (name varchar_pattern_ops); - - --- --- Name: dcim_manufacturer_slug_00430749_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_manufacturer_slug_00430749_like ON public.dcim_manufacturer USING btree (slug varchar_pattern_ops); - - --- --- Name: dcim_module_asset_tag_2fd91eed_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_module_asset_tag_2fd91eed_like ON public.dcim_module USING btree (asset_tag varchar_pattern_ops); - - --- --- Name: dcim_module_device_id_53cfd5be; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_module_device_id_53cfd5be ON public.dcim_module USING btree (device_id); - - --- --- Name: dcim_module_module_type_id_a50b39fc; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_module_module_type_id_a50b39fc ON public.dcim_module USING btree (module_type_id); - - --- --- Name: dcim_modulebay_device_id_3526abc2; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_modulebay_device_id_3526abc2 ON public.dcim_modulebay USING btree (device_id); - - --- --- Name: dcim_modulebaytemplate_device_type_id_9eaf9bd3; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_modulebaytemplate_device_type_id_9eaf9bd3 ON public.dcim_modulebaytemplate USING btree (device_type_id); - - --- --- Name: dcim_moduletype_manufacturer_id_7347392e; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_moduletype_manufacturer_id_7347392e ON public.dcim_moduletype USING btree (manufacturer_id); - - --- --- Name: dcim_platform_manufacturer_id_83f72d3d; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_platform_manufacturer_id_83f72d3d ON public.dcim_platform USING btree (manufacturer_id); - - --- --- Name: dcim_platform_name_c2f04255_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_platform_name_c2f04255_like ON public.dcim_platform USING btree (name varchar_pattern_ops); - - --- --- Name: dcim_platform_slug_b0908ae4_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_platform_slug_b0908ae4_like ON public.dcim_platform USING btree (slug varchar_pattern_ops); - - --- --- Name: dcim_powerfeed__path_id_a1ea1f28; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_powerfeed__path_id_a1ea1f28 ON public.dcim_powerfeed USING btree (_path_id); - - --- --- Name: dcim_powerfeed_cable_id_ec44c4f8; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_powerfeed_cable_id_ec44c4f8 ON public.dcim_powerfeed USING btree (cable_id); - - --- --- Name: dcim_powerfeed_power_panel_id_32bde3be; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_powerfeed_power_panel_id_32bde3be ON public.dcim_powerfeed USING btree (power_panel_id); - - --- --- Name: dcim_powerfeed_rack_id_7abba090; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_powerfeed_rack_id_7abba090 ON public.dcim_powerfeed USING btree (rack_id); - - --- --- Name: dcim_poweroutlet__path_id_cbb47bb9; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_poweroutlet__path_id_cbb47bb9 ON public.dcim_poweroutlet USING btree (_path_id); - - --- --- Name: dcim_poweroutlet_cable_id_8dbea1ec; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_poweroutlet_cable_id_8dbea1ec ON public.dcim_poweroutlet USING btree (cable_id); - - --- --- Name: dcim_poweroutlet_device_id_286351d7; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_poweroutlet_device_id_286351d7 ON public.dcim_poweroutlet USING btree (device_id); - - --- --- Name: dcim_poweroutlet_module_id_032f5af2; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_poweroutlet_module_id_032f5af2 ON public.dcim_poweroutlet USING btree (module_id); - - --- --- Name: dcim_poweroutlet_power_port_id_9bdf4163; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_poweroutlet_power_port_id_9bdf4163 ON public.dcim_poweroutlet USING btree (power_port_id); - - --- --- Name: dcim_poweroutlettemplate_device_type_id_26b2316c; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_poweroutlettemplate_device_type_id_26b2316c ON public.dcim_poweroutlettemplate USING btree (device_type_id); - - --- --- Name: dcim_poweroutlettemplate_module_type_id_6142b416; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_poweroutlettemplate_module_type_id_6142b416 ON public.dcim_poweroutlettemplate USING btree (module_type_id); - - --- --- Name: dcim_poweroutlettemplate_power_port_id_c0fb0c42; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_poweroutlettemplate_power_port_id_c0fb0c42 ON public.dcim_poweroutlettemplate USING btree (power_port_id); - - --- --- Name: dcim_powerpanel_location_id_474b60f8; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_powerpanel_location_id_474b60f8 ON public.dcim_powerpanel USING btree (location_id); - - --- --- Name: dcim_powerpanel_site_id_c430bc89; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_powerpanel_site_id_c430bc89 ON public.dcim_powerpanel USING btree (site_id); - - --- --- Name: dcim_powerport__path_id_9fe4af8f; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_powerport__path_id_9fe4af8f ON public.dcim_powerport USING btree (_path_id); - - --- --- Name: dcim_powerport_cable_id_c9682ba2; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_powerport_cable_id_c9682ba2 ON public.dcim_powerport USING btree (cable_id); - - --- --- Name: dcim_powerport_device_id_ef7185ae; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_powerport_device_id_ef7185ae ON public.dcim_powerport USING btree (device_id); - - --- --- Name: dcim_powerport_module_id_d0c27534; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_powerport_module_id_d0c27534 ON public.dcim_powerport USING btree (module_id); - - --- --- Name: dcim_powerporttemplate_device_type_id_1ddfbfcc; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_powerporttemplate_device_type_id_1ddfbfcc ON public.dcim_powerporttemplate USING btree (device_type_id); - - --- --- Name: dcim_powerporttemplate_module_type_id_93e26849; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_powerporttemplate_module_type_id_93e26849 ON public.dcim_powerporttemplate USING btree (module_type_id); - - --- --- Name: dcim_rack_asset_tag_f88408e5_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rack_asset_tag_f88408e5_like ON public.dcim_rack USING btree (asset_tag varchar_pattern_ops); - - --- --- Name: dcim_rack_location_id_5f63ec31; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rack_location_id_5f63ec31 ON public.dcim_rack USING btree (location_id); - - --- --- Name: dcim_rack_role_id_62d6919e; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rack_role_id_62d6919e ON public.dcim_rack USING btree (role_id); - - --- --- Name: dcim_rack_site_id_403c7b3a; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rack_site_id_403c7b3a ON public.dcim_rack USING btree (site_id); - - --- --- Name: dcim_rack_tenant_id_7cdf3725; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rack_tenant_id_7cdf3725 ON public.dcim_rack USING btree (tenant_id); - - --- --- Name: dcim_rackreservation_rack_id_1ebbaa9b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rackreservation_rack_id_1ebbaa9b ON public.dcim_rackreservation USING btree (rack_id); - - --- --- Name: dcim_rackreservation_tenant_id_eb5e045f; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rackreservation_tenant_id_eb5e045f ON public.dcim_rackreservation USING btree (tenant_id); - - --- --- Name: dcim_rackreservation_user_id_0785a527; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rackreservation_user_id_0785a527 ON public.dcim_rackreservation USING btree (user_id); - - --- --- Name: dcim_rackrole_name_9077cfcc_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rackrole_name_9077cfcc_like ON public.dcim_rackrole USING btree (name varchar_pattern_ops); - - --- --- Name: dcim_rackrole_slug_40bbcd3a_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rackrole_slug_40bbcd3a_like ON public.dcim_rackrole USING btree (slug varchar_pattern_ops); - - --- --- Name: dcim_rearport_cable_id_42c0e4e7; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rearport_cable_id_42c0e4e7 ON public.dcim_rearport USING btree (cable_id); - - --- --- Name: dcim_rearport_device_id_0bdfe9c0; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rearport_device_id_0bdfe9c0 ON public.dcim_rearport USING btree (device_id); - - --- --- Name: dcim_rearport_module_id_9a7b7e91; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rearport_module_id_9a7b7e91 ON public.dcim_rearport USING btree (module_id); - - --- --- Name: dcim_rearporttemplate_device_type_id_6a02fd01; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rearporttemplate_device_type_id_6a02fd01 ON public.dcim_rearporttemplate USING btree (device_type_id); - - --- --- Name: dcim_rearporttemplate_module_type_id_4d970e5b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rearporttemplate_module_type_id_4d970e5b ON public.dcim_rearporttemplate USING btree (module_type_id); - - --- --- Name: dcim_region_name; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE UNIQUE INDEX dcim_region_name ON public.dcim_region USING btree (name) WHERE (parent_id IS NULL); - - --- --- Name: dcim_region_parent_id_2486f5d4; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_region_parent_id_2486f5d4 ON public.dcim_region USING btree (parent_id); - - --- --- Name: dcim_region_slug; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE UNIQUE INDEX dcim_region_slug ON public.dcim_region USING btree (slug) WHERE (parent_id IS NULL); - - --- --- Name: dcim_region_slug_ff078a66; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_region_slug_ff078a66 ON public.dcim_region USING btree (slug); - - --- --- Name: dcim_region_slug_ff078a66_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_region_slug_ff078a66_like ON public.dcim_region USING btree (slug varchar_pattern_ops); - - --- --- Name: dcim_region_tree_id_a09ea9a7; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_region_tree_id_a09ea9a7 ON public.dcim_region USING btree (tree_id); - - --- --- Name: dcim_site_asns_asn_id_3cfd0f00; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_site_asns_asn_id_3cfd0f00 ON public.dcim_site_asns USING btree (asn_id); - - --- --- Name: dcim_site_asns_site_id_112ccacf; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_site_asns_site_id_112ccacf ON public.dcim_site_asns USING btree (site_id); - - --- --- Name: dcim_site_group_id_3910c975; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_site_group_id_3910c975 ON public.dcim_site USING btree (group_id); - - --- --- Name: dcim_site_name_8fe66c76_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_site_name_8fe66c76_like ON public.dcim_site USING btree (name varchar_pattern_ops); - - --- --- Name: dcim_site_region_id_45210932; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_site_region_id_45210932 ON public.dcim_site USING btree (region_id); - - --- --- Name: dcim_site_slug_4412c762_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_site_slug_4412c762_like ON public.dcim_site USING btree (slug varchar_pattern_ops); - - --- --- Name: dcim_site_tenant_id_15e7df63; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_site_tenant_id_15e7df63 ON public.dcim_site USING btree (tenant_id); - - --- --- Name: dcim_sitegroup_name; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE UNIQUE INDEX dcim_sitegroup_name ON public.dcim_sitegroup USING btree (name) WHERE (parent_id IS NULL); - - --- --- Name: dcim_sitegroup_parent_id_533a5e44; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_sitegroup_parent_id_533a5e44 ON public.dcim_sitegroup USING btree (parent_id); - - --- --- Name: dcim_sitegroup_slug; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE UNIQUE INDEX dcim_sitegroup_slug ON public.dcim_sitegroup USING btree (slug) WHERE (parent_id IS NULL); - - --- --- Name: dcim_sitegroup_slug_a11d2b04; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_sitegroup_slug_a11d2b04 ON public.dcim_sitegroup USING btree (slug); - - --- --- Name: dcim_sitegroup_slug_a11d2b04_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_sitegroup_slug_a11d2b04_like ON public.dcim_sitegroup USING btree (slug varchar_pattern_ops); - - --- --- Name: dcim_sitegroup_tree_id_e76dc999; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_sitegroup_tree_id_e76dc999 ON public.dcim_sitegroup USING btree (tree_id); - - --- --- Name: dcim_virtualdevicecontext_device_id_4f39274b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_virtualdevicecontext_device_id_4f39274b ON public.dcim_virtualdevicecontext USING btree (device_id); - - --- --- Name: dcim_virtualdevicecontext_tenant_id_b6a21753; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_virtualdevicecontext_tenant_id_b6a21753 ON public.dcim_virtualdevicecontext USING btree (tenant_id); - - --- --- Name: django_admin_log_content_type_id_c4bce8eb; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX django_admin_log_content_type_id_c4bce8eb ON public.django_admin_log USING btree (content_type_id); - - --- --- Name: django_admin_log_user_id_c564eba6; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX django_admin_log_user_id_c564eba6 ON public.django_admin_log USING btree (user_id); - - --- --- Name: django_session_expire_date_a5c62663; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX django_session_expire_date_a5c62663 ON public.django_session USING btree (expire_date); - - --- --- Name: django_session_session_key_c0390e0f_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX django_session_session_key_c0390e0f_like ON public.django_session USING btree (session_key varchar_pattern_ops); - - --- --- Name: extras_branch_name_1d13739f_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_branch_name_1d13739f_like ON public.extras_branch USING btree (name varchar_pattern_ops); - - --- --- Name: extras_branch_user_id_a6cfd338; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_branch_user_id_a6cfd338 ON public.extras_branch USING btree (user_id); - - --- --- Name: extras_cachedvalue_object_type_id_6f47d444; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_cachedvalue_object_type_id_6f47d444 ON public.extras_cachedvalue USING btree (object_type_id); - - --- --- Name: extras_configcontext_cluster_groups_clustergroup_id_f4322ce8; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_cluster_groups_clustergroup_id_f4322ce8 ON public.extras_configcontext_cluster_groups USING btree (clustergroup_id); - - --- --- Name: extras_configcontext_cluster_groups_configcontext_id_8f50b794; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_cluster_groups_configcontext_id_8f50b794 ON public.extras_configcontext_cluster_groups USING btree (configcontext_id); - - --- --- Name: extras_configcontext_cluster_types_clustertype_id_fa493b64; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_cluster_types_clustertype_id_fa493b64 ON public.extras_configcontext_cluster_types USING btree (clustertype_id); - - --- --- Name: extras_configcontext_cluster_types_configcontext_id_d549b6f2; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_cluster_types_configcontext_id_d549b6f2 ON public.extras_configcontext_cluster_types USING btree (configcontext_id); - - --- --- Name: extras_configcontext_clusters_cluster_id_6abd47a1; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_clusters_cluster_id_6abd47a1 ON public.extras_configcontext_clusters USING btree (cluster_id); - - --- --- Name: extras_configcontext_clusters_configcontext_id_ed579a40; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_clusters_configcontext_id_ed579a40 ON public.extras_configcontext_clusters USING btree (configcontext_id); - - --- --- Name: extras_configcontext_device_types_configcontext_id_55632923; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_device_types_configcontext_id_55632923 ON public.extras_configcontext_device_types USING btree (configcontext_id); - - --- --- Name: extras_configcontext_device_types_devicetype_id_b8788c2d; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_device_types_devicetype_id_b8788c2d ON public.extras_configcontext_device_types USING btree (devicetype_id); - - --- --- Name: extras_configcontext_locations_configcontext_id_cc629ec1; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_locations_configcontext_id_cc629ec1 ON public.extras_configcontext_locations USING btree (configcontext_id); - - --- --- Name: extras_configcontext_locations_location_id_9e19eac9; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_locations_location_id_9e19eac9 ON public.extras_configcontext_locations USING btree (location_id); - - --- --- Name: extras_configcontext_name_4bbfe25d_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_name_4bbfe25d_like ON public.extras_configcontext USING btree (name varchar_pattern_ops); - - --- --- Name: extras_configcontext_platforms_configcontext_id_2a516699; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_platforms_configcontext_id_2a516699 ON public.extras_configcontext_platforms USING btree (configcontext_id); - - --- --- Name: extras_configcontext_platforms_platform_id_3fdfedc0; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_platforms_platform_id_3fdfedc0 ON public.extras_configcontext_platforms USING btree (platform_id); - - --- --- Name: extras_configcontext_regions_configcontext_id_73003dbc; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_regions_configcontext_id_73003dbc ON public.extras_configcontext_regions USING btree (configcontext_id); - - --- --- Name: extras_configcontext_regions_region_id_35c6ba9d; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_regions_region_id_35c6ba9d ON public.extras_configcontext_regions USING btree (region_id); - - --- --- Name: extras_configcontext_roles_configcontext_id_59b67386; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_roles_configcontext_id_59b67386 ON public.extras_configcontext_roles USING btree (configcontext_id); - - --- --- Name: extras_configcontext_roles_devicerole_id_d3a84813; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_roles_devicerole_id_d3a84813 ON public.extras_configcontext_roles USING btree (devicerole_id); - - --- --- Name: extras_configcontext_site_groups_configcontext_id_2e0f43cb; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_site_groups_configcontext_id_2e0f43cb ON public.extras_configcontext_site_groups USING btree (configcontext_id); - - --- --- Name: extras_configcontext_site_groups_sitegroup_id_3287c9e7; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_site_groups_sitegroup_id_3287c9e7 ON public.extras_configcontext_site_groups USING btree (sitegroup_id); - - --- --- Name: extras_configcontext_sites_configcontext_id_8c54feb9; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_sites_configcontext_id_8c54feb9 ON public.extras_configcontext_sites USING btree (configcontext_id); - - --- --- Name: extras_configcontext_sites_site_id_cbb76c96; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_sites_site_id_cbb76c96 ON public.extras_configcontext_sites USING btree (site_id); - - --- --- Name: extras_configcontext_tags_configcontext_id_64a392b1; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_tags_configcontext_id_64a392b1 ON public.extras_configcontext_tags USING btree (configcontext_id); - - --- --- Name: extras_configcontext_tags_tag_id_129a5d87; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_tags_tag_id_129a5d87 ON public.extras_configcontext_tags USING btree (tag_id); - - --- --- Name: extras_configcontext_tenant_groups_configcontext_id_92f68345; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_tenant_groups_configcontext_id_92f68345 ON public.extras_configcontext_tenant_groups USING btree (configcontext_id); - - --- --- Name: extras_configcontext_tenant_groups_tenantgroup_id_0909688d; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_tenant_groups_tenantgroup_id_0909688d ON public.extras_configcontext_tenant_groups USING btree (tenantgroup_id); - - --- --- Name: extras_configcontext_tenants_configcontext_id_b53552a6; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_tenants_configcontext_id_b53552a6 ON public.extras_configcontext_tenants USING btree (configcontext_id); - - --- --- Name: extras_configcontext_tenants_tenant_id_8d0aa28e; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_configcontext_tenants_tenant_id_8d0aa28e ON public.extras_configcontext_tenants USING btree (tenant_id); - - --- --- Name: extras_customfield_content_types_contenttype_id_2997ba90; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_customfield_content_types_contenttype_id_2997ba90 ON public.extras_customfield_content_types USING btree (contenttype_id); - - --- --- Name: extras_customfield_content_types_customfield_id_3842aaf3; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_customfield_content_types_customfield_id_3842aaf3 ON public.extras_customfield_content_types USING btree (customfield_id); - - --- --- Name: extras_customfield_name_2fe72707_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_customfield_name_2fe72707_like ON public.extras_customfield USING btree (name varchar_pattern_ops); - - --- --- Name: extras_customfield_object_type_id_489f2239; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_customfield_object_type_id_489f2239 ON public.extras_customfield USING btree (object_type_id); - - --- --- Name: extras_customlink_content_types_contenttype_id_df5f34c2; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_customlink_content_types_contenttype_id_df5f34c2 ON public.extras_customlink_content_types USING btree (contenttype_id); - - --- --- Name: extras_customlink_content_types_customlink_id_229ba2bc; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_customlink_content_types_customlink_id_229ba2bc ON public.extras_customlink_content_types USING btree (customlink_id); - - --- --- Name: extras_customlink_name_daed2d18_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_customlink_name_daed2d18_like ON public.extras_customlink USING btree (name varchar_pattern_ops); - - --- --- Name: extras_exporttemplate_content_types_contenttype_id_d80a5164; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_exporttemplate_content_types_contenttype_id_d80a5164 ON public.extras_exporttemplate_content_types USING btree (contenttype_id); - - --- --- Name: extras_exporttemplate_content_types_exporttemplate_id_7645f081; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_exporttemplate_content_types_exporttemplate_id_7645f081 ON public.extras_exporttemplate_content_types USING btree (exporttemplate_id); - - --- --- Name: extras_imageattachment_content_type_id_90e0643d; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_imageattachment_content_type_id_90e0643d ON public.extras_imageattachment USING btree (content_type_id); - - --- --- Name: extras_jobresult_obj_type_id_475e80aa; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_jobresult_obj_type_id_475e80aa ON public.extras_jobresult USING btree (obj_type_id); - - --- --- Name: extras_jobresult_user_id_d35285ab; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_jobresult_user_id_d35285ab ON public.extras_jobresult USING btree (user_id); - - --- --- Name: extras_journalentry_assigned_object_type_id_1bba9f68; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_journalentry_assigned_object_type_id_1bba9f68 ON public.extras_journalentry USING btree (assigned_object_type_id); - - --- --- Name: extras_journalentry_created_by_id_8d4e4329; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_journalentry_created_by_id_8d4e4329 ON public.extras_journalentry USING btree (created_by_id); - - --- --- Name: extras_objectchange_changed_object_type_id_b755bb60; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_objectchange_changed_object_type_id_b755bb60 ON public.extras_objectchange USING btree (changed_object_type_id); - - --- --- Name: extras_objectchange_related_object_type_id_fe6e521f; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_objectchange_related_object_type_id_fe6e521f ON public.extras_objectchange USING btree (related_object_type_id); - - --- --- Name: extras_objectchange_time_224380ea; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_objectchange_time_224380ea ON public.extras_objectchange USING btree ("time"); - - --- --- Name: extras_objectchange_user_id_7fdf8186; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_objectchange_user_id_7fdf8186 ON public.extras_objectchange USING btree (user_id); - - --- --- Name: extras_savedfilter_content_types_contenttype_id_929cea22; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_savedfilter_content_types_contenttype_id_929cea22 ON public.extras_savedfilter_content_types USING btree (contenttype_id); - - --- --- Name: extras_savedfilter_content_types_savedfilter_id_1631b88b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_savedfilter_content_types_savedfilter_id_1631b88b ON public.extras_savedfilter_content_types USING btree (savedfilter_id); - - --- --- Name: extras_savedfilter_name_8a4bbd09_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_savedfilter_name_8a4bbd09_like ON public.extras_savedfilter USING btree (name varchar_pattern_ops); - - --- --- Name: extras_savedfilter_slug_4f93a959_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_savedfilter_slug_4f93a959_like ON public.extras_savedfilter USING btree (slug varchar_pattern_ops); - - --- --- Name: extras_savedfilter_user_id_10502e81; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_savedfilter_user_id_10502e81 ON public.extras_savedfilter USING btree (user_id); - - --- --- Name: extras_stagedchange_branch_id_44893052; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_stagedchange_branch_id_44893052 ON public.extras_stagedchange USING btree (branch_id); - - --- --- Name: extras_stagedchange_object_type_id_de76b05b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_stagedchange_object_type_id_de76b05b ON public.extras_stagedchange USING btree (object_type_id); - - --- --- Name: extras_tag_name_9550b3d9_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_tag_name_9550b3d9_like ON public.extras_tag USING btree (name varchar_pattern_ops); - - --- --- Name: extras_tag_slug_aaa5b7e9_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_tag_slug_aaa5b7e9_like ON public.extras_tag USING btree (slug varchar_pattern_ops); - - --- --- Name: extras_taggeditem_content_type_id_ba5562ed; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_taggeditem_content_type_id_ba5562ed ON public.extras_taggeditem USING btree (content_type_id); - - --- --- Name: extras_taggeditem_content_type_id_object_id_80e28e23_idx; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_taggeditem_content_type_id_object_id_80e28e23_idx ON public.extras_taggeditem USING btree (content_type_id, object_id); - - --- --- Name: extras_taggeditem_object_id_31b2aa77; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_taggeditem_object_id_31b2aa77 ON public.extras_taggeditem USING btree (object_id); - - --- --- Name: extras_taggeditem_tag_id_d48af7c7; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_taggeditem_tag_id_d48af7c7 ON public.extras_taggeditem USING btree (tag_id); - - --- --- Name: extras_webhook_content_types_contenttype_id_3fc2c4d3; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_webhook_content_types_contenttype_id_3fc2c4d3 ON public.extras_webhook_content_types USING btree (contenttype_id); - - --- --- Name: extras_webhook_content_types_webhook_id_0c169800; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_webhook_content_types_webhook_id_0c169800 ON public.extras_webhook_content_types USING btree (webhook_id); - - --- --- Name: extras_webhook_name_82cf60b5_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_webhook_name_82cf60b5_like ON public.extras_webhook USING btree (name varchar_pattern_ops); - - --- --- Name: ipam_aggregate_rir_id_ef7a27bd; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_aggregate_rir_id_ef7a27bd ON public.ipam_aggregate USING btree (rir_id); - - --- --- Name: ipam_aggregate_tenant_id_637dd1a1; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_aggregate_tenant_id_637dd1a1 ON public.ipam_aggregate USING btree (tenant_id); - - --- --- Name: ipam_asn_rir_id_f5ad3cff; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_asn_rir_id_f5ad3cff ON public.ipam_asn USING btree (rir_id); - - --- --- Name: ipam_asn_tenant_id_07e8188e; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_asn_tenant_id_07e8188e ON public.ipam_asn USING btree (tenant_id); - - --- --- Name: ipam_fhrpgroupassignment_group_id_19f15ca4; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_fhrpgroupassignment_group_id_19f15ca4 ON public.ipam_fhrpgroupassignment USING btree (group_id); - - --- --- Name: ipam_fhrpgroupassignment_interface_type_id_f3bcb487; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_fhrpgroupassignment_interface_type_id_f3bcb487 ON public.ipam_fhrpgroupassignment USING btree (interface_type_id); - - --- --- Name: ipam_ipaddress_assigned_object_type_id_02354370; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_ipaddress_assigned_object_type_id_02354370 ON public.ipam_ipaddress USING btree (assigned_object_type_id); - - --- --- Name: ipam_ipaddress_nat_inside_id_a45fb7c5; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_ipaddress_nat_inside_id_a45fb7c5 ON public.ipam_ipaddress USING btree (nat_inside_id); - - --- --- Name: ipam_ipaddress_tenant_id_ac55acfd; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_ipaddress_tenant_id_ac55acfd ON public.ipam_ipaddress USING btree (tenant_id); - - --- --- Name: ipam_ipaddress_vrf_id_51fcc59b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_ipaddress_vrf_id_51fcc59b ON public.ipam_ipaddress USING btree (vrf_id); - - --- --- Name: ipam_iprange_role_id_2782e864; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_iprange_role_id_2782e864 ON public.ipam_iprange USING btree (role_id); - - --- --- Name: ipam_iprange_tenant_id_856027ea; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_iprange_tenant_id_856027ea ON public.ipam_iprange USING btree (tenant_id); - - --- --- Name: ipam_iprange_vrf_id_613e9dd2; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_iprange_vrf_id_613e9dd2 ON public.ipam_iprange USING btree (vrf_id); - - --- --- Name: ipam_l2vpn_export_targets_l2vpn_id_8749bbe8; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_l2vpn_export_targets_l2vpn_id_8749bbe8 ON public.ipam_l2vpn_export_targets USING btree (l2vpn_id); - - --- --- Name: ipam_l2vpn_export_targets_routetarget_id_5ccb758b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_l2vpn_export_targets_routetarget_id_5ccb758b ON public.ipam_l2vpn_export_targets USING btree (routetarget_id); - - --- --- Name: ipam_l2vpn_import_targets_l2vpn_id_731f5bb4; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_l2vpn_import_targets_l2vpn_id_731f5bb4 ON public.ipam_l2vpn_import_targets USING btree (l2vpn_id); - - --- --- Name: ipam_l2vpn_import_targets_routetarget_id_58a188b2; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_l2vpn_import_targets_routetarget_id_58a188b2 ON public.ipam_l2vpn_import_targets USING btree (routetarget_id); - - --- --- Name: ipam_l2vpn_name_5e1c080f_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_l2vpn_name_5e1c080f_like ON public.ipam_l2vpn USING btree (name varchar_pattern_ops); - - --- --- Name: ipam_l2vpn_slug_24008406_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_l2vpn_slug_24008406_like ON public.ipam_l2vpn USING btree (slug varchar_pattern_ops); - - --- --- Name: ipam_l2vpn_tenant_id_bb2564a6; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_l2vpn_tenant_id_bb2564a6 ON public.ipam_l2vpn USING btree (tenant_id); - - --- --- Name: ipam_l2vpntermination_assigned_object_type_id_3923c124; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_l2vpntermination_assigned_object_type_id_3923c124 ON public.ipam_l2vpntermination USING btree (assigned_object_type_id); - - --- --- Name: ipam_l2vpntermination_l2vpn_id_9e570aa1; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_l2vpntermination_l2vpn_id_9e570aa1 ON public.ipam_l2vpntermination USING btree (l2vpn_id); - - --- --- Name: ipam_prefix_role_id_0a98d415; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_prefix_role_id_0a98d415 ON public.ipam_prefix USING btree (role_id); - - --- --- Name: ipam_prefix_site_id_0b20df05; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_prefix_site_id_0b20df05 ON public.ipam_prefix USING btree (site_id); - - --- --- Name: ipam_prefix_tenant_id_7ba1fcc4; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_prefix_tenant_id_7ba1fcc4 ON public.ipam_prefix USING btree (tenant_id); - - --- --- Name: ipam_prefix_vlan_id_1db91bff; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_prefix_vlan_id_1db91bff ON public.ipam_prefix USING btree (vlan_id); - - --- --- Name: ipam_prefix_vrf_id_34f78ed0; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_prefix_vrf_id_34f78ed0 ON public.ipam_prefix USING btree (vrf_id); - - --- --- Name: ipam_rir_name_64a71982_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_rir_name_64a71982_like ON public.ipam_rir USING btree (name varchar_pattern_ops); - - --- --- Name: ipam_rir_slug_ff1a369a_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_rir_slug_ff1a369a_like ON public.ipam_rir USING btree (slug varchar_pattern_ops); - - --- --- Name: ipam_role_name_13784849_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_role_name_13784849_like ON public.ipam_role USING btree (name varchar_pattern_ops); - - --- --- Name: ipam_role_slug_309ca14c_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_role_slug_309ca14c_like ON public.ipam_role USING btree (slug varchar_pattern_ops); - - --- --- Name: ipam_routetarget_name_212be79f_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_routetarget_name_212be79f_like ON public.ipam_routetarget USING btree (name varchar_pattern_ops); - - --- --- Name: ipam_routetarget_tenant_id_5a0b35e8; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_routetarget_tenant_id_5a0b35e8 ON public.ipam_routetarget USING btree (tenant_id); - - --- --- Name: ipam_service_device_id_b4d2bb9c; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_service_device_id_b4d2bb9c ON public.ipam_service USING btree (device_id); - - --- --- Name: ipam_service_ipaddresses_ipaddress_id_b4138c6d; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_service_ipaddresses_ipaddress_id_b4138c6d ON public.ipam_service_ipaddresses USING btree (ipaddress_id); - - --- --- Name: ipam_service_ipaddresses_service_id_ae26b9ab; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_service_ipaddresses_service_id_ae26b9ab ON public.ipam_service_ipaddresses USING btree (service_id); - - --- --- Name: ipam_service_virtual_machine_id_e8b53562; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_service_virtual_machine_id_e8b53562 ON public.ipam_service USING btree (virtual_machine_id); - - --- --- Name: ipam_servicetemplate_name_1a2f3410_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_servicetemplate_name_1a2f3410_like ON public.ipam_servicetemplate USING btree (name varchar_pattern_ops); - - --- --- Name: ipam_vlan_group_id_88cbfa62; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_vlan_group_id_88cbfa62 ON public.ipam_vlan USING btree (group_id); - - --- --- Name: ipam_vlan_role_id_f5015962; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_vlan_role_id_f5015962 ON public.ipam_vlan USING btree (role_id); - - --- --- Name: ipam_vlan_site_id_a59334e3; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_vlan_site_id_a59334e3 ON public.ipam_vlan USING btree (site_id); - - --- --- Name: ipam_vlan_tenant_id_71a8290d; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_vlan_tenant_id_71a8290d ON public.ipam_vlan USING btree (tenant_id); - - --- --- Name: ipam_vlangroup_scope_type_id_6606a755; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_vlangroup_scope_type_id_6606a755 ON public.ipam_vlangroup USING btree (scope_type_id); - - --- --- Name: ipam_vlangroup_slug_40abcf6b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_vlangroup_slug_40abcf6b ON public.ipam_vlangroup USING btree (slug); - - --- --- Name: ipam_vlangroup_slug_40abcf6b_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_vlangroup_slug_40abcf6b_like ON public.ipam_vlangroup USING btree (slug varchar_pattern_ops); - - --- --- Name: ipam_vrf_export_targets_routetarget_id_8d9319f7; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_vrf_export_targets_routetarget_id_8d9319f7 ON public.ipam_vrf_export_targets USING btree (routetarget_id); - - --- --- Name: ipam_vrf_export_targets_vrf_id_6f4875c4; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_vrf_export_targets_vrf_id_6f4875c4 ON public.ipam_vrf_export_targets USING btree (vrf_id); - - --- --- Name: ipam_vrf_import_targets_routetarget_id_0e05b144; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_vrf_import_targets_routetarget_id_0e05b144 ON public.ipam_vrf_import_targets USING btree (routetarget_id); - - --- --- Name: ipam_vrf_import_targets_vrf_id_ed491b19; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_vrf_import_targets_vrf_id_ed491b19 ON public.ipam_vrf_import_targets USING btree (vrf_id); - - --- --- Name: ipam_vrf_rd_0ac1bde1_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_vrf_rd_0ac1bde1_like ON public.ipam_vrf USING btree (rd varchar_pattern_ops); - - --- --- Name: ipam_vrf_tenant_id_498b0051; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX ipam_vrf_tenant_id_498b0051 ON public.ipam_vrf USING btree (tenant_id); - - --- --- Name: netbox_bgp_bgppeergroup_ex_bgppeergroup_id_1a0bcc8d; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgppeergroup_ex_bgppeergroup_id_1a0bcc8d ON public.netbox_bgp_bgppeergroup_export_policies USING btree (bgppeergroup_id); - - --- --- Name: netbox_bgp_bgppeergroup_ex_routingpolicy_id_67d9ff9d; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgppeergroup_ex_routingpolicy_id_67d9ff9d ON public.netbox_bgp_bgppeergroup_export_policies USING btree (routingpolicy_id); - - --- --- Name: netbox_bgp_bgppeergroup_im_bgppeergroup_id_d9aebaf0; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgppeergroup_im_bgppeergroup_id_d9aebaf0 ON public.netbox_bgp_bgppeergroup_import_policies USING btree (bgppeergroup_id); - - --- --- Name: netbox_bgp_bgppeergroup_im_routingpolicy_id_9f5c2686; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgppeergroup_im_routingpolicy_id_9f5c2686 ON public.netbox_bgp_bgppeergroup_import_policies USING btree (routingpolicy_id); - - --- --- Name: netbox_bgp_bgpsession_device_id_6bfaf662; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgpsession_device_id_6bfaf662 ON public.netbox_bgp_bgpsession USING btree (device_id); - - --- --- Name: netbox_bgp_bgpsession_export_policies_bgpsession_id_c57cd741; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgpsession_export_policies_bgpsession_id_c57cd741 ON public.netbox_bgp_bgpsession_export_policies USING btree (bgpsession_id); - - --- --- Name: netbox_bgp_bgpsession_export_policies_routingpolicy_id_689463c2; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgpsession_export_policies_routingpolicy_id_689463c2 ON public.netbox_bgp_bgpsession_export_policies USING btree (routingpolicy_id); - - --- --- Name: netbox_bgp_bgpsession_import_policies_bgpsession_id_a7978621; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgpsession_import_policies_bgpsession_id_a7978621 ON public.netbox_bgp_bgpsession_import_policies USING btree (bgpsession_id); - - --- --- Name: netbox_bgp_bgpsession_import_policies_routingpolicy_id_00a9a916; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgpsession_import_policies_routingpolicy_id_00a9a916 ON public.netbox_bgp_bgpsession_import_policies USING btree (routingpolicy_id); - - --- --- Name: netbox_bgp_bgpsession_local_address_id_ede55923; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgpsession_local_address_id_ede55923 ON public.netbox_bgp_bgpsession USING btree (local_address_id); - - --- --- Name: netbox_bgp_bgpsession_local_as_id_65b0582c; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgpsession_local_as_id_65b0582c ON public.netbox_bgp_bgpsession USING btree (local_as_id); - - --- --- Name: netbox_bgp_bgpsession_peer_group_id_b45e7367; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgpsession_peer_group_id_b45e7367 ON public.netbox_bgp_bgpsession USING btree (peer_group_id); - - --- --- Name: netbox_bgp_bgpsession_remote_address_id_461bd0e3; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgpsession_remote_address_id_461bd0e3 ON public.netbox_bgp_bgpsession USING btree (remote_address_id); - - --- --- Name: netbox_bgp_bgpsession_remote_as_id_8f0efc5b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgpsession_remote_as_id_8f0efc5b ON public.netbox_bgp_bgpsession USING btree (remote_as_id); - - --- --- Name: netbox_bgp_bgpsession_site_id_1c827459; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgpsession_site_id_1c827459 ON public.netbox_bgp_bgpsession USING btree (site_id); - - --- --- Name: netbox_bgp_bgpsession_tenant_id_daea4f3d; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_bgpsession_tenant_id_daea4f3d ON public.netbox_bgp_bgpsession USING btree (tenant_id); - - --- --- Name: netbox_bgp_community_role_id_f6f70952; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_community_role_id_f6f70952 ON public.netbox_bgp_community USING btree (role_id); - - --- --- Name: netbox_bgp_community_site_id_4368fee3; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_community_site_id_4368fee3 ON public.netbox_bgp_community USING btree (site_id); - - --- --- Name: netbox_bgp_community_tenant_id_f1d3ee96; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_community_tenant_id_f1d3ee96 ON public.netbox_bgp_community USING btree (tenant_id); - - --- --- Name: netbox_bgp_prefixlistrule_prefix_id_7bdc3895; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_prefixlistrule_prefix_id_7bdc3895 ON public.netbox_bgp_prefixlistrule USING btree (prefix_id); - - --- --- Name: netbox_bgp_prefixlistrule_prefix_list_id_b3659f3f; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_prefixlistrule_prefix_list_id_b3659f3f ON public.netbox_bgp_prefixlistrule USING btree (prefix_list_id); - - --- --- Name: netbox_bgp_routingpolicyru_community_id_6ae7fbae; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_routingpolicyru_community_id_6ae7fbae ON public.netbox_bgp_routingpolicyrule_match_community USING btree (community_id); - - --- --- Name: netbox_bgp_routingpolicyru_prefixlist_id_9eb51ffa; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_routingpolicyru_prefixlist_id_9eb51ffa ON public.netbox_bgp_routingpolicyrule_match_ipv6_address USING btree (prefixlist_id); - - --- --- Name: netbox_bgp_routingpolicyru_prefixlist_id_d10c9561; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_routingpolicyru_prefixlist_id_d10c9561 ON public.netbox_bgp_routingpolicyrule_match_ip_address USING btree (prefixlist_id); - - --- --- Name: netbox_bgp_routingpolicyru_routingpolicyrule_id_36b1e952; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_routingpolicyru_routingpolicyrule_id_36b1e952 ON public.netbox_bgp_routingpolicyrule_match_community USING btree (routingpolicyrule_id); - - --- --- Name: netbox_bgp_routingpolicyru_routingpolicyrule_id_3c984725; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_routingpolicyru_routingpolicyrule_id_3c984725 ON public.netbox_bgp_routingpolicyrule_match_ip_address USING btree (routingpolicyrule_id); - - --- --- Name: netbox_bgp_routingpolicyru_routingpolicyrule_id_d375c190; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_routingpolicyru_routingpolicyrule_id_d375c190 ON public.netbox_bgp_routingpolicyrule_match_ipv6_address USING btree (routingpolicyrule_id); - - --- --- Name: netbox_bgp_routingpolicyrule_routing_policy_id_a9e3069f; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_bgp_routingpolicyrule_routing_policy_id_a9e3069f ON public.netbox_bgp_routingpolicyrule USING btree (routing_policy_id); - - --- --- Name: netbox_dns_nameserver_name_ebfbb47a_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_dns_nameserver_name_ebfbb47a_like ON public.netbox_dns_nameserver USING btree (name varchar_pattern_ops); - - --- --- Name: netbox_dns_record_zone_id_38d2d717; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_dns_record_zone_id_38d2d717 ON public.netbox_dns_record USING btree (zone_id); - - --- --- Name: netbox_dns_view_name_897a4598_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_dns_view_name_897a4598_like ON public.netbox_dns_view USING btree (name varchar_pattern_ops); - - --- --- Name: netbox_dns_zone_nameservers_nameserver_id_43dd6dbd; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_dns_zone_nameservers_nameserver_id_43dd6dbd ON public.netbox_dns_zone_nameservers USING btree (nameserver_id); - - --- --- Name: netbox_dns_zone_nameservers_zone_id_1354eacc; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_dns_zone_nameservers_zone_id_1354eacc ON public.netbox_dns_zone_nameservers USING btree (zone_id); - - --- --- Name: netbox_dns_zone_soa_mname_id_c1ebe8d6; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_dns_zone_soa_mname_id_c1ebe8d6 ON public.netbox_dns_zone USING btree (soa_mname_id); - - --- --- Name: netbox_dns_zone_view_id_91fb86ff; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX netbox_dns_zone_view_id_91fb86ff ON public.netbox_dns_zone USING btree (view_id); - - --- --- Name: social_auth_code_code_a2393167; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX social_auth_code_code_a2393167 ON public.social_auth_code USING btree (code); - - --- --- Name: social_auth_code_code_a2393167_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX social_auth_code_code_a2393167_like ON public.social_auth_code USING btree (code varchar_pattern_ops); - - --- --- Name: social_auth_code_timestamp_176b341f; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX social_auth_code_timestamp_176b341f ON public.social_auth_code USING btree ("timestamp"); - - --- --- Name: social_auth_partial_timestamp_50f2119f; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX social_auth_partial_timestamp_50f2119f ON public.social_auth_partial USING btree ("timestamp"); - - --- --- Name: social_auth_partial_token_3017fea3; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX social_auth_partial_token_3017fea3 ON public.social_auth_partial USING btree (token); - - --- --- Name: social_auth_partial_token_3017fea3_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX social_auth_partial_token_3017fea3_like ON public.social_auth_partial USING btree (token varchar_pattern_ops); - - --- --- Name: social_auth_usersocialauth_uid_796e51dc; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX social_auth_usersocialauth_uid_796e51dc ON public.social_auth_usersocialauth USING btree (uid); - - --- --- Name: social_auth_usersocialauth_uid_796e51dc_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX social_auth_usersocialauth_uid_796e51dc_like ON public.social_auth_usersocialauth USING btree (uid varchar_pattern_ops); - - --- --- Name: social_auth_usersocialauth_user_id_17d28448; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX social_auth_usersocialauth_user_id_17d28448 ON public.social_auth_usersocialauth USING btree (user_id); - - --- --- Name: taggit_tag_name_58eb2ed9_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX taggit_tag_name_58eb2ed9_like ON public.taggit_tag USING btree (name varchar_pattern_ops); - - --- --- Name: taggit_tag_slug_6be58b2c_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX taggit_tag_slug_6be58b2c_like ON public.taggit_tag USING btree (slug varchar_pattern_ops); - - --- --- Name: taggit_taggeditem_content_type_id_9957a03c; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX taggit_taggeditem_content_type_id_9957a03c ON public.taggit_taggeditem USING btree (content_type_id); - - --- --- Name: taggit_taggeditem_content_type_id_object_id_196cc965_idx; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX taggit_taggeditem_content_type_id_object_id_196cc965_idx ON public.taggit_taggeditem USING btree (content_type_id, object_id); - - --- --- Name: taggit_taggeditem_object_id_e2d7d1df; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX taggit_taggeditem_object_id_e2d7d1df ON public.taggit_taggeditem USING btree (object_id); - - --- --- Name: taggit_taggeditem_tag_id_f4f5b767; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX taggit_taggeditem_tag_id_f4f5b767 ON public.taggit_taggeditem USING btree (tag_id); - - --- --- Name: tenancy_contact_group_id_76e0267c; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_contact_group_id_76e0267c ON public.tenancy_contact USING btree (group_id); - - --- --- Name: tenancy_contactassignment_contact_id_5302baf0; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_contactassignment_contact_id_5302baf0 ON public.tenancy_contactassignment USING btree (contact_id); - - --- --- Name: tenancy_contactassignment_content_type_id_0c3f0c67; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_contactassignment_content_type_id_0c3f0c67 ON public.tenancy_contactassignment USING btree (content_type_id); - - --- --- Name: tenancy_contactassignment_role_id_fc08bfb5; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_contactassignment_role_id_fc08bfb5 ON public.tenancy_contactassignment USING btree (role_id); - - --- --- Name: tenancy_contactgroup_parent_id_c087d69f; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_contactgroup_parent_id_c087d69f ON public.tenancy_contactgroup USING btree (parent_id); - - --- --- Name: tenancy_contactgroup_slug_5b0f3e75; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_contactgroup_slug_5b0f3e75 ON public.tenancy_contactgroup USING btree (slug); - - --- --- Name: tenancy_contactgroup_slug_5b0f3e75_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_contactgroup_slug_5b0f3e75_like ON public.tenancy_contactgroup USING btree (slug varchar_pattern_ops); - - --- --- Name: tenancy_contactgroup_tree_id_57456c98; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_contactgroup_tree_id_57456c98 ON public.tenancy_contactgroup USING btree (tree_id); - - --- --- Name: tenancy_contactrole_name_44b01a1f_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_contactrole_name_44b01a1f_like ON public.tenancy_contactrole USING btree (name varchar_pattern_ops); - - --- --- Name: tenancy_contactrole_slug_c5837d7d_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_contactrole_slug_c5837d7d_like ON public.tenancy_contactrole USING btree (slug varchar_pattern_ops); - - --- --- Name: tenancy_tenant_group_id_7daef6f4; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_tenant_group_id_7daef6f4 ON public.tenancy_tenant USING btree (group_id); - - --- --- Name: tenancy_tenant_name_f6e5b2f5_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_tenant_name_f6e5b2f5_like ON public.tenancy_tenant USING btree (name varchar_pattern_ops); - - --- --- Name: tenancy_tenant_slug_0716575e_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_tenant_slug_0716575e_like ON public.tenancy_tenant USING btree (slug varchar_pattern_ops); - - --- --- Name: tenancy_tenantgroup_name_53363199_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_tenantgroup_name_53363199_like ON public.tenancy_tenantgroup USING btree (name varchar_pattern_ops); - - --- --- Name: tenancy_tenantgroup_parent_id_2542fc18; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_tenantgroup_parent_id_2542fc18 ON public.tenancy_tenantgroup USING btree (parent_id); - - --- --- Name: tenancy_tenantgroup_slug_e2af1cb6_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_tenantgroup_slug_e2af1cb6_like ON public.tenancy_tenantgroup USING btree (slug varchar_pattern_ops); - - --- --- Name: tenancy_tenantgroup_tree_id_769a98bf; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX tenancy_tenantgroup_tree_id_769a98bf ON public.tenancy_tenantgroup USING btree (tree_id); - - --- --- Name: users_objectpermission_groups_group_id_fb7ba6e0; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX users_objectpermission_groups_group_id_fb7ba6e0 ON public.users_objectpermission_groups USING btree (group_id); - - --- --- Name: users_objectpermission_groups_objectpermission_id_2f7cc117; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX users_objectpermission_groups_objectpermission_id_2f7cc117 ON public.users_objectpermission_groups USING btree (objectpermission_id); - - --- --- Name: users_objectpermission_obj_objectpermission_id_38c7d8f5; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX users_objectpermission_obj_objectpermission_id_38c7d8f5 ON public.users_objectpermission_object_types USING btree (objectpermission_id); - - --- --- Name: users_objectpermission_object_types_contenttype_id_594b1cc7; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX users_objectpermission_object_types_contenttype_id_594b1cc7 ON public.users_objectpermission_object_types USING btree (contenttype_id); - - --- --- Name: users_objectpermission_users_objectpermission_id_78a9c2e6; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX users_objectpermission_users_objectpermission_id_78a9c2e6 ON public.users_objectpermission_users USING btree (objectpermission_id); - - --- --- Name: users_objectpermission_users_user_id_16c0905d; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX users_objectpermission_users_user_id_16c0905d ON public.users_objectpermission_users USING btree (user_id); - - --- --- Name: users_token_key_820deccd_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX users_token_key_820deccd_like ON public.users_token USING btree (key varchar_pattern_ops); - - --- --- Name: users_token_user_id_af964690; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX users_token_user_id_af964690 ON public.users_token USING btree (user_id); - - --- --- Name: virtualization_cluster_group_id_de379828; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_cluster_group_id_de379828 ON public.virtualization_cluster USING btree (group_id); - - --- --- Name: virtualization_cluster_site_id_4d5af282; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_cluster_site_id_4d5af282 ON public.virtualization_cluster USING btree (site_id); - - --- --- Name: virtualization_cluster_tenant_id_bc2868d0; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_cluster_tenant_id_bc2868d0 ON public.virtualization_cluster USING btree (tenant_id); - - --- --- Name: virtualization_cluster_type_id_4efafb0a; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_cluster_type_id_4efafb0a ON public.virtualization_cluster USING btree (type_id); - - --- --- Name: virtualization_clustergroup_name_4fcd26b4_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_clustergroup_name_4fcd26b4_like ON public.virtualization_clustergroup USING btree (name varchar_pattern_ops); - - --- --- Name: virtualization_clustergroup_slug_57ca1d23_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_clustergroup_slug_57ca1d23_like ON public.virtualization_clustergroup USING btree (slug varchar_pattern_ops); - - --- --- Name: virtualization_clustertype_name_ea854d3d_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_clustertype_name_ea854d3d_like ON public.virtualization_clustertype USING btree (name varchar_pattern_ops); - - --- --- Name: virtualization_clustertype_slug_8ee4d0e0_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_clustertype_slug_8ee4d0e0_like ON public.virtualization_clustertype USING btree (slug varchar_pattern_ops); - - --- --- Name: virtualization_virtualmachine_cluster_id_6c9f9047; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_virtualmachine_cluster_id_6c9f9047 ON public.virtualization_virtualmachine USING btree (cluster_id); - - --- --- Name: virtualization_virtualmachine_device_id_5a49ed18; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_virtualmachine_device_id_5a49ed18 ON public.virtualization_virtualmachine USING btree (device_id); - - --- --- Name: virtualization_virtualmachine_platform_id_a6c5ccb2; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_virtualmachine_platform_id_a6c5ccb2 ON public.virtualization_virtualmachine USING btree (platform_id); - - --- --- Name: virtualization_virtualmachine_role_id_0cc898f9; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_virtualmachine_role_id_0cc898f9 ON public.virtualization_virtualmachine USING btree (role_id); - - --- --- Name: virtualization_virtualmachine_site_id_54475a27; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_virtualmachine_site_id_54475a27 ON public.virtualization_virtualmachine USING btree (site_id); - - --- --- Name: virtualization_virtualmachine_tenant_id_d00d1d77; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_virtualmachine_tenant_id_d00d1d77 ON public.virtualization_virtualmachine USING btree (tenant_id); - - --- --- Name: virtualization_virtualmachine_unique_name_cluster; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE UNIQUE INDEX virtualization_virtualmachine_unique_name_cluster ON public.virtualization_virtualmachine USING btree (lower((name)::text), cluster_id) WHERE (tenant_id IS NULL); - - --- --- Name: virtualization_virtualmachine_unique_name_cluster_tenant; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE UNIQUE INDEX virtualization_virtualmachine_unique_name_cluster_tenant ON public.virtualization_virtualmachine USING btree (lower((name)::text), cluster_id, tenant_id); - - --- --- Name: virtualization_vminterface_bridge_id_7462b91e; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_vminterface_bridge_id_7462b91e ON public.virtualization_vminterface USING btree (bridge_id); - - --- --- Name: virtualization_vminterface_parent_id_f86958e1; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_vminterface_parent_id_f86958e1 ON public.virtualization_vminterface USING btree (parent_id); - - --- --- Name: virtualization_vminterface_tagged_vlans_vlan_id_4e77411e; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_vminterface_tagged_vlans_vlan_id_4e77411e ON public.virtualization_vminterface_tagged_vlans USING btree (vlan_id); - - --- --- Name: virtualization_vminterface_tagged_vlans_vminterface_id_904b12de; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_vminterface_tagged_vlans_vminterface_id_904b12de ON public.virtualization_vminterface_tagged_vlans USING btree (vminterface_id); - - --- --- Name: virtualization_vminterface_untagged_vlan_id_aea4fc69; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_vminterface_untagged_vlan_id_aea4fc69 ON public.virtualization_vminterface USING btree (untagged_vlan_id); - - --- --- Name: virtualization_vminterface_virtual_machine_id_e9f89829; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_vminterface_virtual_machine_id_e9f89829 ON public.virtualization_vminterface USING btree (virtual_machine_id); - - --- --- Name: virtualization_vminterface_vrf_id_4b570a8c; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_vminterface_vrf_id_4b570a8c ON public.virtualization_vminterface USING btree (vrf_id); - - --- --- Name: wireless_wirelesslan_group_id_d9e3d67f; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX wireless_wirelesslan_group_id_d9e3d67f ON public.wireless_wirelesslan USING btree (group_id); - - --- --- Name: wireless_wirelesslan_tenant_id_5dfee941; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX wireless_wirelesslan_tenant_id_5dfee941 ON public.wireless_wirelesslan USING btree (tenant_id); - - --- --- Name: wireless_wirelesslan_vlan_id_d7fa6ccc; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX wireless_wirelesslan_vlan_id_d7fa6ccc ON public.wireless_wirelesslan USING btree (vlan_id); - - --- --- Name: wireless_wirelesslangroup_name_2ffd60c8_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX wireless_wirelesslangroup_name_2ffd60c8_like ON public.wireless_wirelesslangroup USING btree (name varchar_pattern_ops); - - --- --- Name: wireless_wirelesslangroup_parent_id_37ca8b87; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX wireless_wirelesslangroup_parent_id_37ca8b87 ON public.wireless_wirelesslangroup USING btree (parent_id); - - --- --- Name: wireless_wirelesslangroup_slug_f5d59831_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX wireless_wirelesslangroup_slug_f5d59831_like ON public.wireless_wirelesslangroup USING btree (slug varchar_pattern_ops); - - --- --- Name: wireless_wirelesslangroup_tree_id_eb99115d; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX wireless_wirelesslangroup_tree_id_eb99115d ON public.wireless_wirelesslangroup USING btree (tree_id); - - --- --- Name: wireless_wirelesslink__interface_a_device_id_6c8e042e; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX wireless_wirelesslink__interface_a_device_id_6c8e042e ON public.wireless_wirelesslink USING btree (_interface_a_device_id); - - --- --- Name: wireless_wirelesslink__interface_b_device_id_43d5101a; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX wireless_wirelesslink__interface_b_device_id_43d5101a ON public.wireless_wirelesslink USING btree (_interface_b_device_id); - - --- --- Name: wireless_wirelesslink_interface_a_id_bc9e37fd; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX wireless_wirelesslink_interface_a_id_bc9e37fd ON public.wireless_wirelesslink USING btree (interface_a_id); - - --- --- Name: wireless_wirelesslink_interface_b_id_a82fb2ee; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX wireless_wirelesslink_interface_b_id_a82fb2ee ON public.wireless_wirelesslink USING btree (interface_b_id); - - --- --- Name: wireless_wirelesslink_tenant_id_4c0638ee; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX wireless_wirelesslink_tenant_id_4c0638ee ON public.wireless_wirelesslink USING btree (tenant_id); - - --- --- Name: auth_group_permissions auth_group_permissio_permission_id_84c5c92e_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_group_permissions - ADD CONSTRAINT auth_group_permissio_permission_id_84c5c92e_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: auth_group_permissions auth_group_permissions_group_id_b120cbf9_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_group_permissions - ADD CONSTRAINT auth_group_permissions_group_id_b120cbf9_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: auth_permission auth_permission_content_type_id_2f476e4b_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_permission - ADD CONSTRAINT auth_permission_content_type_id_2f476e4b_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: auth_user_groups auth_user_groups_group_id_97559544_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_user_groups - ADD CONSTRAINT auth_user_groups_group_id_97559544_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: auth_user_groups auth_user_groups_user_id_6a12ed8b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_user_groups - ADD CONSTRAINT auth_user_groups_user_id_6a12ed8b_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: auth_user_user_permissions auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_user_user_permissions - ADD CONSTRAINT auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: auth_user_user_permissions auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_user_user_permissions - ADD CONSTRAINT auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: circuits_circuit circuits_circuit_provider_id_d9195418_fk_circuits_provider_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuit - ADD CONSTRAINT circuits_circuit_provider_id_d9195418_fk_circuits_provider_id FOREIGN KEY (provider_id) REFERENCES public.circuits_provider(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: circuits_circuit circuits_circuit_tenant_id_812508a5_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuit - ADD CONSTRAINT circuits_circuit_tenant_id_812508a5_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: circuits_circuit circuits_circuit_termination_a_id_f891adac_fk_circuits_; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuit - ADD CONSTRAINT circuits_circuit_termination_a_id_f891adac_fk_circuits_ FOREIGN KEY (termination_a_id) REFERENCES public.circuits_circuittermination(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: circuits_circuit circuits_circuit_termination_z_id_377b8551_fk_circuits_; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuit - ADD CONSTRAINT circuits_circuit_termination_z_id_377b8551_fk_circuits_ FOREIGN KEY (termination_z_id) REFERENCES public.circuits_circuittermination(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: circuits_circuit circuits_circuit_type_id_1b9f485a_fk_circuits_circuittype_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuit - ADD CONSTRAINT circuits_circuit_type_id_1b9f485a_fk_circuits_circuittype_id FOREIGN KEY (type_id) REFERENCES public.circuits_circuittype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: circuits_circuittermination circuits_circuitterm_circuit_id_257e87e7_fk_circuits_; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuittermination - ADD CONSTRAINT circuits_circuitterm_circuit_id_257e87e7_fk_circuits_ FOREIGN KEY (circuit_id) REFERENCES public.circuits_circuit(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: circuits_circuittermination circuits_circuitterm_provider_network_id_b0c660f1_fk_circuits_; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuittermination - ADD CONSTRAINT circuits_circuitterm_provider_network_id_b0c660f1_fk_circuits_ FOREIGN KEY (provider_network_id) REFERENCES public.circuits_providernetwork(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: circuits_circuittermination circuits_circuittermination_cable_id_35e9f703_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuittermination - ADD CONSTRAINT circuits_circuittermination_cable_id_35e9f703_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: circuits_circuittermination circuits_circuittermination_site_id_e6fe5652_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuittermination - ADD CONSTRAINT circuits_circuittermination_site_id_e6fe5652_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: circuits_provider_asns circuits_provider_as_provider_id_becc3f7e_fk_circuits_; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_provider_asns - ADD CONSTRAINT circuits_provider_as_provider_id_becc3f7e_fk_circuits_ FOREIGN KEY (provider_id) REFERENCES public.circuits_provider(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: circuits_provider_asns circuits_provider_asns_asn_id_0a6c53b3_fk_ipam_asn_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_provider_asns - ADD CONSTRAINT circuits_provider_asns_asn_id_0a6c53b3_fk_ipam_asn_id FOREIGN KEY (asn_id) REFERENCES public.ipam_asn(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: circuits_providernetwork circuits_providernet_provider_id_7992236c_fk_circuits_; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_providernetwork - ADD CONSTRAINT circuits_providernet_provider_id_7992236c_fk_circuits_ FOREIGN KEY (provider_id) REFERENCES public.circuits_provider(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_cable dcim_cable_tenant_id_3a7fdbb8_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cable - ADD CONSTRAINT dcim_cable_tenant_id_3a7fdbb8_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_cabletermination dcim_cableterminatio_termination_type_id_20da439e_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cabletermination - ADD CONSTRAINT dcim_cableterminatio_termination_type_id_20da439e_fk_django_co FOREIGN KEY (termination_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_cabletermination dcim_cabletermination__device_id_f5884934_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cabletermination - ADD CONSTRAINT dcim_cabletermination__device_id_f5884934_fk_dcim_device_id FOREIGN KEY (_device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_cabletermination dcim_cabletermination__location_id_ff4be503_fk_dcim_location_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cabletermination - ADD CONSTRAINT dcim_cabletermination__location_id_ff4be503_fk_dcim_location_id FOREIGN KEY (_location_id) REFERENCES public.dcim_location(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_cabletermination dcim_cabletermination__rack_id_83a548e1_fk_dcim_rack_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cabletermination - ADD CONSTRAINT dcim_cabletermination__rack_id_83a548e1_fk_dcim_rack_id FOREIGN KEY (_rack_id) REFERENCES public.dcim_rack(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_cabletermination dcim_cabletermination__site_id_616962fa_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cabletermination - ADD CONSTRAINT dcim_cabletermination__site_id_616962fa_fk_dcim_site_id FOREIGN KEY (_site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_cabletermination dcim_cabletermination_cable_id_b50010d1_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cabletermination - ADD CONSTRAINT dcim_cabletermination_cable_id_b50010d1_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleport dcim_consoleport__path_id_e40a4436_fk_dcim_cablepath_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleport - ADD CONSTRAINT dcim_consoleport__path_id_e40a4436_fk_dcim_cablepath_id FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleport dcim_consoleport_cable_id_a9ae5465_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleport - ADD CONSTRAINT dcim_consoleport_cable_id_a9ae5465_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleport dcim_consoleport_device_id_f2d90d3c_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleport - ADD CONSTRAINT dcim_consoleport_device_id_f2d90d3c_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleport dcim_consoleport_module_id_d17b2519_fk_dcim_module_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleport - ADD CONSTRAINT dcim_consoleport_module_id_d17b2519_fk_dcim_module_id FOREIGN KEY (module_id) REFERENCES public.dcim_module(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleporttemplate dcim_consoleporttemp_device_type_id_075d4015_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleporttemplate - ADD CONSTRAINT dcim_consoleporttemp_device_type_id_075d4015_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleporttemplate dcim_consoleporttemp_module_type_id_c0f35d97_fk_dcim_modu; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleporttemplate - ADD CONSTRAINT dcim_consoleporttemp_module_type_id_c0f35d97_fk_dcim_modu FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleserverporttemplate dcim_consoleserverpo_device_type_id_579bdc86_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverporttemplate - ADD CONSTRAINT dcim_consoleserverpo_device_type_id_579bdc86_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleserverporttemplate dcim_consoleserverpo_module_type_id_4abf751a_fk_dcim_modu; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverporttemplate - ADD CONSTRAINT dcim_consoleserverpo_module_type_id_4abf751a_fk_dcim_modu FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleserverport dcim_consoleserverport__path_id_dc5abe09_fk_dcim_cablepath_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverport - ADD CONSTRAINT dcim_consoleserverport__path_id_dc5abe09_fk_dcim_cablepath_id FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleserverport dcim_consoleserverport_cable_id_f2940dfd_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverport - ADD CONSTRAINT dcim_consoleserverport_cable_id_f2940dfd_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleserverport dcim_consoleserverport_device_id_d9866581_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverport - ADD CONSTRAINT dcim_consoleserverport_device_id_d9866581_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleserverport dcim_consoleserverport_module_id_d060cfc8_fk_dcim_module_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverport - ADD CONSTRAINT dcim_consoleserverport_module_id_d060cfc8_fk_dcim_module_id FOREIGN KEY (module_id) REFERENCES public.dcim_module(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_cluster_id_cf852f78_fk_virtualization_cluster_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_cluster_id_cf852f78_fk_virtualization_cluster_id FOREIGN KEY (cluster_id) REFERENCES public.virtualization_cluster(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_device_role_id_682e8188_fk_dcim_devicerole_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_device_role_id_682e8188_fk_dcim_devicerole_id FOREIGN KEY (device_role_id) REFERENCES public.dcim_devicerole(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_device_type_id_d61b4086_fk_dcim_devicetype_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_device_type_id_d61b4086_fk_dcim_devicetype_id FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_location_id_11a7bedb_fk_dcim_location_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_location_id_11a7bedb_fk_dcim_location_id FOREIGN KEY (location_id) REFERENCES public.dcim_location(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_platform_id_468138f1_fk_dcim_platform_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_platform_id_468138f1_fk_dcim_platform_id FOREIGN KEY (platform_id) REFERENCES public.dcim_platform(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_primary_ip4_id_2ccd943a_fk_ipam_ipaddress_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_primary_ip4_id_2ccd943a_fk_ipam_ipaddress_id FOREIGN KEY (primary_ip4_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_primary_ip6_id_d180fe91_fk_ipam_ipaddress_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_primary_ip6_id_d180fe91_fk_ipam_ipaddress_id FOREIGN KEY (primary_ip6_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_rack_id_23bde71f_fk_dcim_rack_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_rack_id_23bde71f_fk_dcim_rack_id FOREIGN KEY (rack_id) REFERENCES public.dcim_rack(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_site_id_ff897cf6_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_site_id_ff897cf6_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_tenant_id_dcea7969_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_tenant_id_dcea7969_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_virtual_chassis_id_aed51693_fk_dcim_virt; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_virtual_chassis_id_aed51693_fk_dcim_virt FOREIGN KEY (virtual_chassis_id) REFERENCES public.dcim_virtualchassis(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_devicebay dcim_devicebay_device_id_0c8a1218_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicebay - ADD CONSTRAINT dcim_devicebay_device_id_0c8a1218_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_devicebay dcim_devicebay_installed_device_id_04618112_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicebay - ADD CONSTRAINT dcim_devicebay_installed_device_id_04618112_fk_dcim_device_id FOREIGN KEY (installed_device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_devicebaytemplate dcim_devicebaytempla_device_type_id_f4b24a29_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicebaytemplate - ADD CONSTRAINT dcim_devicebaytempla_device_type_id_f4b24a29_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_devicetype dcim_devicetype_manufacturer_id_a3e8029e_fk_dcim_manu; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicetype - ADD CONSTRAINT dcim_devicetype_manufacturer_id_a3e8029e_fk_dcim_manu FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_frontport dcim_frontport_cable_id_04ff8aab_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontport - ADD CONSTRAINT dcim_frontport_cable_id_04ff8aab_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_frontport dcim_frontport_device_id_950557b5_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontport - ADD CONSTRAINT dcim_frontport_device_id_950557b5_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_frontport dcim_frontport_module_id_952c3f9a_fk_dcim_module_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontport - ADD CONSTRAINT dcim_frontport_module_id_952c3f9a_fk_dcim_module_id FOREIGN KEY (module_id) REFERENCES public.dcim_module(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_frontport dcim_frontport_rear_port_id_78df2532_fk_dcim_rearport_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontport - ADD CONSTRAINT dcim_frontport_rear_port_id_78df2532_fk_dcim_rearport_id FOREIGN KEY (rear_port_id) REFERENCES public.dcim_rearport(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_frontporttemplate dcim_frontporttempla_device_type_id_f088b952_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontporttemplate - ADD CONSTRAINT dcim_frontporttempla_device_type_id_f088b952_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_frontporttemplate dcim_frontporttempla_module_type_id_66851ff9_fk_dcim_modu; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontporttemplate - ADD CONSTRAINT dcim_frontporttempla_module_type_id_66851ff9_fk_dcim_modu FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_frontporttemplate dcim_frontporttempla_rear_port_id_9775411b_fk_dcim_rear; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontporttemplate - ADD CONSTRAINT dcim_frontporttempla_rear_port_id_9775411b_fk_dcim_rear FOREIGN KEY (rear_port_id) REFERENCES public.dcim_rearporttemplate(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface dcim_interface__path_id_f8f4f7f0_fk_dcim_cablepath_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface__path_id_f8f4f7f0_fk_dcim_cablepath_id FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface dcim_interface_bridge_id_f2a8df85_fk_dcim_interface_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface_bridge_id_f2a8df85_fk_dcim_interface_id FOREIGN KEY (bridge_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface dcim_interface_cable_id_1b264edb_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface_cable_id_1b264edb_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface dcim_interface_device_id_359c6115_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface_device_id_359c6115_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface dcim_interface_lag_id_ea1a1d12_fk_dcim_interface_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface_lag_id_ea1a1d12_fk_dcim_interface_id FOREIGN KEY (lag_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface dcim_interface_module_id_05ca2da5_fk_dcim_module_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface_module_id_05ca2da5_fk_dcim_module_id FOREIGN KEY (module_id) REFERENCES public.dcim_module(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface dcim_interface_parent_id_3e2b159b_fk_dcim_interface_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface_parent_id_3e2b159b_fk_dcim_interface_id FOREIGN KEY (parent_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface_tagged_vlans dcim_interface_tagge_interface_id_5870c9e9_fk_dcim_inte; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface_tagged_vlans - ADD CONSTRAINT dcim_interface_tagge_interface_id_5870c9e9_fk_dcim_inte FOREIGN KEY (interface_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface_tagged_vlans dcim_interface_tagged_vlans_vlan_id_e027005c_fk_ipam_vlan_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface_tagged_vlans - ADD CONSTRAINT dcim_interface_tagged_vlans_vlan_id_e027005c_fk_ipam_vlan_id FOREIGN KEY (vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface dcim_interface_untagged_vlan_id_838dc7be_fk_ipam_vlan_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface_untagged_vlan_id_838dc7be_fk_ipam_vlan_id FOREIGN KEY (untagged_vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface_vdcs dcim_interface_vdcs_interface_id_6d58dbaf_fk_dcim_interface_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface_vdcs - ADD CONSTRAINT dcim_interface_vdcs_interface_id_6d58dbaf_fk_dcim_interface_id FOREIGN KEY (interface_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface_vdcs dcim_interface_vdcs_virtualdevicecontext_af0bfd4b_fk_dcim_virt; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface_vdcs - ADD CONSTRAINT dcim_interface_vdcs_virtualdevicecontext_af0bfd4b_fk_dcim_virt FOREIGN KEY (virtualdevicecontext_id) REFERENCES public.dcim_virtualdevicecontext(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface dcim_interface_vrf_id_a92e59b2_fk_ipam_vrf_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface_vrf_id_a92e59b2_fk_ipam_vrf_id FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface_wireless_lans dcim_interface_wirel_interface_id_80df3785_fk_dcim_inte; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface_wireless_lans - ADD CONSTRAINT dcim_interface_wirel_interface_id_80df3785_fk_dcim_inte FOREIGN KEY (interface_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface_wireless_lans dcim_interface_wirel_wirelesslan_id_f081e278_fk_wireless_; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface_wireless_lans - ADD CONSTRAINT dcim_interface_wirel_wirelesslan_id_f081e278_fk_wireless_ FOREIGN KEY (wirelesslan_id) REFERENCES public.wireless_wirelesslan(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface dcim_interface_wireless_link_id_bc91108f_fk_wireless_; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface_wireless_link_id_bc91108f_fk_wireless_ FOREIGN KEY (wireless_link_id) REFERENCES public.wireless_wirelesslink(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interfacetemplate dcim_interfacetempla_device_type_id_4bfcbfab_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interfacetemplate - ADD CONSTRAINT dcim_interfacetempla_device_type_id_4bfcbfab_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interfacetemplate dcim_interfacetempla_module_type_id_f941f180_fk_dcim_modu; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interfacetemplate - ADD CONSTRAINT dcim_interfacetempla_module_type_id_f941f180_fk_dcim_modu FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_inventoryitem dcim_inventoryitem_component_type_id_f0e4d83a_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitem - ADD CONSTRAINT dcim_inventoryitem_component_type_id_f0e4d83a_fk_django_co FOREIGN KEY (component_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_inventoryitem dcim_inventoryitem_device_id_033d83f8_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitem - ADD CONSTRAINT dcim_inventoryitem_device_id_033d83f8_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_inventoryitem dcim_inventoryitem_manufacturer_id_dcd1b78a_fk_dcim_manu; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitem - ADD CONSTRAINT dcim_inventoryitem_manufacturer_id_dcd1b78a_fk_dcim_manu FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_inventoryitem dcim_inventoryitem_parent_id_7ebcd457_fk_dcim_inventoryitem_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitem - ADD CONSTRAINT dcim_inventoryitem_parent_id_7ebcd457_fk_dcim_inventoryitem_id FOREIGN KEY (parent_id) REFERENCES public.dcim_inventoryitem(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_inventoryitem dcim_inventoryitem_role_id_2bcfcb04_fk_dcim_inve; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitem - ADD CONSTRAINT dcim_inventoryitem_role_id_2bcfcb04_fk_dcim_inve FOREIGN KEY (role_id) REFERENCES public.dcim_inventoryitemrole(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_inventoryitemtemplate dcim_inventoryitemte_component_type_id_161623a2_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitemtemplate - ADD CONSTRAINT dcim_inventoryitemte_component_type_id_161623a2_fk_django_co FOREIGN KEY (component_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_inventoryitemtemplate dcim_inventoryitemte_device_type_id_6a1be904_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitemtemplate - ADD CONSTRAINT dcim_inventoryitemte_device_type_id_6a1be904_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_inventoryitemtemplate dcim_inventoryitemte_manufacturer_id_b388c5d9_fk_dcim_manu; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitemtemplate - ADD CONSTRAINT dcim_inventoryitemte_manufacturer_id_b388c5d9_fk_dcim_manu FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_inventoryitemtemplate dcim_inventoryitemte_parent_id_0dac73bb_fk_dcim_inve; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitemtemplate - ADD CONSTRAINT dcim_inventoryitemte_parent_id_0dac73bb_fk_dcim_inve FOREIGN KEY (parent_id) REFERENCES public.dcim_inventoryitemtemplate(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_inventoryitemtemplate dcim_inventoryitemte_role_id_292676e6_fk_dcim_inve; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitemtemplate - ADD CONSTRAINT dcim_inventoryitemte_role_id_292676e6_fk_dcim_inve FOREIGN KEY (role_id) REFERENCES public.dcim_inventoryitemrole(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_location dcim_location_parent_id_d77f3318_fk_dcim_location_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_location - ADD CONSTRAINT dcim_location_parent_id_d77f3318_fk_dcim_location_id FOREIGN KEY (parent_id) REFERENCES public.dcim_location(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_location dcim_location_site_id_b55e975f_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_location - ADD CONSTRAINT dcim_location_site_id_b55e975f_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_location dcim_location_tenant_id_2c4df974_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_location - ADD CONSTRAINT dcim_location_tenant_id_2c4df974_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_module dcim_module_device_id_53cfd5be_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_module - ADD CONSTRAINT dcim_module_device_id_53cfd5be_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_module dcim_module_module_bay_id_8a1bf3e2_fk_dcim_modulebay_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_module - ADD CONSTRAINT dcim_module_module_bay_id_8a1bf3e2_fk_dcim_modulebay_id FOREIGN KEY (module_bay_id) REFERENCES public.dcim_modulebay(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_module dcim_module_module_type_id_a50b39fc_fk_dcim_moduletype_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_module - ADD CONSTRAINT dcim_module_module_type_id_a50b39fc_fk_dcim_moduletype_id FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_modulebay dcim_modulebay_device_id_3526abc2_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_modulebay - ADD CONSTRAINT dcim_modulebay_device_id_3526abc2_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_modulebaytemplate dcim_modulebaytempla_device_type_id_9eaf9bd3_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_modulebaytemplate - ADD CONSTRAINT dcim_modulebaytempla_device_type_id_9eaf9bd3_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_moduletype dcim_moduletype_manufacturer_id_7347392e_fk_dcim_manu; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_moduletype - ADD CONSTRAINT dcim_moduletype_manufacturer_id_7347392e_fk_dcim_manu FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_platform dcim_platform_manufacturer_id_83f72d3d_fk_dcim_manufacturer_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_platform - ADD CONSTRAINT dcim_platform_manufacturer_id_83f72d3d_fk_dcim_manufacturer_id FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerfeed dcim_powerfeed__path_id_a1ea1f28_fk_dcim_cablepath_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerfeed - ADD CONSTRAINT dcim_powerfeed__path_id_a1ea1f28_fk_dcim_cablepath_id FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerfeed dcim_powerfeed_cable_id_ec44c4f8_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerfeed - ADD CONSTRAINT dcim_powerfeed_cable_id_ec44c4f8_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerfeed dcim_powerfeed_power_panel_id_32bde3be_fk_dcim_powerpanel_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerfeed - ADD CONSTRAINT dcim_powerfeed_power_panel_id_32bde3be_fk_dcim_powerpanel_id FOREIGN KEY (power_panel_id) REFERENCES public.dcim_powerpanel(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerfeed dcim_powerfeed_rack_id_7abba090_fk_dcim_rack_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerfeed - ADD CONSTRAINT dcim_powerfeed_rack_id_7abba090_fk_dcim_rack_id FOREIGN KEY (rack_id) REFERENCES public.dcim_rack(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_poweroutlet dcim_poweroutlet__path_id_cbb47bb9_fk_dcim_cablepath_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlet - ADD CONSTRAINT dcim_poweroutlet__path_id_cbb47bb9_fk_dcim_cablepath_id FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_poweroutlet dcim_poweroutlet_cable_id_8dbea1ec_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlet - ADD CONSTRAINT dcim_poweroutlet_cable_id_8dbea1ec_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_poweroutlet dcim_poweroutlet_device_id_286351d7_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlet - ADD CONSTRAINT dcim_poweroutlet_device_id_286351d7_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_poweroutlet dcim_poweroutlet_module_id_032f5af2_fk_dcim_module_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlet - ADD CONSTRAINT dcim_poweroutlet_module_id_032f5af2_fk_dcim_module_id FOREIGN KEY (module_id) REFERENCES public.dcim_module(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_poweroutlet dcim_poweroutlet_power_port_id_9bdf4163_fk_dcim_powerport_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlet - ADD CONSTRAINT dcim_poweroutlet_power_port_id_9bdf4163_fk_dcim_powerport_id FOREIGN KEY (power_port_id) REFERENCES public.dcim_powerport(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_poweroutlettemplate dcim_poweroutlettemp_device_type_id_26b2316c_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlettemplate - ADD CONSTRAINT dcim_poweroutlettemp_device_type_id_26b2316c_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_poweroutlettemplate dcim_poweroutlettemp_module_type_id_6142b416_fk_dcim_modu; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlettemplate - ADD CONSTRAINT dcim_poweroutlettemp_module_type_id_6142b416_fk_dcim_modu FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_poweroutlettemplate dcim_poweroutlettemp_power_port_id_c0fb0c42_fk_dcim_powe; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlettemplate - ADD CONSTRAINT dcim_poweroutlettemp_power_port_id_c0fb0c42_fk_dcim_powe FOREIGN KEY (power_port_id) REFERENCES public.dcim_powerporttemplate(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerpanel dcim_powerpanel_location_id_474b60f8_fk_dcim_location_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerpanel - ADD CONSTRAINT dcim_powerpanel_location_id_474b60f8_fk_dcim_location_id FOREIGN KEY (location_id) REFERENCES public.dcim_location(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerpanel dcim_powerpanel_site_id_c430bc89_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerpanel - ADD CONSTRAINT dcim_powerpanel_site_id_c430bc89_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerport dcim_powerport__path_id_9fe4af8f_fk_dcim_cablepath_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerport - ADD CONSTRAINT dcim_powerport__path_id_9fe4af8f_fk_dcim_cablepath_id FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerport dcim_powerport_cable_id_c9682ba2_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerport - ADD CONSTRAINT dcim_powerport_cable_id_c9682ba2_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerport dcim_powerport_device_id_ef7185ae_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerport - ADD CONSTRAINT dcim_powerport_device_id_ef7185ae_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerport dcim_powerport_module_id_d0c27534_fk_dcim_module_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerport - ADD CONSTRAINT dcim_powerport_module_id_d0c27534_fk_dcim_module_id FOREIGN KEY (module_id) REFERENCES public.dcim_module(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerporttemplate dcim_powerporttempla_device_type_id_1ddfbfcc_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerporttemplate - ADD CONSTRAINT dcim_powerporttempla_device_type_id_1ddfbfcc_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerporttemplate dcim_powerporttempla_module_type_id_93e26849_fk_dcim_modu; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerporttemplate - ADD CONSTRAINT dcim_powerporttempla_module_type_id_93e26849_fk_dcim_modu FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rack dcim_rack_location_id_5f63ec31_fk_dcim_location_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rack - ADD CONSTRAINT dcim_rack_location_id_5f63ec31_fk_dcim_location_id FOREIGN KEY (location_id) REFERENCES public.dcim_location(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rack dcim_rack_role_id_62d6919e_fk_dcim_rackrole_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rack - ADD CONSTRAINT dcim_rack_role_id_62d6919e_fk_dcim_rackrole_id FOREIGN KEY (role_id) REFERENCES public.dcim_rackrole(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rack dcim_rack_site_id_403c7b3a_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rack - ADD CONSTRAINT dcim_rack_site_id_403c7b3a_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rack dcim_rack_tenant_id_7cdf3725_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rack - ADD CONSTRAINT dcim_rack_tenant_id_7cdf3725_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rackreservation dcim_rackreservation_rack_id_1ebbaa9b_fk_dcim_rack_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rackreservation - ADD CONSTRAINT dcim_rackreservation_rack_id_1ebbaa9b_fk_dcim_rack_id FOREIGN KEY (rack_id) REFERENCES public.dcim_rack(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rackreservation dcim_rackreservation_tenant_id_eb5e045f_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rackreservation - ADD CONSTRAINT dcim_rackreservation_tenant_id_eb5e045f_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rackreservation dcim_rackreservation_user_id_0785a527_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rackreservation - ADD CONSTRAINT dcim_rackreservation_user_id_0785a527_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rearport dcim_rearport_cable_id_42c0e4e7_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearport - ADD CONSTRAINT dcim_rearport_cable_id_42c0e4e7_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rearport dcim_rearport_device_id_0bdfe9c0_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearport - ADD CONSTRAINT dcim_rearport_device_id_0bdfe9c0_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rearport dcim_rearport_module_id_9a7b7e91_fk_dcim_module_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearport - ADD CONSTRAINT dcim_rearport_module_id_9a7b7e91_fk_dcim_module_id FOREIGN KEY (module_id) REFERENCES public.dcim_module(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rearporttemplate dcim_rearporttemplat_device_type_id_6a02fd01_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearporttemplate - ADD CONSTRAINT dcim_rearporttemplat_device_type_id_6a02fd01_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rearporttemplate dcim_rearporttemplat_module_type_id_4d970e5b_fk_dcim_modu; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearporttemplate - ADD CONSTRAINT dcim_rearporttemplat_module_type_id_4d970e5b_fk_dcim_modu FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_region dcim_region_parent_id_2486f5d4_fk_dcim_region_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_region - ADD CONSTRAINT dcim_region_parent_id_2486f5d4_fk_dcim_region_id FOREIGN KEY (parent_id) REFERENCES public.dcim_region(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_site_asns dcim_site_asns_asn_id_3cfd0f00_fk_ipam_asn_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_site_asns - ADD CONSTRAINT dcim_site_asns_asn_id_3cfd0f00_fk_ipam_asn_id FOREIGN KEY (asn_id) REFERENCES public.ipam_asn(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_site_asns dcim_site_asns_site_id_112ccacf_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_site_asns - ADD CONSTRAINT dcim_site_asns_site_id_112ccacf_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_site dcim_site_group_id_3910c975_fk_dcim_sitegroup_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_site - ADD CONSTRAINT dcim_site_group_id_3910c975_fk_dcim_sitegroup_id FOREIGN KEY (group_id) REFERENCES public.dcim_sitegroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_site dcim_site_region_id_45210932_fk_dcim_region_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_site - ADD CONSTRAINT dcim_site_region_id_45210932_fk_dcim_region_id FOREIGN KEY (region_id) REFERENCES public.dcim_region(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_site dcim_site_tenant_id_15e7df63_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_site - ADD CONSTRAINT dcim_site_tenant_id_15e7df63_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_sitegroup dcim_sitegroup_parent_id_533a5e44_fk_dcim_sitegroup_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_sitegroup - ADD CONSTRAINT dcim_sitegroup_parent_id_533a5e44_fk_dcim_sitegroup_id FOREIGN KEY (parent_id) REFERENCES public.dcim_sitegroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_virtualchassis dcim_virtualchassis_master_id_ab54cfc6_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_virtualchassis - ADD CONSTRAINT dcim_virtualchassis_master_id_ab54cfc6_fk_dcim_device_id FOREIGN KEY (master_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_virtualdevicecontext dcim_virtualdeviceco_primary_ip4_id_6bd0605b_fk_ipam_ipad; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_virtualdevicecontext - ADD CONSTRAINT dcim_virtualdeviceco_primary_ip4_id_6bd0605b_fk_ipam_ipad FOREIGN KEY (primary_ip4_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_virtualdevicecontext dcim_virtualdeviceco_primary_ip6_id_ed3b81bd_fk_ipam_ipad; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_virtualdevicecontext - ADD CONSTRAINT dcim_virtualdeviceco_primary_ip6_id_ed3b81bd_fk_ipam_ipad FOREIGN KEY (primary_ip6_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_virtualdevicecontext dcim_virtualdeviceco_tenant_id_b6a21753_fk_tenancy_t; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_virtualdevicecontext - ADD CONSTRAINT dcim_virtualdeviceco_tenant_id_b6a21753_fk_tenancy_t FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_virtualdevicecontext dcim_virtualdevicecontext_device_id_4f39274b_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_virtualdevicecontext - ADD CONSTRAINT dcim_virtualdevicecontext_device_id_4f39274b_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: django_admin_log django_admin_log_content_type_id_c4bce8eb_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.django_admin_log - ADD CONSTRAINT django_admin_log_content_type_id_c4bce8eb_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: django_admin_log django_admin_log_user_id_c564eba6_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.django_admin_log - ADD CONSTRAINT django_admin_log_user_id_c564eba6_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_branch extras_branch_user_id_a6cfd338_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_branch - ADD CONSTRAINT extras_branch_user_id_a6cfd338_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_cachedvalue extras_cachedvalue_object_type_id_6f47d444_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_cachedvalue - ADD CONSTRAINT extras_cachedvalue_object_type_id_6f47d444_fk_django_co FOREIGN KEY (object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_clusters extras_configcontext_cluster_id_6abd47a1_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_clusters - ADD CONSTRAINT extras_configcontext_cluster_id_6abd47a1_fk_virtualiz FOREIGN KEY (cluster_id) REFERENCES public.virtualization_cluster(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_cluster_groups extras_configcontext_clustergroup_id_f4322ce8_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_cluster_groups - ADD CONSTRAINT extras_configcontext_clustergroup_id_f4322ce8_fk_virtualiz FOREIGN KEY (clustergroup_id) REFERENCES public.virtualization_clustergroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_cluster_types extras_configcontext_clustertype_id_fa493b64_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_cluster_types - ADD CONSTRAINT extras_configcontext_clustertype_id_fa493b64_fk_virtualiz FOREIGN KEY (clustertype_id) REFERENCES public.virtualization_clustertype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_platforms extras_configcontext_configcontext_id_2a516699_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_platforms - ADD CONSTRAINT extras_configcontext_configcontext_id_2a516699_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_site_groups extras_configcontext_configcontext_id_2e0f43cb_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_site_groups - ADD CONSTRAINT extras_configcontext_configcontext_id_2e0f43cb_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_device_types extras_configcontext_configcontext_id_55632923_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_device_types - ADD CONSTRAINT extras_configcontext_configcontext_id_55632923_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_roles extras_configcontext_configcontext_id_59b67386_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_roles - ADD CONSTRAINT extras_configcontext_configcontext_id_59b67386_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_tags extras_configcontext_configcontext_id_64a392b1_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_tags - ADD CONSTRAINT extras_configcontext_configcontext_id_64a392b1_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_regions extras_configcontext_configcontext_id_73003dbc_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_regions - ADD CONSTRAINT extras_configcontext_configcontext_id_73003dbc_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_sites extras_configcontext_configcontext_id_8c54feb9_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_sites - ADD CONSTRAINT extras_configcontext_configcontext_id_8c54feb9_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_cluster_groups extras_configcontext_configcontext_id_8f50b794_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_cluster_groups - ADD CONSTRAINT extras_configcontext_configcontext_id_8f50b794_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_tenant_groups extras_configcontext_configcontext_id_92f68345_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_tenant_groups - ADD CONSTRAINT extras_configcontext_configcontext_id_92f68345_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_tenants extras_configcontext_configcontext_id_b53552a6_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_tenants - ADD CONSTRAINT extras_configcontext_configcontext_id_b53552a6_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_locations extras_configcontext_configcontext_id_cc629ec1_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_locations - ADD CONSTRAINT extras_configcontext_configcontext_id_cc629ec1_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_cluster_types extras_configcontext_configcontext_id_d549b6f2_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_cluster_types - ADD CONSTRAINT extras_configcontext_configcontext_id_d549b6f2_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_clusters extras_configcontext_configcontext_id_ed579a40_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_clusters - ADD CONSTRAINT extras_configcontext_configcontext_id_ed579a40_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_roles extras_configcontext_devicerole_id_d3a84813_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_roles - ADD CONSTRAINT extras_configcontext_devicerole_id_d3a84813_fk_dcim_devi FOREIGN KEY (devicerole_id) REFERENCES public.dcim_devicerole(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_device_types extras_configcontext_devicetype_id_b8788c2d_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_device_types - ADD CONSTRAINT extras_configcontext_devicetype_id_b8788c2d_fk_dcim_devi FOREIGN KEY (devicetype_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_locations extras_configcontext_location_id_9e19eac9_fk_dcim_loca; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_locations - ADD CONSTRAINT extras_configcontext_location_id_9e19eac9_fk_dcim_loca FOREIGN KEY (location_id) REFERENCES public.dcim_location(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_platforms extras_configcontext_platform_id_3fdfedc0_fk_dcim_plat; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_platforms - ADD CONSTRAINT extras_configcontext_platform_id_3fdfedc0_fk_dcim_plat FOREIGN KEY (platform_id) REFERENCES public.dcim_platform(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_regions extras_configcontext_region_id_35c6ba9d_fk_dcim_regi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_regions - ADD CONSTRAINT extras_configcontext_region_id_35c6ba9d_fk_dcim_regi FOREIGN KEY (region_id) REFERENCES public.dcim_region(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_site_groups extras_configcontext_sitegroup_id_3287c9e7_fk_dcim_site; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_site_groups - ADD CONSTRAINT extras_configcontext_sitegroup_id_3287c9e7_fk_dcim_site FOREIGN KEY (sitegroup_id) REFERENCES public.dcim_sitegroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_sites extras_configcontext_sites_site_id_cbb76c96_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_sites - ADD CONSTRAINT extras_configcontext_sites_site_id_cbb76c96_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_tags extras_configcontext_tags_tag_id_129a5d87_fk_extras_tag_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_tags - ADD CONSTRAINT extras_configcontext_tags_tag_id_129a5d87_fk_extras_tag_id FOREIGN KEY (tag_id) REFERENCES public.extras_tag(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_tenants extras_configcontext_tenant_id_8d0aa28e_fk_tenancy_t; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_tenants - ADD CONSTRAINT extras_configcontext_tenant_id_8d0aa28e_fk_tenancy_t FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_configcontext_tenant_groups extras_configcontext_tenantgroup_id_0909688d_fk_tenancy_t; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_tenant_groups - ADD CONSTRAINT extras_configcontext_tenantgroup_id_0909688d_fk_tenancy_t FOREIGN KEY (tenantgroup_id) REFERENCES public.tenancy_tenantgroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_customfield_content_types extras_customfield_c_contenttype_id_2997ba90_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customfield_content_types - ADD CONSTRAINT extras_customfield_c_contenttype_id_2997ba90_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_customfield_content_types extras_customfield_c_customfield_id_3842aaf3_fk_extras_cu; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customfield_content_types - ADD CONSTRAINT extras_customfield_c_customfield_id_3842aaf3_fk_extras_cu FOREIGN KEY (customfield_id) REFERENCES public.extras_customfield(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_customfield extras_customfield_object_type_id_489f2239_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customfield - ADD CONSTRAINT extras_customfield_object_type_id_489f2239_fk_django_co FOREIGN KEY (object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_customlink_content_types extras_customlink_co_contenttype_id_df5f34c2_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customlink_content_types - ADD CONSTRAINT extras_customlink_co_contenttype_id_df5f34c2_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_customlink_content_types extras_customlink_co_customlink_id_229ba2bc_fk_extras_cu; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customlink_content_types - ADD CONSTRAINT extras_customlink_co_customlink_id_229ba2bc_fk_extras_cu FOREIGN KEY (customlink_id) REFERENCES public.extras_customlink(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_exporttemplate_content_types extras_exporttemplat_contenttype_id_d80a5164_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_exporttemplate_content_types - ADD CONSTRAINT extras_exporttemplat_contenttype_id_d80a5164_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_exporttemplate_content_types extras_exporttemplat_exporttemplate_id_7645f081_fk_extras_ex; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_exporttemplate_content_types - ADD CONSTRAINT extras_exporttemplat_exporttemplate_id_7645f081_fk_extras_ex FOREIGN KEY (exporttemplate_id) REFERENCES public.extras_exporttemplate(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_imageattachment extras_imageattachme_content_type_id_90e0643d_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_imageattachment - ADD CONSTRAINT extras_imageattachme_content_type_id_90e0643d_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_jobresult extras_jobresult_obj_type_id_475e80aa_fk_django_content_type_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_jobresult - ADD CONSTRAINT extras_jobresult_obj_type_id_475e80aa_fk_django_content_type_id FOREIGN KEY (obj_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_jobresult extras_jobresult_user_id_d35285ab_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_jobresult - ADD CONSTRAINT extras_jobresult_user_id_d35285ab_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_journalentry extras_journalentry_assigned_object_type_1bba9f68_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_journalentry - ADD CONSTRAINT extras_journalentry_assigned_object_type_1bba9f68_fk_django_co FOREIGN KEY (assigned_object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_journalentry extras_journalentry_created_by_id_8d4e4329_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_journalentry - ADD CONSTRAINT extras_journalentry_created_by_id_8d4e4329_fk_auth_user_id FOREIGN KEY (created_by_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_objectchange extras_objectchange_changed_object_type__b755bb60_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_objectchange - ADD CONSTRAINT extras_objectchange_changed_object_type__b755bb60_fk_django_co FOREIGN KEY (changed_object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_objectchange extras_objectchange_related_object_type__fe6e521f_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_objectchange - ADD CONSTRAINT extras_objectchange_related_object_type__fe6e521f_fk_django_co FOREIGN KEY (related_object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_objectchange extras_objectchange_user_id_7fdf8186_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_objectchange - ADD CONSTRAINT extras_objectchange_user_id_7fdf8186_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_savedfilter_content_types extras_savedfilter_c_contenttype_id_929cea22_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_savedfilter_content_types - ADD CONSTRAINT extras_savedfilter_c_contenttype_id_929cea22_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_savedfilter_content_types extras_savedfilter_c_savedfilter_id_1631b88b_fk_extras_sa; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_savedfilter_content_types - ADD CONSTRAINT extras_savedfilter_c_savedfilter_id_1631b88b_fk_extras_sa FOREIGN KEY (savedfilter_id) REFERENCES public.extras_savedfilter(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_savedfilter extras_savedfilter_user_id_10502e81_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_savedfilter - ADD CONSTRAINT extras_savedfilter_user_id_10502e81_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_stagedchange extras_stagedchange_branch_id_44893052_fk_extras_branch_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_stagedchange - ADD CONSTRAINT extras_stagedchange_branch_id_44893052_fk_extras_branch_id FOREIGN KEY (branch_id) REFERENCES public.extras_branch(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_stagedchange extras_stagedchange_object_type_id_de76b05b_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_stagedchange - ADD CONSTRAINT extras_stagedchange_object_type_id_de76b05b_fk_django_co FOREIGN KEY (object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_taggeditem extras_taggeditem_content_type_id_ba5562ed_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_taggeditem - ADD CONSTRAINT extras_taggeditem_content_type_id_ba5562ed_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_taggeditem extras_taggeditem_tag_id_d48af7c7_fk_extras_tag_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_taggeditem - ADD CONSTRAINT extras_taggeditem_tag_id_d48af7c7_fk_extras_tag_id FOREIGN KEY (tag_id) REFERENCES public.extras_tag(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_webhook_content_types extras_webhook_conte_contenttype_id_3fc2c4d3_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_webhook_content_types - ADD CONSTRAINT extras_webhook_conte_contenttype_id_3fc2c4d3_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_webhook_content_types extras_webhook_conte_webhook_id_0c169800_fk_extras_we; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_webhook_content_types - ADD CONSTRAINT extras_webhook_conte_webhook_id_0c169800_fk_extras_we FOREIGN KEY (webhook_id) REFERENCES public.extras_webhook(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_aggregate ipam_aggregate_rir_id_ef7a27bd_fk_ipam_rir_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_aggregate - ADD CONSTRAINT ipam_aggregate_rir_id_ef7a27bd_fk_ipam_rir_id FOREIGN KEY (rir_id) REFERENCES public.ipam_rir(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_aggregate ipam_aggregate_tenant_id_637dd1a1_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_aggregate - ADD CONSTRAINT ipam_aggregate_tenant_id_637dd1a1_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_asn ipam_asn_rir_id_f5ad3cff_fk_ipam_rir_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_asn - ADD CONSTRAINT ipam_asn_rir_id_f5ad3cff_fk_ipam_rir_id FOREIGN KEY (rir_id) REFERENCES public.ipam_rir(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_asn ipam_asn_tenant_id_07e8188e_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_asn - ADD CONSTRAINT ipam_asn_tenant_id_07e8188e_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_fhrpgroupassignment ipam_fhrpgroupassign_interface_type_id_f3bcb487_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_fhrpgroupassignment - ADD CONSTRAINT ipam_fhrpgroupassign_interface_type_id_f3bcb487_fk_django_co FOREIGN KEY (interface_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_fhrpgroupassignment ipam_fhrpgroupassignment_group_id_19f15ca4_fk_ipam_fhrpgroup_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_fhrpgroupassignment - ADD CONSTRAINT ipam_fhrpgroupassignment_group_id_19f15ca4_fk_ipam_fhrpgroup_id FOREIGN KEY (group_id) REFERENCES public.ipam_fhrpgroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_ipaddress ipam_ipaddress_assigned_object_type_02354370_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_ipaddress - ADD CONSTRAINT ipam_ipaddress_assigned_object_type_02354370_fk_django_co FOREIGN KEY (assigned_object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_ipaddress ipam_ipaddress_nat_inside_id_a45fb7c5_fk_ipam_ipaddress_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_ipaddress - ADD CONSTRAINT ipam_ipaddress_nat_inside_id_a45fb7c5_fk_ipam_ipaddress_id FOREIGN KEY (nat_inside_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_ipaddress ipam_ipaddress_tenant_id_ac55acfd_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_ipaddress - ADD CONSTRAINT ipam_ipaddress_tenant_id_ac55acfd_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_ipaddress ipam_ipaddress_vrf_id_51fcc59b_fk_ipam_vrf_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_ipaddress - ADD CONSTRAINT ipam_ipaddress_vrf_id_51fcc59b_fk_ipam_vrf_id FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_iprange ipam_iprange_role_id_2782e864_fk_ipam_role_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_iprange - ADD CONSTRAINT ipam_iprange_role_id_2782e864_fk_ipam_role_id FOREIGN KEY (role_id) REFERENCES public.ipam_role(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_iprange ipam_iprange_tenant_id_856027ea_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_iprange - ADD CONSTRAINT ipam_iprange_tenant_id_856027ea_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_iprange ipam_iprange_vrf_id_613e9dd2_fk_ipam_vrf_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_iprange - ADD CONSTRAINT ipam_iprange_vrf_id_613e9dd2_fk_ipam_vrf_id FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_l2vpn_export_targets ipam_l2vpn_export_ta_routetarget_id_5ccb758b_fk_ipam_rout; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpn_export_targets - ADD CONSTRAINT ipam_l2vpn_export_ta_routetarget_id_5ccb758b_fk_ipam_rout FOREIGN KEY (routetarget_id) REFERENCES public.ipam_routetarget(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_l2vpn_export_targets ipam_l2vpn_export_targets_l2vpn_id_8749bbe8_fk_ipam_l2vpn_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpn_export_targets - ADD CONSTRAINT ipam_l2vpn_export_targets_l2vpn_id_8749bbe8_fk_ipam_l2vpn_id FOREIGN KEY (l2vpn_id) REFERENCES public.ipam_l2vpn(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_l2vpn_import_targets ipam_l2vpn_import_ta_routetarget_id_58a188b2_fk_ipam_rout; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpn_import_targets - ADD CONSTRAINT ipam_l2vpn_import_ta_routetarget_id_58a188b2_fk_ipam_rout FOREIGN KEY (routetarget_id) REFERENCES public.ipam_routetarget(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_l2vpn_import_targets ipam_l2vpn_import_targets_l2vpn_id_731f5bb4_fk_ipam_l2vpn_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpn_import_targets - ADD CONSTRAINT ipam_l2vpn_import_targets_l2vpn_id_731f5bb4_fk_ipam_l2vpn_id FOREIGN KEY (l2vpn_id) REFERENCES public.ipam_l2vpn(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_l2vpn ipam_l2vpn_tenant_id_bb2564a6_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpn - ADD CONSTRAINT ipam_l2vpn_tenant_id_bb2564a6_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_l2vpntermination ipam_l2vpnterminatio_assigned_object_type_3923c124_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpntermination - ADD CONSTRAINT ipam_l2vpnterminatio_assigned_object_type_3923c124_fk_django_co FOREIGN KEY (assigned_object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_l2vpntermination ipam_l2vpntermination_l2vpn_id_9e570aa1_fk_ipam_l2vpn_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_l2vpntermination - ADD CONSTRAINT ipam_l2vpntermination_l2vpn_id_9e570aa1_fk_ipam_l2vpn_id FOREIGN KEY (l2vpn_id) REFERENCES public.ipam_l2vpn(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_prefix ipam_prefix_role_id_0a98d415_fk_ipam_role_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_prefix - ADD CONSTRAINT ipam_prefix_role_id_0a98d415_fk_ipam_role_id FOREIGN KEY (role_id) REFERENCES public.ipam_role(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_prefix ipam_prefix_site_id_0b20df05_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_prefix - ADD CONSTRAINT ipam_prefix_site_id_0b20df05_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_prefix ipam_prefix_tenant_id_7ba1fcc4_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_prefix - ADD CONSTRAINT ipam_prefix_tenant_id_7ba1fcc4_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_prefix ipam_prefix_vlan_id_1db91bff_fk_ipam_vlan_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_prefix - ADD CONSTRAINT ipam_prefix_vlan_id_1db91bff_fk_ipam_vlan_id FOREIGN KEY (vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_prefix ipam_prefix_vrf_id_34f78ed0_fk_ipam_vrf_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_prefix - ADD CONSTRAINT ipam_prefix_vrf_id_34f78ed0_fk_ipam_vrf_id FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_routetarget ipam_routetarget_tenant_id_5a0b35e8_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_routetarget - ADD CONSTRAINT ipam_routetarget_tenant_id_5a0b35e8_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_service ipam_service_device_id_b4d2bb9c_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_service - ADD CONSTRAINT ipam_service_device_id_b4d2bb9c_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_service_ipaddresses ipam_service_ipaddre_ipaddress_id_b4138c6d_fk_ipam_ipad; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_service_ipaddresses - ADD CONSTRAINT ipam_service_ipaddre_ipaddress_id_b4138c6d_fk_ipam_ipad FOREIGN KEY (ipaddress_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_service_ipaddresses ipam_service_ipaddresses_service_id_ae26b9ab_fk_ipam_service_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_service_ipaddresses - ADD CONSTRAINT ipam_service_ipaddresses_service_id_ae26b9ab_fk_ipam_service_id FOREIGN KEY (service_id) REFERENCES public.ipam_service(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_service ipam_service_virtual_machine_id_e8b53562_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_service - ADD CONSTRAINT ipam_service_virtual_machine_id_e8b53562_fk_virtualiz FOREIGN KEY (virtual_machine_id) REFERENCES public.virtualization_virtualmachine(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_vlan ipam_vlan_group_id_88cbfa62_fk_ipam_vlangroup_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlan - ADD CONSTRAINT ipam_vlan_group_id_88cbfa62_fk_ipam_vlangroup_id FOREIGN KEY (group_id) REFERENCES public.ipam_vlangroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_vlan ipam_vlan_role_id_f5015962_fk_ipam_role_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlan - ADD CONSTRAINT ipam_vlan_role_id_f5015962_fk_ipam_role_id FOREIGN KEY (role_id) REFERENCES public.ipam_role(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_vlan ipam_vlan_site_id_a59334e3_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlan - ADD CONSTRAINT ipam_vlan_site_id_a59334e3_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_vlan ipam_vlan_tenant_id_71a8290d_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlan - ADD CONSTRAINT ipam_vlan_tenant_id_71a8290d_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_vlangroup ipam_vlangroup_scope_type_id_6606a755_fk_django_content_type_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlangroup - ADD CONSTRAINT ipam_vlangroup_scope_type_id_6606a755_fk_django_content_type_id FOREIGN KEY (scope_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_vrf_export_targets ipam_vrf_export_targ_routetarget_id_8d9319f7_fk_ipam_rout; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vrf_export_targets - ADD CONSTRAINT ipam_vrf_export_targ_routetarget_id_8d9319f7_fk_ipam_rout FOREIGN KEY (routetarget_id) REFERENCES public.ipam_routetarget(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_vrf_export_targets ipam_vrf_export_targets_vrf_id_6f4875c4_fk_ipam_vrf_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vrf_export_targets - ADD CONSTRAINT ipam_vrf_export_targets_vrf_id_6f4875c4_fk_ipam_vrf_id FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_vrf_import_targets ipam_vrf_import_targ_routetarget_id_0e05b144_fk_ipam_rout; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vrf_import_targets - ADD CONSTRAINT ipam_vrf_import_targ_routetarget_id_0e05b144_fk_ipam_rout FOREIGN KEY (routetarget_id) REFERENCES public.ipam_routetarget(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_vrf_import_targets ipam_vrf_import_targets_vrf_id_ed491b19_fk_ipam_vrf_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vrf_import_targets - ADD CONSTRAINT ipam_vrf_import_targets_vrf_id_ed491b19_fk_ipam_vrf_id FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_vrf ipam_vrf_tenant_id_498b0051_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vrf - ADD CONSTRAINT ipam_vrf_tenant_id_498b0051_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgppeergroup_export_policies netbox_bgp_bgppeergr_bgppeergroup_id_1a0bcc8d_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgppeergroup_export_policies - ADD CONSTRAINT netbox_bgp_bgppeergr_bgppeergroup_id_1a0bcc8d_fk_netbox_bg FOREIGN KEY (bgppeergroup_id) REFERENCES public.netbox_bgp_bgppeergroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgppeergroup_import_policies netbox_bgp_bgppeergr_bgppeergroup_id_d9aebaf0_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgppeergroup_import_policies - ADD CONSTRAINT netbox_bgp_bgppeergr_bgppeergroup_id_d9aebaf0_fk_netbox_bg FOREIGN KEY (bgppeergroup_id) REFERENCES public.netbox_bgp_bgppeergroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgppeergroup_export_policies netbox_bgp_bgppeergr_routingpolicy_id_67d9ff9d_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgppeergroup_export_policies - ADD CONSTRAINT netbox_bgp_bgppeergr_routingpolicy_id_67d9ff9d_fk_netbox_bg FOREIGN KEY (routingpolicy_id) REFERENCES public.netbox_bgp_routingpolicy(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgppeergroup_import_policies netbox_bgp_bgppeergr_routingpolicy_id_9f5c2686_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgppeergroup_import_policies - ADD CONSTRAINT netbox_bgp_bgppeergr_routingpolicy_id_9f5c2686_fk_netbox_bg FOREIGN KEY (routingpolicy_id) REFERENCES public.netbox_bgp_routingpolicy(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgpsession_import_policies netbox_bgp_bgpsessio_bgpsession_id_a7978621_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession_import_policies - ADD CONSTRAINT netbox_bgp_bgpsessio_bgpsession_id_a7978621_fk_netbox_bg FOREIGN KEY (bgpsession_id) REFERENCES public.netbox_bgp_bgpsession(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgpsession_export_policies netbox_bgp_bgpsessio_bgpsession_id_c57cd741_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession_export_policies - ADD CONSTRAINT netbox_bgp_bgpsessio_bgpsession_id_c57cd741_fk_netbox_bg FOREIGN KEY (bgpsession_id) REFERENCES public.netbox_bgp_bgpsession(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgpsession netbox_bgp_bgpsessio_local_address_id_ede55923_fk_ipam_ipad; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession - ADD CONSTRAINT netbox_bgp_bgpsessio_local_address_id_ede55923_fk_ipam_ipad FOREIGN KEY (local_address_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgpsession netbox_bgp_bgpsessio_peer_group_id_b45e7367_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession - ADD CONSTRAINT netbox_bgp_bgpsessio_peer_group_id_b45e7367_fk_netbox_bg FOREIGN KEY (peer_group_id) REFERENCES public.netbox_bgp_bgppeergroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgpsession netbox_bgp_bgpsessio_remote_address_id_461bd0e3_fk_ipam_ipad; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession - ADD CONSTRAINT netbox_bgp_bgpsessio_remote_address_id_461bd0e3_fk_ipam_ipad FOREIGN KEY (remote_address_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgpsession_import_policies netbox_bgp_bgpsessio_routingpolicy_id_00a9a916_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession_import_policies - ADD CONSTRAINT netbox_bgp_bgpsessio_routingpolicy_id_00a9a916_fk_netbox_bg FOREIGN KEY (routingpolicy_id) REFERENCES public.netbox_bgp_routingpolicy(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgpsession_export_policies netbox_bgp_bgpsessio_routingpolicy_id_689463c2_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession_export_policies - ADD CONSTRAINT netbox_bgp_bgpsessio_routingpolicy_id_689463c2_fk_netbox_bg FOREIGN KEY (routingpolicy_id) REFERENCES public.netbox_bgp_routingpolicy(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgpsession netbox_bgp_bgpsession_device_id_6bfaf662_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession - ADD CONSTRAINT netbox_bgp_bgpsession_device_id_6bfaf662_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgpsession netbox_bgp_bgpsession_local_as_id_65b0582c_fk_ipam_asn_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession - ADD CONSTRAINT netbox_bgp_bgpsession_local_as_id_65b0582c_fk_ipam_asn_id FOREIGN KEY (local_as_id) REFERENCES public.ipam_asn(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgpsession netbox_bgp_bgpsession_remote_as_id_8f0efc5b_fk_ipam_asn_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession - ADD CONSTRAINT netbox_bgp_bgpsession_remote_as_id_8f0efc5b_fk_ipam_asn_id FOREIGN KEY (remote_as_id) REFERENCES public.ipam_asn(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgpsession netbox_bgp_bgpsession_site_id_1c827459_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession - ADD CONSTRAINT netbox_bgp_bgpsession_site_id_1c827459_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_bgpsession netbox_bgp_bgpsession_tenant_id_daea4f3d_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_bgpsession - ADD CONSTRAINT netbox_bgp_bgpsession_tenant_id_daea4f3d_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_community netbox_bgp_community_role_id_f6f70952_fk_ipam_role_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_community - ADD CONSTRAINT netbox_bgp_community_role_id_f6f70952_fk_ipam_role_id FOREIGN KEY (role_id) REFERENCES public.ipam_role(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_community netbox_bgp_community_site_id_4368fee3_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_community - ADD CONSTRAINT netbox_bgp_community_site_id_4368fee3_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_community netbox_bgp_community_tenant_id_f1d3ee96_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_community - ADD CONSTRAINT netbox_bgp_community_tenant_id_f1d3ee96_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_prefixlistrule netbox_bgp_prefixlis_prefix_list_id_b3659f3f_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_prefixlistrule - ADD CONSTRAINT netbox_bgp_prefixlis_prefix_list_id_b3659f3f_fk_netbox_bg FOREIGN KEY (prefix_list_id) REFERENCES public.netbox_bgp_prefixlist(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_prefixlistrule netbox_bgp_prefixlistrule_prefix_id_7bdc3895_fk_ipam_prefix_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_prefixlistrule - ADD CONSTRAINT netbox_bgp_prefixlistrule_prefix_id_7bdc3895_fk_ipam_prefix_id FOREIGN KEY (prefix_id) REFERENCES public.ipam_prefix(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_routingpolicyrule_match_community netbox_bgp_routingpo_community_id_6ae7fbae_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicyrule_match_community - ADD CONSTRAINT netbox_bgp_routingpo_community_id_6ae7fbae_fk_netbox_bg FOREIGN KEY (community_id) REFERENCES public.netbox_bgp_community(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_routingpolicyrule_match_ipv6_address netbox_bgp_routingpo_prefixlist_id_9eb51ffa_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicyrule_match_ipv6_address - ADD CONSTRAINT netbox_bgp_routingpo_prefixlist_id_9eb51ffa_fk_netbox_bg FOREIGN KEY (prefixlist_id) REFERENCES public.netbox_bgp_prefixlist(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_routingpolicyrule_match_ip_address netbox_bgp_routingpo_prefixlist_id_d10c9561_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicyrule_match_ip_address - ADD CONSTRAINT netbox_bgp_routingpo_prefixlist_id_d10c9561_fk_netbox_bg FOREIGN KEY (prefixlist_id) REFERENCES public.netbox_bgp_prefixlist(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_routingpolicyrule netbox_bgp_routingpo_routing_policy_id_a9e3069f_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicyrule - ADD CONSTRAINT netbox_bgp_routingpo_routing_policy_id_a9e3069f_fk_netbox_bg FOREIGN KEY (routing_policy_id) REFERENCES public.netbox_bgp_routingpolicy(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_routingpolicyrule_match_community netbox_bgp_routingpo_routingpolicyrule_id_36b1e952_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicyrule_match_community - ADD CONSTRAINT netbox_bgp_routingpo_routingpolicyrule_id_36b1e952_fk_netbox_bg FOREIGN KEY (routingpolicyrule_id) REFERENCES public.netbox_bgp_routingpolicyrule(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_routingpolicyrule_match_ip_address netbox_bgp_routingpo_routingpolicyrule_id_3c984725_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicyrule_match_ip_address - ADD CONSTRAINT netbox_bgp_routingpo_routingpolicyrule_id_3c984725_fk_netbox_bg FOREIGN KEY (routingpolicyrule_id) REFERENCES public.netbox_bgp_routingpolicyrule(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_bgp_routingpolicyrule_match_ipv6_address netbox_bgp_routingpo_routingpolicyrule_id_d375c190_fk_netbox_bg; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_bgp_routingpolicyrule_match_ipv6_address - ADD CONSTRAINT netbox_bgp_routingpo_routingpolicyrule_id_d375c190_fk_netbox_bg FOREIGN KEY (routingpolicyrule_id) REFERENCES public.netbox_bgp_routingpolicyrule(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_dns_record netbox_dns_record_ptr_record_id_c9434897_fk_netbox_dn; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_record - ADD CONSTRAINT netbox_dns_record_ptr_record_id_c9434897_fk_netbox_dn FOREIGN KEY (ptr_record_id) REFERENCES public.netbox_dns_record(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_dns_record netbox_dns_record_zone_id_38d2d717_fk_netbox_dns_zone_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_record - ADD CONSTRAINT netbox_dns_record_zone_id_38d2d717_fk_netbox_dns_zone_id FOREIGN KEY (zone_id) REFERENCES public.netbox_dns_zone(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_dns_zone_nameservers netbox_dns_zone_name_nameserver_id_43dd6dbd_fk_netbox_dn; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_zone_nameservers - ADD CONSTRAINT netbox_dns_zone_name_nameserver_id_43dd6dbd_fk_netbox_dn FOREIGN KEY (nameserver_id) REFERENCES public.netbox_dns_nameserver(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_dns_zone_nameservers netbox_dns_zone_name_zone_id_1354eacc_fk_netbox_dn; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_zone_nameservers - ADD CONSTRAINT netbox_dns_zone_name_zone_id_1354eacc_fk_netbox_dn FOREIGN KEY (zone_id) REFERENCES public.netbox_dns_zone(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_dns_zone netbox_dns_zone_soa_mname_id_c1ebe8d6_fk_netbox_dn; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_zone - ADD CONSTRAINT netbox_dns_zone_soa_mname_id_c1ebe8d6_fk_netbox_dn FOREIGN KEY (soa_mname_id) REFERENCES public.netbox_dns_nameserver(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: netbox_dns_zone netbox_dns_zone_view_id_91fb86ff_fk_netbox_dns_view_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.netbox_dns_zone - ADD CONSTRAINT netbox_dns_zone_view_id_91fb86ff_fk_netbox_dns_view_id FOREIGN KEY (view_id) REFERENCES public.netbox_dns_view(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: social_auth_usersocialauth social_auth_usersocialauth_user_id_17d28448_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.social_auth_usersocialauth - ADD CONSTRAINT social_auth_usersocialauth_user_id_17d28448_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: taggit_taggeditem taggit_taggeditem_content_type_id_9957a03c_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.taggit_taggeditem - ADD CONSTRAINT taggit_taggeditem_content_type_id_9957a03c_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: taggit_taggeditem taggit_taggeditem_tag_id_f4f5b767_fk_taggit_tag_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.taggit_taggeditem - ADD CONSTRAINT taggit_taggeditem_tag_id_f4f5b767_fk_taggit_tag_id FOREIGN KEY (tag_id) REFERENCES public.taggit_tag(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: tenancy_contact tenancy_contact_group_id_76e0267c_fk_tenancy_contactgroup_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_contact - ADD CONSTRAINT tenancy_contact_group_id_76e0267c_fk_tenancy_contactgroup_id FOREIGN KEY (group_id) REFERENCES public.tenancy_contactgroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: tenancy_contactassignment tenancy_contactassig_contact_id_5302baf0_fk_tenancy_c; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_contactassignment - ADD CONSTRAINT tenancy_contactassig_contact_id_5302baf0_fk_tenancy_c FOREIGN KEY (contact_id) REFERENCES public.tenancy_contact(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: tenancy_contactassignment tenancy_contactassig_content_type_id_0c3f0c67_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_contactassignment - ADD CONSTRAINT tenancy_contactassig_content_type_id_0c3f0c67_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: tenancy_contactassignment tenancy_contactassig_role_id_fc08bfb5_fk_tenancy_c; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_contactassignment - ADD CONSTRAINT tenancy_contactassig_role_id_fc08bfb5_fk_tenancy_c FOREIGN KEY (role_id) REFERENCES public.tenancy_contactrole(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: tenancy_contactgroup tenancy_contactgroup_parent_id_c087d69f_fk_tenancy_c; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_contactgroup - ADD CONSTRAINT tenancy_contactgroup_parent_id_c087d69f_fk_tenancy_c FOREIGN KEY (parent_id) REFERENCES public.tenancy_contactgroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: tenancy_tenant tenancy_tenant_group_id_7daef6f4_fk_tenancy_tenantgroup_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_tenant - ADD CONSTRAINT tenancy_tenant_group_id_7daef6f4_fk_tenancy_tenantgroup_id FOREIGN KEY (group_id) REFERENCES public.tenancy_tenantgroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: tenancy_tenantgroup tenancy_tenantgroup_parent_id_2542fc18_fk_tenancy_t; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_tenantgroup - ADD CONSTRAINT tenancy_tenantgroup_parent_id_2542fc18_fk_tenancy_t FOREIGN KEY (parent_id) REFERENCES public.tenancy_tenantgroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: users_objectpermission_object_types users_objectpermissi_contenttype_id_594b1cc7_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission_object_types - ADD CONSTRAINT users_objectpermissi_contenttype_id_594b1cc7_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: users_objectpermission_groups users_objectpermissi_group_id_fb7ba6e0_fk_auth_grou; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission_groups - ADD CONSTRAINT users_objectpermissi_group_id_fb7ba6e0_fk_auth_grou FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: users_objectpermission_groups users_objectpermissi_objectpermission_id_2f7cc117_fk_users_obj; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission_groups - ADD CONSTRAINT users_objectpermissi_objectpermission_id_2f7cc117_fk_users_obj FOREIGN KEY (objectpermission_id) REFERENCES public.users_objectpermission(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: users_objectpermission_object_types users_objectpermissi_objectpermission_id_38c7d8f5_fk_users_obj; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission_object_types - ADD CONSTRAINT users_objectpermissi_objectpermission_id_38c7d8f5_fk_users_obj FOREIGN KEY (objectpermission_id) REFERENCES public.users_objectpermission(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: users_objectpermission_users users_objectpermissi_objectpermission_id_78a9c2e6_fk_users_obj; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission_users - ADD CONSTRAINT users_objectpermissi_objectpermission_id_78a9c2e6_fk_users_obj FOREIGN KEY (objectpermission_id) REFERENCES public.users_objectpermission(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: users_objectpermission_users users_objectpermission_users_user_id_16c0905d_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission_users - ADD CONSTRAINT users_objectpermission_users_user_id_16c0905d_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: users_token users_token_user_id_af964690_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_token - ADD CONSTRAINT users_token_user_id_af964690_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: users_userconfig users_userconfig_user_id_afd44184_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_userconfig - ADD CONSTRAINT users_userconfig_user_id_afd44184_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_cluster virtualization_clust_group_id_de379828_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_cluster - ADD CONSTRAINT virtualization_clust_group_id_de379828_fk_virtualiz FOREIGN KEY (group_id) REFERENCES public.virtualization_clustergroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_cluster virtualization_clust_type_id_4efafb0a_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_cluster - ADD CONSTRAINT virtualization_clust_type_id_4efafb0a_fk_virtualiz FOREIGN KEY (type_id) REFERENCES public.virtualization_clustertype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_cluster virtualization_cluster_site_id_4d5af282_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_cluster - ADD CONSTRAINT virtualization_cluster_site_id_4d5af282_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_cluster virtualization_cluster_tenant_id_bc2868d0_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_cluster - ADD CONSTRAINT virtualization_cluster_tenant_id_bc2868d0_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_virtualmachine virtualization_virtu_cluster_id_6c9f9047_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtu_cluster_id_6c9f9047_fk_virtualiz FOREIGN KEY (cluster_id) REFERENCES public.virtualization_cluster(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_virtualmachine virtualization_virtu_device_id_5a49ed18_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtu_device_id_5a49ed18_fk_dcim_devi FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_virtualmachine virtualization_virtu_platform_id_a6c5ccb2_fk_dcim_plat; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtu_platform_id_a6c5ccb2_fk_dcim_plat FOREIGN KEY (platform_id) REFERENCES public.dcim_platform(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_virtualmachine virtualization_virtu_primary_ip4_id_942e42ae_fk_ipam_ipad; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtu_primary_ip4_id_942e42ae_fk_ipam_ipad FOREIGN KEY (primary_ip4_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_virtualmachine virtualization_virtu_primary_ip6_id_b7904e73_fk_ipam_ipad; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtu_primary_ip6_id_b7904e73_fk_ipam_ipad FOREIGN KEY (primary_ip6_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_virtualmachine virtualization_virtu_role_id_0cc898f9_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtu_role_id_0cc898f9_fk_dcim_devi FOREIGN KEY (role_id) REFERENCES public.dcim_devicerole(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_virtualmachine virtualization_virtu_tenant_id_d00d1d77_fk_tenancy_t; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtu_tenant_id_d00d1d77_fk_tenancy_t FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_virtualmachine virtualization_virtualmachine_site_id_54475a27_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtualmachine_site_id_54475a27_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_vminterface virtualization_vmint_bridge_id_7462b91e_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface - ADD CONSTRAINT virtualization_vmint_bridge_id_7462b91e_fk_virtualiz FOREIGN KEY (bridge_id) REFERENCES public.virtualization_vminterface(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_vminterface virtualization_vmint_parent_id_f86958e1_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface - ADD CONSTRAINT virtualization_vmint_parent_id_f86958e1_fk_virtualiz FOREIGN KEY (parent_id) REFERENCES public.virtualization_vminterface(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_vminterface virtualization_vmint_untagged_vlan_id_aea4fc69_fk_ipam_vlan; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface - ADD CONSTRAINT virtualization_vmint_untagged_vlan_id_aea4fc69_fk_ipam_vlan FOREIGN KEY (untagged_vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_vminterface virtualization_vmint_virtual_machine_id_e9f89829_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface - ADD CONSTRAINT virtualization_vmint_virtual_machine_id_e9f89829_fk_virtualiz FOREIGN KEY (virtual_machine_id) REFERENCES public.virtualization_virtualmachine(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_vminterface_tagged_vlans virtualization_vmint_vlan_id_4e77411e_fk_ipam_vlan; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface_tagged_vlans - ADD CONSTRAINT virtualization_vmint_vlan_id_4e77411e_fk_ipam_vlan FOREIGN KEY (vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_vminterface_tagged_vlans virtualization_vmint_vminterface_id_904b12de_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface_tagged_vlans - ADD CONSTRAINT virtualization_vmint_vminterface_id_904b12de_fk_virtualiz FOREIGN KEY (vminterface_id) REFERENCES public.virtualization_vminterface(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_vminterface virtualization_vminterface_vrf_id_4b570a8c_fk_ipam_vrf_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface - ADD CONSTRAINT virtualization_vminterface_vrf_id_4b570a8c_fk_ipam_vrf_id FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: wireless_wirelesslan wireless_wirelesslan_group_id_d9e3d67f_fk_wireless_; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslan - ADD CONSTRAINT wireless_wirelesslan_group_id_d9e3d67f_fk_wireless_ FOREIGN KEY (group_id) REFERENCES public.wireless_wirelesslangroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: wireless_wirelesslangroup wireless_wirelesslan_parent_id_37ca8b87_fk_wireless_; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslangroup - ADD CONSTRAINT wireless_wirelesslan_parent_id_37ca8b87_fk_wireless_ FOREIGN KEY (parent_id) REFERENCES public.wireless_wirelesslangroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: wireless_wirelesslan wireless_wirelesslan_tenant_id_5dfee941_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslan - ADD CONSTRAINT wireless_wirelesslan_tenant_id_5dfee941_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: wireless_wirelesslan wireless_wirelesslan_vlan_id_d7fa6ccc_fk_ipam_vlan_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslan - ADD CONSTRAINT wireless_wirelesslan_vlan_id_d7fa6ccc_fk_ipam_vlan_id FOREIGN KEY (vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: wireless_wirelesslink wireless_wirelesslin__interface_a_device__6c8e042e_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslink - ADD CONSTRAINT wireless_wirelesslin__interface_a_device__6c8e042e_fk_dcim_devi FOREIGN KEY (_interface_a_device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: wireless_wirelesslink wireless_wirelesslin__interface_b_device__43d5101a_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslink - ADD CONSTRAINT wireless_wirelesslin__interface_b_device__43d5101a_fk_dcim_devi FOREIGN KEY (_interface_b_device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: wireless_wirelesslink wireless_wirelesslin_interface_a_id_bc9e37fd_fk_dcim_inte; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslink - ADD CONSTRAINT wireless_wirelesslin_interface_a_id_bc9e37fd_fk_dcim_inte FOREIGN KEY (interface_a_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: wireless_wirelesslink wireless_wirelesslin_interface_b_id_a82fb2ee_fk_dcim_inte; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslink - ADD CONSTRAINT wireless_wirelesslin_interface_b_id_a82fb2ee_fk_dcim_inte FOREIGN KEY (interface_b_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: wireless_wirelesslink wireless_wirelesslink_tenant_id_4c0638ee_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.wireless_wirelesslink - ADD CONSTRAINT wireless_wirelesslink_tenant_id_4c0638ee_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- PostgreSQL database dump complete --- - diff --git a/inventory/10-custom b/inventory/10-custom index e187b777f..b2dd62896 100644 --- a/inventory/10-custom +++ b/inventory/10-custom @@ -9,15 +9,11 @@ testbed-node-0.testbed.osism.xyz testbed-node-1.testbed.osism.xyz testbed-node-2.testbed.osism.xyz -[testbed-secondary-nodes] -#testbed-node-3.testbed.osism.xyz -#testbed-node-4.testbed.osism.xyz -#testbed-node-5.testbed.osism.xyz -#testbed-node-6.testbed.osism.xyz -#testbed-node-7.testbed.osism.xyz -#testbed-node-8.testbed.osism.xyz -#testbed-node-9.testbed.osism.xyz - -[testbed-nodes:children] -testbed-primary-nodes -testbed-secondary-nodes +[testbed-nodes] +testbed-node-3.testbed.osism.xyz +testbed-node-4.testbed.osism.xyz +testbed-node-5.testbed.osism.xyz +# testbed-node-6.testbed.osism.xyz +# testbed-node-7.testbed.osism.xyz +# testbed-node-8.testbed.osism.xyz +# testbed-node-9.testbed.osism.xyz diff --git a/inventory/20-roles b/inventory/20-roles index 3988da675..f4a410155 100644 --- a/inventory/20-roles +++ b/inventory/20-roles @@ -7,6 +7,7 @@ [generic:children] testbed-managers testbed-nodes +testbed-primary-nodes [manager:children] testbed-managers @@ -27,7 +28,7 @@ testbed-primary-nodes testbed-primary-nodes [ceph-resource:children] -testbed-primary-nodes +testbed-nodes # NOTE: After the initial import of the inventory in the netbox, # the groups in this file can be emptied. The systems are diff --git a/inventory/99-overwrite b/inventory/99-overwrite index a1d083573..7fac35f45 100644 --- a/inventory/99-overwrite +++ b/inventory/99-overwrite @@ -5,7 +5,7 @@ # without. [ceph-mds:children] -ceph-resource +ceph-control [ceph-rgw:children] -ceph-resource +ceph-control diff --git a/inventory/group_vars/testbed-nodes.yml b/inventory/group_vars/testbed-nodes.yml index a4ace070f..8a9b2b894 100644 --- a/inventory/group_vars/testbed-nodes.yml +++ b/inventory/group_vars/testbed-nodes.yml @@ -6,10 +6,7 @@ netbox_inventory_status: Active netbox_inventory_device_role: generic-node netbox_inventory_tags: - generic - - control - compute - - network - - ceph-control - ceph-resource ########################################################## @@ -60,14 +57,11 @@ network_dispatcher_scripts: # kolla network_interface: "{{ ansible_local.testbed_network_devices.management }}" -neutron_external_interface: vxlan0 -octavia_network_interface: ohm0 ########################################################## # ceph monitor_address: "192.168.16.{{ node_id }}" -radosgw_address: "192.168.16.{{ node_id }}" devices: "{{ ansible_local.testbed_ceph_devices }}" diff --git a/inventory/group_vars/testbed-primary-nodes.yml b/inventory/group_vars/testbed-primary-nodes.yml new file mode 100644 index 000000000..cb225fa94 --- /dev/null +++ b/inventory/group_vars/testbed-primary-nodes.yml @@ -0,0 +1,68 @@ +--- +########################################################## +# netbox + +netbox_inventory_status: Active +netbox_inventory_device_role: generic-node +netbox_inventory_tags: + - generic + - control + - network + - ceph-control + +########################################################## +# docker + +docker_network_mtu: "{{ testbed_mtu_node }}" + +docker_configure_proxy: true +docker_proxy_http: "http://{{ groups['manager'][0] }}:3128" +docker_proxy_https: "{{ docker_proxy_http }}" + +########################################################## +# proxy + +proxy_proxies: + http: "http://{{ groups['manager'][0] }}:3128" + https: "http://{{ groups['manager'][0] }}:3128" + +########################################################## +# generic + +internal_address: "192.168.16.{{ node_id }}" +internal_interface: "{{ ansible_local.testbed_network_devices.management }}" + +console_interface: "{{ internal_interface }}" +management_interface: "{{ internal_interface }}" + +########################################################## +# netdata + +netdata_host_type: client + +########################################################## +# network + +network_type: netplan + +network_ethernets: + "{{ ansible_local.testbed_network_devices.management }}": + dhcp4: true + mtu: "{{ testbed_mtu_node }}" + +network_dispatcher_scripts: + - src: /opt/configuration/network/vxlan.sh + dest: routable.d/vxlan.sh + +########################################################## +# kolla + +network_interface: "{{ ansible_local.testbed_network_devices.management }}" +neutron_external_interface: vxlan0 +octavia_network_interface: ohm0 + +########################################################## +# ceph + +monitor_address: "192.168.16.{{ node_id }}" +radosgw_address: "192.168.16.{{ node_id }}" diff --git a/netbox/playbooks/rack-1000.yml b/netbox/playbooks/rack-1000.yml index b7a43a940..4c9b8cddb 100644 --- a/netbox/playbooks/rack-1000.yml +++ b/netbox/playbooks/rack-1000.yml @@ -130,10 +130,8 @@ - managed-by-bifrost - generic - control - - compute - network - ceph-control - - ceph-resource state: present - name: Manage testbed-node-1 @@ -158,10 +156,8 @@ - managed-by-bifrost - generic - control - - compute - network - ceph-control - - ceph-resource state: present - name: Manage testbed-node-2 @@ -186,10 +182,8 @@ - managed-by-bifrost - generic - control - - compute - network - ceph-control - - ceph-resource state: present - name: Manage testbed-node-3 @@ -214,6 +208,7 @@ - managed-by-ironic - generic - compute + - ceph-resource state: present - name: Manage testbed-node-4 @@ -238,6 +233,7 @@ - managed-by-ironic - generic - compute + - ceph-resource state: present - name: Manage testbed-node-5 @@ -262,6 +258,7 @@ - managed-by-ironic - generic - compute + - ceph-resource state: present - name: Manage testbed-node-6 @@ -285,7 +282,7 @@ - managed-by-osism - managed-by-ironic - generic - - ceph-storage + - ceph-resource state: present - name: Manage testbed-node-7 @@ -309,7 +306,7 @@ - managed-by-osism - managed-by-ironic - generic - - ceph-storage + - ceph-resource state: present - name: Manage testbed-node-8 @@ -333,5 +330,5 @@ - managed-by-osism - managed-by-ironic - generic - - ceph-storage + - ceph-resource state: present diff --git a/scripts/deploy-manager.sh b/scripts/deploy-manager.sh index 532704959..5f97e216b 100755 --- a/scripts/deploy-manager.sh +++ b/scripts/deploy-manager.sh @@ -38,7 +38,7 @@ sed -i -e "s/CHANGEME - dragon private key/GEQ5eWshKW+4ZhXMcWkAAbqzj7QA9G64oBFB3 osism apply --environment custom workarounds # reboot nodes -osism apply reboot -l testbed-nodes -e ireallymeanit=yes +osism apply reboot -l testbed-primary-nodes,testbed-nodes -e ireallymeanit=yes osism apply wait-for-connection -l testbed-nodes -e ireallymeanit=yes # Restart the manager services to update the /etc/hosts file diff --git a/scripts/deploy/100-ceph-services-basic.sh b/scripts/deploy/100-ceph-services-basic.sh index f7a353b33..d6e060a5f 100755 --- a/scripts/deploy/100-ceph-services-basic.sh +++ b/scripts/deploy/100-ceph-services-basic.sh @@ -13,7 +13,10 @@ fi MANAGER_VERSION=$(docker inspect --format '{{ index .Config.Labels "org.opencontainers.image.version"}}' osism-ansible) if [[ "$REFSTACK" == "false" ]]; then if [[ $MANAGER_VERSION =~ ^4\.[0-9]\.[0-9]$ ]]; then - osism apply ceph-base + osism apply ceph-mons + osism apply ceph-mgrs + osism apply ceph-osds + osism apply ceph-crash osism apply ceph-mdss osism apply ceph-rgws else @@ -21,7 +24,10 @@ if [[ "$REFSTACK" == "false" ]]; then fi else if [[ $MANAGER_VERSION =~ ^4\.[0-9]\.[0-9]$ ]]; then - osism apply ceph-base + osism apply ceph-mons + osism apply ceph-mgrs + osism apply ceph-osds + osism apply ceph-crash else osism apply ceph fi diff --git a/terraform/variables.tf b/terraform/variables.tf index a9c0399bc..11ee2a2b5 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -29,12 +29,12 @@ variable "volume_size_storage" { variable "flavor_node" { type = string - default = "SCS-8V:32:50" + default = "SCS-8V-32-50" } variable "flavor_manager" { type = string - default = "SCS-4V:8:50" + default = "SCS-4V-8-50" } variable "availability_zone" { @@ -89,7 +89,7 @@ variable "openstack_version" { variable "number_of_nodes" { type = number - default = 3 + default = 6 } variable "number_of_volumes" {