diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 0000000..c5351d7 --- /dev/null +++ b/examples/README.md @@ -0,0 +1,14 @@ +To use these files use the netbox stack using +the compose file found in `testing/` + +``` +$ ./coredns -p 1053 -conf Corefile.example & +$ dig -p 1053 @127.0.0.1 somehost.company +``` + +To get AAAA records: + +``` +dig -p 1053 -6 @127.0.0.1 mail2.foo.com AAAA +``` + diff --git a/testing/netbox.sql b/testing/netbox.sql index a5ec016..a7b2c2f 100644 --- a/testing/netbox.sql +++ b/testing/netbox.sql @@ -1,12609 +1,12559 @@ --- --- PostgreSQL database dump --- - --- Dumped from database version 12.9 --- Dumped by pg_dump version 12.9 - -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 --- - -CREATE SEQUENCE public.auth_group_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.auth_group_id_seq OWNER TO netbox; - --- --- Name: auth_group_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.auth_group_id_seq OWNED BY public.auth_group.id; - - --- --- Name: auth_group_permissions; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.auth_group_permissions ( - id integer 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 --- - -CREATE SEQUENCE public.auth_group_permissions_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.auth_group_permissions_id_seq OWNER TO netbox; - --- --- Name: auth_group_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.auth_group_permissions_id_seq OWNED BY public.auth_group_permissions.id; - - --- --- 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 --- - -CREATE SEQUENCE public.auth_permission_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.auth_permission_id_seq OWNER TO netbox; - --- --- Name: auth_permission_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.auth_permission_id_seq OWNED BY public.auth_permission.id; - - --- --- 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 integer 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 --- - -CREATE SEQUENCE public.auth_user_groups_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.auth_user_groups_id_seq OWNER TO netbox; - --- --- Name: auth_user_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.auth_user_groups_id_seq OWNED BY public.auth_user_groups.id; - - --- --- Name: auth_user_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.auth_user_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.auth_user_id_seq OWNER TO netbox; - --- --- Name: auth_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.auth_user_id_seq OWNED BY public.auth_user.id; - - --- --- Name: auth_user_user_permissions; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.auth_user_user_permissions ( - id integer 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 --- - -CREATE SEQUENCE public.auth_user_user_permissions_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.auth_user_user_permissions_id_seq OWNER TO netbox; - --- --- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.auth_user_user_permissions_id_seq OWNED BY public.auth_user_user_permissions.id; - - --- --- Name: circuits_circuit; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.circuits_circuit ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - cid character varying(100) NOT NULL, - install_date date, - commit_rate integer, - comments text NOT NULL, - provider_id bigint NOT NULL, - type_id bigint NOT NULL, - tenant_id bigint, - description character varying(200) NOT NULL, - status character varying(50) NOT NULL, - custom_field_data jsonb NOT NULL, - termination_a_id bigint, - termination_z_id bigint, - 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 --- - -CREATE SEQUENCE public.circuits_circuit_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.circuits_circuit_id_seq OWNER TO netbox; - --- --- Name: circuits_circuit_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.circuits_circuit_id_seq OWNED BY public.circuits_circuit.id; - - --- --- Name: circuits_circuittermination; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.circuits_circuittermination ( - id bigint 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, - circuit_id bigint NOT NULL, - site_id bigint, - cable_id bigint, - description character varying(200) NOT NULL, - _cable_peer_id integer, - _cable_peer_type_id integer, - created date, - last_updated timestamp with time zone, - mark_connected boolean NOT NULL, - provider_network_id bigint, - CONSTRAINT circuits_circuittermination__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), - 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 --- - -CREATE SEQUENCE public.circuits_circuittermination_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.circuits_circuittermination_id_seq OWNER TO netbox; - --- --- Name: circuits_circuittermination_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.circuits_circuittermination_id_seq OWNED BY public.circuits_circuittermination.id; - - --- --- Name: circuits_circuittype; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.circuits_circuittype ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - created date, - last_updated timestamp with time zone, - description character varying(200) NOT NULL, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.circuits_circuittype OWNER TO netbox; - --- --- Name: circuits_circuittype_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.circuits_circuittype_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.circuits_circuittype_id_seq OWNER TO netbox; - --- --- Name: circuits_circuittype_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.circuits_circuittype_id_seq OWNED BY public.circuits_circuittype.id; - - --- --- Name: circuits_provider; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.circuits_provider ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - asn bigint, - account character varying(30) NOT NULL, - portal_url character varying(200) NOT NULL, - noc_contact text NOT NULL, - admin_contact text NOT NULL, - comments text NOT NULL, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.circuits_provider OWNER TO netbox; - --- --- Name: circuits_provider_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.circuits_provider_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.circuits_provider_id_seq OWNER TO netbox; - --- --- Name: circuits_provider_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.circuits_provider_id_seq OWNED BY public.circuits_provider.id; - - --- --- Name: circuits_providernetwork; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.circuits_providernetwork ( - created date, - 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 -); - - -ALTER TABLE public.circuits_providernetwork OWNER TO netbox; - --- --- Name: circuits_providernetwork_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.circuits_providernetwork_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.circuits_providernetwork_id_seq OWNER TO netbox; - --- --- Name: circuits_providernetwork_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.circuits_providernetwork_id_seq OWNED BY public.circuits_providernetwork.id; - - --- --- Name: dcim_cable; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_cable ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - termination_a_id integer NOT NULL, - termination_b_id integer 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 smallint, - length_unit character varying(50) NOT NULL, - _abs_length numeric(10,4), - termination_a_type_id integer NOT NULL, - termination_b_type_id integer NOT NULL, - _termination_a_device_id bigint, - _termination_b_device_id bigint, - custom_field_data jsonb NOT NULL, - CONSTRAINT dcim_cable_length_check CHECK ((length >= 0)), - CONSTRAINT dcim_cable_termination_a_id_check CHECK ((termination_a_id >= 0)), - CONSTRAINT dcim_cable_termination_b_id_check CHECK ((termination_b_id >= 0)) -); - - -ALTER TABLE public.dcim_cable OWNER TO netbox; - --- --- Name: dcim_cable_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_cable_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_cable_id_seq OWNER TO netbox; - --- --- Name: dcim_cable_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_cable_id_seq OWNED BY public.dcim_cable.id; - - --- --- Name: dcim_cablepath; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_cablepath ( - id bigint NOT NULL, - origin_id integer NOT NULL, - destination_id integer, - path character varying(40)[] NOT NULL, - is_active boolean NOT NULL, - is_split boolean NOT NULL, - destination_type_id integer, - origin_type_id integer NOT NULL, - CONSTRAINT dcim_cablepath_destination_id_check CHECK ((destination_id >= 0)), - CONSTRAINT dcim_cablepath_origin_id_check CHECK ((origin_id >= 0)) -); - - -ALTER TABLE public.dcim_cablepath OWNER TO netbox; - --- --- Name: dcim_cablepath_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_cablepath_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_cablepath_id_seq OWNER TO netbox; - --- --- Name: dcim_cablepath_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_cablepath_id_seq OWNED BY public.dcim_cablepath.id; - - --- --- Name: dcim_consoleport; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_consoleport ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - device_id bigint NOT NULL, - cable_id bigint, - description character varying(200) NOT NULL, - type character varying(50) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - _cable_peer_id integer, - _cable_peer_type_id integer, - _path_id bigint, - created date, - custom_field_data jsonb NOT NULL, - last_updated timestamp with time zone, - mark_connected boolean NOT NULL, - speed integer, - CONSTRAINT dcim_consoleport__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), - 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 --- - -CREATE SEQUENCE public.dcim_consoleport_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_consoleport_id_seq OWNER TO netbox; - --- --- Name: dcim_consoleport_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_consoleport_id_seq OWNED BY public.dcim_consoleport.id; - - --- --- Name: dcim_consoleporttemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_consoleporttemplate ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - device_type_id bigint NOT NULL, - type character varying(50) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - created date, - last_updated timestamp with time zone -); - - -ALTER TABLE public.dcim_consoleporttemplate OWNER TO netbox; - --- --- Name: dcim_consoleporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_consoleporttemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_consoleporttemplate_id_seq OWNER TO netbox; - --- --- Name: dcim_consoleporttemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_consoleporttemplate_id_seq OWNED BY public.dcim_consoleporttemplate.id; - - --- --- Name: dcim_consoleserverport; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_consoleserverport ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - device_id bigint NOT NULL, - cable_id bigint, - description character varying(200) NOT NULL, - type character varying(50) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - _cable_peer_id integer, - _cable_peer_type_id integer, - _path_id bigint, - created date, - custom_field_data jsonb NOT NULL, - last_updated timestamp with time zone, - mark_connected boolean NOT NULL, - speed integer, - CONSTRAINT dcim_consoleserverport__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), - 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 --- - -CREATE SEQUENCE public.dcim_consoleserverport_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_consoleserverport_id_seq OWNER TO netbox; - --- --- Name: dcim_consoleserverport_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_consoleserverport_id_seq OWNED BY public.dcim_consoleserverport.id; - - --- --- Name: dcim_consoleserverporttemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_consoleserverporttemplate ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - device_type_id bigint NOT NULL, - type character varying(50) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - created date, - last_updated timestamp with time zone -); - - -ALTER TABLE public.dcim_consoleserverporttemplate OWNER TO netbox; - --- --- Name: dcim_consoleserverporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_consoleserverporttemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_consoleserverporttemplate_id_seq OWNER TO netbox; - --- --- Name: dcim_consoleserverporttemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_consoleserverporttemplate_id_seq OWNED BY public.dcim_consoleserverporttemplate.id; - - --- --- Name: dcim_device; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_device ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - name character varying(64), - serial character varying(50) NOT NULL, - "position" smallint, - face character varying(50) NOT NULL, - status character varying(50) NOT NULL, - comments text NOT NULL, - device_role_id bigint NOT NULL, - device_type_id bigint NOT NULL, - platform_id bigint, - rack_id bigint, - primary_ip4_id bigint, - primary_ip6_id bigint, - tenant_id bigint, - asset_tag character varying(50), - site_id bigint NOT NULL, - cluster_id bigint, - virtual_chassis_id bigint, - vc_position smallint, - vc_priority smallint, - local_context_data jsonb, - _name character varying(100), - custom_field_data jsonb NOT NULL, - location_id bigint, - CONSTRAINT dcim_device_position_check CHECK (("position" >= 0)), - 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 --- - -CREATE SEQUENCE public.dcim_device_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_device_id_seq OWNER TO netbox; - --- --- Name: dcim_device_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_device_id_seq OWNED BY public.dcim_device.id; - - --- --- Name: dcim_devicebay; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_devicebay ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - device_id bigint NOT NULL, - installed_device_id bigint, - description character varying(200) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - created date, - custom_field_data jsonb NOT NULL, - last_updated timestamp with time zone -); - - -ALTER TABLE public.dcim_devicebay OWNER TO netbox; - --- --- Name: dcim_devicebay_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_devicebay_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_devicebay_id_seq OWNER TO netbox; - --- --- Name: dcim_devicebay_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_devicebay_id_seq OWNED BY public.dcim_devicebay.id; - - --- --- Name: dcim_devicebaytemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_devicebaytemplate ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - device_type_id bigint NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - created date, - last_updated timestamp with time zone -); - - -ALTER TABLE public.dcim_devicebaytemplate OWNER TO netbox; - --- --- Name: dcim_devicebaytemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_devicebaytemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_devicebaytemplate_id_seq OWNER TO netbox; - --- --- Name: dcim_devicebaytemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_devicebaytemplate_id_seq OWNED BY public.dcim_devicebaytemplate.id; - - --- --- Name: dcim_devicerole; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_devicerole ( - 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, - created date, - last_updated timestamp with time zone, - description character varying(200) NOT NULL, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.dcim_devicerole OWNER TO netbox; - --- --- Name: dcim_devicerole_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_devicerole_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_devicerole_id_seq OWNER TO netbox; - --- --- Name: dcim_devicerole_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_devicerole_id_seq OWNED BY public.dcim_devicerole.id; - - --- --- Name: dcim_devicetype; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_devicetype ( - id bigint NOT NULL, - model character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - u_height smallint NOT NULL, - is_full_depth boolean NOT NULL, - manufacturer_id bigint NOT NULL, - subdevice_role character varying(50) NOT NULL, - part_number character varying(50) NOT NULL, - comments text NOT NULL, - created date, - last_updated timestamp with time zone, - front_image character varying(100) NOT NULL, - rear_image character varying(100) NOT NULL, - custom_field_data jsonb NOT NULL, - CONSTRAINT dcim_devicetype_u_height_check CHECK ((u_height >= 0)) -); - - -ALTER TABLE public.dcim_devicetype OWNER TO netbox; - --- --- Name: dcim_devicetype_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_devicetype_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_devicetype_id_seq OWNER TO netbox; - --- --- Name: dcim_devicetype_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_devicetype_id_seq OWNED BY public.dcim_devicetype.id; - - --- --- Name: dcim_frontport; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_frontport ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - type character varying(50) NOT NULL, - rear_port_position smallint NOT NULL, - description character varying(200) NOT NULL, - device_id bigint NOT NULL, - rear_port_id bigint NOT NULL, - cable_id bigint, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - _cable_peer_id integer, - _cable_peer_type_id integer, - created date, - custom_field_data jsonb NOT NULL, - last_updated timestamp with time zone, - mark_connected boolean NOT NULL, - CONSTRAINT dcim_frontport__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), - 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 --- - -CREATE SEQUENCE public.dcim_frontport_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_frontport_id_seq OWNER TO netbox; - --- --- Name: dcim_frontport_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_frontport_id_seq OWNED BY public.dcim_frontport.id; - - --- --- Name: dcim_frontporttemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_frontporttemplate ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - type character varying(50) NOT NULL, - rear_port_position smallint NOT NULL, - device_type_id bigint NOT NULL, - rear_port_id bigint NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - created date, - last_updated timestamp with time zone, - 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 --- - -CREATE SEQUENCE public.dcim_frontporttemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_frontporttemplate_id_seq OWNER TO netbox; - --- --- Name: dcim_frontporttemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_frontporttemplate_id_seq OWNED BY public.dcim_frontporttemplate.id; - - --- --- Name: dcim_interface; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_interface ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - type character varying(50) NOT NULL, - mgmt_only boolean NOT NULL, - description character varying(200) NOT NULL, - device_id bigint NOT NULL, - mac_address macaddr, - lag_id bigint, - enabled boolean NOT NULL, - mtu integer, - mode character varying(50) NOT NULL, - untagged_vlan_id bigint, - cable_id bigint, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - _cable_peer_id integer, - _cable_peer_type_id integer, - _path_id bigint, - created date, - custom_field_data jsonb NOT NULL, - last_updated timestamp with time zone, - mark_connected boolean NOT NULL, - parent_id bigint, - CONSTRAINT dcim_interface__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), - CONSTRAINT dcim_interface_mtu_check CHECK ((mtu >= 0)) -); - - -ALTER TABLE public.dcim_interface OWNER TO netbox; - --- --- Name: dcim_interface_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_interface_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_interface_id_seq OWNER TO netbox; - --- --- Name: dcim_interface_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_interface_id_seq OWNED BY public.dcim_interface.id; - - --- --- Name: dcim_interface_tagged_vlans; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_interface_tagged_vlans ( - id integer 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 --- - -CREATE SEQUENCE public.dcim_interface_tagged_vlans_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_interface_tagged_vlans_id_seq OWNER TO netbox; - --- --- Name: dcim_interface_tagged_vlans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_interface_tagged_vlans_id_seq OWNED BY public.dcim_interface_tagged_vlans.id; - - --- --- Name: dcim_interfacetemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_interfacetemplate ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - type character varying(50) NOT NULL, - mgmt_only boolean NOT NULL, - device_type_id bigint NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - created date, - last_updated timestamp with time zone -); - - -ALTER TABLE public.dcim_interfacetemplate OWNER TO netbox; - --- --- Name: dcim_interfacetemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_interfacetemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_interfacetemplate_id_seq OWNER TO netbox; - --- --- Name: dcim_interfacetemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_interfacetemplate_id_seq OWNED BY public.dcim_interfacetemplate.id; - - --- --- Name: dcim_inventoryitem; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_inventoryitem ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - part_id character varying(50) NOT NULL, - serial character varying(50) NOT NULL, - discovered boolean NOT NULL, - device_id bigint NOT NULL, - parent_id bigint, - manufacturer_id bigint, - asset_tag character varying(50), - description character varying(200) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - level integer NOT NULL, - lft integer NOT NULL, - rght integer NOT NULL, - tree_id integer NOT NULL, - created date, - custom_field_data jsonb NOT NULL, - last_updated timestamp with time zone, - 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 --- - -CREATE SEQUENCE public.dcim_inventoryitem_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_inventoryitem_id_seq OWNER TO netbox; - --- --- Name: dcim_inventoryitem_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_inventoryitem_id_seq OWNED BY public.dcim_inventoryitem.id; - - --- --- Name: dcim_location; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_location ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - site_id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - parent_id bigint, - level integer NOT NULL, - lft integer NOT NULL, - rght integer NOT NULL, - tree_id integer NOT NULL, - description character varying(200) NOT NULL, - custom_field_data jsonb NOT NULL, - CONSTRAINT dcim_rackgroup_level_check CHECK ((level >= 0)), - CONSTRAINT dcim_rackgroup_lft_check CHECK ((lft >= 0)), - CONSTRAINT dcim_rackgroup_rght_check CHECK ((rght >= 0)), - CONSTRAINT dcim_rackgroup_tree_id_check CHECK ((tree_id >= 0)) -); - - -ALTER TABLE public.dcim_location OWNER TO netbox; - --- --- Name: dcim_manufacturer; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_manufacturer ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - created date, - last_updated timestamp with time zone, - description character varying(200) NOT NULL, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.dcim_manufacturer OWNER TO netbox; - --- --- Name: dcim_manufacturer_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_manufacturer_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_manufacturer_id_seq OWNER TO netbox; - --- --- Name: dcim_manufacturer_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_manufacturer_id_seq OWNED BY public.dcim_manufacturer.id; - - --- --- Name: dcim_module_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_module_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_module_id_seq OWNER TO netbox; - --- --- Name: dcim_module_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_module_id_seq OWNED BY public.dcim_inventoryitem.id; - - --- --- Name: dcim_platform; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_platform ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - napalm_driver character varying(50) NOT NULL, - manufacturer_id bigint, - created date, - last_updated timestamp with time zone, - napalm_args jsonb, - description character varying(200) NOT NULL, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.dcim_platform OWNER TO netbox; - --- --- Name: dcim_platform_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_platform_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_platform_id_seq OWNER TO netbox; - --- --- Name: dcim_platform_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_platform_id_seq OWNED BY public.dcim_platform.id; - - --- --- Name: dcim_powerfeed; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_powerfeed ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - 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, - cable_id bigint, - power_panel_id bigint NOT NULL, - rack_id bigint, - custom_field_data jsonb NOT NULL, - _cable_peer_id integer, - _cable_peer_type_id integer, - _path_id bigint, - mark_connected boolean NOT NULL, - CONSTRAINT dcim_powerfeed__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), - 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 --- - -CREATE SEQUENCE public.dcim_powerfeed_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_powerfeed_id_seq OWNER TO netbox; - --- --- Name: dcim_powerfeed_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_powerfeed_id_seq OWNED BY public.dcim_powerfeed.id; - - --- --- Name: dcim_poweroutlet; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_poweroutlet ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - device_id bigint NOT NULL, - cable_id bigint, - description character varying(200) NOT NULL, - feed_leg character varying(50) NOT NULL, - power_port_id bigint, - type character varying(50) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - _cable_peer_id integer, - _cable_peer_type_id integer, - _path_id bigint, - created date, - custom_field_data jsonb NOT NULL, - last_updated timestamp with time zone, - mark_connected boolean NOT NULL, - CONSTRAINT dcim_poweroutlet__cable_peer_id_check CHECK ((_cable_peer_id >= 0)) -); - - -ALTER TABLE public.dcim_poweroutlet OWNER TO netbox; - --- --- Name: dcim_poweroutlet_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_poweroutlet_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_poweroutlet_id_seq OWNER TO netbox; - --- --- Name: dcim_poweroutlet_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_poweroutlet_id_seq OWNED BY public.dcim_poweroutlet.id; - - --- --- Name: dcim_poweroutlettemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_poweroutlettemplate ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - device_type_id bigint NOT NULL, - feed_leg character varying(50) NOT NULL, - power_port_id bigint, - type character varying(50) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - created date, - last_updated timestamp with time zone -); - - -ALTER TABLE public.dcim_poweroutlettemplate OWNER TO netbox; - --- --- Name: dcim_poweroutlettemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_poweroutlettemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_poweroutlettemplate_id_seq OWNER TO netbox; - --- --- Name: dcim_poweroutlettemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_poweroutlettemplate_id_seq OWNED BY public.dcim_poweroutlettemplate.id; - - --- --- Name: dcim_powerpanel; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_powerpanel ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - name character varying(100) NOT NULL, - location_id bigint, - site_id bigint NOT NULL, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.dcim_powerpanel OWNER TO netbox; - --- --- Name: dcim_powerpanel_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_powerpanel_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_powerpanel_id_seq OWNER TO netbox; - --- --- Name: dcim_powerpanel_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_powerpanel_id_seq OWNED BY public.dcim_powerpanel.id; - - --- --- Name: dcim_powerport; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_powerport ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - device_id bigint NOT NULL, - cable_id bigint, - description character varying(200) NOT NULL, - allocated_draw smallint, - maximum_draw smallint, - type character varying(50) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - _cable_peer_id integer, - _cable_peer_type_id integer, - _path_id bigint, - created date, - custom_field_data jsonb NOT NULL, - last_updated timestamp with time zone, - mark_connected boolean NOT NULL, - CONSTRAINT dcim_powerport__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), - 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 --- - -CREATE SEQUENCE public.dcim_powerport_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_powerport_id_seq OWNER TO netbox; - --- --- Name: dcim_powerport_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_powerport_id_seq OWNED BY public.dcim_powerport.id; - - --- --- Name: dcim_powerporttemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_powerporttemplate ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - device_type_id bigint NOT NULL, - allocated_draw smallint, - maximum_draw smallint, - type character varying(50) NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - created date, - last_updated timestamp with time zone, - 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 --- - -CREATE SEQUENCE public.dcim_powerporttemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_powerporttemplate_id_seq OWNER TO netbox; - --- --- Name: dcim_powerporttemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_powerporttemplate_id_seq OWNED BY public.dcim_powerporttemplate.id; - - --- --- Name: dcim_rack; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_rack ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - name character varying(100) NOT NULL, - facility_id character varying(50), - u_height smallint NOT NULL, - comments text NOT NULL, - location_id bigint, - site_id bigint NOT NULL, - tenant_id bigint, - type character varying(50) NOT NULL, - width smallint NOT NULL, - role_id bigint, - desc_units boolean NOT NULL, - serial character varying(50) NOT NULL, - status character varying(50) NOT NULL, - asset_tag character varying(50), - outer_depth smallint, - outer_unit character varying(50) NOT NULL, - outer_width smallint, - _name character varying(100) NOT NULL, - custom_field_data jsonb NOT NULL, - 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 --- - -CREATE SEQUENCE public.dcim_rack_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_rack_id_seq OWNER TO netbox; - --- --- Name: dcim_rack_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_rack_id_seq OWNED BY public.dcim_rack.id; - - --- --- Name: dcim_rackgroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_rackgroup_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_rackgroup_id_seq OWNER TO netbox; - --- --- Name: dcim_rackgroup_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_rackgroup_id_seq OWNED BY public.dcim_location.id; - - --- --- Name: dcim_rackreservation; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_rackreservation ( - id bigint NOT NULL, - units smallint[] NOT NULL, - created date, - description character varying(200) NOT NULL, - rack_id bigint NOT NULL, - user_id integer NOT NULL, - tenant_id bigint, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.dcim_rackreservation OWNER TO netbox; - --- --- Name: dcim_rackreservation_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_rackreservation_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_rackreservation_id_seq OWNER TO netbox; - --- --- Name: dcim_rackreservation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_rackreservation_id_seq OWNED BY public.dcim_rackreservation.id; - - --- --- Name: dcim_rackrole; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_rackrole ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - color character varying(6) NOT NULL, - created date, - last_updated timestamp with time zone, - description character varying(200) NOT NULL, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.dcim_rackrole OWNER TO netbox; - --- --- Name: dcim_rackrole_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_rackrole_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_rackrole_id_seq OWNER TO netbox; - --- --- Name: dcim_rackrole_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_rackrole_id_seq OWNED BY public.dcim_rackrole.id; - - --- --- Name: dcim_rearport; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_rearport ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - type character varying(50) NOT NULL, - positions smallint NOT NULL, - description character varying(200) NOT NULL, - device_id bigint NOT NULL, - cable_id bigint, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - _cable_peer_id integer, - _cable_peer_type_id integer, - created date, - custom_field_data jsonb NOT NULL, - last_updated timestamp with time zone, - mark_connected boolean NOT NULL, - CONSTRAINT dcim_rearport__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), - 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 --- - -CREATE SEQUENCE public.dcim_rearport_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_rearport_id_seq OWNER TO netbox; - --- --- Name: dcim_rearport_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_rearport_id_seq OWNED BY public.dcim_rearport.id; - - --- --- Name: dcim_rearporttemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_rearporttemplate ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - type character varying(50) NOT NULL, - positions smallint NOT NULL, - device_type_id bigint NOT NULL, - _name character varying(100) NOT NULL, - label character varying(64) NOT NULL, - description character varying(200) NOT NULL, - created date, - last_updated timestamp with time zone, - 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 --- - -CREATE SEQUENCE public.dcim_rearporttemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_rearporttemplate_id_seq OWNER TO netbox; - --- --- Name: dcim_rearporttemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_rearporttemplate_id_seq OWNED BY public.dcim_rearporttemplate.id; - - --- --- Name: dcim_region; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_region ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - lft integer NOT NULL, - rght integer NOT NULL, - tree_id integer NOT NULL, - level integer NOT NULL, - parent_id bigint, - created date, - last_updated timestamp with time zone, - description character varying(200) NOT NULL, - custom_field_data jsonb NOT NULL, - 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 --- - -CREATE SEQUENCE public.dcim_region_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_region_id_seq OWNER TO netbox; - --- --- Name: dcim_region_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_region_id_seq OWNED BY public.dcim_region.id; - - --- --- Name: dcim_site; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_site ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - facility character varying(50) NOT NULL, - asn bigint, - physical_address character varying(200) NOT NULL, - shipping_address character varying(200) NOT NULL, - comments text NOT NULL, - tenant_id bigint, - contact_email character varying(254) NOT NULL, - contact_name character varying(50) NOT NULL, - contact_phone character varying(20) NOT NULL, - region_id bigint, - description character varying(200) NOT NULL, - status character varying(50) NOT NULL, - time_zone character varying(63) NOT NULL, - latitude numeric(8,6), - longitude numeric(9,6), - _name character varying(100) NOT NULL, - custom_field_data jsonb NOT NULL, - group_id bigint -); - - -ALTER TABLE public.dcim_site OWNER TO netbox; - --- --- Name: dcim_site_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_site_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_site_id_seq OWNER TO netbox; - --- --- Name: dcim_site_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_site_id_seq OWNED BY public.dcim_site.id; - - --- --- Name: dcim_sitegroup; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_sitegroup ( - created date, - 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 --- - -CREATE SEQUENCE public.dcim_sitegroup_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_sitegroup_id_seq OWNER TO netbox; - --- --- Name: dcim_sitegroup_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_sitegroup_id_seq OWNED BY public.dcim_sitegroup.id; - - --- --- Name: dcim_virtualchassis; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.dcim_virtualchassis ( - id bigint NOT NULL, - domain character varying(30) NOT NULL, - master_id bigint, - created date, - last_updated timestamp with time zone, - name character varying(64) NOT NULL, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.dcim_virtualchassis OWNER TO netbox; - --- --- Name: dcim_virtualchassis_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.dcim_virtualchassis_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.dcim_virtualchassis_id_seq OWNER TO netbox; - --- --- Name: dcim_virtualchassis_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.dcim_virtualchassis_id_seq OWNED BY public.dcim_virtualchassis.id; - - --- --- 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 --- - -CREATE SEQUENCE public.django_admin_log_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.django_admin_log_id_seq OWNER TO netbox; - --- --- Name: django_admin_log_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.django_admin_log_id_seq OWNED BY public.django_admin_log.id; - - --- --- 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 --- - -CREATE SEQUENCE public.django_content_type_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.django_content_type_id_seq OWNER TO netbox; - --- --- Name: django_content_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.django_content_type_id_seq OWNED BY public.django_content_type.id; - - --- --- Name: django_migrations; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.django_migrations ( - id integer 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 --- - -CREATE SEQUENCE public.django_migrations_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.django_migrations_id_seq OWNER TO netbox; - --- --- Name: django_migrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.django_migrations_id_seq OWNED BY public.django_migrations.id; - - --- --- 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_configcontext; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext ( - 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, - created date, - last_updated timestamp with time zone, - 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 integer 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 --- - -CREATE SEQUENCE public.extras_configcontext_cluster_groups_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_configcontext_cluster_groups_id_seq OWNER TO netbox; - --- --- Name: extras_configcontext_cluster_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_configcontext_cluster_groups_id_seq OWNED BY public.extras_configcontext_cluster_groups.id; - - --- --- Name: extras_configcontext_clusters; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_clusters ( - id integer 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 --- - -CREATE SEQUENCE public.extras_configcontext_clusters_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_configcontext_clusters_id_seq OWNER TO netbox; - --- --- Name: extras_configcontext_clusters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_configcontext_clusters_id_seq OWNED BY public.extras_configcontext_clusters.id; - - --- --- Name: extras_configcontext_device_types; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_device_types ( - id integer 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 --- - -CREATE SEQUENCE public.extras_configcontext_device_types_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_configcontext_device_types_id_seq OWNER TO netbox; - --- --- Name: extras_configcontext_device_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_configcontext_device_types_id_seq OWNED BY public.extras_configcontext_device_types.id; - - --- --- Name: extras_configcontext_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.extras_configcontext_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_configcontext_id_seq OWNER TO netbox; - --- --- Name: extras_configcontext_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_configcontext_id_seq OWNED BY public.extras_configcontext.id; - - --- --- Name: extras_configcontext_platforms; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_platforms ( - id integer 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 --- - -CREATE SEQUENCE public.extras_configcontext_platforms_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_configcontext_platforms_id_seq OWNER TO netbox; - --- --- Name: extras_configcontext_platforms_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_configcontext_platforms_id_seq OWNED BY public.extras_configcontext_platforms.id; - - --- --- Name: extras_configcontext_regions; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_regions ( - id integer 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 --- - -CREATE SEQUENCE public.extras_configcontext_regions_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_configcontext_regions_id_seq OWNER TO netbox; - --- --- Name: extras_configcontext_regions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_configcontext_regions_id_seq OWNED BY public.extras_configcontext_regions.id; - - --- --- Name: extras_configcontext_roles; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_roles ( - id integer 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 --- - -CREATE SEQUENCE public.extras_configcontext_roles_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_configcontext_roles_id_seq OWNER TO netbox; - --- --- Name: extras_configcontext_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_configcontext_roles_id_seq OWNED BY public.extras_configcontext_roles.id; - - --- --- Name: extras_configcontext_site_groups; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_site_groups ( - id integer 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 --- - -CREATE SEQUENCE public.extras_configcontext_site_groups_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_configcontext_site_groups_id_seq OWNER TO netbox; - --- --- Name: extras_configcontext_site_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_configcontext_site_groups_id_seq OWNED BY public.extras_configcontext_site_groups.id; - - --- --- Name: extras_configcontext_sites; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_sites ( - id integer 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 --- - -CREATE SEQUENCE public.extras_configcontext_sites_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_configcontext_sites_id_seq OWNER TO netbox; - --- --- Name: extras_configcontext_sites_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_configcontext_sites_id_seq OWNED BY public.extras_configcontext_sites.id; - - --- --- Name: extras_configcontext_tags; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_tags ( - id integer 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 --- - -CREATE SEQUENCE public.extras_configcontext_tags_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_configcontext_tags_id_seq OWNER TO netbox; - --- --- Name: extras_configcontext_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_configcontext_tags_id_seq OWNED BY public.extras_configcontext_tags.id; - - --- --- Name: extras_configcontext_tenant_groups; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_tenant_groups ( - id integer 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 --- - -CREATE SEQUENCE public.extras_configcontext_tenant_groups_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_configcontext_tenant_groups_id_seq OWNER TO netbox; - --- --- Name: extras_configcontext_tenant_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_configcontext_tenant_groups_id_seq OWNED BY public.extras_configcontext_tenant_groups.id; - - --- --- Name: extras_configcontext_tenants; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_configcontext_tenants ( - id integer 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 --- - -CREATE SEQUENCE public.extras_configcontext_tenants_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_configcontext_tenants_id_seq OWNER TO netbox; - --- --- Name: extras_configcontext_tenants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_configcontext_tenants_id_seq OWNED BY public.extras_configcontext_tenants.id; - - --- --- 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, - weight smallint NOT NULL, - filter_logic character varying(50) NOT NULL, - choices character varying(100)[], - "default" jsonb, - validation_maximum integer, - validation_minimum integer, - validation_regex character varying(500) NOT NULL, - CONSTRAINT extras_customfield_validation_maximum_check CHECK ((validation_maximum >= 0)), - CONSTRAINT extras_customfield_validation_minimum_check CHECK ((validation_minimum >= 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 integer 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_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.extras_customfield_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_customfield_id_seq OWNER TO netbox; - --- --- Name: extras_customfield_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_customfield_id_seq OWNED BY public.extras_customfield.id; - - --- --- Name: extras_customfield_obj_type_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.extras_customfield_obj_type_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_customfield_obj_type_id_seq OWNER TO netbox; - --- --- Name: extras_customfield_obj_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_customfield_obj_type_id_seq OWNED BY public.extras_customfield_content_types.id; - - --- --- 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 character varying(500) NOT NULL, - link_url character varying(500) 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, - content_type_id integer NOT NULL, - CONSTRAINT extras_customlink_weight_check CHECK ((weight >= 0)) -); - - -ALTER TABLE public.extras_customlink OWNER TO netbox; - --- --- Name: extras_customlink_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.extras_customlink_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_customlink_id_seq OWNER TO netbox; - --- --- Name: extras_customlink_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_customlink_id_seq OWNED BY public.extras_customlink.id; - - --- --- Name: extras_exporttemplate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_exporttemplate ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - template_code text NOT NULL, - mime_type character varying(50) NOT NULL, - file_extension character varying(15) NOT NULL, - content_type_id integer NOT NULL, - description character varying(200) NOT NULL, - as_attachment boolean NOT NULL -); - - -ALTER TABLE public.extras_exporttemplate OWNER TO netbox; - --- --- Name: extras_exporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.extras_exporttemplate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_exporttemplate_id_seq OWNER TO netbox; - --- --- Name: extras_exporttemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_exporttemplate_id_seq OWNED BY public.extras_exporttemplate.id; - - --- --- Name: extras_imageattachment; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_imageattachment ( - id bigint NOT NULL, - object_id integer 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 NOT NULL, - content_type_id integer NOT NULL, - 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 --- - -CREATE SEQUENCE public.extras_imageattachment_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_imageattachment_id_seq OWNER TO netbox; - --- --- Name: extras_imageattachment_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_imageattachment_id_seq OWNED BY public.extras_imageattachment.id; - - --- --- 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 -); - - -ALTER TABLE public.extras_jobresult OWNER TO netbox; - --- --- Name: extras_jobresult_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.extras_jobresult_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_jobresult_id_seq OWNER TO netbox; - --- --- Name: extras_jobresult_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_jobresult_id_seq OWNED BY public.extras_jobresult.id; - - --- --- Name: extras_journalentry; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_journalentry ( - id bigint NOT NULL, - assigned_object_id integer NOT NULL, - created timestamp with time zone NOT NULL, - last_updated 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, - 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 --- - -CREATE SEQUENCE public.extras_journalentry_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_journalentry_id_seq OWNER TO netbox; - --- --- Name: extras_journalentry_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_journalentry_id_seq OWNED BY public.extras_journalentry.id; - - --- --- 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 integer NOT NULL, - related_object_id integer, - object_repr character varying(200) NOT NULL, - postchange_data jsonb, - changed_object_type_id integer NOT NULL, - related_object_type_id integer, - user_id integer, - prechange_data jsonb, - 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 --- - -CREATE SEQUENCE public.extras_objectchange_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_objectchange_id_seq OWNER TO netbox; - --- --- Name: extras_objectchange_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_objectchange_id_seq OWNED BY public.extras_objectchange.id; - - --- --- Name: extras_tag; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_tag ( - 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, - created date, - last_updated timestamp with time zone -); - - -ALTER TABLE public.extras_tag OWNER TO netbox; - --- --- Name: extras_tag_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.extras_tag_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_tag_id_seq OWNER TO netbox; - --- --- Name: extras_tag_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_tag_id_seq OWNED BY public.extras_tag.id; - - --- --- Name: extras_taggeditem; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.extras_taggeditem ( - id bigint NOT NULL, - object_id integer 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 --- - -CREATE SEQUENCE public.extras_taggeditem_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_taggeditem_id_seq OWNER TO netbox; - --- --- Name: extras_taggeditem_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_taggeditem_id_seq OWNED BY public.extras_taggeditem.id; - - --- --- 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, - http_content_type character varying(100) NOT NULL, - secret character varying(255) NOT NULL, - enabled boolean NOT NULL, - ssl_verification boolean NOT NULL, - ca_file_path character varying(4096), - additional_headers text NOT NULL, - http_method character varying(30) NOT NULL, - body_template text NOT NULL -); - - -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 integer 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_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.extras_webhook_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_webhook_id_seq OWNER TO netbox; - --- --- Name: extras_webhook_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_webhook_id_seq OWNED BY public.extras_webhook.id; - - --- --- Name: extras_webhook_obj_type_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.extras_webhook_obj_type_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.extras_webhook_obj_type_id_seq OWNER TO netbox; - --- --- Name: extras_webhook_obj_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.extras_webhook_obj_type_id_seq OWNED BY public.extras_webhook_content_types.id; - - --- --- Name: ipam_aggregate; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_aggregate ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - prefix cidr NOT NULL, - date_added date, - description character varying(200) NOT NULL, - rir_id bigint NOT NULL, - custom_field_data jsonb NOT NULL, - tenant_id bigint -); - - -ALTER TABLE public.ipam_aggregate OWNER TO netbox; - --- --- Name: ipam_aggregate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.ipam_aggregate_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.ipam_aggregate_id_seq OWNER TO netbox; - --- --- Name: ipam_aggregate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.ipam_aggregate_id_seq OWNED BY public.ipam_aggregate.id; - - --- --- Name: ipam_ipaddress; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_ipaddress ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - address inet NOT NULL, - description character varying(200) NOT NULL, - assigned_object_id integer, - nat_inside_id bigint, - vrf_id bigint, - tenant_id bigint, - status character varying(50) NOT NULL, - role character varying(50) NOT NULL, - dns_name character varying(255) NOT NULL, - assigned_object_type_id integer, - custom_field_data jsonb NOT NULL, - CONSTRAINT ipam_ipaddress_assigned_object_id_cff64474_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 --- - -CREATE SEQUENCE public.ipam_ipaddress_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.ipam_ipaddress_id_seq OWNER TO netbox; - --- --- Name: ipam_ipaddress_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.ipam_ipaddress_id_seq OWNED BY public.ipam_ipaddress.id; - - --- --- Name: ipam_prefix; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_prefix ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - prefix cidr NOT NULL, - status character varying(50) NOT NULL, - description character varying(200) NOT NULL, - role_id bigint, - site_id bigint, - vlan_id bigint, - vrf_id bigint, - tenant_id bigint, - is_pool boolean NOT NULL, - custom_field_data jsonb NOT NULL, - _children bigint NOT NULL, - _depth smallint 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 --- - -CREATE SEQUENCE public.ipam_prefix_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.ipam_prefix_id_seq OWNER TO netbox; - --- --- Name: ipam_prefix_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.ipam_prefix_id_seq OWNED BY public.ipam_prefix.id; - - --- --- Name: ipam_rir; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_rir ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - is_private boolean NOT NULL, - created date, - last_updated timestamp with time zone, - description character varying(200) NOT NULL, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.ipam_rir OWNER TO netbox; - --- --- Name: ipam_rir_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.ipam_rir_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.ipam_rir_id_seq OWNER TO netbox; - --- --- Name: ipam_rir_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.ipam_rir_id_seq OWNED BY public.ipam_rir.id; - - --- --- Name: ipam_role; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_role ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - weight smallint NOT NULL, - created date, - last_updated timestamp with time zone, - description character varying(200) NOT NULL, - custom_field_data jsonb 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 --- - -CREATE SEQUENCE public.ipam_role_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.ipam_role_id_seq OWNER TO netbox; - --- --- Name: ipam_role_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.ipam_role_id_seq OWNED BY public.ipam_role.id; - - --- --- Name: ipam_routetarget; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_routetarget ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - name character varying(21) NOT NULL, - description character varying(200) NOT NULL, - tenant_id bigint -); - - -ALTER TABLE public.ipam_routetarget OWNER TO netbox; - --- --- Name: ipam_routetarget_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.ipam_routetarget_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.ipam_routetarget_id_seq OWNER TO netbox; - --- --- Name: ipam_routetarget_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.ipam_routetarget_id_seq OWNED BY public.ipam_routetarget.id; - - --- --- Name: ipam_service; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_service ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - name character varying(100) NOT NULL, - protocol character varying(50) NOT NULL, - description character varying(200) NOT NULL, - device_id bigint, - virtual_machine_id bigint, - custom_field_data jsonb NOT NULL, - ports integer[] NOT NULL -); - - -ALTER TABLE public.ipam_service OWNER TO netbox; - --- --- Name: ipam_service_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.ipam_service_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.ipam_service_id_seq OWNER TO netbox; - --- --- Name: ipam_service_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.ipam_service_id_seq OWNED BY public.ipam_service.id; - - --- --- Name: ipam_service_ipaddresses; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_service_ipaddresses ( - id integer 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 --- - -CREATE SEQUENCE public.ipam_service_ipaddresses_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.ipam_service_ipaddresses_id_seq OWNER TO netbox; - --- --- Name: ipam_service_ipaddresses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.ipam_service_ipaddresses_id_seq OWNED BY public.ipam_service_ipaddresses.id; - - --- --- Name: ipam_vlan; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_vlan ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - vid smallint NOT NULL, - name character varying(64) NOT NULL, - status character varying(50) NOT NULL, - role_id bigint, - site_id bigint, - group_id bigint, - description character varying(200) NOT NULL, - tenant_id bigint, - custom_field_data jsonb 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 --- - -CREATE SEQUENCE public.ipam_vlan_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.ipam_vlan_id_seq OWNER TO netbox; - --- --- Name: ipam_vlan_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.ipam_vlan_id_seq OWNED BY public.ipam_vlan.id; - - --- --- Name: ipam_vlangroup; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_vlangroup ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - scope_id bigint, - created date, - last_updated timestamp with time zone, - description character varying(200) NOT NULL, - custom_field_data jsonb NOT NULL, - scope_type_id integer, - CONSTRAINT ipam_vlangroup_scope_id_0c4b1fd6_check CHECK ((scope_id >= 0)) -); - - -ALTER TABLE public.ipam_vlangroup OWNER TO netbox; - --- --- Name: ipam_vlangroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.ipam_vlangroup_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.ipam_vlangroup_id_seq OWNER TO netbox; - --- --- Name: ipam_vlangroup_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.ipam_vlangroup_id_seq OWNED BY public.ipam_vlangroup.id; - - --- --- Name: ipam_vrf; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_vrf ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - name character varying(100) NOT NULL, - rd character varying(21), - description character varying(200) NOT NULL, - enforce_unique boolean NOT NULL, - tenant_id bigint, - custom_field_data jsonb 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 integer 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 --- - -CREATE SEQUENCE public.ipam_vrf_export_targets_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.ipam_vrf_export_targets_id_seq OWNER TO netbox; - --- --- Name: ipam_vrf_export_targets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.ipam_vrf_export_targets_id_seq OWNED BY public.ipam_vrf_export_targets.id; - - --- --- Name: ipam_vrf_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.ipam_vrf_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.ipam_vrf_id_seq OWNER TO netbox; - --- --- Name: ipam_vrf_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.ipam_vrf_id_seq OWNED BY public.ipam_vrf.id; - - --- --- Name: ipam_vrf_import_targets; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.ipam_vrf_import_targets ( - id integer 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 --- - -CREATE SEQUENCE public.ipam_vrf_import_targets_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.ipam_vrf_import_targets_id_seq OWNER TO netbox; - --- --- Name: ipam_vrf_import_targets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.ipam_vrf_import_targets_id_seq OWNED BY public.ipam_vrf_import_targets.id; - - --- --- Name: secrets_secret; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.secrets_secret ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - name character varying(100) NOT NULL, - ciphertext bytea NOT NULL, - hash character varying(128) NOT NULL, - role_id bigint NOT NULL, - custom_field_data jsonb NOT NULL, - assigned_object_id integer NOT NULL, - assigned_object_type_id integer NOT NULL, - CONSTRAINT secrets_secret_assigned_object_id_check CHECK ((assigned_object_id >= 0)) -); - - -ALTER TABLE public.secrets_secret OWNER TO netbox; - --- --- Name: secrets_secret_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.secrets_secret_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.secrets_secret_id_seq OWNER TO netbox; - --- --- Name: secrets_secret_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.secrets_secret_id_seq OWNED BY public.secrets_secret.id; - - --- --- Name: secrets_secretrole; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.secrets_secretrole ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - created date, - last_updated timestamp with time zone, - description character varying(200) NOT NULL, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.secrets_secretrole OWNER TO netbox; - --- --- Name: secrets_secretrole_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.secrets_secretrole_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.secrets_secretrole_id_seq OWNER TO netbox; - --- --- Name: secrets_secretrole_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.secrets_secretrole_id_seq OWNED BY public.secrets_secretrole.id; - - --- --- Name: secrets_sessionkey; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.secrets_sessionkey ( - id bigint NOT NULL, - cipher bytea NOT NULL, - hash character varying(128) NOT NULL, - created timestamp with time zone NOT NULL, - userkey_id bigint NOT NULL -); - - -ALTER TABLE public.secrets_sessionkey OWNER TO netbox; - --- --- Name: secrets_sessionkey_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.secrets_sessionkey_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.secrets_sessionkey_id_seq OWNER TO netbox; - --- --- Name: secrets_sessionkey_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.secrets_sessionkey_id_seq OWNED BY public.secrets_sessionkey.id; - - --- --- Name: secrets_userkey; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.secrets_userkey ( - id bigint NOT NULL, - created date NOT NULL, - last_updated timestamp with time zone NOT NULL, - public_key text NOT NULL, - master_key_cipher bytea, - user_id integer NOT NULL -); - - -ALTER TABLE public.secrets_userkey OWNER TO netbox; - --- --- Name: secrets_userkey_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.secrets_userkey_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.secrets_userkey_id_seq OWNER TO netbox; - --- --- Name: secrets_userkey_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.secrets_userkey_id_seq OWNED BY public.secrets_userkey.id; - - --- --- 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 --- - -CREATE SEQUENCE public.taggit_tag_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.taggit_tag_id_seq OWNER TO netbox; - --- --- Name: taggit_tag_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.taggit_tag_id_seq OWNED BY public.taggit_tag.id; - - --- --- 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 --- - -CREATE SEQUENCE public.taggit_taggeditem_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.taggit_taggeditem_id_seq OWNER TO netbox; - --- --- Name: taggit_taggeditem_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.taggit_taggeditem_id_seq OWNED BY public.taggit_taggeditem.id; - - --- --- Name: tenancy_tenant; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.tenancy_tenant ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - 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, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.tenancy_tenant OWNER TO netbox; - --- --- Name: tenancy_tenant_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.tenancy_tenant_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.tenancy_tenant_id_seq OWNER TO netbox; - --- --- Name: tenancy_tenant_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.tenancy_tenant_id_seq OWNED BY public.tenancy_tenant.id; - - --- --- Name: tenancy_tenantgroup; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.tenancy_tenantgroup ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - created date, - last_updated timestamp with time zone, - parent_id bigint, - level integer NOT NULL, - lft integer NOT NULL, - rght integer NOT NULL, - tree_id integer NOT NULL, - description character varying(200) NOT NULL, - custom_field_data jsonb NOT NULL, - 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 --- - -CREATE SEQUENCE public.tenancy_tenantgroup_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.tenancy_tenantgroup_id_seq OWNER TO netbox; - --- --- Name: tenancy_tenantgroup_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.tenancy_tenantgroup_id_seq OWNED BY public.tenancy_tenantgroup.id; - - --- --- 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, - constraints jsonb, - actions character varying(30)[] NOT NULL -); - - -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 integer 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 --- - -CREATE SEQUENCE public.users_objectpermission_groups_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.users_objectpermission_groups_id_seq OWNER TO netbox; - --- --- Name: users_objectpermission_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.users_objectpermission_groups_id_seq OWNED BY public.users_objectpermission_groups.id; - - --- --- Name: users_objectpermission_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.users_objectpermission_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.users_objectpermission_id_seq OWNER TO netbox; - --- --- Name: users_objectpermission_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.users_objectpermission_id_seq OWNED BY public.users_objectpermission.id; - - --- --- Name: users_objectpermission_object_types; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.users_objectpermission_object_types ( - id integer 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 --- - -CREATE SEQUENCE public.users_objectpermission_object_types_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.users_objectpermission_object_types_id_seq OWNER TO netbox; - --- --- Name: users_objectpermission_object_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.users_objectpermission_object_types_id_seq OWNED BY public.users_objectpermission_object_types.id; - - --- --- Name: users_objectpermission_users; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.users_objectpermission_users ( - id integer 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 --- - -CREATE SEQUENCE public.users_objectpermission_users_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.users_objectpermission_users_id_seq OWNER TO netbox; - --- --- Name: users_objectpermission_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.users_objectpermission_users_id_seq OWNED BY public.users_objectpermission_users.id; - - --- --- 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 -); - - -ALTER TABLE public.users_token OWNER TO netbox; - --- --- Name: users_token_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.users_token_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.users_token_id_seq OWNER TO netbox; - --- --- Name: users_token_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.users_token_id_seq OWNED BY public.users_token.id; - - --- --- Name: users_userconfig; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.users_userconfig ( - id integer 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 --- - -CREATE SEQUENCE public.users_userconfig_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.users_userconfig_id_seq OWNER TO netbox; - --- --- Name: users_userconfig_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.users_userconfig_id_seq OWNED BY public.users_userconfig.id; - - --- --- Name: virtualization_cluster; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.virtualization_cluster ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - name character varying(100) NOT NULL, - comments text NOT NULL, - group_id bigint, - type_id bigint NOT NULL, - site_id bigint, - tenant_id bigint, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.virtualization_cluster OWNER TO netbox; - --- --- Name: virtualization_cluster_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.virtualization_cluster_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.virtualization_cluster_id_seq OWNER TO netbox; - --- --- Name: virtualization_cluster_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.virtualization_cluster_id_seq OWNED BY public.virtualization_cluster.id; - - --- --- Name: virtualization_clustergroup; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.virtualization_clustergroup ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - created date, - last_updated timestamp with time zone, - description character varying(200) NOT NULL, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.virtualization_clustergroup OWNER TO netbox; - --- --- Name: virtualization_clustergroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.virtualization_clustergroup_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.virtualization_clustergroup_id_seq OWNER TO netbox; - --- --- Name: virtualization_clustergroup_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.virtualization_clustergroup_id_seq OWNED BY public.virtualization_clustergroup.id; - - --- --- Name: virtualization_clustertype; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.virtualization_clustertype ( - id bigint NOT NULL, - name character varying(100) NOT NULL, - slug character varying(100) NOT NULL, - created date, - last_updated timestamp with time zone, - description character varying(200) NOT NULL, - custom_field_data jsonb NOT NULL -); - - -ALTER TABLE public.virtualization_clustertype OWNER TO netbox; - --- --- Name: virtualization_clustertype_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox --- - -CREATE SEQUENCE public.virtualization_clustertype_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.virtualization_clustertype_id_seq OWNER TO netbox; - --- --- Name: virtualization_clustertype_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.virtualization_clustertype_id_seq OWNED BY public.virtualization_clustertype.id; - - --- --- Name: virtualization_virtualmachine; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.virtualization_virtualmachine ( - id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - name character varying(64) NOT NULL, - vcpus numeric(6,2), - memory integer, - disk integer, - comments text NOT NULL, - cluster_id bigint NOT NULL, - platform_id bigint, - primary_ip4_id bigint, - primary_ip6_id bigint, - tenant_id bigint, - status character varying(50) NOT NULL, - role_id bigint, - local_context_data jsonb, - custom_field_data jsonb NOT NULL, - _name character varying(100) 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 --- - -CREATE SEQUENCE public.virtualization_virtualmachine_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.virtualization_virtualmachine_id_seq OWNER TO netbox; - --- --- Name: virtualization_virtualmachine_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.virtualization_virtualmachine_id_seq OWNED BY public.virtualization_virtualmachine.id; - - --- --- Name: virtualization_vminterface; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.virtualization_vminterface ( - id bigint NOT NULL, - name character varying(64) NOT NULL, - _name character varying(100) NOT NULL, - enabled boolean NOT NULL, - mac_address macaddr, - mtu integer, - mode character varying(50) NOT NULL, - description character varying(200) NOT NULL, - untagged_vlan_id bigint, - virtual_machine_id bigint NOT NULL, - created date, - last_updated timestamp with time zone, - custom_field_data jsonb NOT NULL, - parent_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 --- - -CREATE SEQUENCE public.virtualization_vminterface_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.virtualization_vminterface_id_seq OWNER TO netbox; - --- --- Name: virtualization_vminterface_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.virtualization_vminterface_id_seq OWNED BY public.virtualization_vminterface.id; - - --- --- Name: virtualization_vminterface_tagged_vlans; Type: TABLE; Schema: public; Owner: netbox --- - -CREATE TABLE public.virtualization_vminterface_tagged_vlans ( - id integer 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 --- - -CREATE SEQUENCE public.virtualization_vminterface_tagged_vlans_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE public.virtualization_vminterface_tagged_vlans_id_seq OWNER TO netbox; - --- --- Name: virtualization_vminterface_tagged_vlans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox --- - -ALTER SEQUENCE public.virtualization_vminterface_tagged_vlans_id_seq OWNED BY public.virtualization_vminterface_tagged_vlans.id; - - --- --- Name: auth_group id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_group ALTER COLUMN id SET DEFAULT nextval('public.auth_group_id_seq'::regclass); - - --- --- Name: auth_group_permissions id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_group_permissions ALTER COLUMN id SET DEFAULT nextval('public.auth_group_permissions_id_seq'::regclass); - - --- --- Name: auth_permission id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_permission ALTER COLUMN id SET DEFAULT nextval('public.auth_permission_id_seq'::regclass); - - --- --- Name: auth_user id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_user ALTER COLUMN id SET DEFAULT nextval('public.auth_user_id_seq'::regclass); - - --- --- Name: auth_user_groups id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_user_groups ALTER COLUMN id SET DEFAULT nextval('public.auth_user_groups_id_seq'::regclass); - - --- --- Name: auth_user_user_permissions id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.auth_user_user_permissions ALTER COLUMN id SET DEFAULT nextval('public.auth_user_user_permissions_id_seq'::regclass); - - --- --- Name: circuits_circuit id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuit ALTER COLUMN id SET DEFAULT nextval('public.circuits_circuit_id_seq'::regclass); - - --- --- Name: circuits_circuittermination id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuittermination ALTER COLUMN id SET DEFAULT nextval('public.circuits_circuittermination_id_seq'::regclass); - - --- --- Name: circuits_circuittype id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuittype ALTER COLUMN id SET DEFAULT nextval('public.circuits_circuittype_id_seq'::regclass); - - --- --- Name: circuits_provider id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_provider ALTER COLUMN id SET DEFAULT nextval('public.circuits_provider_id_seq'::regclass); - - --- --- Name: circuits_providernetwork id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_providernetwork ALTER COLUMN id SET DEFAULT nextval('public.circuits_providernetwork_id_seq'::regclass); - - --- --- Name: dcim_cable id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cable ALTER COLUMN id SET DEFAULT nextval('public.dcim_cable_id_seq'::regclass); - - --- --- Name: dcim_cablepath id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cablepath ALTER COLUMN id SET DEFAULT nextval('public.dcim_cablepath_id_seq'::regclass); - - --- --- Name: dcim_consoleport id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleport ALTER COLUMN id SET DEFAULT nextval('public.dcim_consoleport_id_seq'::regclass); - - --- --- Name: dcim_consoleporttemplate id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleporttemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_consoleporttemplate_id_seq'::regclass); - - --- --- Name: dcim_consoleserverport id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverport ALTER COLUMN id SET DEFAULT nextval('public.dcim_consoleserverport_id_seq'::regclass); - - --- --- Name: dcim_consoleserverporttemplate id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverporttemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_consoleserverporttemplate_id_seq'::regclass); - - --- --- Name: dcim_device id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device ALTER COLUMN id SET DEFAULT nextval('public.dcim_device_id_seq'::regclass); - - --- --- Name: dcim_devicebay id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicebay ALTER COLUMN id SET DEFAULT nextval('public.dcim_devicebay_id_seq'::regclass); - - --- --- Name: dcim_devicebaytemplate id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicebaytemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_devicebaytemplate_id_seq'::regclass); - - --- --- Name: dcim_devicerole id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicerole ALTER COLUMN id SET DEFAULT nextval('public.dcim_devicerole_id_seq'::regclass); - - --- --- Name: dcim_devicetype id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicetype ALTER COLUMN id SET DEFAULT nextval('public.dcim_devicetype_id_seq'::regclass); - - --- --- Name: dcim_frontport id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontport ALTER COLUMN id SET DEFAULT nextval('public.dcim_frontport_id_seq'::regclass); - - --- --- Name: dcim_frontporttemplate id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontporttemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_frontporttemplate_id_seq'::regclass); - - --- --- Name: dcim_interface id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface ALTER COLUMN id SET DEFAULT nextval('public.dcim_interface_id_seq'::regclass); - - --- --- Name: dcim_interface_tagged_vlans id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface_tagged_vlans ALTER COLUMN id SET DEFAULT nextval('public.dcim_interface_tagged_vlans_id_seq'::regclass); - - --- --- Name: dcim_interfacetemplate id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interfacetemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_interfacetemplate_id_seq'::regclass); - - --- --- Name: dcim_inventoryitem id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitem ALTER COLUMN id SET DEFAULT nextval('public.dcim_inventoryitem_id_seq'::regclass); - - --- --- Name: dcim_location id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_location ALTER COLUMN id SET DEFAULT nextval('public.dcim_rackgroup_id_seq'::regclass); - - --- --- Name: dcim_manufacturer id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_manufacturer ALTER COLUMN id SET DEFAULT nextval('public.dcim_manufacturer_id_seq'::regclass); - - --- --- Name: dcim_platform id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_platform ALTER COLUMN id SET DEFAULT nextval('public.dcim_platform_id_seq'::regclass); - - --- --- Name: dcim_powerfeed id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerfeed ALTER COLUMN id SET DEFAULT nextval('public.dcim_powerfeed_id_seq'::regclass); - - --- --- Name: dcim_poweroutlet id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlet ALTER COLUMN id SET DEFAULT nextval('public.dcim_poweroutlet_id_seq'::regclass); - - --- --- Name: dcim_poweroutlettemplate id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlettemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_poweroutlettemplate_id_seq'::regclass); - - --- --- Name: dcim_powerpanel id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerpanel ALTER COLUMN id SET DEFAULT nextval('public.dcim_powerpanel_id_seq'::regclass); - - --- --- Name: dcim_powerport id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerport ALTER COLUMN id SET DEFAULT nextval('public.dcim_powerport_id_seq'::regclass); - - --- --- Name: dcim_powerporttemplate id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerporttemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_powerporttemplate_id_seq'::regclass); - - --- --- Name: dcim_rack id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rack ALTER COLUMN id SET DEFAULT nextval('public.dcim_rack_id_seq'::regclass); - - --- --- Name: dcim_rackreservation id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rackreservation ALTER COLUMN id SET DEFAULT nextval('public.dcim_rackreservation_id_seq'::regclass); - - --- --- Name: dcim_rackrole id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rackrole ALTER COLUMN id SET DEFAULT nextval('public.dcim_rackrole_id_seq'::regclass); - - --- --- Name: dcim_rearport id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearport ALTER COLUMN id SET DEFAULT nextval('public.dcim_rearport_id_seq'::regclass); - - --- --- Name: dcim_rearporttemplate id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearporttemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_rearporttemplate_id_seq'::regclass); - - --- --- Name: dcim_region id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_region ALTER COLUMN id SET DEFAULT nextval('public.dcim_region_id_seq'::regclass); - - --- --- Name: dcim_site id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_site ALTER COLUMN id SET DEFAULT nextval('public.dcim_site_id_seq'::regclass); - - --- --- Name: dcim_sitegroup id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_sitegroup ALTER COLUMN id SET DEFAULT nextval('public.dcim_sitegroup_id_seq'::regclass); - - --- --- Name: dcim_virtualchassis id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_virtualchassis ALTER COLUMN id SET DEFAULT nextval('public.dcim_virtualchassis_id_seq'::regclass); - - --- --- Name: django_admin_log id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.django_admin_log ALTER COLUMN id SET DEFAULT nextval('public.django_admin_log_id_seq'::regclass); - - --- --- Name: django_content_type id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.django_content_type ALTER COLUMN id SET DEFAULT nextval('public.django_content_type_id_seq'::regclass); - - --- --- Name: django_migrations id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.django_migrations ALTER COLUMN id SET DEFAULT nextval('public.django_migrations_id_seq'::regclass); - - --- --- Name: extras_configcontext id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_id_seq'::regclass); - - --- --- Name: extras_configcontext_cluster_groups id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_cluster_groups ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_cluster_groups_id_seq'::regclass); - - --- --- Name: extras_configcontext_clusters id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_clusters ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_clusters_id_seq'::regclass); - - --- --- Name: extras_configcontext_device_types id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_device_types ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_device_types_id_seq'::regclass); - - --- --- Name: extras_configcontext_platforms id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_platforms ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_platforms_id_seq'::regclass); - - --- --- Name: extras_configcontext_regions id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_regions ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_regions_id_seq'::regclass); - - --- --- Name: extras_configcontext_roles id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_roles ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_roles_id_seq'::regclass); - - --- --- Name: extras_configcontext_site_groups id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_site_groups ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_site_groups_id_seq'::regclass); - - --- --- Name: extras_configcontext_sites id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_sites ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_sites_id_seq'::regclass); - - --- --- Name: extras_configcontext_tags id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_tags ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_tags_id_seq'::regclass); - - --- --- Name: extras_configcontext_tenant_groups id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_tenant_groups ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_tenant_groups_id_seq'::regclass); - - --- --- Name: extras_configcontext_tenants id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_configcontext_tenants ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_tenants_id_seq'::regclass); - - --- --- Name: extras_customfield id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customfield ALTER COLUMN id SET DEFAULT nextval('public.extras_customfield_id_seq'::regclass); - - --- --- Name: extras_customfield_content_types id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customfield_content_types ALTER COLUMN id SET DEFAULT nextval('public.extras_customfield_obj_type_id_seq'::regclass); - - --- --- Name: extras_customlink id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customlink ALTER COLUMN id SET DEFAULT nextval('public.extras_customlink_id_seq'::regclass); - - --- --- Name: extras_exporttemplate id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_exporttemplate ALTER COLUMN id SET DEFAULT nextval('public.extras_exporttemplate_id_seq'::regclass); - - --- --- Name: extras_imageattachment id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_imageattachment ALTER COLUMN id SET DEFAULT nextval('public.extras_imageattachment_id_seq'::regclass); - - --- --- Name: extras_jobresult id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_jobresult ALTER COLUMN id SET DEFAULT nextval('public.extras_jobresult_id_seq'::regclass); - - --- --- Name: extras_journalentry id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_journalentry ALTER COLUMN id SET DEFAULT nextval('public.extras_journalentry_id_seq'::regclass); - - --- --- Name: extras_objectchange id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_objectchange ALTER COLUMN id SET DEFAULT nextval('public.extras_objectchange_id_seq'::regclass); - - --- --- Name: extras_tag id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_tag ALTER COLUMN id SET DEFAULT nextval('public.extras_tag_id_seq'::regclass); - - --- --- Name: extras_taggeditem id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_taggeditem ALTER COLUMN id SET DEFAULT nextval('public.extras_taggeditem_id_seq'::regclass); - - --- --- Name: extras_webhook id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_webhook ALTER COLUMN id SET DEFAULT nextval('public.extras_webhook_id_seq'::regclass); - - --- --- Name: extras_webhook_content_types id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_webhook_content_types ALTER COLUMN id SET DEFAULT nextval('public.extras_webhook_obj_type_id_seq'::regclass); - - --- --- Name: ipam_aggregate id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_aggregate ALTER COLUMN id SET DEFAULT nextval('public.ipam_aggregate_id_seq'::regclass); - - --- --- Name: ipam_ipaddress id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_ipaddress ALTER COLUMN id SET DEFAULT nextval('public.ipam_ipaddress_id_seq'::regclass); - - --- --- Name: ipam_prefix id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_prefix ALTER COLUMN id SET DEFAULT nextval('public.ipam_prefix_id_seq'::regclass); - - --- --- Name: ipam_rir id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_rir ALTER COLUMN id SET DEFAULT nextval('public.ipam_rir_id_seq'::regclass); - - --- --- Name: ipam_role id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_role ALTER COLUMN id SET DEFAULT nextval('public.ipam_role_id_seq'::regclass); - - --- --- Name: ipam_routetarget id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_routetarget ALTER COLUMN id SET DEFAULT nextval('public.ipam_routetarget_id_seq'::regclass); - - --- --- Name: ipam_service id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_service ALTER COLUMN id SET DEFAULT nextval('public.ipam_service_id_seq'::regclass); - - --- --- Name: ipam_service_ipaddresses id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_service_ipaddresses ALTER COLUMN id SET DEFAULT nextval('public.ipam_service_ipaddresses_id_seq'::regclass); - - --- --- Name: ipam_vlan id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlan ALTER COLUMN id SET DEFAULT nextval('public.ipam_vlan_id_seq'::regclass); - - --- --- Name: ipam_vlangroup id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlangroup ALTER COLUMN id SET DEFAULT nextval('public.ipam_vlangroup_id_seq'::regclass); - - --- --- Name: ipam_vrf id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vrf ALTER COLUMN id SET DEFAULT nextval('public.ipam_vrf_id_seq'::regclass); - - --- --- Name: ipam_vrf_export_targets id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vrf_export_targets ALTER COLUMN id SET DEFAULT nextval('public.ipam_vrf_export_targets_id_seq'::regclass); - - --- --- Name: ipam_vrf_import_targets id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vrf_import_targets ALTER COLUMN id SET DEFAULT nextval('public.ipam_vrf_import_targets_id_seq'::regclass); - - --- --- Name: secrets_secret id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_secret ALTER COLUMN id SET DEFAULT nextval('public.secrets_secret_id_seq'::regclass); - - --- --- Name: secrets_secretrole id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_secretrole ALTER COLUMN id SET DEFAULT nextval('public.secrets_secretrole_id_seq'::regclass); - - --- --- Name: secrets_sessionkey id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_sessionkey ALTER COLUMN id SET DEFAULT nextval('public.secrets_sessionkey_id_seq'::regclass); - - --- --- Name: secrets_userkey id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_userkey ALTER COLUMN id SET DEFAULT nextval('public.secrets_userkey_id_seq'::regclass); - - --- --- Name: taggit_tag id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.taggit_tag ALTER COLUMN id SET DEFAULT nextval('public.taggit_tag_id_seq'::regclass); - - --- --- Name: taggit_taggeditem id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.taggit_taggeditem ALTER COLUMN id SET DEFAULT nextval('public.taggit_taggeditem_id_seq'::regclass); - - --- --- Name: tenancy_tenant id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_tenant ALTER COLUMN id SET DEFAULT nextval('public.tenancy_tenant_id_seq'::regclass); - - --- --- Name: tenancy_tenantgroup id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_tenantgroup ALTER COLUMN id SET DEFAULT nextval('public.tenancy_tenantgroup_id_seq'::regclass); - - --- --- Name: users_objectpermission id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission ALTER COLUMN id SET DEFAULT nextval('public.users_objectpermission_id_seq'::regclass); - - --- --- Name: users_objectpermission_groups id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission_groups ALTER COLUMN id SET DEFAULT nextval('public.users_objectpermission_groups_id_seq'::regclass); - - --- --- Name: users_objectpermission_object_types id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission_object_types ALTER COLUMN id SET DEFAULT nextval('public.users_objectpermission_object_types_id_seq'::regclass); - - --- --- Name: users_objectpermission_users id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_objectpermission_users ALTER COLUMN id SET DEFAULT nextval('public.users_objectpermission_users_id_seq'::regclass); - - --- --- Name: users_token id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_token ALTER COLUMN id SET DEFAULT nextval('public.users_token_id_seq'::regclass); - - --- --- Name: users_userconfig id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.users_userconfig ALTER COLUMN id SET DEFAULT nextval('public.users_userconfig_id_seq'::regclass); - - --- --- Name: virtualization_cluster id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_cluster ALTER COLUMN id SET DEFAULT nextval('public.virtualization_cluster_id_seq'::regclass); - - --- --- Name: virtualization_clustergroup id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_clustergroup ALTER COLUMN id SET DEFAULT nextval('public.virtualization_clustergroup_id_seq'::regclass); - - --- --- Name: virtualization_clustertype id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_clustertype ALTER COLUMN id SET DEFAULT nextval('public.virtualization_clustertype_id_seq'::regclass); - - --- --- Name: virtualization_virtualmachine id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine ALTER COLUMN id SET DEFAULT nextval('public.virtualization_virtualmachine_id_seq'::regclass); - - --- --- Name: virtualization_vminterface id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface ALTER COLUMN id SET DEFAULT nextval('public.virtualization_vminterface_id_seq'::regclass); - - --- --- Name: virtualization_vminterface_tagged_vlans id; Type: DEFAULT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface_tagged_vlans ALTER COLUMN id SET DEFAULT nextval('public.virtualization_vminterface_tagged_vlans_id_seq'::regclass); - - --- --- Data for Name: auth_group; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.auth_group (id, name) FROM stdin; -\. - - --- --- 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 15 add_logentry -2 Can change log entry 15 change_logentry -3 Can delete log entry 15 delete_logentry -4 Can view log entry 15 view_logentry -5 Can add permission 16 add_permission -6 Can change permission 16 change_permission -7 Can delete permission 16 delete_permission -8 Can view permission 16 view_permission -9 Can add group 17 add_group -10 Can change group 17 change_group -11 Can delete group 17 delete_group -12 Can view group 17 view_group -13 Can add user 18 add_user -14 Can change user 18 change_user -15 Can delete user 18 delete_user -16 Can view user 18 view_user -17 Can add content type 19 add_contenttype -18 Can change content type 19 change_contenttype -19 Can delete content type 19 delete_contenttype -20 Can view content type 19 view_contenttype -21 Can add session 20 add_session -22 Can change session 20 change_session -23 Can delete session 20 delete_session -24 Can view session 20 view_session -25 Can add tag 21 add_tag -26 Can change tag 21 change_tag -27 Can delete tag 21 delete_tag -28 Can view tag 21 view_tag -29 Can add tagged item 22 add_taggeditem -30 Can change tagged item 22 change_taggeditem -31 Can delete tagged item 22 delete_taggeditem -32 Can view tagged item 22 view_taggeditem -33 Can add circuit 23 add_circuit -34 Can change circuit 23 change_circuit -35 Can delete circuit 23 delete_circuit -36 Can view circuit 23 view_circuit -37 Can add circuit type 24 add_circuittype -38 Can change circuit type 24 change_circuittype -39 Can delete circuit type 24 delete_circuittype -40 Can view circuit type 24 view_circuittype -41 Can add provider 25 add_provider -42 Can change provider 25 change_provider -43 Can delete provider 25 delete_provider -44 Can view provider 25 view_provider -45 Can add circuit termination 7 add_circuittermination -46 Can change circuit termination 7 change_circuittermination -47 Can delete circuit termination 7 delete_circuittermination -48 Can view circuit termination 7 view_circuittermination -49 Can add provider network 26 add_providernetwork -50 Can change provider network 26 change_providernetwork -51 Can delete provider network 26 delete_providernetwork -52 Can view provider network 26 view_providernetwork -53 Can add console port 1 add_consoleport -54 Can change console port 1 change_consoleport -55 Can delete console port 1 delete_consoleport -56 Can view console port 1 view_consoleport -57 Can add console port template 27 add_consoleporttemplate -58 Can change console port template 27 change_consoleporttemplate -59 Can delete console port template 27 delete_consoleporttemplate -60 Can view console port template 27 view_consoleporttemplate -61 Can add console server port 2 add_consoleserverport -62 Can change console server port 2 change_consoleserverport -63 Can delete console server port 2 delete_consoleserverport -64 Can view console server port 2 view_consoleserverport -65 Can add console server port template 28 add_consoleserverporttemplate -66 Can change console server port template 28 change_consoleserverporttemplate -67 Can delete console server port template 28 delete_consoleserverporttemplate -68 Can view console server port template 28 view_consoleserverporttemplate -69 Can add device 14 add_device -70 Can change device 14 change_device -71 Can delete device 14 delete_device -72 Can view device 14 view_device -73 Can add device role 29 add_devicerole -74 Can change device role 29 change_devicerole -75 Can delete device role 29 delete_devicerole -76 Can view device role 29 view_devicerole -77 Can add device type 30 add_devicetype -78 Can change device type 30 change_devicetype -79 Can delete device type 30 delete_devicetype -80 Can view device type 30 view_devicetype -81 Can add interface 5 add_interface -82 Can change interface 5 change_interface -83 Can delete interface 5 delete_interface -84 Can view interface 5 view_interface -85 Can add interface template 31 add_interfacetemplate -86 Can change interface template 31 change_interfacetemplate -87 Can delete interface template 31 delete_interfacetemplate -88 Can view interface template 31 view_interfacetemplate -89 Can add manufacturer 32 add_manufacturer -90 Can change manufacturer 32 change_manufacturer -91 Can delete manufacturer 32 delete_manufacturer -92 Can view manufacturer 32 view_manufacturer -93 Can add platform 33 add_platform -94 Can change platform 33 change_platform -95 Can delete platform 33 delete_platform -96 Can view platform 33 view_platform -97 Can add power outlet 4 add_poweroutlet -98 Can change power outlet 4 change_poweroutlet -99 Can delete power outlet 4 delete_poweroutlet -100 Can view power outlet 4 view_poweroutlet -101 Can add power outlet template 34 add_poweroutlettemplate -102 Can change power outlet template 34 change_poweroutlettemplate -103 Can delete power outlet template 34 delete_poweroutlettemplate -104 Can view power outlet template 34 view_poweroutlettemplate -105 Can add power port 3 add_powerport -106 Can change power port 3 change_powerport -107 Can delete power port 3 delete_powerport -108 Can view power port 3 view_powerport -109 Can add power port template 35 add_powerporttemplate -110 Can change power port template 35 change_powerporttemplate -111 Can delete power port template 35 delete_powerporttemplate -112 Can view power port template 35 view_powerporttemplate -113 Can add rack 36 add_rack -114 Can change rack 36 change_rack -115 Can delete rack 36 delete_rack -116 Can view rack 36 view_rack -117 Can add site 13 add_site -118 Can change site 13 change_site -119 Can delete site 13 delete_site -120 Can view site 13 view_site -121 Can add device bay 37 add_devicebay -122 Can change device bay 37 change_devicebay -123 Can delete device bay 37 delete_devicebay -124 Can view device bay 37 view_devicebay -125 Can add device bay template 38 add_devicebaytemplate -126 Can change device bay template 38 change_devicebaytemplate -127 Can delete device bay template 38 delete_devicebaytemplate -128 Can view device bay template 38 view_devicebaytemplate -129 Can add rack role 39 add_rackrole -130 Can change rack role 39 change_rackrole -131 Can delete rack role 39 delete_rackrole -132 Can view rack role 39 view_rackrole -133 Can add rack reservation 40 add_rackreservation -134 Can change rack reservation 40 change_rackreservation -135 Can delete rack reservation 40 delete_rackreservation -136 Can view rack reservation 40 view_rackreservation -137 Can add region 41 add_region -138 Can change region 41 change_region -139 Can delete region 41 delete_region -140 Can view region 41 view_region -141 Can add inventory item 42 add_inventoryitem -142 Can change inventory item 42 change_inventoryitem -143 Can delete inventory item 42 delete_inventoryitem -144 Can view inventory item 42 view_inventoryitem -145 Can add virtual chassis 43 add_virtualchassis -146 Can change virtual chassis 43 change_virtualchassis -147 Can delete virtual chassis 43 delete_virtualchassis -148 Can view virtual chassis 43 view_virtualchassis -149 Can add front port 10 add_frontport -150 Can change front port 10 change_frontport -151 Can delete front port 10 delete_frontport -152 Can view front port 10 view_frontport -153 Can add front port template 44 add_frontporttemplate -154 Can change front port template 44 change_frontporttemplate -155 Can delete front port template 44 delete_frontporttemplate -156 Can view front port template 44 view_frontporttemplate -157 Can add rear port 11 add_rearport -158 Can change rear port 11 change_rearport -159 Can delete rear port 11 delete_rearport -160 Can view rear port 11 view_rearport -161 Can add rear port template 45 add_rearporttemplate -162 Can change rear port template 45 change_rearporttemplate -163 Can delete rear port template 45 delete_rearporttemplate -164 Can view rear port template 45 view_rearporttemplate -165 Can add cable 46 add_cable -166 Can change cable 46 change_cable -167 Can delete cable 46 delete_cable -168 Can view cable 46 view_cable -169 Can add power feed 12 add_powerfeed -170 Can change power feed 12 change_powerfeed -171 Can delete power feed 12 delete_powerfeed -172 Can view power feed 12 view_powerfeed -173 Can add power panel 47 add_powerpanel -174 Can change power panel 47 change_powerpanel -175 Can delete power panel 47 delete_powerpanel -176 Can view power panel 47 view_powerpanel -177 Can add cable path 48 add_cablepath -178 Can change cable path 48 change_cablepath -179 Can delete cable path 48 delete_cablepath -180 Can view cable path 48 view_cablepath -181 Can add location 49 add_location -182 Can change location 49 change_location -183 Can delete location 49 delete_location -184 Can view location 49 view_location -185 Can add site group 50 add_sitegroup -186 Can change site group 50 change_sitegroup -187 Can delete site group 50 delete_sitegroup -188 Can view site group 50 view_sitegroup -189 Can add aggregate 51 add_aggregate -190 Can change aggregate 51 change_aggregate -191 Can delete aggregate 51 delete_aggregate -192 Can view aggregate 51 view_aggregate -193 Can add IP address 52 add_ipaddress -194 Can change IP address 52 change_ipaddress -195 Can delete IP address 52 delete_ipaddress -196 Can view IP address 52 view_ipaddress -197 Can add prefix 53 add_prefix -198 Can change prefix 53 change_prefix -199 Can delete prefix 53 delete_prefix -200 Can view prefix 53 view_prefix -201 Can add RIR 54 add_rir -202 Can change RIR 54 change_rir -203 Can delete RIR 54 delete_rir -204 Can view RIR 54 view_rir -205 Can add role 55 add_role -206 Can change role 55 change_role -207 Can delete role 55 delete_role -208 Can view role 55 view_role -209 Can add VLAN 56 add_vlan -210 Can change VLAN 56 change_vlan -211 Can delete VLAN 56 delete_vlan -212 Can view VLAN 56 view_vlan -213 Can add VRF 57 add_vrf -214 Can change VRF 57 change_vrf -215 Can delete VRF 57 delete_vrf -216 Can view VRF 57 view_vrf -217 Can add VLAN group 58 add_vlangroup -218 Can change VLAN group 58 change_vlangroup -219 Can delete VLAN group 58 delete_vlangroup -220 Can view VLAN group 58 view_vlangroup -221 Can add service 59 add_service -222 Can change service 59 change_service -223 Can delete service 59 delete_service -224 Can view service 59 view_service -225 Can add route target 60 add_routetarget -226 Can change route target 60 change_routetarget -227 Can delete route target 60 delete_routetarget -228 Can view route target 60 view_routetarget -229 Can add export template 61 add_exporttemplate -230 Can change export template 61 change_exporttemplate -231 Can delete export template 61 delete_exporttemplate -232 Can view export template 61 view_exporttemplate -233 Can add custom field 62 add_customfield -234 Can change custom field 62 change_customfield -235 Can delete custom field 62 delete_customfield -236 Can view custom field 62 view_customfield -237 Can add image attachment 63 add_imageattachment -238 Can change image attachment 63 change_imageattachment -239 Can delete image attachment 63 delete_imageattachment -240 Can view image attachment 63 view_imageattachment -241 Can add webhook 64 add_webhook -242 Can change webhook 64 change_webhook -243 Can delete webhook 64 delete_webhook -244 Can view webhook 64 view_webhook -245 Can add object change 65 add_objectchange -246 Can change object change 65 change_objectchange -247 Can delete object change 65 delete_objectchange -248 Can view object change 65 view_objectchange -249 Can add config context 66 add_configcontext -250 Can change config context 66 change_configcontext -251 Can delete config context 66 delete_configcontext -252 Can view config context 66 view_configcontext -253 Can add tag 67 add_tag -254 Can change tag 67 change_tag -255 Can delete tag 67 delete_tag -256 Can view tag 67 view_tag -257 Can add tagged item 68 add_taggeditem -258 Can change tagged item 68 change_taggeditem -259 Can delete tagged item 68 delete_taggeditem -260 Can view tagged item 68 view_taggeditem -261 Can add custom link 69 add_customlink -262 Can change custom link 69 change_customlink -263 Can delete custom link 69 delete_customlink -264 Can view custom link 69 view_customlink -265 Can add script 70 add_script -266 Can change script 70 change_script -267 Can delete script 70 delete_script -268 Can view script 70 view_script -269 Can add report 9 add_report -270 Can change report 9 change_report -271 Can delete report 9 delete_report -272 Can view report 9 view_report -273 Can add job result 71 add_jobresult -274 Can change job result 71 change_jobresult -275 Can delete job result 71 delete_jobresult -276 Can view job result 71 view_jobresult -277 Can add journal entry 72 add_journalentry -278 Can change journal entry 72 change_journalentry -279 Can delete journal entry 72 delete_journalentry -280 Can view journal entry 72 view_journalentry -281 Can add secret 73 add_secret -282 Can change secret 73 change_secret -283 Can delete secret 73 delete_secret -284 Can view secret 73 view_secret -285 Can add secret role 74 add_secretrole -286 Can change secret role 74 change_secretrole -287 Can delete secret role 74 delete_secretrole -288 Can view secret role 74 view_secretrole -289 Can add user key 75 add_userkey -290 Can change user key 75 change_userkey -291 Can delete user key 75 delete_userkey -292 Can view user key 75 view_userkey -293 Can add session key 76 add_sessionkey -294 Can change session key 76 change_sessionkey -295 Can delete session key 76 delete_sessionkey -296 Can view session key 76 view_sessionkey -297 Can add tenant 77 add_tenant -298 Can change tenant 77 change_tenant -299 Can delete tenant 77 delete_tenant -300 Can view tenant 77 view_tenant -301 Can add tenant group 78 add_tenantgroup -302 Can change tenant group 78 change_tenantgroup -303 Can delete tenant group 78 delete_tenantgroup -304 Can view tenant group 78 view_tenantgroup -305 Can add token 79 add_token -306 Can change token 79 change_token -307 Can delete token 79 delete_token -308 Can view token 79 view_token -309 Can add User Preferences 80 add_userconfig -310 Can change User Preferences 80 change_userconfig -311 Can delete User Preferences 80 delete_userconfig -312 Can view User Preferences 80 view_userconfig -313 Can add Group 81 add_admingroup -314 Can change Group 81 change_admingroup -315 Can delete Group 81 delete_admingroup -316 Can view Group 81 view_admingroup -317 Can add User 82 add_adminuser -318 Can change User 82 change_adminuser -319 Can delete User 82 delete_adminuser -320 Can view User 82 view_adminuser -321 Can add permission 83 add_objectpermission -322 Can change permission 83 change_objectpermission -323 Can delete permission 83 delete_objectpermission -324 Can view permission 83 view_objectpermission -325 Can add cluster 84 add_cluster -326 Can change cluster 84 change_cluster -327 Can delete cluster 84 delete_cluster -328 Can view cluster 84 view_cluster -329 Can add cluster group 85 add_clustergroup -330 Can change cluster group 85 change_clustergroup -331 Can delete cluster group 85 delete_clustergroup -332 Can view cluster group 85 view_clustergroup -333 Can add cluster type 86 add_clustertype -334 Can change cluster type 86 change_clustertype -335 Can delete cluster type 86 delete_clustertype -336 Can view cluster type 86 view_clustertype -337 Can add virtual machine 87 add_virtualmachine -338 Can change virtual machine 87 change_virtualmachine -339 Can delete virtual machine 87 delete_virtualmachine -340 Can view virtual machine 87 view_virtualmachine -341 Can add interface 8 add_vminterface -342 Can change interface 8 change_vminterface -343 Can delete interface 8 delete_vminterface -344 Can view interface 8 view_vminterface -\. - - --- --- 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$260000$eVjfesgrOjME16oHkdbNYC$2+i6Dfay/aJbKtHlp4zSqrGD0o/J/3WLuox9qHiV/HY= 2021-12-28 14:36:43.641766+00 t admin admin@example.com t t 2021-08-17 12:17:35.007201+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; -\. - - --- --- 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 (id, created, last_updated, cid, install_date, commit_rate, comments, provider_id, type_id, tenant_id, description, status, custom_field_data, termination_a_id, termination_z_id) FROM stdin; -\. - - --- --- Data for Name: circuits_circuittermination; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.circuits_circuittermination (id, term_side, port_speed, upstream_speed, xconnect_id, pp_info, circuit_id, site_id, cable_id, description, _cable_peer_id, _cable_peer_type_id, created, last_updated, mark_connected, provider_network_id) FROM stdin; -\. - - --- --- Data for Name: circuits_circuittype; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.circuits_circuittype (id, name, slug, created, last_updated, description, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: circuits_provider; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.circuits_provider (id, created, last_updated, name, slug, asn, account, portal_url, noc_contact, admin_contact, comments, custom_field_data) 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) FROM stdin; -\. - - --- --- Data for Name: dcim_cable; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_cable (id, created, last_updated, termination_a_id, termination_b_id, type, status, label, color, length, length_unit, _abs_length, termination_a_type_id, termination_b_type_id, _termination_a_device_id, _termination_b_device_id, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: dcim_cablepath; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_cablepath (id, origin_id, destination_id, path, is_active, is_split, destination_type_id, origin_type_id) FROM stdin; -\. - - --- --- Data for Name: dcim_consoleport; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_consoleport (id, name, device_id, cable_id, description, type, _name, label, _cable_peer_id, _cable_peer_type_id, _path_id, created, custom_field_data, last_updated, mark_connected, speed) FROM stdin; -\. - - --- --- Data for Name: dcim_consoleporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_consoleporttemplate (id, name, device_type_id, type, _name, label, description, created, last_updated) FROM stdin; -\. - - --- --- Data for Name: dcim_consoleserverport; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_consoleserverport (id, name, device_id, cable_id, description, type, _name, label, _cable_peer_id, _cable_peer_type_id, _path_id, created, custom_field_data, last_updated, mark_connected, speed) FROM stdin; -\. - - --- --- Data for Name: dcim_consoleserverporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_consoleserverporttemplate (id, name, device_type_id, type, _name, label, description, created, last_updated) FROM stdin; -\. - - --- --- Data for Name: dcim_device; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_device (id, created, last_updated, name, serial, "position", face, status, comments, device_role_id, device_type_id, platform_id, rack_id, primary_ip4_id, primary_ip6_id, tenant_id, asset_tag, site_id, cluster_id, virtual_chassis_id, vc_position, vc_priority, local_context_data, _name, custom_field_data, location_id) FROM stdin; -1 2021-08-17 2021-08-17 13:09:37.606053+00 gpu-1 1 front planned 1 1 \N 3 \N \N \N \N 2 \N \N \N \N \N gpu-00000001 {} 1 -3 2021-08-17 2021-08-17 13:30:18.884465+00 gpu-3 1 front planned 1 1 \N 4 \N \N \N \N 2 \N \N \N \N \N gpu-00000003 {} 1 -4 2021-08-17 2021-08-17 13:34:49.545695+00 gpu-4 4 front planned 1 1 \N 4 \N \N \N \N 2 \N \N \N \N \N gpu-00000004 {} 1 -2 2021-08-17 2021-08-17 13:38:19.487595+00 gpu-2 4 front planned 1 1 \N 3 \N \N \N \N 2 \N \N \N \N \N gpu-00000002 {} 1 -5 2021-08-17 2021-08-17 14:02:19.971976+00 ohl00 6 front planned 4 2 \N 3 \N \N \N \N 2 \N \N \N \N \N ohl00000000 {} 1 -6 2021-08-17 2021-08-17 14:02:53.693244+00 ohl01 10 front planned 4 2 \N 3 \N \N \N \N 2 \N \N \N \N \N ohl00000001 {} 1 -7 2021-08-17 2021-08-17 14:03:42.065332+00 ohl02 14 front planned 4 2 \N 3 \N \N \N \N 2 \N \N \N \N \N ohl00000002 {} 1 -8 2021-08-17 2021-08-17 14:04:09.209656+00 ohl03 18 front planned 4 2 \N 3 \N \N \N \N 2 \N \N \N \N \N ohl00000003 {} 1 -10 2021-08-17 2021-08-17 14:10:28.958176+00 QNAP00 10 front planned 2 4 \N 4 \N \N \N \N 2 \N \N \N \N \N QNAP00000000 {} 1 -11 2021-08-17 2021-08-17 14:14:50.729888+00 QNAP-Ext-00 13 front planned 2 5 \N 4 \N \N \N \N 2 \N \N \N \N \N QNAP-Ext-00000000 {} 1 -12 2021-08-17 2021-08-17 14:15:11.656595+00 QNAP-Ext-01 16 front planned 2 5 \N 4 \N \N \N \N 2 \N \N \N \N \N QNAP-Ext-00000001 {} 1 -13 2021-08-17 2021-08-17 14:17:38.535283+00 NAS00 22 front planned 3 6 \N 3 \N \N \N \N 2 \N \N \N \N \N NAS00000000 {} 1 -14 2021-08-17 2021-08-17 14:19:32.155049+00 NAS-JBOD 26 front planned 3 7 \N 3 \N \N \N \N 2 \N \N \N \N \N NAS-JBOD {} 1 -9 2021-08-17 2021-08-17 14:20:59.196174+00 wohl00 6 front active 5 3 \N 4 \N \N \N \N 2 \N \N \N \N \N wohl00000000 {} 1 -15 2021-08-17 2021-08-17 14:23:56.835666+00 KVM 22 front planned 6 8 \N 4 \N \N \N \N 2 \N \N \N \N \N KVM {} 1 -16 2021-08-17 2021-08-17 18:47:27.073777+00 Fast NAS 24 front planned 3 6 \N 4 \N \N \N \N 2 \N \N \N \N \N Fast NAS {} 1 -\. - - --- --- Data for Name: dcim_devicebay; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_devicebay (id, name, device_id, installed_device_id, description, _name, label, created, custom_field_data, last_updated) FROM stdin; -\. - - --- --- Data for Name: dcim_devicebaytemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_devicebaytemplate (id, name, device_type_id, _name, label, description, created, last_updated) FROM stdin; -\. - - --- --- Data for Name: dcim_devicerole; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_devicerole (id, name, slug, color, vm_role, created, last_updated, description, custom_field_data) FROM stdin; -1 GPU-1 gpu-1 9e9e9e f 2021-08-17 2021-08-17 13:01:29.764182+00 GPU server gen 1 {} -2 storage-1 storage-1 4caf50 t 2021-08-17 2021-08-17 13:01:56.163981+00 {} -3 storage-2 storage-2 cddc39 t 2021-08-17 2021-08-17 13:02:18.912923+00 NAS Server Fast SSDs {} -4 GPU-0 gpu-0 795548 f 2021-08-17 2021-08-17 13:45:11.402285+00 First gen. GPU server {} -5 workstation-gen-0 workstation-gen-0 cddc39 f 2021-08-17 2021-08-17 13:49:18.994582+00 {} -6 KVM kvm 673ab7 f 2021-08-17 2021-08-17 14:22:51.114552+00 {} -\. - - --- --- Data for Name: dcim_devicetype; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_devicetype (id, model, slug, u_height, is_full_depth, manufacturer_id, subdevice_role, part_number, comments, created, last_updated, front_image, rear_image, custom_field_data) FROM stdin; -1 D13z-M2 d13z-m2 2 t 1 2021-08-17 2021-08-17 13:08:33.551984+00 {} -2 Dell Precision 7820 Tower dell-precision-7820-tower 4 t 2 2021-08-17 2021-08-17 13:46:34.149179+00 {} -3 Dell Precision 5820 Tower dell-precision-5820-tower 4 t 2 2021-08-17 2021-08-17 13:46:58.152225+00 {} -4 TS-1683XU ts-1683xu 3 t 3 2021-08-17 2021-08-17 14:09:44.906104+00 {} -5 TS-1683XU-Extension ts-1683xu-extension 3 t 3 2021-08-17 2021-08-17 14:13:55.734227+00 {} -6 D20z-M4 d20z-m4 4 t 1 2021-08-17 2021-08-17 14:16:45.583593+00 {} -7 JBOD-M4-E2C jbod-m4-e2c 4 t 1 2021-08-17 2021-08-17 14:18:48.720662+00 {} -8 KVM kvm 1 t 2 2021-08-17 2021-08-17 14:21:43.632453+00 {} -\. - - --- --- Data for Name: dcim_frontport; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_frontport (id, name, type, rear_port_position, description, device_id, rear_port_id, cable_id, _name, label, _cable_peer_id, _cable_peer_type_id, created, custom_field_data, last_updated, mark_connected) FROM stdin; -\. - - --- --- Data for Name: dcim_frontporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_frontporttemplate (id, name, type, rear_port_position, device_type_id, rear_port_id, _name, label, description, created, last_updated) FROM stdin; -\. - - --- --- Data for Name: dcim_interface; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_interface (id, name, type, mgmt_only, description, device_id, mac_address, lag_id, enabled, mtu, mode, untagged_vlan_id, cable_id, _name, label, _cable_peer_id, _cable_peer_type_id, _path_id, created, custom_field_data, last_updated, mark_connected, parent_id) FROM stdin; -2 eth0 10gbase-t f 6 \N \N t \N \N \N 9999999999999999eth000000............ \N \N \N 2021-08-17 {} 2021-08-17 19:50:15.402316+00 f \N -3 eth0 10gbase-t f 5 \N \N t \N \N \N 9999999999999999eth000000............ \N \N \N 2021-08-17 {} 2021-08-17 19:53:55.246944+00 f \N -\. - - --- --- 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_interfacetemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_interfacetemplate (id, name, type, mgmt_only, device_type_id, _name, label, description, created, last_updated) FROM stdin; -\. - - --- --- Data for Name: dcim_inventoryitem; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_inventoryitem (id, name, part_id, serial, discovered, device_id, parent_id, manufacturer_id, asset_tag, description, _name, label, level, lft, rght, tree_id, created, custom_field_data, last_updated) FROM stdin; -\. - - --- --- Data for Name: dcim_location; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_location (id, name, slug, site_id, created, last_updated, parent_id, level, lft, rght, tree_id, description, custom_field_data) FROM stdin; -1 RZ-Süed rz-sued 2 2021-08-17 2021-08-17 13:31:19.032158+00 \N 0 1 2 2 {} -2 Bau 72 bau-72 1 2021-08-17 2021-08-17 13:31:39.454346+00 \N 0 1 2 1 {} -\. - - --- --- Data for Name: dcim_manufacturer; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_manufacturer (id, name, slug, created, last_updated, description, custom_field_data) FROM stdin; -1 delta delta 2021-08-17 2021-08-17 13:06:17.696333+00 {} -2 dell dell 2021-08-17 2021-08-17 13:06:38.189078+00 {} -3 QNAP qnap 2021-08-17 2021-08-17 14:09:27.300261+00 {} -\. - - --- --- Data for Name: dcim_platform; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_platform (id, name, slug, napalm_driver, manufacturer_id, created, last_updated, napalm_args, description, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: dcim_powerfeed; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_powerfeed (id, created, last_updated, name, status, type, supply, phase, voltage, amperage, max_utilization, available_power, comments, cable_id, power_panel_id, rack_id, custom_field_data, _cable_peer_id, _cable_peer_type_id, _path_id, mark_connected) FROM stdin; -\. - - --- --- Data for Name: dcim_poweroutlet; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_poweroutlet (id, name, device_id, cable_id, description, feed_leg, power_port_id, type, _name, label, _cable_peer_id, _cable_peer_type_id, _path_id, created, custom_field_data, last_updated, mark_connected) FROM stdin; -\. - - --- --- Data for Name: dcim_poweroutlettemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_poweroutlettemplate (id, name, device_type_id, feed_leg, power_port_id, type, _name, label, description, created, last_updated) FROM stdin; -\. - - --- --- Data for Name: dcim_powerpanel; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_powerpanel (id, created, last_updated, name, location_id, site_id, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: dcim_powerport; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_powerport (id, name, device_id, cable_id, description, allocated_draw, maximum_draw, type, _name, label, _cable_peer_id, _cable_peer_type_id, _path_id, created, custom_field_data, last_updated, mark_connected) FROM stdin; -\. - - --- --- Data for Name: dcim_powerporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_powerporttemplate (id, name, device_type_id, allocated_draw, maximum_draw, type, _name, label, description, created, last_updated) FROM stdin; -\. - - --- --- Data for Name: dcim_rack; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_rack (id, created, last_updated, name, facility_id, u_height, comments, location_id, site_id, tenant_id, type, width, role_id, desc_units, serial, status, asset_tag, outer_depth, outer_unit, outer_width, _name, custom_field_data) FROM stdin; -1 2021-08-17 2021-08-17 13:33:20.034125+00 rack-1 \N 42 2 1 \N 19 \N f active \N \N \N rack-00000001 {} -2 2021-08-17 2021-08-17 13:33:45.544968+00 rack-2 \N 42 2 1 \N 19 \N f active \N \N \N rack-00000002 {} -3 2021-08-17 2021-08-17 13:34:08.139872+00 rack-1 \N 60 1 2 \N 19 \N f planned \N \N \N rack-00000001 {} -4 2021-08-17 2021-08-17 13:34:08.204434+00 rack-2 \N 60 1 2 \N 19 \N f planned \N \N \N rack-00000002 {} -\. - - --- --- Data for Name: dcim_rackreservation; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_rackreservation (id, units, created, description, rack_id, user_id, tenant_id, last_updated, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: dcim_rackrole; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_rackrole (id, name, slug, color, created, last_updated, description, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: dcim_rearport; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_rearport (id, name, type, positions, description, device_id, cable_id, _name, label, _cable_peer_id, _cable_peer_type_id, created, custom_field_data, last_updated, mark_connected) FROM stdin; -\. - - --- --- Data for Name: dcim_rearporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_rearporttemplate (id, name, type, positions, device_type_id, _name, label, description, created, last_updated) FROM stdin; -\. - - --- --- Data for Name: dcim_region; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_region (id, name, slug, lft, rght, tree_id, level, parent_id, created, last_updated, description, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: dcim_site; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.dcim_site (id, created, last_updated, name, slug, facility, asn, physical_address, shipping_address, comments, tenant_id, contact_email, contact_name, contact_phone, region_id, description, status, time_zone, latitude, longitude, _name, custom_field_data, group_id) FROM stdin; -1 2021-08-17 2021-08-17 12:54:54.545771+00 Bau72-Erlangen bau72-erlangen \N \N \N active Europe/Berlin \N \N Bau00000072-Erlangen {} \N -2 2021-08-17 2021-08-17 12:55:21.165368+00 Noris-Nürnberg-Süd noris-nuernberg-sued \N \N \N planned Europe/Berlin \N \N Noris-Nürnberg-Süd {} \N -\. - - --- --- 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 (id, domain, master_id, created, last_updated, name, custom_field_data) 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 dcim consoleport -2 dcim consoleserverport -3 dcim powerport -4 dcim poweroutlet -5 dcim interface -7 circuits circuittermination -8 virtualization vminterface -9 extras report -10 dcim frontport -11 dcim rearport -12 dcim powerfeed -13 dcim site -14 dcim device -15 admin logentry -16 auth permission -17 auth group -18 auth user -19 contenttypes contenttype -20 sessions session -21 taggit tag -22 taggit taggeditem -23 circuits circuit -24 circuits circuittype -25 circuits provider -26 circuits providernetwork -27 dcim consoleporttemplate -28 dcim consoleserverporttemplate -29 dcim devicerole -30 dcim devicetype -31 dcim interfacetemplate -32 dcim manufacturer -33 dcim platform -34 dcim poweroutlettemplate -35 dcim powerporttemplate -36 dcim rack -37 dcim devicebay -38 dcim devicebaytemplate -39 dcim rackrole -40 dcim rackreservation -41 dcim region -42 dcim inventoryitem -43 dcim virtualchassis -44 dcim frontporttemplate -45 dcim rearporttemplate -46 dcim cable -47 dcim powerpanel -48 dcim cablepath -49 dcim location -50 dcim sitegroup -51 ipam aggregate -52 ipam ipaddress -53 ipam prefix -54 ipam rir -55 ipam role -56 ipam vlan -57 ipam vrf -58 ipam vlangroup -59 ipam service -60 ipam routetarget -61 extras exporttemplate -62 extras customfield -63 extras imageattachment -64 extras webhook -65 extras objectchange -66 extras configcontext -67 extras tag -68 extras taggeditem -69 extras customlink -70 extras script -71 extras jobresult -72 extras journalentry -73 secrets secret -74 secrets secretrole -75 secrets userkey -76 secrets sessionkey -77 tenancy tenant -78 tenancy tenantgroup -79 users token -80 users userconfig -81 users admingroup -82 users adminuser -83 users objectpermission -84 virtualization cluster -85 virtualization clustergroup -86 virtualization clustertype -87 virtualization virtualmachine -\. - - --- --- 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 2021-08-17 12:14:52.343185+00 -2 auth 0001_initial 2021-08-17 12:14:52.472189+00 -3 admin 0001_initial 2021-08-17 12:14:52.507429+00 -4 admin 0002_logentry_remove_auto_add 2021-08-17 12:14:52.534664+00 -5 admin 0003_logentry_add_action_flag_choices 2021-08-17 12:14:52.563344+00 -6 contenttypes 0002_remove_content_type_name 2021-08-17 12:14:52.618333+00 -7 auth 0002_alter_permission_name_max_length 2021-08-17 12:14:52.645884+00 -8 auth 0003_alter_user_email_max_length 2021-08-17 12:14:52.673277+00 -9 auth 0004_alter_user_username_opts 2021-08-17 12:14:52.694635+00 -10 auth 0005_alter_user_last_login_null 2021-08-17 12:14:52.718631+00 -11 auth 0006_require_contenttypes_0002 2021-08-17 12:14:52.722631+00 -12 auth 0007_alter_validators_add_error_messages 2021-08-17 12:14:52.739939+00 -13 auth 0008_alter_user_username_max_length 2021-08-17 12:14:52.766814+00 -14 auth 0009_alter_user_last_name_max_length 2021-08-17 12:14:52.792618+00 -15 auth 0010_alter_group_name_max_length 2021-08-17 12:14:52.819186+00 -16 auth 0011_update_proxy_permissions 2021-08-17 12:14:52.84625+00 -17 auth 0012_alter_user_first_name_max_length 2021-08-17 12:14:52.871545+00 -18 tenancy 0001_initial 2021-08-17 12:14:52.937231+00 -19 tenancy 0002_tenant_group_optional 2021-08-17 12:14:52.958682+00 -20 tenancy 0003_unicode_literals 2021-08-17 12:14:52.967602+00 -21 dcim 0001_initial 2021-08-17 12:14:53.416162+00 -22 ipam 0001_initial 2021-08-17 12:14:53.674774+00 -23 ipam 0002_vrf_add_enforce_unique 2021-08-17 12:14:53.690131+00 -24 dcim 0002_auto_20160622_1821 2021-08-17 12:14:54.360658+00 -25 dcim 0003_auto_20160628_1721 2021-08-17 12:14:54.406824+00 -26 dcim 0004_auto_20160701_2049 2021-08-17 12:14:54.579258+00 -27 dcim 0005_auto_20160706_1722 2021-08-17 12:14:54.638711+00 -28 dcim 0006_add_device_primary_ip4_ip6 2021-08-17 12:14:54.744546+00 -29 dcim 0007_device_copy_primary_ip 2021-08-17 12:14:54.810491+00 -30 dcim 0008_device_remove_primary_ip 2021-08-17 12:14:54.88077+00 -31 dcim 0009_site_32bit_asn_support 2021-08-17 12:14:54.928986+00 -32 dcim 0010_devicebay_installed_device_set_null 2021-08-17 12:14:54.992639+00 -33 ipam 0003_ipam_add_vlangroups 2021-08-17 12:14:55.126781+00 -34 ipam 0004_ipam_vlangroup_uniqueness 2021-08-17 12:14:55.191059+00 -35 ipam 0005_auto_20160725_1842 2021-08-17 12:14:55.227745+00 -36 ipam 0006_vrf_vlan_add_tenant 2021-08-17 12:14:55.340626+00 -37 ipam 0007_prefix_ipaddress_add_tenant 2021-08-17 12:14:55.451563+00 -38 ipam 0008_prefix_change_order 2021-08-17 12:14:55.474158+00 -39 ipam 0009_ipaddress_add_status 2021-08-17 12:14:55.512623+00 -40 ipam 0010_ipaddress_help_texts 2021-08-17 12:14:55.588137+00 -41 ipam 0011_rir_add_is_private 2021-08-17 12:14:55.602051+00 -42 dcim 0011_devicetype_part_number 2021-08-17 12:14:55.629396+00 -43 dcim 0012_site_rack_device_add_tenant 2021-08-17 12:14:55.788222+00 -44 dcim 0013_add_interface_form_factors 2021-08-17 12:14:55.988271+00 -45 dcim 0014_rack_add_type_width 2021-08-17 12:14:56.055433+00 -46 dcim 0015_rack_add_u_height_validator 2021-08-17 12:14:56.084888+00 -47 dcim 0016_module_add_manufacturer 2021-08-17 12:14:56.162+00 -48 dcim 0017_rack_add_role 2021-08-17 12:14:56.252253+00 -49 dcim 0018_device_add_asset_tag 2021-08-17 12:14:56.320564+00 -50 dcim 0019_new_iface_form_factors 2021-08-17 12:14:56.377201+00 -51 dcim 0020_rack_desc_units 2021-08-17 12:14:56.423297+00 -52 dcim 0021_add_ff_flexstack 2021-08-17 12:14:56.518011+00 -53 dcim 0022_color_names_to_rgb 2021-08-17 12:14:56.647023+00 -54 ipam 0012_services 2021-08-17 12:14:56.771999+00 -55 ipam 0013_prefix_add_is_pool 2021-08-17 12:14:56.905417+00 -56 ipam 0014_ipaddress_status_add_deprecated 2021-08-17 12:14:56.974619+00 -57 ipam 0015_global_vlans 2021-08-17 12:14:57.107855+00 -58 ipam 0016_unicode_literals 2021-08-17 12:14:57.969609+00 -59 ipam 0017_ipaddress_roles 2021-08-17 12:14:58.069482+00 -60 ipam 0018_remove_service_uniqueness_constraint 2021-08-17 12:14:58.124859+00 -61 dcim 0023_devicetype_comments 2021-08-17 12:14:58.159281+00 -62 dcim 0024_site_add_contact_fields 2021-08-17 12:14:58.245612+00 -63 dcim 0025_devicetype_add_interface_ordering 2021-08-17 12:14:58.281794+00 -64 dcim 0026_add_rack_reservations 2021-08-17 12:14:58.374109+00 -65 dcim 0027_device_add_site 2021-08-17 12:14:58.466365+00 -66 dcim 0028_device_copy_rack_to_site 2021-08-17 12:14:58.542955+00 -67 dcim 0029_allow_rackless_devices 2021-08-17 12:14:58.699058+00 -68 dcim 0030_interface_add_lag 2021-08-17 12:14:58.965498+00 -69 dcim 0031_regions 2021-08-17 12:14:59.077712+00 -70 dcim 0032_device_increase_name_length 2021-08-17 12:14:59.14603+00 -71 dcim 0033_rackreservation_rack_editable 2021-08-17 12:14:59.218411+00 -72 dcim 0034_rename_module_to_inventoryitem 2021-08-17 12:14:59.547611+00 -73 dcim 0035_device_expand_status_choices 2021-08-17 12:14:59.737368+00 -74 dcim 0036_add_ff_juniper_vcp 2021-08-17 12:14:59.806972+00 -75 dcim 0037_unicode_literals 2021-08-17 12:15:01.119875+00 -76 dcim 0038_wireless_interfaces 2021-08-17 12:15:01.187032+00 -77 dcim 0039_interface_add_enabled_mtu 2021-08-17 12:15:01.268392+00 -78 dcim 0040_inventoryitem_add_asset_tag_description 2021-08-17 12:15:01.516362+00 -79 dcim 0041_napalm_integration 2021-08-17 12:15:01.675652+00 -80 dcim 0042_interface_ff_10ge_cx4 2021-08-17 12:15:01.734521+00 -81 dcim 0043_device_component_name_lengths 2021-08-17 12:15:02.038288+00 -82 virtualization 0001_virtualization 2021-08-17 12:15:02.361335+00 -83 virtualization 0002_virtualmachine_add_status 2021-08-17 12:15:02.407766+00 -84 dcim 0044_virtualization 2021-08-17 12:15:02.645908+00 -85 virtualization 0003_cluster_add_site 2021-08-17 12:15:02.736046+00 -86 virtualization 0004_virtualmachine_add_role 2021-08-17 12:15:02.989693+00 -87 virtualization 0005_django2 2021-08-17 12:15:03.07777+00 -88 taggit 0001_initial 2021-08-17 12:15:03.227217+00 -89 taggit 0002_auto_20150616_2121 2021-08-17 12:15:03.255766+00 -90 virtualization 0006_tags 2021-08-17 12:15:03.494944+00 -91 virtualization 0007_change_logging 2021-08-17 12:15:03.693606+00 -92 virtualization 0008_virtualmachine_local_context_data 2021-08-17 12:15:03.756459+00 -93 tenancy 0004_tags 2021-08-17 12:15:03.849661+00 -94 tenancy 0005_change_logging 2021-08-17 12:15:03.955859+00 -95 extras 0001_initial 2021-08-17 12:15:04.282916+00 -96 extras 0002_custom_fields 2021-08-17 12:15:04.752073+00 -97 extras 0003_exporttemplate_add_description 2021-08-17 12:15:04.82691+00 -98 extras 0004_topologymap_change_comma_to_semicolon 2021-08-17 12:15:04.8585+00 -99 extras 0005_useraction_add_bulk_create 2021-08-17 12:15:04.893749+00 -100 extras 0006_add_imageattachments 2021-08-17 12:15:05.017838+00 -101 extras 0007_unicode_literals 2021-08-17 12:15:05.360669+00 -102 extras 0008_reports 2021-08-17 12:15:05.566382+00 -103 extras 0009_topologymap_type 2021-08-17 12:15:05.605895+00 -104 extras 0010_customfield_filter_logic 2021-08-17 12:15:05.915391+00 -105 extras 0011_django2 2021-08-17 12:15:06.195944+00 -106 extras 0012_webhooks 2021-08-17 12:15:06.365518+00 -107 extras 0013_objectchange 2021-08-17 12:15:06.497783+00 -108 ipam 0019_virtualization 2021-08-17 12:15:06.761108+00 -109 ipam 0020_ipaddress_add_role_carp 2021-08-17 12:15:06.875081+00 -110 dcim 0045_devicerole_vm_role 2021-08-17 12:15:06.895156+00 -111 dcim 0046_rack_lengthen_facility_id 2021-08-17 12:15:06.953457+00 -112 dcim 0047_more_100ge_form_factors 2021-08-17 12:15:07.024889+00 -113 dcim 0048_rack_serial 2021-08-17 12:15:07.07495+00 -114 dcim 0049_rackreservation_change_user 2021-08-17 12:15:07.321827+00 -115 dcim 0050_interface_vlan_tagging 2021-08-17 12:15:07.595989+00 -116 dcim 0051_rackreservation_tenant 2021-08-17 12:15:07.714031+00 -117 dcim 0052_virtual_chassis 2021-08-17 12:15:08.418059+00 -118 dcim 0053_platform_manufacturer 2021-08-17 12:15:08.553375+00 -119 dcim 0054_site_status_timezone_description 2021-08-17 12:15:08.841749+00 -120 dcim 0055_virtualchassis_ordering 2021-08-17 12:15:09.021624+00 -121 dcim 0056_django2 2021-08-17 12:15:09.252632+00 -122 dcim 0057_tags 2021-08-17 12:15:10.855067+00 -123 dcim 0058_relax_rack_naming_constraints 2021-08-17 12:15:11.014258+00 -124 dcim 0059_site_latitude_longitude 2021-08-17 12:15:11.318481+00 -125 dcim 0060_change_logging 2021-08-17 12:15:12.313932+00 -126 dcim 0061_platform_napalm_args 2021-08-17 12:15:12.353099+00 -127 extras 0014_configcontexts 2021-08-17 12:15:13.197812+00 -128 extras 0015_remove_useraction 2021-08-17 12:15:13.436832+00 -129 extras 0016_exporttemplate_add_cable 2021-08-17 12:15:13.563678+00 -130 extras 0017_exporttemplate_mime_type_length 2021-08-17 12:15:13.622114+00 -131 extras 0018_exporttemplate_add_jinja2 2021-08-17 12:15:13.787553+00 -132 extras 0019_tag_taggeditem 2021-08-17 12:15:14.200431+00 -133 virtualization 0009_custom_tag_models 2021-08-17 12:15:14.531629+00 -134 virtualization 0010_cluster_add_tenant 2021-08-17 12:15:14.705352+00 -135 virtualization 0011_3569_virtualmachine_fields 2021-08-17 12:15:14.952004+00 -136 tenancy 0006_custom_tag_models 2021-08-17 12:15:15.084838+00 -137 virtualization 0012_vm_name_nonunique 2021-08-17 12:15:15.319783+00 -138 virtualization 0013_deterministic_ordering 2021-08-17 12:15:15.495307+00 -139 virtualization 0014_standardize_description 2021-08-17 12:15:15.578791+00 -140 ipam 0021_vrf_ordering 2021-08-17 12:15:15.653877+00 -141 ipam 0022_tags 2021-08-17 12:15:16.469278+00 -142 ipam 0023_change_logging 2021-08-17 12:15:17.661493+00 -143 ipam 0024_vrf_allow_null_rd 2021-08-17 12:15:17.895528+00 -144 ipam 0025_custom_tag_models 2021-08-17 12:15:18.570508+00 -145 ipam 0026_prefix_ordering_vrf_nulls_first 2021-08-17 12:15:18.650803+00 -146 ipam 0027_ipaddress_add_dns_name 2021-08-17 12:15:18.727271+00 -147 ipam 0028_3569_prefix_fields 2021-08-17 12:15:19.093451+00 -148 ipam 0029_3569_ipaddress_fields 2021-08-17 12:15:19.708684+00 -149 ipam 0030_3569_vlan_fields 2021-08-17 12:15:20.11441+00 -150 ipam 0031_3569_service_fields 2021-08-17 12:15:20.309857+00 -151 ipam 0032_role_description 2021-08-17 12:15:20.329617+00 -152 ipam 0033_deterministic_ordering 2021-08-17 12:15:20.677527+00 -153 ipam 0034_fix_ipaddress_status_dhcp 2021-08-17 12:15:20.806017+00 -154 ipam 0035_drop_ip_family 2021-08-17 12:15:21.222134+00 -155 ipam 0036_standardize_description 2021-08-17 12:15:21.724399+00 -156 secrets 0001_initial 2021-08-17 12:15:22.484161+00 -157 secrets 0002_userkey_add_session_key 2021-08-17 12:15:22.744231+00 -158 secrets 0003_unicode_literals 2021-08-17 12:15:22.794626+00 -159 secrets 0004_tags 2021-08-17 12:15:22.929218+00 -160 secrets 0005_change_logging 2021-08-17 12:15:23.135549+00 -161 secrets 0006_custom_tag_models 2021-08-17 12:15:23.272242+00 -162 dcim 0062_interface_mtu 2021-08-17 12:15:23.589845+00 -163 dcim 0063_device_local_context_data 2021-08-17 12:15:23.693126+00 -164 dcim 0064_remove_platform_rpc_client 2021-08-17 12:15:23.735817+00 -165 dcim 0065_front_rear_ports 2021-08-17 12:15:25.687637+00 -166 circuits 0001_initial 2021-08-17 12:15:25.766394+00 -167 circuits 0002_auto_20160622_1821 2021-08-17 12:15:26.51978+00 -168 circuits 0003_provider_32bit_asn_support 2021-08-17 12:15:26.571862+00 -169 circuits 0004_circuit_add_tenant 2021-08-17 12:15:26.726296+00 -170 circuits 0005_circuit_add_upstream_speed 2021-08-17 12:15:26.802343+00 -171 circuits 0006_terminations 2021-08-17 12:15:27.762716+00 -172 dcim 0066_cables 2021-08-17 12:15:32.086571+00 -173 dcim 0067_device_type_remove_qualifiers 2021-08-17 12:15:32.323252+00 -174 dcim 0068_rack_new_fields 2021-08-17 12:15:32.895508+00 -175 dcim 0069_deprecate_nullablecharfield 2021-08-17 12:15:33.316428+00 -176 dcim 0070_custom_tag_models 2021-08-17 12:15:36.065266+00 -177 circuits 0007_circuit_add_description 2021-08-17 12:15:36.127542+00 -178 circuits 0008_circuittermination_interface_protect_on_delete 2021-08-17 12:15:36.27232+00 -179 circuits 0009_unicode_literals 2021-08-17 12:15:36.763863+00 -180 circuits 0010_circuit_status 2021-08-17 12:15:36.827516+00 -181 circuits 0011_tags 2021-08-17 12:15:37.26181+00 -182 circuits 0012_change_logging 2021-08-17 12:15:37.435008+00 -183 circuits 0013_cables 2021-08-17 12:15:38.103408+00 -184 circuits 0014_circuittermination_description 2021-08-17 12:15:38.33924+00 -185 circuits 0015_custom_tag_models 2021-08-17 12:15:38.923105+00 -186 extras 0020_tag_data 2021-08-17 12:15:39.602207+00 -187 extras 0021_add_color_comments_changelog_to_tag 2021-08-17 12:15:39.955506+00 -188 extras 0022_custom_links 2021-08-17 12:15:40.603729+00 -189 extras 0023_fix_tag_sequences 2021-08-17 12:15:40.616757+00 -190 extras 0024_scripts 2021-08-17 12:15:40.634021+00 -191 extras 0025_objectchange_time_index 2021-08-17 12:15:40.743856+00 -192 extras 0026_webhook_ca_file_path 2021-08-17 12:15:40.793837+00 -193 extras 0027_webhook_additional_headers 2021-08-17 12:15:40.847842+00 -194 extras 0028_remove_topology_maps 2021-08-17 12:15:40.863363+00 -195 extras 0029_3569_customfield_fields 2021-08-17 12:15:42.10631+00 -196 extras 0030_3569_objectchange_fields 2021-08-17 12:15:42.397804+00 -197 extras 0031_3569_exporttemplate_fields 2021-08-17 12:15:42.687506+00 -198 extras 0032_3569_webhook_fields 2021-08-17 12:15:43.391099+00 -199 extras 0033_graph_type_template_language 2021-08-17 12:15:43.837191+00 -200 extras 0034_configcontext_tags 2021-08-17 12:15:44.020284+00 -201 extras 0035_deterministic_ordering 2021-08-17 12:15:44.155004+00 -202 extras 0036_contenttype_filters_to_q_objects 2021-08-17 12:15:45.319521+00 -203 extras 0037_configcontexts_clusters 2021-08-17 12:15:45.813824+00 -204 extras 0038_webhook_template_support 2021-08-17 12:15:46.242766+00 -205 extras 0039_update_features_content_types 2021-08-17 12:15:47.580743+00 -206 extras 0040_standardize_description 2021-08-17 12:15:47.812906+00 -207 extras 0041_tag_description 2021-08-17 12:15:48.364647+00 -208 extras 0042_customfield_manager 2021-08-17 12:15:48.407967+00 -209 virtualization 0015_vminterface 2021-08-17 12:15:48.624788+00 -210 ipam 0037_ipaddress_assignment 2021-08-17 12:15:49.293975+00 -211 dcim 0071_device_components_add_description 2021-08-17 12:15:50.289766+00 -212 dcim 0072_powerfeeds 2021-08-17 12:15:53.909577+00 -213 dcim 0073_interface_form_factor_to_type 2021-08-17 12:15:54.125128+00 -214 dcim 0074_increase_field_length_platform_name_slug 2021-08-17 12:15:54.884202+00 -215 dcim 0075_cable_devices 2021-08-17 12:15:55.447681+00 -216 dcim 0076_console_port_types 2021-08-17 12:15:56.051257+00 -217 dcim 0077_power_types 2021-08-17 12:15:56.99337+00 -218 dcim 0078_3569_site_fields 2021-08-17 12:15:57.378861+00 -219 dcim 0079_3569_rack_fields 2021-08-17 12:15:58.671727+00 -220 dcim 0080_3569_devicetype_fields 2021-08-17 12:15:59.0452+00 -221 dcim 0081_3569_device_fields 2021-08-17 12:15:59.974158+00 -222 dcim 0082_3569_interface_fields 2021-08-17 12:16:01.163781+00 -223 virtualization 0016_replicate_interfaces 2021-08-17 12:16:01.332437+00 -224 virtualization 0017_update_jsonfield 2021-08-17 12:16:01.452555+00 -225 virtualization 0018_custom_field_data 2021-08-17 12:16:01.656373+00 -226 tenancy 0007_nested_tenantgroups 2021-08-17 12:16:01.929174+00 -227 tenancy 0008_nested_tenantgroups_rebuild 2021-08-17 12:16:02.122825+00 -228 tenancy 0009_standardize_description 2021-08-17 12:16:02.539572+00 -229 tenancy 0010_custom_field_data 2021-08-17 12:16:02.716771+00 -230 users 0001_api_tokens 2021-08-17 12:16:02.916121+00 -231 users 0002_unicode_literals 2021-08-17 12:16:02.95796+00 -232 users 0003_token_permissions 2021-08-17 12:16:02.990623+00 -233 users 0004_standardize_description 2021-08-17 12:16:03.067454+00 -234 users 0005_userconfig 2021-08-17 12:16:03.263219+00 -235 users 0006_create_userconfigs 2021-08-17 12:16:03.419612+00 -236 users 0007_proxy_group_user 2021-08-17 12:16:03.439319+00 -237 users 0008_objectpermission 2021-08-17 12:16:03.684404+00 -238 users 0009_replicate_permissions 2021-08-17 12:16:04.151673+00 -239 secrets 0007_secretrole_description 2021-08-17 12:16:04.211851+00 -240 secrets 0008_standardize_description 2021-08-17 12:16:04.274993+00 -241 secrets 0009_secretrole_drop_users_groups 2021-08-17 12:16:04.612006+00 -242 secrets 0010_custom_field_data 2021-08-17 12:16:04.725077+00 -243 ipam 0038_custom_field_data 2021-08-17 12:16:05.910315+00 -244 extras 0043_report 2021-08-17 12:16:05.929029+00 -245 extras 0044_jobresult 2021-08-17 12:16:06.312515+00 -246 extras 0045_configcontext_changelog 2021-08-17 12:16:06.514852+00 -247 extras 0046_update_jsonfield 2021-08-17 12:16:06.731012+00 -248 extras 0047_tag_ordering 2021-08-17 12:16:06.892246+00 -249 extras 0048_exporttemplate_remove_template_language 2021-08-17 12:16:07.010275+00 -250 extras 0049_remove_graph 2021-08-17 12:16:07.037978+00 -251 extras 0050_customfield_changes 2021-08-17 12:16:07.807806+00 -252 dcim 0082_3569_port_fields 2021-08-17 12:16:09.041547+00 -253 dcim 0083_3569_cable_fields 2021-08-17 12:16:10.131478+00 -254 dcim 0084_3569_powerfeed_fields 2021-08-17 12:16:11.425514+00 -255 dcim 0085_3569_poweroutlet_fields 2021-08-17 12:16:12.406416+00 -256 dcim 0086_device_name_nonunique 2021-08-17 12:16:12.681998+00 -257 dcim 0087_role_descriptions 2021-08-17 12:16:12.737791+00 -258 dcim 0088_powerfeed_available_power 2021-08-17 12:16:12.865294+00 -259 dcim 0089_deterministic_ordering 2021-08-17 12:16:13.083067+00 -260 dcim 0090_cable_termination_models 2021-08-17 12:16:13.627697+00 -261 dcim 0091_interface_type_other 2021-08-17 12:16:13.79519+00 -262 dcim 0092_fix_rack_outer_unit 2021-08-17 12:16:13.950406+00 -263 dcim 0093_device_component_ordering 2021-08-17 12:16:16.812123+00 -264 dcim 0094_device_component_template_ordering 2021-08-17 12:16:18.485774+00 -265 dcim 0095_primary_model_ordering 2021-08-17 12:16:19.918754+00 -266 dcim 0096_interface_ordering 2021-08-17 12:16:20.777524+00 -267 dcim 0097_interfacetemplate_type_other 2021-08-17 12:16:21.011539+00 -268 dcim 0098_devicetype_images 2021-08-17 12:16:21.346755+00 -269 dcim 0099_powerfeed_negative_voltage 2021-08-17 12:16:21.473482+00 -270 dcim 0100_mptt_remove_indexes 2021-08-17 12:16:22.208115+00 -271 dcim 0101_nested_rackgroups 2021-08-17 12:16:23.234897+00 -272 dcim 0102_nested_rackgroups_rebuild 2021-08-17 12:16:23.434741+00 -273 dcim 0103_standardize_description 2021-08-17 12:16:25.377251+00 -274 dcim 0104_correct_infiniband_types 2021-08-17 12:16:25.560174+00 -275 dcim 0105_interface_name_collation 2021-08-17 12:16:25.966687+00 -276 dcim 0106_role_default_color 2021-08-17 12:16:26.24134+00 -277 dcim 0107_component_labels 2021-08-17 12:16:27.773548+00 -278 dcim 0108_add_tags 2021-08-17 12:16:28.465627+00 -279 dcim 0109_interface_remove_vm 2021-08-17 12:16:28.847535+00 -280 dcim 0110_virtualchassis_name 2021-08-17 12:16:29.945623+00 -281 dcim 0111_component_template_description 2021-08-17 12:16:30.193074+00 -282 dcim 0112_standardize_components 2021-08-17 12:16:33.994896+00 -283 dcim 0113_nullbooleanfield_to_booleanfield 2021-08-17 12:16:34.597403+00 -284 dcim 0114_update_jsonfield 2021-08-17 12:16:34.897877+00 -285 dcim 0115_rackreservation_order 2021-08-17 12:16:35.274823+00 -286 dcim 0116_rearport_max_positions 2021-08-17 12:16:35.667086+00 -287 dcim 0117_custom_field_data 2021-08-17 12:16:36.848612+00 -288 circuits 0016_3569_circuit_fields 2021-08-17 12:16:37.143534+00 -289 circuits 0017_circuittype_description 2021-08-17 12:16:37.163867+00 -290 circuits 0018_standardize_description 2021-08-17 12:16:37.376793+00 -291 circuits 0019_nullbooleanfield_to_booleanfield 2021-08-17 12:16:37.479887+00 -292 circuits 0020_custom_field_data 2021-08-17 12:16:37.69535+00 -293 extras 0051_migrate_customfields 2021-08-17 12:16:38.620024+00 -294 extras 0052_customfield_cleanup 2021-08-17 12:16:38.820822+00 -295 extras 0053_rename_webhook_obj_type 2021-08-17 12:16:38.880928+00 -296 extras 0054_standardize_models 2021-08-17 12:16:40.065887+00 -297 extras 0055_objectchange_data 2021-08-17 12:16:40.245533+00 -298 dcim 0118_inventoryitem_mptt 2021-08-17 12:16:41.188554+00 -299 dcim 0119_inventoryitem_mptt_rebuild 2021-08-17 12:16:41.364971+00 -300 dcim 0120_cache_cable_peer 2021-08-17 12:16:44.39897+00 -301 dcim 0121_cablepath 2021-08-17 12:16:47.871509+00 -302 dcim 0122_standardize_name_length 2021-08-17 12:16:50.386792+00 -303 dcim 0123_standardize_models 2021-08-17 12:17:06.413987+00 -304 dcim 0124_mark_connected 2021-08-17 12:17:07.680799+00 -305 dcim 0125_console_port_speed 2021-08-17 12:17:07.947656+00 -306 dcim 0126_rename_rackgroup_location 2021-08-17 12:17:09.114321+00 -307 dcim 0127_device_location 2021-08-17 12:17:09.335363+00 -308 dcim 0128_device_location_populate 2021-08-17 12:17:09.523907+00 -309 dcim 0129_interface_parent 2021-08-17 12:17:09.740256+00 -310 dcim 0130_sitegroup 2021-08-17 12:17:09.975592+00 -311 extras 0056_extend_configcontext 2021-08-17 12:17:10.714528+00 -312 extras 0057_customlink_rename_fields 2021-08-17 12:17:10.925474+00 -313 extras 0058_journalentry 2021-08-17 12:17:11.146751+00 -314 circuits 0021_cache_cable_peer 2021-08-17 12:17:11.651958+00 -315 circuits 0022_cablepath 2021-08-17 12:17:12.405675+00 -316 circuits 0023_circuittermination_port_speed_optional 2021-08-17 12:17:12.539066+00 -317 circuits 0024_standardize_name_length 2021-08-17 12:17:12.91552+00 -318 circuits 0025_standardize_models 2021-08-17 12:17:14.248509+00 -319 circuits 0026_mark_connected 2021-08-17 12:17:14.386307+00 -320 circuits 0027_providernetwork 2021-08-17 12:17:15.841288+00 -321 circuits 0028_cache_circuit_terminations 2021-08-17 12:17:16.042129+00 -322 circuits 0029_circuit_tracing 2021-08-17 12:17:16.42657+00 -323 dcim 0131_consoleport_speed 2021-08-17 12:17:16.978726+00 -324 extras 0059_exporttemplate_as_attachment 2021-08-17 12:17:17.069604+00 -325 tenancy 0011_standardize_name_length 2021-08-17 12:17:17.844016+00 -326 ipam 0039_service_ports_array 2021-08-17 12:17:18.480771+00 -327 ipam 0040_service_drop_port 2021-08-17 12:17:18.616576+00 -328 ipam 0041_routetarget 2021-08-17 12:17:19.26195+00 -329 ipam 0042_standardize_name_length 2021-08-17 12:17:19.907215+00 -330 ipam 0043_add_tenancy_to_aggregates 2021-08-17 12:17:20.378234+00 -331 ipam 0044_standardize_models 2021-08-17 12:17:23.084721+00 -332 ipam 0045_vlangroup_scope 2021-08-17 12:17:23.561457+00 -333 ipam 0046_set_vlangroup_scope_types 2021-08-17 12:17:23.756681+00 -334 ipam 0047_prefix_depth_children 2021-08-17 12:17:24.243562+00 -335 ipam 0048_prefix_populate_depth_children 2021-08-17 12:17:24.445715+00 -336 secrets 0011_secret_generic_assignments 2021-08-17 12:17:25.937515+00 -337 secrets 0012_standardize_name_length 2021-08-17 12:17:25.989491+00 -338 secrets 0013_standardize_models 2021-08-17 12:17:26.632573+00 -339 sessions 0001_initial 2021-08-17 12:17:26.661534+00 -340 taggit 0003_taggeditem_add_unique_index 2021-08-17 12:17:26.759661+00 -341 tenancy 0012_standardize_models 2021-08-17 12:17:27.86755+00 -342 users 0010_update_jsonfield 2021-08-17 12:17:28.01005+00 -343 users 0011_standardize_models 2021-08-17 12:17:28.217663+00 -344 virtualization 0019_standardize_name_length 2021-08-17 12:17:28.622442+00 -345 virtualization 0020_standardize_models 2021-08-17 12:17:30.560056+00 -346 virtualization 0021_virtualmachine_vcpus_decimal 2021-08-17 12:17:30.735308+00 -347 virtualization 0022_vminterface_parent 2021-08-17 12:17:31.168652+00 -348 virtualization 0023_virtualmachine_natural_ordering 2021-08-17 12:17:31.585414+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; -pggakkdly06mxqrktrb3v5jkqhgk60xw .eJxVjEsKwjAUAO-StZR8-1qXXkBvEF5eniSKKTQpCOLdTcGFbmeGeQmPW0t-q7z6HMVRKHH4ZQHpzmUXhVtYnsOuuLRM2PJShnO4MbULr49cawenb_83SVhTP8TRTVqNVzYxuqgByIC20mmLUUKYlUYNTs6mA0tkMAS2EwNZKyXCKN4fIiU5gA:1mFyaz:v_I6vJ-GlVeDfL2g5H2qGebYCtitbxYa6NXmE_2C_Vg 2021-08-31 12:53:33.211188+00 -pm1dmpqofzvc19kwjtmtitcfckyk0nok .eJxVjEsKwjAUAO-StZR8-1qXXkBvEF5eniSKKTQpCOLdTcGFbmeGeQmPW0t-q7z6HMVRKHH4ZQHpzmUXhVtYnsOuuLRM2PJShnO4MbULr49cawenb_83SVhTP8TRTVqNVzYxuqgByIC20mmLUUKYlUYNTs6mA0tkMAS2EwNZKyXCKN4fIiU5gA:1n2Dal:X3dcTvfUrAT3PF7fY4_uwNuY4fRR2gf-qylOk0extaM 2022-01-11 14:36:43.655603+00 -\. - - --- --- Data for Name: extras_configcontext; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_configcontext (id, name, weight, description, is_active, data, created, last_updated) 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_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_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_customfield; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_customfield (id, type, name, label, description, required, weight, filter_logic, choices, "default", validation_maximum, validation_minimum, validation_regex) FROM stdin; -\. - - --- --- 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; -\. - - --- --- 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, content_type_id) FROM stdin; -\. - - --- --- Data for Name: extras_exporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_exporttemplate (id, name, template_code, mime_type, file_extension, content_type_id, description, as_attachment) 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) 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) FROM stdin; -\. - - --- --- Data for Name: extras_journalentry; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_journalentry (id, assigned_object_id, created, last_updated, kind, comments, assigned_object_type_id, created_by_id) 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, postchange_data, changed_object_type_id, related_object_type_id, user_id, prechange_data) FROM stdin; -85 2021-12-28 14:42:05.1922+00 admin 3199bb30-2b99-463a-a4e0-368c56e18399 create 6 \N fe80::250:56ff:fe3d:83af/64 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "fe80::250:56ff:fe3d:83af/64", "created": "2021-12-28", "dns_name": "mail.foo.com", "nat_inside": null, "description": "", "last_updated": "2021-12-28T14:42:05.160Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} 52 \N 1 \N -86 2021-12-28 21:36:39.915727+00 admin 283b3a50-a6fa-4282-9b04-57ba7c439eb3 create 7 \N 10.0.0.1/25 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "10.0.0.1/25", "created": "2021-12-28", "dns_name": "mail.foo.com", "nat_inside": null, "description": "", "last_updated": "2021-12-28T21:36:39.883Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} 52 \N 1 \N -87 2021-12-29 15:22:01.05259+00 admin e0c4d845-8cfa-45bc-b0bd-59ee4a5dad32 create 8 \N fe80::250:56ff:fe3d:8faf/64 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "fe80::250:56ff:fe3d:8faf/64", "created": "2021-12-29", "dns_name": "", "nat_inside": null, "description": "", "last_updated": "2021-12-29T15:22:01.014Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} 52 \N 1 \N -88 2021-12-30 13:48:58.506048+00 admin dd578731-55cc-4fc2-bd71-d2e9bcc19535 update 8 \N fe80::250:56ff:fe3d:8faf/64 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "fe80::250:56ff:fe3d:8faf/64", "created": "2021-12-29", "dns_name": "mail.foo.com", "nat_inside": null, "description": "", "last_updated": "2021-12-30T13:48:58.490Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} 52 \N 1 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "fe80::250:56ff:fe3d:8faf/64", "created": "2021-12-29", "dns_name": "", "nat_inside": null, "description": "", "last_updated": "2021-12-29T15:22:01.014Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} -89 2021-12-30 13:50:01.659558+00 admin 5ce6a968-8479-436b-a10f-9c515e01fcdb update 8 \N fe80::250:56ff:fe3d:8faf/64 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "fe80::250:56ff:fe3d:8faf/64", "created": "2021-12-29", "dns_name": "mail2.foo.com", "nat_inside": null, "description": "", "last_updated": "2021-12-30T13:50:01.648Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} 52 \N 1 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "fe80::250:56ff:fe3d:8faf/64", "created": "2021-12-29", "dns_name": "mail.foo.com", "nat_inside": null, "description": "", "last_updated": "2021-12-30T13:48:58.490Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} -90 2021-12-30 13:51:13.672736+00 admin 7d101af9-5012-4349-b188-f8b595ae2a05 update 6 \N fe80::250:56ff:fe2d:8faf/64 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "fe80::250:56ff:fe2d:8faf/64", "created": "2021-12-28", "dns_name": "mail.foo.com", "nat_inside": null, "description": "", "last_updated": "2021-12-30T13:51:13.658Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} 52 \N 1 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "fe80::250:56ff:fe3d:83af/64", "created": "2021-12-28", "dns_name": "mail.foo.com", "nat_inside": null, "description": "", "last_updated": "2021-12-28T14:42:05.160Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} -\. - - --- --- Data for Name: extras_tag; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_tag (id, name, slug, color, description, created, last_updated) FROM stdin; -\. - - --- --- Data for Name: extras_taggeditem; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.extras_taggeditem (id, object_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, http_content_type, secret, enabled, ssl_verification, ca_file_path, additional_headers, http_method, body_template) FROM stdin; -\. - - --- --- 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; -\. - - --- --- Data for Name: ipam_aggregate; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_aggregate (id, created, last_updated, prefix, date_added, description, rir_id, custom_field_data, tenant_id) FROM stdin; -\. - - --- --- Data for Name: ipam_ipaddress; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_ipaddress (id, created, last_updated, address, description, assigned_object_id, nat_inside_id, vrf_id, tenant_id, status, role, dns_name, assigned_object_type_id, custom_field_data) FROM stdin; -3 2021-08-17 2021-08-17 19:33:32.957755+00 192.168.1.2/25 \N \N \N \N reserved anycast ohl02 \N {} -4 2021-08-17 2021-08-17 19:33:51.600045+00 192.168.1.3/25 \N \N \N \N reserved anycast ohl03 \N {} -2 2021-08-17 2021-08-17 19:50:49.615754+00 192.168.1.1/25 2 \N \N \N reserved anycast ohl01 5 {} -5 2021-08-17 2021-08-17 19:54:31.85008+00 192.168.1.0/25 3 \N \N \N reserved anycast ohl00 5 {} -7 2021-12-28 2021-12-28 21:36:39.883703+00 10.0.0.1/25 \N \N \N \N active mail.foo.com \N {} -8 2021-12-29 2021-12-30 13:50:01.648972+00 fe80::250:56ff:fe3d:8faf/64 \N \N \N \N active mail2.foo.com \N {} -6 2021-12-28 2021-12-30 13:51:13.658311+00 fe80::250:56ff:fe2d:8faf/64 \N \N \N \N active mail.foo.com \N {} -\. - - --- --- Data for Name: ipam_prefix; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_prefix (id, created, last_updated, prefix, status, description, role_id, site_id, vlan_id, vrf_id, tenant_id, is_pool, custom_field_data, _children, _depth) FROM stdin; -1 2021-08-17 2021-08-17 19:31:13.84862+00 192.168.0.0/25 active VLAN for Cluster and Storgae nodes 1 \N 1 \N \N t {} 0 0 -4 2021-08-17 2021-08-17 19:31:34.136161+00 192.168.1.0/25 active VLAN for accessing all BMCs 2 \N 2 \N \N t {} 0 0 -\. - - --- --- Data for Name: ipam_rir; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_rir (id, name, slug, is_private, created, last_updated, description, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: ipam_role; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_role (id, name, slug, weight, created, last_updated, description, custom_field_data) FROM stdin; -1 VLAN-1 vlan-1 1000 2021-08-17 2021-08-17 18:49:25.169877+00 {} -2 VLAN-2 vlan-2 1000 2021-08-17 2021-08-17 18:52:14.459718+00 {} -\. - - --- --- Data for Name: ipam_routetarget; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_routetarget (id, created, last_updated, custom_field_data, name, description, tenant_id) FROM stdin; -\. - - --- --- Data for Name: ipam_service; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_service (id, created, last_updated, name, protocol, description, device_id, virtual_machine_id, custom_field_data, ports) 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_vlan; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_vlan (id, created, last_updated, vid, name, status, role_id, site_id, group_id, description, tenant_id, custom_field_data) FROM stdin; -2 2021-08-17 2021-08-17 18:48:50.908111+00 2 BMCs reserved \N \N \N BMC access VLAN \N {} -1 2021-08-17 2021-08-17 20:13:55.029828+00 1 Cluster-Intern reserved 1 \N \N \N {} -\. - - --- --- Data for Name: ipam_vlangroup; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_vlangroup (id, name, slug, scope_id, created, last_updated, description, custom_field_data, scope_type_id) FROM stdin; -\. - - --- --- Data for Name: ipam_vrf; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.ipam_vrf (id, created, last_updated, name, rd, description, enforce_unique, tenant_id, custom_field_data) 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: secrets_secret; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.secrets_secret (id, created, last_updated, name, ciphertext, hash, role_id, custom_field_data, assigned_object_id, assigned_object_type_id) FROM stdin; -\. - - --- --- Data for Name: secrets_secretrole; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.secrets_secretrole (id, name, slug, created, last_updated, description, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: secrets_sessionkey; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.secrets_sessionkey (id, cipher, hash, created, userkey_id) FROM stdin; -\. - - --- --- Data for Name: secrets_userkey; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.secrets_userkey (id, created, last_updated, public_key, master_key_cipher, user_id) 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_tenant; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.tenancy_tenant (id, created, last_updated, name, slug, description, comments, group_id, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: tenancy_tenantgroup; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.tenancy_tenantgroup (id, name, slug, created, last_updated, parent_id, level, lft, rght, tree_id, description, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: users_objectpermission; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.users_objectpermission (id, name, description, enabled, constraints, actions) FROM stdin; -\. - - --- --- 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; -\. - - --- --- 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; -\. - - --- --- 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) FROM stdin; -1 2021-08-17 12:17:35.242424+00 \N 0123456789abcdef0123456789abcdef01234567 t 1 -\. - - --- --- Data for Name: users_userconfig; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.users_userconfig (id, data, user_id) FROM stdin; -1 {} 1 -\. - - --- --- Data for Name: virtualization_cluster; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.virtualization_cluster (id, created, last_updated, name, comments, group_id, type_id, site_id, tenant_id, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: virtualization_clustergroup; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.virtualization_clustergroup (id, name, slug, created, last_updated, description, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: virtualization_clustertype; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.virtualization_clustertype (id, name, slug, created, last_updated, description, custom_field_data) FROM stdin; -\. - - --- --- Data for Name: virtualization_virtualmachine; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.virtualization_virtualmachine (id, created, last_updated, name, vcpus, memory, disk, comments, cluster_id, platform_id, primary_ip4_id, primary_ip6_id, tenant_id, status, role_id, local_context_data, custom_field_data, _name) FROM stdin; -\. - - --- --- Data for Name: virtualization_vminterface; Type: TABLE DATA; Schema: public; Owner: netbox --- - -COPY public.virtualization_vminterface (id, name, _name, enabled, mac_address, mtu, mode, description, untagged_vlan_id, virtual_machine_id, created, last_updated, custom_field_data, parent_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; -\. - - --- --- Name: auth_group_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.auth_group_id_seq', 1, false); - - --- --- 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', 344, 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, false); - - --- --- Name: auth_user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.auth_user_id_seq', 1, 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_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_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', 16, true); - - --- --- 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', 6, true); - - --- --- Name: dcim_devicetype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_devicetype_id_seq', 8, 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', 3, true); - - --- --- 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_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_manufacturer_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_manufacturer_id_seq', 3, 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_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', 4, true); - - --- --- Name: dcim_rackgroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_rackgroup_id_seq', 2, true); - - --- --- 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_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.dcim_site_id_seq', 2, 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: 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', 87, true); - - --- --- Name: django_migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.django_migrations_id_seq', 348, true); - - --- --- 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_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_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_customfield_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_customfield_id_seq', 1, false); - - --- --- Name: extras_customfield_obj_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_customfield_obj_type_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_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', 90, true); - - --- --- Name: extras_tag_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_tag_id_seq', 1, false); - - --- --- 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_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_webhook_id_seq', 1, false); - - --- --- Name: extras_webhook_obj_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.extras_webhook_obj_type_id_seq', 1, false); - - --- --- 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_ipaddress_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_ipaddress_id_seq', 8, true); - - --- --- Name: ipam_prefix_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_prefix_id_seq', 4, true); - - --- --- 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', 2, 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_vlan_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.ipam_vlan_id_seq', 2, true); - - --- --- 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: secrets_secret_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.secrets_secret_id_seq', 1, false); - - --- --- Name: secrets_secretrole_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.secrets_secretrole_id_seq', 1, false); - - --- --- Name: secrets_sessionkey_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.secrets_sessionkey_id_seq', 1, false); - - --- --- Name: secrets_userkey_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.secrets_userkey_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_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', 1, false); - - --- --- Name: users_objectpermission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.users_objectpermission_id_seq', 1, false); - - --- --- 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', 1, false); - - --- --- 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', 1, true); - - --- --- Name: users_userconfig_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox --- - -SELECT pg_catalog.setval('public.users_userconfig_id_seq', 1, 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: 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_provider_id_cid_b6f29862_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuit - ADD CONSTRAINT circuits_circuit_provider_id_cid_b6f29862_uniq UNIQUE (provider_id, cid); - - --- --- Name: circuits_circuittermination circuits_circuittermination_circuit_id_term_side_b13efd0e_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuittermination - ADD CONSTRAINT circuits_circuittermination_circuit_id_term_side_b13efd0e_uniq UNIQUE (circuit_id, term_side); - - --- --- 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_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 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_provider_id_name_6f6610a0_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_providernetwork - ADD CONSTRAINT circuits_providernetwork_provider_id_name_6f6610a0_uniq UNIQUE (provider_id, name); - - --- --- Name: circuits_providernetwork circuits_providernetwork_provider_name; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_providernetwork - ADD CONSTRAINT circuits_providernetwork_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_cable dcim_cable_termination_a_type_id_termination_a_id_e9d24bad_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cable - ADD CONSTRAINT dcim_cable_termination_a_type_id_termination_a_id_e9d24bad_uniq UNIQUE (termination_a_type_id, termination_a_id); - - --- --- Name: dcim_cable dcim_cable_termination_b_type_id_termination_b_id_057fc21f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cable - ADD CONSTRAINT dcim_cable_termination_b_type_id_termination_b_id_057fc21f_uniq UNIQUE (termination_b_type_id, termination_b_id); - - --- --- Name: dcim_cablepath dcim_cablepath_origin_type_id_origin_id_41b6f814_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cablepath - ADD CONSTRAINT dcim_cablepath_origin_type_id_origin_id_41b6f814_uniq UNIQUE (origin_type_id, origin_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_consoleport dcim_consoleport_device_id_name_293786b6_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleport - ADD CONSTRAINT dcim_consoleport_device_id_name_293786b6_uniq UNIQUE (device_id, name); - - --- --- 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_consoleporttemplate dcim_consoleporttemplate_device_type_id_name_8208f9ca_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleporttemplate - ADD CONSTRAINT dcim_consoleporttemplate_device_type_id_name_8208f9ca_uniq UNIQUE (device_type_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_consoleserverport dcim_consoleserverport_device_id_name_fb1c5999_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverport - ADD CONSTRAINT dcim_consoleserverport_device_id_name_fb1c5999_uniq UNIQUE (device_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_consoleserverporttemplate dcim_consoleserverportte_device_type_id_name_a05c974d_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverporttemplate - ADD CONSTRAINT dcim_consoleserverportte_device_type_id_name_a05c974d_uniq UNIQUE (device_type_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_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_rack_id_position_face_43208a79_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_rack_id_position_face_43208a79_uniq UNIQUE (rack_id, "position", face); - - --- --- Name: dcim_device dcim_device_site_id_tenant_id_name_93f4f962_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_site_id_tenant_id_name_93f4f962_uniq UNIQUE (site_id, tenant_id, name); - - --- --- Name: dcim_device dcim_device_virtual_chassis_id_vc_position_efea7133_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_virtual_chassis_id_vc_position_efea7133_uniq UNIQUE (virtual_chassis_id, vc_position); - - --- --- Name: dcim_devicebay dcim_devicebay_device_id_name_2475a67b_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicebay - ADD CONSTRAINT dcim_devicebay_device_id_name_2475a67b_uniq UNIQUE (device_id, name); - - --- --- 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_devicebaytemplate dcim_devicebaytemplate_device_type_id_name_8f4899fe_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicebaytemplate - ADD CONSTRAINT dcim_devicebaytemplate_device_type_id_name_8f4899fe_uniq UNIQUE (device_type_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_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_manufacturer_id_model_17948c0c_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicetype - ADD CONSTRAINT dcim_devicetype_manufacturer_id_model_17948c0c_uniq UNIQUE (manufacturer_id, model); - - --- --- Name: dcim_devicetype dcim_devicetype_manufacturer_id_slug_a0b931cb_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicetype - ADD CONSTRAINT dcim_devicetype_manufacturer_id_slug_a0b931cb_uniq UNIQUE (manufacturer_id, 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_frontport dcim_frontport_device_id_name_235b7af2_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontport - ADD CONSTRAINT dcim_frontport_device_id_name_235b7af2_uniq UNIQUE (device_id, name); - - --- --- 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_rear_port_id_rear_port_position_8b0bf7ca_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontport - ADD CONSTRAINT dcim_frontport_rear_port_id_rear_port_position_8b0bf7ca_uniq UNIQUE (rear_port_id, rear_port_position); - - --- --- Name: dcim_frontporttemplate dcim_frontporttemplate_device_type_id_name_0a0a0e05_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontporttemplate - ADD CONSTRAINT dcim_frontporttemplate_device_type_id_name_0a0a0e05_uniq UNIQUE (device_type_id, name); - - --- --- 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_rear_port_id_rear_port_p_401fe927_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontporttemplate - ADD CONSTRAINT dcim_frontporttemplate_rear_port_id_rear_port_p_401fe927_uniq UNIQUE (rear_port_id, rear_port_position); - - --- --- Name: dcim_interface dcim_interface_device_id_name_bffc4ec4_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface_device_id_name_bffc4ec4_uniq UNIQUE (device_id, name); - - --- --- 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_interfacetemplate dcim_interfacetemplate_device_type_id_name_3a847237_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interfacetemplate - ADD CONSTRAINT dcim_interfacetemplate_device_type_id_name_3a847237_uniq UNIQUE (device_type_id, name); - - --- --- 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_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_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_inventoryitem dcim_module_device_id_parent_id_name_4d8292af_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitem - ADD CONSTRAINT dcim_module_device_id_parent_id_name_4d8292af_uniq UNIQUE (device_id, parent_id, name); - - --- --- Name: dcim_inventoryitem dcim_module_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitem - ADD CONSTRAINT dcim_module_pkey PRIMARY KEY (id); - - --- --- 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_power_panel_id_name_0fbaae9f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerfeed - ADD CONSTRAINT dcim_powerfeed_power_panel_id_name_0fbaae9f_uniq UNIQUE (power_panel_id, name); - - --- --- Name: dcim_poweroutlet dcim_poweroutlet_device_id_name_981b00c1_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlet - ADD CONSTRAINT dcim_poweroutlet_device_id_name_981b00c1_uniq UNIQUE (device_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_poweroutlettemplate dcim_poweroutlettemplate_device_type_id_name_eafbb07d_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlettemplate - ADD CONSTRAINT dcim_poweroutlettemplate_device_type_id_name_eafbb07d_uniq UNIQUE (device_type_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_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_site_id_name_804df4c0_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerpanel - ADD CONSTRAINT dcim_powerpanel_site_id_name_804df4c0_uniq UNIQUE (site_id, name); - - --- --- Name: dcim_powerport dcim_powerport_device_id_name_948af82c_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerport - ADD CONSTRAINT dcim_powerport_device_id_name_948af82c_uniq UNIQUE (device_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_powerporttemplate dcim_powerporttemplate_device_type_id_name_b4e9689f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerporttemplate - ADD CONSTRAINT dcim_powerporttemplate_device_type_id_name_b4e9689f_uniq UNIQUE (device_type_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_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_group_id_facility_id_f16a53ae_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rack - ADD CONSTRAINT dcim_rack_group_id_facility_id_f16a53ae_uniq UNIQUE (location_id, facility_id); - - --- --- Name: dcim_rack dcim_rack_group_id_name_846f3826_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rack - ADD CONSTRAINT dcim_rack_group_id_name_846f3826_uniq UNIQUE (location_id, name); - - --- --- 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_location dcim_rackgroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_location - ADD CONSTRAINT dcim_rackgroup_pkey PRIMARY KEY (id); - - --- --- Name: dcim_location dcim_rackgroup_site_id_name_c9bd921f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_location - ADD CONSTRAINT dcim_rackgroup_site_id_name_c9bd921f_uniq UNIQUE (site_id, name); - - --- --- Name: dcim_location dcim_rackgroup_site_id_slug_7fbfd118_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_location - ADD CONSTRAINT dcim_rackgroup_site_id_slug_7fbfd118_uniq UNIQUE (site_id, slug); - - --- --- 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_device_id_name_4b14dde6_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearport - ADD CONSTRAINT dcim_rearport_device_id_name_4b14dde6_uniq UNIQUE (device_id, name); - - --- --- 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_rearporttemplate dcim_rearporttemplate_device_type_id_name_9bdddb29_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearporttemplate - ADD CONSTRAINT dcim_rearporttemplate_device_type_id_name_9bdddb29_uniq UNIQUE (device_type_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_region dcim_region_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_region - ADD CONSTRAINT dcim_region_name_key UNIQUE (name); - - --- --- 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_region dcim_region_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_region - ADD CONSTRAINT dcim_region_slug_key UNIQUE (slug); - - --- --- 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_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_sitegroup - ADD CONSTRAINT dcim_sitegroup_name_key UNIQUE (name); - - --- --- 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_sitegroup dcim_sitegroup_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_sitegroup - ADD CONSTRAINT dcim_sitegroup_slug_key UNIQUE (slug); - - --- --- 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: 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_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_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_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 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_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_content_types extras_customfield_obj_t_customfield_id_contentty_77878958_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customfield_content_types - ADD CONSTRAINT extras_customfield_obj_t_customfield_id_contentty_77878958_uniq UNIQUE (customfield_id, contenttype_id); - - --- --- Name: extras_customfield_content_types extras_customfield_obj_type_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customfield_content_types - ADD CONSTRAINT extras_customfield_obj_type_pkey PRIMARY KEY (id); - - --- --- 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 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 extras_exporttemplate_content_type_id_name_edca9b9b_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_exporttemplate - ADD CONSTRAINT extras_exporttemplate_content_type_id_name_edca9b9b_uniq UNIQUE (content_type_id, name); - - --- --- 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_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 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_content_types extras_webhook_obj_type_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_webhook_content_types - ADD CONSTRAINT extras_webhook_obj_type_pkey PRIMARY KEY (id); - - --- --- Name: extras_webhook_content_types extras_webhook_obj_type_webhook_id_contenttype_id_99b8b9c3_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_webhook_content_types - ADD CONSTRAINT extras_webhook_obj_type_webhook_id_contenttype_id_99b8b9c3_uniq UNIQUE (webhook_id, contenttype_id); - - --- --- Name: extras_webhook extras_webhook_payload_url_type_create__dd332134_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_webhook - ADD CONSTRAINT extras_webhook_payload_url_type_create__dd332134_uniq UNIQUE (payload_url, type_create, type_update, type_delete); - - --- --- 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: 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_ipaddress ipam_ipaddress_nat_inside_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_ipaddress - ADD CONSTRAINT ipam_ipaddress_nat_inside_id_key UNIQUE (nat_inside_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_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_vlan ipam_vlan_group_id_name_e53919df_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlan - ADD CONSTRAINT ipam_vlan_group_id_name_e53919df_uniq UNIQUE (group_id, name); - - --- --- Name: ipam_vlan ipam_vlan_group_id_vid_5ca4cc47_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlan - ADD CONSTRAINT ipam_vlan_group_id_vid_5ca4cc47_uniq UNIQUE (group_id, vid); - - --- --- 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_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_scope_type_id_scope_id_name_66199b4b_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlangroup - ADD CONSTRAINT ipam_vlangroup_scope_type_id_scope_id_name_66199b4b_uniq UNIQUE (scope_type_id, scope_id, name); - - --- --- Name: ipam_vlangroup ipam_vlangroup_scope_type_id_scope_id_slug_6ae7ef85_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlangroup - ADD CONSTRAINT ipam_vlangroup_scope_type_id_scope_id_slug_6ae7ef85_uniq 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: secrets_secret secrets_secret_assigned_object_type_id__c3da11b2_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_secret - ADD CONSTRAINT secrets_secret_assigned_object_type_id__c3da11b2_uniq UNIQUE (assigned_object_type_id, assigned_object_id, role_id, name); - - --- --- Name: secrets_secret secrets_secret_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_secret - ADD CONSTRAINT secrets_secret_pkey PRIMARY KEY (id); - - --- --- Name: secrets_secretrole secrets_secretrole_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_secretrole - ADD CONSTRAINT secrets_secretrole_name_key UNIQUE (name); - - --- --- Name: secrets_secretrole secrets_secretrole_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_secretrole - ADD CONSTRAINT secrets_secretrole_pkey PRIMARY KEY (id); - - --- --- Name: secrets_secretrole secrets_secretrole_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_secretrole - ADD CONSTRAINT secrets_secretrole_slug_key UNIQUE (slug); - - --- --- Name: secrets_sessionkey secrets_sessionkey_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_sessionkey - ADD CONSTRAINT secrets_sessionkey_pkey PRIMARY KEY (id); - - --- --- Name: secrets_sessionkey secrets_sessionkey_userkey_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_sessionkey - ADD CONSTRAINT secrets_sessionkey_userkey_id_key UNIQUE (userkey_id); - - --- --- Name: secrets_userkey secrets_userkey_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_userkey - ADD CONSTRAINT secrets_userkey_pkey PRIMARY KEY (id); - - --- --- Name: secrets_userkey secrets_userkey_user_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_userkey - ADD CONSTRAINT secrets_userkey_user_id_key UNIQUE (user_id); - - --- --- 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_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_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_cluster - ADD CONSTRAINT virtualization_cluster_name_key UNIQUE (name); - - --- --- 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_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_virtualma_cluster_id_tenant_id_nam_56c69afb_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtualma_cluster_id_tenant_id_nam_56c69afb_uniq UNIQUE (cluster_id, tenant_id, name); - - --- --- 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 virtualization_vminterfa_virtual_machine_id_name_cfb9c423_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface - ADD CONSTRAINT virtualization_vminterfa_virtual_machine_id_name_cfb9c423_uniq UNIQUE (virtual_machine_id, name); - - --- --- 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: 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_peer_type_id_bd122156; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX circuits_circuittermination__cable_peer_type_id_bd122156 ON public.circuits_circuittermination USING btree (_cable_peer_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_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__termination_a_device_id_e59cde1c; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_cable__termination_a_device_id_e59cde1c ON public.dcim_cable USING btree (_termination_a_device_id); - - --- --- Name: dcim_cable__termination_b_device_id_a9073762; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_cable__termination_b_device_id_a9073762 ON public.dcim_cable USING btree (_termination_b_device_id); - - --- --- Name: dcim_cable_termination_a_type_id_a614bab8; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_cable_termination_a_type_id_a614bab8 ON public.dcim_cable USING btree (termination_a_type_id); - - --- --- Name: dcim_cable_termination_b_type_id_a91595d0; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_cable_termination_b_type_id_a91595d0 ON public.dcim_cable USING btree (termination_b_type_id); - - --- --- Name: dcim_cablepath_destination_type_id_a8c1654b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_cablepath_destination_type_id_a8c1654b ON public.dcim_cablepath USING btree (destination_type_id); - - --- --- Name: dcim_cablepath_origin_type_id_6de54f6d; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_cablepath_origin_type_id_6de54f6d ON public.dcim_cablepath USING btree (origin_type_id); - - --- --- Name: dcim_consoleport__cable_peer_type_id_52adb1be; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_consoleport__cable_peer_type_id_52adb1be ON public.dcim_consoleport USING btree (_cable_peer_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_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_consoleserverport__cable_peer_type_id_132b6744; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_consoleserverport__cable_peer_type_id_132b6744 ON public.dcim_consoleserverport USING btree (_cable_peer_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_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_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_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_peer_type_id_c4690f56; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_frontport__cable_peer_type_id_c4690f56 ON public.dcim_frontport USING btree (_cable_peer_type_id); - - --- --- 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_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_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__cable_peer_type_id_ce52cb81; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_interface__cable_peer_type_id_ce52cb81 ON public.dcim_interface USING btree (_cable_peer_type_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_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_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_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_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_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_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_device_id_53cfd5be; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_module_device_id_53cfd5be ON public.dcim_inventoryitem USING btree (device_id); - - --- --- Name: dcim_module_manufacturer_id_95322cbb; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_module_manufacturer_id_95322cbb ON public.dcim_inventoryitem USING btree (manufacturer_id); - - --- --- Name: dcim_module_parent_id_bb5d0341; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_module_parent_id_bb5d0341 ON public.dcim_inventoryitem USING btree (parent_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__cable_peer_type_id_9f930589; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_powerfeed__cable_peer_type_id_9f930589 ON public.dcim_powerfeed USING btree (_cable_peer_type_id); - - --- --- 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__cable_peer_type_id_bbff28d0; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_poweroutlet__cable_peer_type_id_bbff28d0 ON public.dcim_poweroutlet USING btree (_cable_peer_type_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_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_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_rack_group_id_76467cc9; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_powerpanel_rack_group_id_76467cc9 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__cable_peer_type_id_9df2a278; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_powerport__cable_peer_type_id_9df2a278 ON public.dcim_powerport USING btree (_cable_peer_type_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_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_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_group_id_44e90ea9; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rack_group_id_44e90ea9 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_rackgroup_parent_id_cc315105; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rackgroup_parent_id_cc315105 ON public.dcim_location USING btree (parent_id); - - --- --- Name: dcim_rackgroup_site_id_13520e89; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rackgroup_site_id_13520e89 ON public.dcim_location USING btree (site_id); - - --- --- Name: dcim_rackgroup_slug_3f4582a7; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rackgroup_slug_3f4582a7 ON public.dcim_location USING btree (slug); - - --- --- Name: dcim_rackgroup_slug_3f4582a7_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rackgroup_slug_3f4582a7_like ON public.dcim_location USING btree (slug varchar_pattern_ops); - - --- --- Name: dcim_rackgroup_tree_id_9c2ad6f4; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rackgroup_tree_id_9c2ad6f4 ON public.dcim_location USING btree (tree_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_peer_type_id_cecf241c; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_rearport__cable_peer_type_id_cecf241c ON public.dcim_rearport USING btree (_cable_peer_type_id); - - --- --- 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_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_region_name_ba5a7082_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_region_name_ba5a7082_like ON public.dcim_region USING btree (name varchar_pattern_ops); - - --- --- 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_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_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_803063c0_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX dcim_sitegroup_name_803063c0_like ON public.dcim_sitegroup USING btree (name varchar_pattern_ops); - - --- --- 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_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: 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_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_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_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_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_obj_type_contenttype_id_6890b714; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_customfield_obj_type_contenttype_id_6890b714 ON public.extras_customfield_content_types USING btree (contenttype_id); - - --- --- Name: extras_customfield_obj_type_customfield_id_82480f86; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_customfield_obj_type_customfield_id_82480f86 ON public.extras_customfield_content_types USING btree (customfield_id); - - --- --- Name: extras_customlink_content_type_id_4d35b063; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_customlink_content_type_id_4d35b063 ON public.extras_customlink USING btree (content_type_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_type_id_59737e21; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_exporttemplate_content_type_id_59737e21 ON public.extras_exporttemplate USING btree (content_type_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_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_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: extras_webhook_obj_type_contenttype_id_85c7693b; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_webhook_obj_type_contenttype_id_85c7693b ON public.extras_webhook_content_types USING btree (contenttype_id); - - --- --- Name: extras_webhook_obj_type_webhook_id_c7bed170; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX extras_webhook_obj_type_webhook_id_c7bed170 ON public.extras_webhook_content_types USING btree (webhook_id); - - --- --- 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_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_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_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_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: secrets_secret_assigned_object_type_id_285b92a4; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX secrets_secret_assigned_object_type_id_285b92a4 ON public.secrets_secret USING btree (assigned_object_type_id); - - --- --- Name: secrets_secret_role_id_39d9347f; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX secrets_secret_role_id_39d9347f ON public.secrets_secret USING btree (role_id); - - --- --- Name: secrets_secretrole_name_7b6ee7a4_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX secrets_secretrole_name_7b6ee7a4_like ON public.secrets_secretrole USING btree (name varchar_pattern_ops); - - --- --- Name: secrets_secretrole_slug_a06c885e_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX secrets_secretrole_slug_a06c885e_like ON public.secrets_secretrole USING btree (slug varchar_pattern_ops); - - --- --- 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_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_name_1b59a61b_like; Type: INDEX; Schema: public; Owner: netbox --- - -CREATE INDEX virtualization_cluster_name_1b59a61b_like ON public.virtualization_cluster USING btree (name varchar_pattern_ops); - - --- --- 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_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_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_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: 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; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuit - ADD CONSTRAINT circuits_circuit_provider_id_d9195418_fk FOREIGN KEY (provider_id) REFERENCES public.circuits_provider(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: circuits_circuit circuits_circuit_tenant_id_812508a5_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuit - ADD CONSTRAINT circuits_circuit_tenant_id_812508a5_fk 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; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuit - ADD CONSTRAINT circuits_circuit_type_id_1b9f485a_fk FOREIGN KEY (type_id) REFERENCES public.circuits_circuittype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: circuits_circuittermination circuits_circuitterm__cable_peer_type_id_bd122156_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuittermination - ADD CONSTRAINT circuits_circuitterm__cable_peer_type_id_bd122156_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(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_circuit_id_257e87e7_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.circuits_circuittermination - ADD CONSTRAINT circuits_circuittermination_circuit_id_257e87e7_fk FOREIGN KEY (circuit_id) REFERENCES public.circuits_circuit(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_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_termination_a_type_i_a614bab8_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cable - ADD CONSTRAINT dcim_cable_termination_a_type_i_a614bab8_fk_django_co FOREIGN KEY (termination_a_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_cable dcim_cable_termination_b_type_i_a91595d0_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cable - ADD CONSTRAINT dcim_cable_termination_b_type_i_a91595d0_fk_django_co FOREIGN KEY (termination_b_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_cablepath dcim_cablepath_destination_type_id_a8c1654b_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cablepath - ADD CONSTRAINT dcim_cablepath_destination_type_id_a8c1654b_fk_django_co FOREIGN KEY (destination_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_cablepath dcim_cablepath_origin_type_id_6de54f6d_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_cablepath - ADD CONSTRAINT dcim_cablepath_origin_type_id_6de54f6d_fk_django_co FOREIGN KEY (origin_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleport dcim_consoleport__cable_peer_type_id_52adb1be_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleport - ADD CONSTRAINT dcim_consoleport__cable_peer_type_id_52adb1be_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleport dcim_consoleport__path_id_e40a4436_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleport - ADD CONSTRAINT dcim_consoleport__path_id_e40a4436_fk FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleport dcim_consoleport_device_id_f2d90d3c_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleport - ADD CONSTRAINT dcim_consoleport_device_id_f2d90d3c_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleporttemplate dcim_consoleporttemplate_device_type_id_075d4015_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleporttemplate - ADD CONSTRAINT dcim_consoleporttemplate_device_type_id_075d4015_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleserverport dcim_consoleserverpo__cable_peer_type_id_132b6744_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverport - ADD CONSTRAINT dcim_consoleserverpo__cable_peer_type_id_132b6744_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleserverport dcim_consoleserverport__path_id_dc5abe09_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverport - ADD CONSTRAINT dcim_consoleserverport__path_id_dc5abe09_fk FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleserverport dcim_consoleserverport_device_id_d9866581_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverport - ADD CONSTRAINT dcim_consoleserverport_device_id_d9866581_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_consoleserverporttemplate dcim_consoleserverporttemplate_device_type_id_579bdc86_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_consoleserverporttemplate - ADD CONSTRAINT dcim_consoleserverporttemplate_device_type_id_579bdc86_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_cluster_id_cf852f78_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_cluster_id_cf852f78_fk FOREIGN KEY (cluster_id) REFERENCES public.virtualization_cluster(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_device_role_id_682e8188_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_device_role_id_682e8188_fk FOREIGN KEY (device_role_id) REFERENCES public.dcim_devicerole(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_device_type_id_d61b4086_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_device_type_id_d61b4086_fk 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; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_platform_id_468138f1_fk FOREIGN KEY (platform_id) REFERENCES public.dcim_platform(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_primary_ip4_id_2ccd943a_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_primary_ip4_id_2ccd943a_fk FOREIGN KEY (primary_ip4_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_primary_ip6_id_d180fe91_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_primary_ip6_id_d180fe91_fk FOREIGN KEY (primary_ip6_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_rack_id_23bde71f_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_rack_id_23bde71f_fk FOREIGN KEY (rack_id) REFERENCES public.dcim_rack(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_site_id_ff897cf6_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_site_id_ff897cf6_fk FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_tenant_id_dcea7969_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_tenant_id_dcea7969_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_device dcim_device_virtual_chassis_id_aed51693_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_device - ADD CONSTRAINT dcim_device_virtual_chassis_id_aed51693_fk FOREIGN KEY (virtual_chassis_id) REFERENCES public.dcim_virtualchassis(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_devicebay dcim_devicebay_device_id_0c8a1218_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicebay - ADD CONSTRAINT dcim_devicebay_device_id_0c8a1218_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_devicebay dcim_devicebay_installed_device_id_04618112_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicebay - ADD CONSTRAINT dcim_devicebay_installed_device_id_04618112_fk FOREIGN KEY (installed_device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_devicebaytemplate dcim_devicebaytemplate_device_type_id_f4b24a29_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicebaytemplate - ADD CONSTRAINT dcim_devicebaytemplate_device_type_id_f4b24a29_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_devicetype dcim_devicetype_manufacturer_id_a3e8029e_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_devicetype - ADD CONSTRAINT dcim_devicetype_manufacturer_id_a3e8029e_fk FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_frontport dcim_frontport__cable_peer_type_id_c4690f56_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontport - ADD CONSTRAINT dcim_frontport__cable_peer_type_id_c4690f56_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_frontport dcim_frontport_device_id_950557b5_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontport - ADD CONSTRAINT dcim_frontport_device_id_950557b5_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_frontport dcim_frontport_rear_port_id_78df2532_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontport - ADD CONSTRAINT dcim_frontport_rear_port_id_78df2532_fk FOREIGN KEY (rear_port_id) REFERENCES public.dcim_rearport(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_frontporttemplate dcim_frontporttemplate_device_type_id_f088b952_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontporttemplate - ADD CONSTRAINT dcim_frontporttemplate_device_type_id_f088b952_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_frontporttemplate dcim_frontporttemplate_rear_port_id_9775411b_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_frontporttemplate - ADD CONSTRAINT dcim_frontporttemplate_rear_port_id_9775411b_fk FOREIGN KEY (rear_port_id) REFERENCES public.dcim_rearporttemplate(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface dcim_interface__cable_peer_type_id_ce52cb81_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface__cable_peer_type_id_ce52cb81_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface dcim_interface__path_id_f8f4f7f0_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface__path_id_f8f4f7f0_fk FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface dcim_interface_device_id_359c6115_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface_device_id_359c6115_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interface dcim_interface_lag_id_ea1a1d12_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface_lag_id_ea1a1d12_fk FOREIGN KEY (lag_id) REFERENCES public.dcim_interface(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 dcim_interface_untagged_vlan_id_838dc7be_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interface - ADD CONSTRAINT dcim_interface_untagged_vlan_id_838dc7be_fk FOREIGN KEY (untagged_vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_interfacetemplate dcim_interfacetemplate_device_type_id_4bfcbfab_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_interfacetemplate - ADD CONSTRAINT dcim_interfacetemplate_device_type_id_4bfcbfab_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_inventoryitem dcim_inventoryitem_device_id_033d83f8_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitem - ADD CONSTRAINT dcim_inventoryitem_device_id_033d83f8_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_inventoryitem dcim_inventoryitem_manufacturer_id_dcd1b78a_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitem - ADD CONSTRAINT dcim_inventoryitem_manufacturer_id_dcd1b78a_fk FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_inventoryitem dcim_inventoryitem_parent_id_7ebcd457_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_inventoryitem - ADD CONSTRAINT dcim_inventoryitem_parent_id_7ebcd457_fk FOREIGN KEY (parent_id) REFERENCES public.dcim_inventoryitem(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_platform dcim_platform_manufacturer_id_83f72d3d_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_platform - ADD CONSTRAINT dcim_platform_manufacturer_id_83f72d3d_fk FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerfeed dcim_powerfeed__cable_peer_type_id_9f930589_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerfeed - ADD CONSTRAINT dcim_powerfeed__cable_peer_type_id_9f930589_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerfeed dcim_powerfeed__path_id_a1ea1f28_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerfeed - ADD CONSTRAINT dcim_powerfeed__path_id_a1ea1f28_fk FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerfeed dcim_powerfeed_power_panel_id_32bde3be_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerfeed - ADD CONSTRAINT dcim_powerfeed_power_panel_id_32bde3be_fk FOREIGN KEY (power_panel_id) REFERENCES public.dcim_powerpanel(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerfeed dcim_powerfeed_rack_id_7abba090_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerfeed - ADD CONSTRAINT dcim_powerfeed_rack_id_7abba090_fk FOREIGN KEY (rack_id) REFERENCES public.dcim_rack(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_poweroutlet dcim_poweroutlet__cable_peer_type_id_bbff28d0_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlet - ADD CONSTRAINT dcim_poweroutlet__cable_peer_type_id_bbff28d0_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_poweroutlet dcim_poweroutlet__path_id_cbb47bb9_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlet - ADD CONSTRAINT dcim_poweroutlet__path_id_cbb47bb9_fk FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_poweroutlet dcim_poweroutlet_device_id_286351d7_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlet - ADD CONSTRAINT dcim_poweroutlet_device_id_286351d7_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_poweroutlet dcim_poweroutlet_power_port_id_9bdf4163_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlet - ADD CONSTRAINT dcim_poweroutlet_power_port_id_9bdf4163_fk FOREIGN KEY (power_port_id) REFERENCES public.dcim_powerport(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_poweroutlettemplate dcim_poweroutlettemplate_device_type_id_26b2316c_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlettemplate - ADD CONSTRAINT dcim_poweroutlettemplate_device_type_id_26b2316c_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_poweroutlettemplate dcim_poweroutlettemplate_power_port_id_c0fb0c42_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_poweroutlettemplate - ADD CONSTRAINT dcim_poweroutlettemplate_power_port_id_c0fb0c42_fk 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; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerpanel - ADD CONSTRAINT dcim_powerpanel_site_id_c430bc89_fk FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerport dcim_powerport__cable_peer_type_id_9df2a278_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerport - ADD CONSTRAINT dcim_powerport__cable_peer_type_id_9df2a278_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerport dcim_powerport__path_id_9fe4af8f_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerport - ADD CONSTRAINT dcim_powerport__path_id_9fe4af8f_fk FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerport dcim_powerport_device_id_ef7185ae_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerport - ADD CONSTRAINT dcim_powerport_device_id_ef7185ae_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_powerporttemplate dcim_powerporttemplate_device_type_id_1ddfbfcc_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_powerporttemplate - ADD CONSTRAINT dcim_powerporttemplate_device_type_id_1ddfbfcc_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(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; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rack - ADD CONSTRAINT dcim_rack_role_id_62d6919e_fk FOREIGN KEY (role_id) REFERENCES public.dcim_rackrole(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rack dcim_rack_site_id_403c7b3a_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rack - ADD CONSTRAINT dcim_rack_site_id_403c7b3a_fk FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rack dcim_rack_tenant_id_7cdf3725_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rack - ADD CONSTRAINT dcim_rack_tenant_id_7cdf3725_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_location dcim_rackgroup_site_id_13520e89_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_location - ADD CONSTRAINT dcim_rackgroup_site_id_13520e89_fk FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rackreservation dcim_rackreservation_rack_id_1ebbaa9b_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rackreservation - ADD CONSTRAINT dcim_rackreservation_rack_id_1ebbaa9b_fk FOREIGN KEY (rack_id) REFERENCES public.dcim_rack(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rackreservation dcim_rackreservation_tenant_id_eb5e045f_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rackreservation - ADD CONSTRAINT dcim_rackreservation_tenant_id_eb5e045f_fk 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_peer_type_id_cecf241c_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearport - ADD CONSTRAINT dcim_rearport__cable_peer_type_id_cecf241c_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rearport dcim_rearport_device_id_0bdfe9c0_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearport - ADD CONSTRAINT dcim_rearport_device_id_0bdfe9c0_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_rearporttemplate dcim_rearporttemplate_device_type_id_6a02fd01_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_rearporttemplate - ADD CONSTRAINT dcim_rearporttemplate_device_type_id_6a02fd01_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_region dcim_region_parent_id_2486f5d4_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_region - ADD CONSTRAINT dcim_region_parent_id_2486f5d4_fk FOREIGN KEY (parent_id) REFERENCES public.dcim_region(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; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_site - ADD CONSTRAINT dcim_site_region_id_45210932_fk FOREIGN KEY (region_id) REFERENCES public.dcim_region(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: dcim_site dcim_site_tenant_id_15e7df63_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_site - ADD CONSTRAINT dcim_site_tenant_id_15e7df63_fk 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; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.dcim_virtualchassis - ADD CONSTRAINT dcim_virtualchassis_master_id_ab54cfc6_fk FOREIGN KEY (master_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_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_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_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_customfield_content_types extras_customfield_o_contenttype_id_6890b714_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customfield_content_types - ADD CONSTRAINT extras_customfield_o_contenttype_id_6890b714_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_customlink extras_customlink_content_type_id_4d35b063_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_customlink - ADD CONSTRAINT extras_customlink_content_type_id_4d35b063_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_exporttemplate extras_exporttemplat_content_type_id_59737e21_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_exporttemplate - ADD CONSTRAINT extras_exporttemplat_content_type_id_59737e21_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(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_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; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_taggeditem - ADD CONSTRAINT extras_taggeditem_tag_id_d48af7c7_fk FOREIGN KEY (tag_id) REFERENCES public.extras_tag(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: extras_webhook_content_types extras_webhook_obj_t_contenttype_id_85c7693b_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.extras_webhook_content_types - ADD CONSTRAINT extras_webhook_obj_t_contenttype_id_85c7693b_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_aggregate ipam_aggregate_rir_id_ef7a27bd_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_aggregate - ADD CONSTRAINT ipam_aggregate_rir_id_ef7a27bd_fk FOREIGN KEY (rir_id) REFERENCES public.ipam_rir(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_aggregate ipam_aggregate_tenant_id_637dd1a1_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_aggregate - ADD CONSTRAINT ipam_aggregate_tenant_id_637dd1a1_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(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; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_ipaddress - ADD CONSTRAINT ipam_ipaddress_nat_inside_id_a45fb7c5_fk FOREIGN KEY (nat_inside_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_ipaddress ipam_ipaddress_tenant_id_ac55acfd_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_ipaddress - ADD CONSTRAINT ipam_ipaddress_tenant_id_ac55acfd_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_ipaddress ipam_ipaddress_vrf_id_51fcc59b_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_ipaddress - ADD CONSTRAINT ipam_ipaddress_vrf_id_51fcc59b_fk FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_prefix ipam_prefix_role_id_0a98d415_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_prefix - ADD CONSTRAINT ipam_prefix_role_id_0a98d415_fk FOREIGN KEY (role_id) REFERENCES public.ipam_role(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_prefix ipam_prefix_site_id_0b20df05_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_prefix - ADD CONSTRAINT ipam_prefix_site_id_0b20df05_fk FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_prefix ipam_prefix_tenant_id_7ba1fcc4_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_prefix - ADD CONSTRAINT ipam_prefix_tenant_id_7ba1fcc4_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_prefix ipam_prefix_vlan_id_1db91bff_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_prefix - ADD CONSTRAINT ipam_prefix_vlan_id_1db91bff_fk FOREIGN KEY (vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_prefix ipam_prefix_vrf_id_34f78ed0_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_prefix - ADD CONSTRAINT ipam_prefix_vrf_id_34f78ed0_fk FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_routetarget ipam_routetarget_tenant_id_5a0b35e8_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_routetarget - ADD CONSTRAINT ipam_routetarget_tenant_id_5a0b35e8_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_service ipam_service_device_id_b4d2bb9c_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_service - ADD CONSTRAINT ipam_service_device_id_b4d2bb9c_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_service ipam_service_virtual_machine_id_e8b53562_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_service - ADD CONSTRAINT ipam_service_virtual_machine_id_e8b53562_fk FOREIGN KEY (virtual_machine_id) REFERENCES public.virtualization_virtualmachine(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_vlan ipam_vlan_group_id_88cbfa62_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlan - ADD CONSTRAINT ipam_vlan_group_id_88cbfa62_fk FOREIGN KEY (group_id) REFERENCES public.ipam_vlangroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_vlan ipam_vlan_role_id_f5015962_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlan - ADD CONSTRAINT ipam_vlan_role_id_f5015962_fk FOREIGN KEY (role_id) REFERENCES public.ipam_role(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_vlan ipam_vlan_site_id_a59334e3_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlan - ADD CONSTRAINT ipam_vlan_site_id_a59334e3_fk FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: ipam_vlan ipam_vlan_tenant_id_71a8290d_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vlan - ADD CONSTRAINT ipam_vlan_tenant_id_71a8290d_fk 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 ipam_vrf_tenant_id_498b0051_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.ipam_vrf - ADD CONSTRAINT ipam_vrf_tenant_id_498b0051_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: secrets_secret secrets_secret_assigned_object_type_285b92a4_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_secret - ADD CONSTRAINT secrets_secret_assigned_object_type_285b92a4_fk_django_co FOREIGN KEY (assigned_object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: secrets_secret secrets_secret_role_id_39d9347f_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_secret - ADD CONSTRAINT secrets_secret_role_id_39d9347f_fk FOREIGN KEY (role_id) REFERENCES public.secrets_secretrole(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: secrets_sessionkey secrets_sessionkey_userkey_id_3ca6176b_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_sessionkey - ADD CONSTRAINT secrets_sessionkey_userkey_id_3ca6176b_fk FOREIGN KEY (userkey_id) REFERENCES public.secrets_userkey(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: secrets_userkey secrets_userkey_user_id_13ada46b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.secrets_userkey - ADD CONSTRAINT secrets_userkey_user_id_13ada46b_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_tenant tenancy_tenant_group_id_7daef6f4_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_tenant - ADD CONSTRAINT tenancy_tenant_group_id_7daef6f4_fk FOREIGN KEY (group_id) REFERENCES public.tenancy_tenantgroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: tenancy_tenantgroup tenancy_tenantgroup_parent_id_2542fc18_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.tenancy_tenantgroup - ADD CONSTRAINT tenancy_tenantgroup_parent_id_2542fc18_fk 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_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_cluster_group_id_de379828_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_cluster - ADD CONSTRAINT virtualization_cluster_group_id_de379828_fk FOREIGN KEY (group_id) REFERENCES public.virtualization_clustergroup(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_cluster virtualization_cluster_site_id_4d5af282_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_cluster - ADD CONSTRAINT virtualization_cluster_site_id_4d5af282_fk FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_cluster virtualization_cluster_tenant_id_bc2868d0_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_cluster - ADD CONSTRAINT virtualization_cluster_tenant_id_bc2868d0_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_cluster virtualization_cluster_type_id_4efafb0a_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_cluster - ADD CONSTRAINT virtualization_cluster_type_id_4efafb0a_fk FOREIGN KEY (type_id) REFERENCES public.virtualization_clustertype(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_virtualmachine virtualization_virtualmachine_cluster_id_6c9f9047_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtualmachine_cluster_id_6c9f9047_fk FOREIGN KEY (cluster_id) REFERENCES public.virtualization_cluster(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_virtualmachine virtualization_virtualmachine_platform_id_a6c5ccb2_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtualmachine_platform_id_a6c5ccb2_fk FOREIGN KEY (platform_id) REFERENCES public.dcim_platform(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_virtualmachine virtualization_virtualmachine_role_id_0cc898f9_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtualmachine_role_id_0cc898f9_fk FOREIGN KEY (role_id) REFERENCES public.dcim_devicerole(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_virtualmachine virtualization_virtualmachine_tenant_id_d00d1d77_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_virtualmachine - ADD CONSTRAINT virtualization_virtualmachine_tenant_id_d00d1d77_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(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_vminterface_untagged_vlan_id_aea4fc69_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface - ADD CONSTRAINT virtualization_vminterface_untagged_vlan_id_aea4fc69_fk FOREIGN KEY (untagged_vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: virtualization_vminterface virtualization_vminterface_virtual_machine_id_e9f89829_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox --- - -ALTER TABLE ONLY public.virtualization_vminterface - ADD CONSTRAINT virtualization_vminterface_virtual_machine_id_e9f89829_fk FOREIGN KEY (virtual_machine_id) REFERENCES public.virtualization_virtualmachine(id) DEFERRABLE INITIALLY DEFERRED; - - --- --- PostgreSQL database dump complete --- - +-- +-- PostgreSQL database dump +-- + +-- Dumped from database version 12.12 +-- Dumped by pg_dump version 12.12 + +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 +-- + +CREATE SEQUENCE public.auth_group_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.auth_group_id_seq OWNER TO netbox; + +-- +-- Name: auth_group_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.auth_group_id_seq OWNED BY public.auth_group.id; + + +-- +-- Name: auth_group_permissions; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.auth_group_permissions ( + id integer 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 +-- + +CREATE SEQUENCE public.auth_group_permissions_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.auth_group_permissions_id_seq OWNER TO netbox; + +-- +-- Name: auth_group_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.auth_group_permissions_id_seq OWNED BY public.auth_group_permissions.id; + + +-- +-- 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 +-- + +CREATE SEQUENCE public.auth_permission_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.auth_permission_id_seq OWNER TO netbox; + +-- +-- Name: auth_permission_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.auth_permission_id_seq OWNED BY public.auth_permission.id; + + +-- +-- 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 integer 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 +-- + +CREATE SEQUENCE public.auth_user_groups_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.auth_user_groups_id_seq OWNER TO netbox; + +-- +-- Name: auth_user_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.auth_user_groups_id_seq OWNED BY public.auth_user_groups.id; + + +-- +-- Name: auth_user_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.auth_user_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.auth_user_id_seq OWNER TO netbox; + +-- +-- Name: auth_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.auth_user_id_seq OWNED BY public.auth_user.id; + + +-- +-- Name: auth_user_user_permissions; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.auth_user_user_permissions ( + id integer 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 +-- + +CREATE SEQUENCE public.auth_user_user_permissions_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.auth_user_user_permissions_id_seq OWNER TO netbox; + +-- +-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.auth_user_user_permissions_id_seq OWNED BY public.auth_user_user_permissions.id; + + +-- +-- Name: circuits_circuit; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.circuits_circuit ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + cid character varying(100) NOT NULL, + install_date date, + commit_rate integer, + comments text NOT NULL, + provider_id bigint NOT NULL, + type_id bigint NOT NULL, + tenant_id bigint, + description character varying(200) NOT NULL, + status character varying(50) NOT NULL, + custom_field_data jsonb NOT NULL, + termination_a_id bigint, + termination_z_id bigint, + 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 +-- + +CREATE SEQUENCE public.circuits_circuit_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.circuits_circuit_id_seq OWNER TO netbox; + +-- +-- Name: circuits_circuit_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.circuits_circuit_id_seq OWNED BY public.circuits_circuit.id; + + +-- +-- Name: circuits_circuittermination; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.circuits_circuittermination ( + id bigint 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, + circuit_id bigint NOT NULL, + site_id bigint, + cable_id bigint, + description character varying(200) NOT NULL, + _cable_peer_id integer, + _cable_peer_type_id integer, + created date, + last_updated timestamp with time zone, + mark_connected boolean NOT NULL, + provider_network_id bigint, + CONSTRAINT circuits_circuittermination__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), + 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 +-- + +CREATE SEQUENCE public.circuits_circuittermination_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.circuits_circuittermination_id_seq OWNER TO netbox; + +-- +-- Name: circuits_circuittermination_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.circuits_circuittermination_id_seq OWNED BY public.circuits_circuittermination.id; + + +-- +-- Name: circuits_circuittype; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.circuits_circuittype ( + id bigint NOT NULL, + name character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + created date, + last_updated timestamp with time zone, + description character varying(200) NOT NULL, + custom_field_data jsonb NOT NULL +); + + +ALTER TABLE public.circuits_circuittype OWNER TO netbox; + +-- +-- Name: circuits_circuittype_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.circuits_circuittype_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.circuits_circuittype_id_seq OWNER TO netbox; + +-- +-- Name: circuits_circuittype_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.circuits_circuittype_id_seq OWNED BY public.circuits_circuittype.id; + + +-- +-- Name: circuits_provider; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.circuits_provider ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + name character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + asn bigint, + account character varying(30) NOT NULL, + portal_url character varying(200) NOT NULL, + noc_contact text NOT NULL, + admin_contact text NOT NULL, + comments text NOT NULL, + custom_field_data jsonb NOT NULL +); + + +ALTER TABLE public.circuits_provider OWNER TO netbox; + +-- +-- Name: circuits_provider_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.circuits_provider_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.circuits_provider_id_seq OWNER TO netbox; + +-- +-- Name: circuits_provider_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.circuits_provider_id_seq OWNED BY public.circuits_provider.id; + + +-- +-- Name: circuits_providernetwork; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.circuits_providernetwork ( + created date, + 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 +); + + +ALTER TABLE public.circuits_providernetwork OWNER TO netbox; + +-- +-- Name: circuits_providernetwork_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.circuits_providernetwork_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.circuits_providernetwork_id_seq OWNER TO netbox; + +-- +-- Name: circuits_providernetwork_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.circuits_providernetwork_id_seq OWNED BY public.circuits_providernetwork.id; + + +-- +-- Name: dcim_cable; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_cable ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + termination_a_id integer NOT NULL, + termination_b_id integer 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 smallint, + length_unit character varying(50) NOT NULL, + _abs_length numeric(10,4), + termination_a_type_id integer NOT NULL, + termination_b_type_id integer NOT NULL, + _termination_a_device_id bigint, + _termination_b_device_id bigint, + custom_field_data jsonb NOT NULL, + CONSTRAINT dcim_cable_length_check CHECK ((length >= 0)), + CONSTRAINT dcim_cable_termination_a_id_check CHECK ((termination_a_id >= 0)), + CONSTRAINT dcim_cable_termination_b_id_check CHECK ((termination_b_id >= 0)) +); + + +ALTER TABLE public.dcim_cable OWNER TO netbox; + +-- +-- Name: dcim_cable_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_cable_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_cable_id_seq OWNER TO netbox; + +-- +-- Name: dcim_cable_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_cable_id_seq OWNED BY public.dcim_cable.id; + + +-- +-- Name: dcim_cablepath; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_cablepath ( + id bigint NOT NULL, + origin_id integer NOT NULL, + destination_id integer, + path character varying(40)[] NOT NULL, + is_active boolean NOT NULL, + is_split boolean NOT NULL, + destination_type_id integer, + origin_type_id integer NOT NULL, + CONSTRAINT dcim_cablepath_destination_id_check CHECK ((destination_id >= 0)), + CONSTRAINT dcim_cablepath_origin_id_check CHECK ((origin_id >= 0)) +); + + +ALTER TABLE public.dcim_cablepath OWNER TO netbox; + +-- +-- Name: dcim_cablepath_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_cablepath_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_cablepath_id_seq OWNER TO netbox; + +-- +-- Name: dcim_cablepath_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_cablepath_id_seq OWNED BY public.dcim_cablepath.id; + + +-- +-- Name: dcim_consoleport; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_consoleport ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + device_id bigint NOT NULL, + cable_id bigint, + description character varying(200) NOT NULL, + type character varying(50) NOT NULL, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + _cable_peer_id integer, + _cable_peer_type_id integer, + _path_id bigint, + created date, + custom_field_data jsonb NOT NULL, + last_updated timestamp with time zone, + mark_connected boolean NOT NULL, + speed integer, + CONSTRAINT dcim_consoleport__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), + 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 +-- + +CREATE SEQUENCE public.dcim_consoleport_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_consoleport_id_seq OWNER TO netbox; + +-- +-- Name: dcim_consoleport_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_consoleport_id_seq OWNED BY public.dcim_consoleport.id; + + +-- +-- Name: dcim_consoleporttemplate; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_consoleporttemplate ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + device_type_id bigint NOT NULL, + type character varying(50) NOT NULL, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + description character varying(200) NOT NULL, + created date, + last_updated timestamp with time zone +); + + +ALTER TABLE public.dcim_consoleporttemplate OWNER TO netbox; + +-- +-- Name: dcim_consoleporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_consoleporttemplate_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_consoleporttemplate_id_seq OWNER TO netbox; + +-- +-- Name: dcim_consoleporttemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_consoleporttemplate_id_seq OWNED BY public.dcim_consoleporttemplate.id; + + +-- +-- Name: dcim_consoleserverport; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_consoleserverport ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + device_id bigint NOT NULL, + cable_id bigint, + description character varying(200) NOT NULL, + type character varying(50) NOT NULL, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + _cable_peer_id integer, + _cable_peer_type_id integer, + _path_id bigint, + created date, + custom_field_data jsonb NOT NULL, + last_updated timestamp with time zone, + mark_connected boolean NOT NULL, + speed integer, + CONSTRAINT dcim_consoleserverport__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), + 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 +-- + +CREATE SEQUENCE public.dcim_consoleserverport_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_consoleserverport_id_seq OWNER TO netbox; + +-- +-- Name: dcim_consoleserverport_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_consoleserverport_id_seq OWNED BY public.dcim_consoleserverport.id; + + +-- +-- Name: dcim_consoleserverporttemplate; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_consoleserverporttemplate ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + device_type_id bigint NOT NULL, + type character varying(50) NOT NULL, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + description character varying(200) NOT NULL, + created date, + last_updated timestamp with time zone +); + + +ALTER TABLE public.dcim_consoleserverporttemplate OWNER TO netbox; + +-- +-- Name: dcim_consoleserverporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_consoleserverporttemplate_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_consoleserverporttemplate_id_seq OWNER TO netbox; + +-- +-- Name: dcim_consoleserverporttemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_consoleserverporttemplate_id_seq OWNED BY public.dcim_consoleserverporttemplate.id; + + +-- +-- Name: dcim_device; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_device ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + name character varying(64), + serial character varying(50) NOT NULL, + "position" smallint, + face character varying(50) NOT NULL, + status character varying(50) NOT NULL, + comments text NOT NULL, + device_role_id bigint NOT NULL, + device_type_id bigint NOT NULL, + platform_id bigint, + rack_id bigint, + primary_ip4_id bigint, + primary_ip6_id bigint, + tenant_id bigint, + asset_tag character varying(50), + site_id bigint NOT NULL, + cluster_id bigint, + virtual_chassis_id bigint, + vc_position smallint, + vc_priority smallint, + local_context_data jsonb, + _name character varying(100), + custom_field_data jsonb NOT NULL, + location_id bigint, + CONSTRAINT dcim_device_position_check CHECK (("position" >= 0)), + 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 +-- + +CREATE SEQUENCE public.dcim_device_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_device_id_seq OWNER TO netbox; + +-- +-- Name: dcim_device_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_device_id_seq OWNED BY public.dcim_device.id; + + +-- +-- Name: dcim_devicebay; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_devicebay ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + device_id bigint NOT NULL, + installed_device_id bigint, + description character varying(200) NOT NULL, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + created date, + custom_field_data jsonb NOT NULL, + last_updated timestamp with time zone +); + + +ALTER TABLE public.dcim_devicebay OWNER TO netbox; + +-- +-- Name: dcim_devicebay_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_devicebay_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_devicebay_id_seq OWNER TO netbox; + +-- +-- Name: dcim_devicebay_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_devicebay_id_seq OWNED BY public.dcim_devicebay.id; + + +-- +-- Name: dcim_devicebaytemplate; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_devicebaytemplate ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + device_type_id bigint NOT NULL, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + description character varying(200) NOT NULL, + created date, + last_updated timestamp with time zone +); + + +ALTER TABLE public.dcim_devicebaytemplate OWNER TO netbox; + +-- +-- Name: dcim_devicebaytemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_devicebaytemplate_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_devicebaytemplate_id_seq OWNER TO netbox; + +-- +-- Name: dcim_devicebaytemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_devicebaytemplate_id_seq OWNED BY public.dcim_devicebaytemplate.id; + + +-- +-- Name: dcim_devicerole; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_devicerole ( + 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, + created date, + last_updated timestamp with time zone, + description character varying(200) NOT NULL, + custom_field_data jsonb NOT NULL +); + + +ALTER TABLE public.dcim_devicerole OWNER TO netbox; + +-- +-- Name: dcim_devicerole_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_devicerole_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_devicerole_id_seq OWNER TO netbox; + +-- +-- Name: dcim_devicerole_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_devicerole_id_seq OWNED BY public.dcim_devicerole.id; + + +-- +-- Name: dcim_devicetype; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_devicetype ( + id bigint NOT NULL, + model character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + u_height smallint NOT NULL, + is_full_depth boolean NOT NULL, + manufacturer_id bigint NOT NULL, + subdevice_role character varying(50) NOT NULL, + part_number character varying(50) NOT NULL, + comments text NOT NULL, + created date, + last_updated timestamp with time zone, + front_image character varying(100) NOT NULL, + rear_image character varying(100) NOT NULL, + custom_field_data jsonb NOT NULL, + CONSTRAINT dcim_devicetype_u_height_check CHECK ((u_height >= 0)) +); + + +ALTER TABLE public.dcim_devicetype OWNER TO netbox; + +-- +-- Name: dcim_devicetype_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_devicetype_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_devicetype_id_seq OWNER TO netbox; + +-- +-- Name: dcim_devicetype_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_devicetype_id_seq OWNED BY public.dcim_devicetype.id; + + +-- +-- Name: dcim_frontport; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_frontport ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + type character varying(50) NOT NULL, + rear_port_position smallint NOT NULL, + description character varying(200) NOT NULL, + device_id bigint NOT NULL, + rear_port_id bigint NOT NULL, + cable_id bigint, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + _cable_peer_id integer, + _cable_peer_type_id integer, + created date, + custom_field_data jsonb NOT NULL, + last_updated timestamp with time zone, + mark_connected boolean NOT NULL, + CONSTRAINT dcim_frontport__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), + 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 +-- + +CREATE SEQUENCE public.dcim_frontport_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_frontport_id_seq OWNER TO netbox; + +-- +-- Name: dcim_frontport_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_frontport_id_seq OWNED BY public.dcim_frontport.id; + + +-- +-- Name: dcim_frontporttemplate; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_frontporttemplate ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + type character varying(50) NOT NULL, + rear_port_position smallint NOT NULL, + device_type_id bigint NOT NULL, + rear_port_id bigint NOT NULL, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + description character varying(200) NOT NULL, + created date, + last_updated timestamp with time zone, + 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 +-- + +CREATE SEQUENCE public.dcim_frontporttemplate_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_frontporttemplate_id_seq OWNER TO netbox; + +-- +-- Name: dcim_frontporttemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_frontporttemplate_id_seq OWNED BY public.dcim_frontporttemplate.id; + + +-- +-- Name: dcim_interface; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_interface ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + type character varying(50) NOT NULL, + mgmt_only boolean NOT NULL, + description character varying(200) NOT NULL, + device_id bigint NOT NULL, + mac_address macaddr, + lag_id bigint, + enabled boolean NOT NULL, + mtu integer, + mode character varying(50) NOT NULL, + untagged_vlan_id bigint, + cable_id bigint, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + _cable_peer_id integer, + _cable_peer_type_id integer, + _path_id bigint, + created date, + custom_field_data jsonb NOT NULL, + last_updated timestamp with time zone, + mark_connected boolean NOT NULL, + parent_id bigint, + CONSTRAINT dcim_interface__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), + CONSTRAINT dcim_interface_mtu_check CHECK ((mtu >= 0)) +); + + +ALTER TABLE public.dcim_interface OWNER TO netbox; + +-- +-- Name: dcim_interface_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_interface_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_interface_id_seq OWNER TO netbox; + +-- +-- Name: dcim_interface_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_interface_id_seq OWNED BY public.dcim_interface.id; + + +-- +-- Name: dcim_interface_tagged_vlans; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_interface_tagged_vlans ( + id integer 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 +-- + +CREATE SEQUENCE public.dcim_interface_tagged_vlans_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_interface_tagged_vlans_id_seq OWNER TO netbox; + +-- +-- Name: dcim_interface_tagged_vlans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_interface_tagged_vlans_id_seq OWNED BY public.dcim_interface_tagged_vlans.id; + + +-- +-- Name: dcim_interfacetemplate; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_interfacetemplate ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + type character varying(50) NOT NULL, + mgmt_only boolean NOT NULL, + device_type_id bigint NOT NULL, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + description character varying(200) NOT NULL, + created date, + last_updated timestamp with time zone +); + + +ALTER TABLE public.dcim_interfacetemplate OWNER TO netbox; + +-- +-- Name: dcim_interfacetemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_interfacetemplate_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_interfacetemplate_id_seq OWNER TO netbox; + +-- +-- Name: dcim_interfacetemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_interfacetemplate_id_seq OWNED BY public.dcim_interfacetemplate.id; + + +-- +-- Name: dcim_inventoryitem; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_inventoryitem ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + part_id character varying(50) NOT NULL, + serial character varying(50) NOT NULL, + discovered boolean NOT NULL, + device_id bigint NOT NULL, + parent_id bigint, + manufacturer_id bigint, + asset_tag character varying(50), + description character varying(200) NOT NULL, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + level integer NOT NULL, + lft integer NOT NULL, + rght integer NOT NULL, + tree_id integer NOT NULL, + created date, + custom_field_data jsonb NOT NULL, + last_updated timestamp with time zone, + 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 +-- + +CREATE SEQUENCE public.dcim_inventoryitem_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_inventoryitem_id_seq OWNER TO netbox; + +-- +-- Name: dcim_inventoryitem_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_inventoryitem_id_seq OWNED BY public.dcim_inventoryitem.id; + + +-- +-- Name: dcim_location; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_location ( + id bigint NOT NULL, + name character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + site_id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + parent_id bigint, + level integer NOT NULL, + lft integer NOT NULL, + rght integer NOT NULL, + tree_id integer NOT NULL, + description character varying(200) NOT NULL, + custom_field_data jsonb NOT NULL, + CONSTRAINT dcim_rackgroup_level_check CHECK ((level >= 0)), + CONSTRAINT dcim_rackgroup_lft_check CHECK ((lft >= 0)), + CONSTRAINT dcim_rackgroup_rght_check CHECK ((rght >= 0)), + CONSTRAINT dcim_rackgroup_tree_id_check CHECK ((tree_id >= 0)) +); + + +ALTER TABLE public.dcim_location OWNER TO netbox; + +-- +-- Name: dcim_manufacturer; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_manufacturer ( + id bigint NOT NULL, + name character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + created date, + last_updated timestamp with time zone, + description character varying(200) NOT NULL, + custom_field_data jsonb NOT NULL +); + + +ALTER TABLE public.dcim_manufacturer OWNER TO netbox; + +-- +-- Name: dcim_manufacturer_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_manufacturer_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_manufacturer_id_seq OWNER TO netbox; + +-- +-- Name: dcim_manufacturer_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_manufacturer_id_seq OWNED BY public.dcim_manufacturer.id; + + +-- +-- Name: dcim_module_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_module_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_module_id_seq OWNER TO netbox; + +-- +-- Name: dcim_module_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_module_id_seq OWNED BY public.dcim_inventoryitem.id; + + +-- +-- Name: dcim_platform; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_platform ( + id bigint NOT NULL, + name character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + napalm_driver character varying(50) NOT NULL, + manufacturer_id bigint, + created date, + last_updated timestamp with time zone, + napalm_args jsonb, + description character varying(200) NOT NULL, + custom_field_data jsonb NOT NULL +); + + +ALTER TABLE public.dcim_platform OWNER TO netbox; + +-- +-- Name: dcim_platform_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_platform_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_platform_id_seq OWNER TO netbox; + +-- +-- Name: dcim_platform_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_platform_id_seq OWNED BY public.dcim_platform.id; + + +-- +-- Name: dcim_powerfeed; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_powerfeed ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + 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, + cable_id bigint, + power_panel_id bigint NOT NULL, + rack_id bigint, + custom_field_data jsonb NOT NULL, + _cable_peer_id integer, + _cable_peer_type_id integer, + _path_id bigint, + mark_connected boolean NOT NULL, + CONSTRAINT dcim_powerfeed__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), + 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 +-- + +CREATE SEQUENCE public.dcim_powerfeed_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_powerfeed_id_seq OWNER TO netbox; + +-- +-- Name: dcim_powerfeed_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_powerfeed_id_seq OWNED BY public.dcim_powerfeed.id; + + +-- +-- Name: dcim_poweroutlet; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_poweroutlet ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + device_id bigint NOT NULL, + cable_id bigint, + description character varying(200) NOT NULL, + feed_leg character varying(50) NOT NULL, + power_port_id bigint, + type character varying(50) NOT NULL, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + _cable_peer_id integer, + _cable_peer_type_id integer, + _path_id bigint, + created date, + custom_field_data jsonb NOT NULL, + last_updated timestamp with time zone, + mark_connected boolean NOT NULL, + CONSTRAINT dcim_poweroutlet__cable_peer_id_check CHECK ((_cable_peer_id >= 0)) +); + + +ALTER TABLE public.dcim_poweroutlet OWNER TO netbox; + +-- +-- Name: dcim_poweroutlet_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_poweroutlet_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_poweroutlet_id_seq OWNER TO netbox; + +-- +-- Name: dcim_poweroutlet_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_poweroutlet_id_seq OWNED BY public.dcim_poweroutlet.id; + + +-- +-- Name: dcim_poweroutlettemplate; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_poweroutlettemplate ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + device_type_id bigint NOT NULL, + feed_leg character varying(50) NOT NULL, + power_port_id bigint, + type character varying(50) NOT NULL, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + description character varying(200) NOT NULL, + created date, + last_updated timestamp with time zone +); + + +ALTER TABLE public.dcim_poweroutlettemplate OWNER TO netbox; + +-- +-- Name: dcim_poweroutlettemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_poweroutlettemplate_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_poweroutlettemplate_id_seq OWNER TO netbox; + +-- +-- Name: dcim_poweroutlettemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_poweroutlettemplate_id_seq OWNED BY public.dcim_poweroutlettemplate.id; + + +-- +-- Name: dcim_powerpanel; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_powerpanel ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + name character varying(100) NOT NULL, + location_id bigint, + site_id bigint NOT NULL, + custom_field_data jsonb NOT NULL +); + + +ALTER TABLE public.dcim_powerpanel OWNER TO netbox; + +-- +-- Name: dcim_powerpanel_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_powerpanel_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_powerpanel_id_seq OWNER TO netbox; + +-- +-- Name: dcim_powerpanel_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_powerpanel_id_seq OWNED BY public.dcim_powerpanel.id; + + +-- +-- Name: dcim_powerport; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_powerport ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + device_id bigint NOT NULL, + cable_id bigint, + description character varying(200) NOT NULL, + allocated_draw smallint, + maximum_draw smallint, + type character varying(50) NOT NULL, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + _cable_peer_id integer, + _cable_peer_type_id integer, + _path_id bigint, + created date, + custom_field_data jsonb NOT NULL, + last_updated timestamp with time zone, + mark_connected boolean NOT NULL, + CONSTRAINT dcim_powerport__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), + 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 +-- + +CREATE SEQUENCE public.dcim_powerport_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_powerport_id_seq OWNER TO netbox; + +-- +-- Name: dcim_powerport_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_powerport_id_seq OWNED BY public.dcim_powerport.id; + + +-- +-- Name: dcim_powerporttemplate; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_powerporttemplate ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + device_type_id bigint NOT NULL, + allocated_draw smallint, + maximum_draw smallint, + type character varying(50) NOT NULL, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + description character varying(200) NOT NULL, + created date, + last_updated timestamp with time zone, + 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 +-- + +CREATE SEQUENCE public.dcim_powerporttemplate_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_powerporttemplate_id_seq OWNER TO netbox; + +-- +-- Name: dcim_powerporttemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_powerporttemplate_id_seq OWNED BY public.dcim_powerporttemplate.id; + + +-- +-- Name: dcim_rack; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_rack ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + name character varying(100) NOT NULL, + facility_id character varying(50), + u_height smallint NOT NULL, + comments text NOT NULL, + location_id bigint, + site_id bigint NOT NULL, + tenant_id bigint, + type character varying(50) NOT NULL, + width smallint NOT NULL, + role_id bigint, + desc_units boolean NOT NULL, + serial character varying(50) NOT NULL, + status character varying(50) NOT NULL, + asset_tag character varying(50), + outer_depth smallint, + outer_unit character varying(50) NOT NULL, + outer_width smallint, + _name character varying(100) NOT NULL, + custom_field_data jsonb NOT NULL, + 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 +-- + +CREATE SEQUENCE public.dcim_rack_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_rack_id_seq OWNER TO netbox; + +-- +-- Name: dcim_rack_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_rack_id_seq OWNED BY public.dcim_rack.id; + + +-- +-- Name: dcim_rackgroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_rackgroup_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_rackgroup_id_seq OWNER TO netbox; + +-- +-- Name: dcim_rackgroup_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_rackgroup_id_seq OWNED BY public.dcim_location.id; + + +-- +-- Name: dcim_rackreservation; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_rackreservation ( + id bigint NOT NULL, + units smallint[] NOT NULL, + created date, + description character varying(200) NOT NULL, + rack_id bigint NOT NULL, + user_id integer NOT NULL, + tenant_id bigint, + last_updated timestamp with time zone, + custom_field_data jsonb NOT NULL +); + + +ALTER TABLE public.dcim_rackreservation OWNER TO netbox; + +-- +-- Name: dcim_rackreservation_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_rackreservation_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_rackreservation_id_seq OWNER TO netbox; + +-- +-- Name: dcim_rackreservation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_rackreservation_id_seq OWNED BY public.dcim_rackreservation.id; + + +-- +-- Name: dcim_rackrole; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_rackrole ( + id bigint NOT NULL, + name character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + color character varying(6) NOT NULL, + created date, + last_updated timestamp with time zone, + description character varying(200) NOT NULL, + custom_field_data jsonb NOT NULL +); + + +ALTER TABLE public.dcim_rackrole OWNER TO netbox; + +-- +-- Name: dcim_rackrole_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_rackrole_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_rackrole_id_seq OWNER TO netbox; + +-- +-- Name: dcim_rackrole_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_rackrole_id_seq OWNED BY public.dcim_rackrole.id; + + +-- +-- Name: dcim_rearport; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_rearport ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + type character varying(50) NOT NULL, + positions smallint NOT NULL, + description character varying(200) NOT NULL, + device_id bigint NOT NULL, + cable_id bigint, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + _cable_peer_id integer, + _cable_peer_type_id integer, + created date, + custom_field_data jsonb NOT NULL, + last_updated timestamp with time zone, + mark_connected boolean NOT NULL, + CONSTRAINT dcim_rearport__cable_peer_id_check CHECK ((_cable_peer_id >= 0)), + 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 +-- + +CREATE SEQUENCE public.dcim_rearport_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_rearport_id_seq OWNER TO netbox; + +-- +-- Name: dcim_rearport_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_rearport_id_seq OWNED BY public.dcim_rearport.id; + + +-- +-- Name: dcim_rearporttemplate; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_rearporttemplate ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + type character varying(50) NOT NULL, + positions smallint NOT NULL, + device_type_id bigint NOT NULL, + _name character varying(100) NOT NULL, + label character varying(64) NOT NULL, + description character varying(200) NOT NULL, + created date, + last_updated timestamp with time zone, + 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 +-- + +CREATE SEQUENCE public.dcim_rearporttemplate_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_rearporttemplate_id_seq OWNER TO netbox; + +-- +-- Name: dcim_rearporttemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_rearporttemplate_id_seq OWNED BY public.dcim_rearporttemplate.id; + + +-- +-- Name: dcim_region; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_region ( + id bigint NOT NULL, + name character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + lft integer NOT NULL, + rght integer NOT NULL, + tree_id integer NOT NULL, + level integer NOT NULL, + parent_id bigint, + created date, + last_updated timestamp with time zone, + description character varying(200) NOT NULL, + custom_field_data jsonb NOT NULL, + 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 +-- + +CREATE SEQUENCE public.dcim_region_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_region_id_seq OWNER TO netbox; + +-- +-- Name: dcim_region_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_region_id_seq OWNED BY public.dcim_region.id; + + +-- +-- Name: dcim_site; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_site ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + name character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + facility character varying(50) NOT NULL, + asn bigint, + physical_address character varying(200) NOT NULL, + shipping_address character varying(200) NOT NULL, + comments text NOT NULL, + tenant_id bigint, + contact_email character varying(254) NOT NULL, + contact_name character varying(50) NOT NULL, + contact_phone character varying(20) NOT NULL, + region_id bigint, + description character varying(200) NOT NULL, + status character varying(50) NOT NULL, + time_zone character varying(63) NOT NULL, + latitude numeric(8,6), + longitude numeric(9,6), + _name character varying(100) NOT NULL, + custom_field_data jsonb NOT NULL, + group_id bigint +); + + +ALTER TABLE public.dcim_site OWNER TO netbox; + +-- +-- Name: dcim_site_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_site_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_site_id_seq OWNER TO netbox; + +-- +-- Name: dcim_site_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_site_id_seq OWNED BY public.dcim_site.id; + + +-- +-- Name: dcim_sitegroup; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_sitegroup ( + created date, + 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 +-- + +CREATE SEQUENCE public.dcim_sitegroup_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_sitegroup_id_seq OWNER TO netbox; + +-- +-- Name: dcim_sitegroup_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_sitegroup_id_seq OWNED BY public.dcim_sitegroup.id; + + +-- +-- Name: dcim_virtualchassis; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.dcim_virtualchassis ( + id bigint NOT NULL, + domain character varying(30) NOT NULL, + master_id bigint, + created date, + last_updated timestamp with time zone, + name character varying(64) NOT NULL, + custom_field_data jsonb NOT NULL +); + + +ALTER TABLE public.dcim_virtualchassis OWNER TO netbox; + +-- +-- Name: dcim_virtualchassis_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.dcim_virtualchassis_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.dcim_virtualchassis_id_seq OWNER TO netbox; + +-- +-- Name: dcim_virtualchassis_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.dcim_virtualchassis_id_seq OWNED BY public.dcim_virtualchassis.id; + + +-- +-- 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 +-- + +CREATE SEQUENCE public.django_admin_log_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.django_admin_log_id_seq OWNER TO netbox; + +-- +-- Name: django_admin_log_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.django_admin_log_id_seq OWNED BY public.django_admin_log.id; + + +-- +-- 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 +-- + +CREATE SEQUENCE public.django_content_type_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.django_content_type_id_seq OWNER TO netbox; + +-- +-- Name: django_content_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.django_content_type_id_seq OWNED BY public.django_content_type.id; + + +-- +-- Name: django_migrations; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.django_migrations ( + id integer 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 +-- + +CREATE SEQUENCE public.django_migrations_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.django_migrations_id_seq OWNER TO netbox; + +-- +-- Name: django_migrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.django_migrations_id_seq OWNED BY public.django_migrations.id; + + +-- +-- 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_configcontext; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_configcontext ( + 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, + created date, + last_updated timestamp with time zone, + 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 integer 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 +-- + +CREATE SEQUENCE public.extras_configcontext_cluster_groups_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_configcontext_cluster_groups_id_seq OWNER TO netbox; + +-- +-- Name: extras_configcontext_cluster_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_configcontext_cluster_groups_id_seq OWNED BY public.extras_configcontext_cluster_groups.id; + + +-- +-- Name: extras_configcontext_clusters; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_configcontext_clusters ( + id integer 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 +-- + +CREATE SEQUENCE public.extras_configcontext_clusters_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_configcontext_clusters_id_seq OWNER TO netbox; + +-- +-- Name: extras_configcontext_clusters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_configcontext_clusters_id_seq OWNED BY public.extras_configcontext_clusters.id; + + +-- +-- Name: extras_configcontext_device_types; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_configcontext_device_types ( + id integer 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 +-- + +CREATE SEQUENCE public.extras_configcontext_device_types_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_configcontext_device_types_id_seq OWNER TO netbox; + +-- +-- Name: extras_configcontext_device_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_configcontext_device_types_id_seq OWNED BY public.extras_configcontext_device_types.id; + + +-- +-- Name: extras_configcontext_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.extras_configcontext_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_configcontext_id_seq OWNER TO netbox; + +-- +-- Name: extras_configcontext_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_configcontext_id_seq OWNED BY public.extras_configcontext.id; + + +-- +-- Name: extras_configcontext_platforms; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_configcontext_platforms ( + id integer 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 +-- + +CREATE SEQUENCE public.extras_configcontext_platforms_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_configcontext_platforms_id_seq OWNER TO netbox; + +-- +-- Name: extras_configcontext_platforms_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_configcontext_platforms_id_seq OWNED BY public.extras_configcontext_platforms.id; + + +-- +-- Name: extras_configcontext_regions; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_configcontext_regions ( + id integer 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 +-- + +CREATE SEQUENCE public.extras_configcontext_regions_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_configcontext_regions_id_seq OWNER TO netbox; + +-- +-- Name: extras_configcontext_regions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_configcontext_regions_id_seq OWNED BY public.extras_configcontext_regions.id; + + +-- +-- Name: extras_configcontext_roles; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_configcontext_roles ( + id integer 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 +-- + +CREATE SEQUENCE public.extras_configcontext_roles_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_configcontext_roles_id_seq OWNER TO netbox; + +-- +-- Name: extras_configcontext_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_configcontext_roles_id_seq OWNED BY public.extras_configcontext_roles.id; + + +-- +-- Name: extras_configcontext_site_groups; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_configcontext_site_groups ( + id integer 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 +-- + +CREATE SEQUENCE public.extras_configcontext_site_groups_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_configcontext_site_groups_id_seq OWNER TO netbox; + +-- +-- Name: extras_configcontext_site_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_configcontext_site_groups_id_seq OWNED BY public.extras_configcontext_site_groups.id; + + +-- +-- Name: extras_configcontext_sites; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_configcontext_sites ( + id integer 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 +-- + +CREATE SEQUENCE public.extras_configcontext_sites_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_configcontext_sites_id_seq OWNER TO netbox; + +-- +-- Name: extras_configcontext_sites_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_configcontext_sites_id_seq OWNED BY public.extras_configcontext_sites.id; + + +-- +-- Name: extras_configcontext_tags; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_configcontext_tags ( + id integer 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 +-- + +CREATE SEQUENCE public.extras_configcontext_tags_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_configcontext_tags_id_seq OWNER TO netbox; + +-- +-- Name: extras_configcontext_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_configcontext_tags_id_seq OWNED BY public.extras_configcontext_tags.id; + + +-- +-- Name: extras_configcontext_tenant_groups; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_configcontext_tenant_groups ( + id integer 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 +-- + +CREATE SEQUENCE public.extras_configcontext_tenant_groups_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_configcontext_tenant_groups_id_seq OWNER TO netbox; + +-- +-- Name: extras_configcontext_tenant_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_configcontext_tenant_groups_id_seq OWNED BY public.extras_configcontext_tenant_groups.id; + + +-- +-- Name: extras_configcontext_tenants; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_configcontext_tenants ( + id integer 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 +-- + +CREATE SEQUENCE public.extras_configcontext_tenants_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_configcontext_tenants_id_seq OWNER TO netbox; + +-- +-- Name: extras_configcontext_tenants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_configcontext_tenants_id_seq OWNED BY public.extras_configcontext_tenants.id; + + +-- +-- 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, + weight smallint NOT NULL, + filter_logic character varying(50) NOT NULL, + choices character varying(100)[], + "default" jsonb, + validation_maximum integer, + validation_minimum integer, + validation_regex character varying(500) NOT NULL, + CONSTRAINT extras_customfield_validation_maximum_check CHECK ((validation_maximum >= 0)), + CONSTRAINT extras_customfield_validation_minimum_check CHECK ((validation_minimum >= 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 integer 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_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.extras_customfield_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_customfield_id_seq OWNER TO netbox; + +-- +-- Name: extras_customfield_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_customfield_id_seq OWNED BY public.extras_customfield.id; + + +-- +-- Name: extras_customfield_obj_type_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.extras_customfield_obj_type_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_customfield_obj_type_id_seq OWNER TO netbox; + +-- +-- Name: extras_customfield_obj_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_customfield_obj_type_id_seq OWNED BY public.extras_customfield_content_types.id; + + +-- +-- 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 character varying(500) NOT NULL, + link_url character varying(500) 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, + content_type_id integer NOT NULL, + CONSTRAINT extras_customlink_weight_check CHECK ((weight >= 0)) +); + + +ALTER TABLE public.extras_customlink OWNER TO netbox; + +-- +-- Name: extras_customlink_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.extras_customlink_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_customlink_id_seq OWNER TO netbox; + +-- +-- Name: extras_customlink_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_customlink_id_seq OWNED BY public.extras_customlink.id; + + +-- +-- Name: extras_exporttemplate; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_exporttemplate ( + id bigint NOT NULL, + name character varying(100) NOT NULL, + template_code text NOT NULL, + mime_type character varying(50) NOT NULL, + file_extension character varying(15) NOT NULL, + content_type_id integer NOT NULL, + description character varying(200) NOT NULL, + as_attachment boolean NOT NULL +); + + +ALTER TABLE public.extras_exporttemplate OWNER TO netbox; + +-- +-- Name: extras_exporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.extras_exporttemplate_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_exporttemplate_id_seq OWNER TO netbox; + +-- +-- Name: extras_exporttemplate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_exporttemplate_id_seq OWNED BY public.extras_exporttemplate.id; + + +-- +-- Name: extras_imageattachment; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_imageattachment ( + id bigint NOT NULL, + object_id integer 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 NOT NULL, + content_type_id integer NOT NULL, + 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 +-- + +CREATE SEQUENCE public.extras_imageattachment_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_imageattachment_id_seq OWNER TO netbox; + +-- +-- Name: extras_imageattachment_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_imageattachment_id_seq OWNED BY public.extras_imageattachment.id; + + +-- +-- 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 +); + + +ALTER TABLE public.extras_jobresult OWNER TO netbox; + +-- +-- Name: extras_jobresult_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.extras_jobresult_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_jobresult_id_seq OWNER TO netbox; + +-- +-- Name: extras_jobresult_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_jobresult_id_seq OWNED BY public.extras_jobresult.id; + + +-- +-- Name: extras_journalentry; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_journalentry ( + id bigint NOT NULL, + assigned_object_id integer NOT NULL, + created timestamp with time zone NOT NULL, + last_updated 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, + 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 +-- + +CREATE SEQUENCE public.extras_journalentry_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_journalentry_id_seq OWNER TO netbox; + +-- +-- Name: extras_journalentry_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_journalentry_id_seq OWNED BY public.extras_journalentry.id; + + +-- +-- 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 integer NOT NULL, + related_object_id integer, + object_repr character varying(200) NOT NULL, + postchange_data jsonb, + changed_object_type_id integer NOT NULL, + related_object_type_id integer, + user_id integer, + prechange_data jsonb, + 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 +-- + +CREATE SEQUENCE public.extras_objectchange_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_objectchange_id_seq OWNER TO netbox; + +-- +-- Name: extras_objectchange_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_objectchange_id_seq OWNED BY public.extras_objectchange.id; + + +-- +-- Name: extras_tag; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_tag ( + 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, + created date, + last_updated timestamp with time zone +); + + +ALTER TABLE public.extras_tag OWNER TO netbox; + +-- +-- Name: extras_tag_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.extras_tag_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_tag_id_seq OWNER TO netbox; + +-- +-- Name: extras_tag_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_tag_id_seq OWNED BY public.extras_tag.id; + + +-- +-- Name: extras_taggeditem; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.extras_taggeditem ( + id bigint NOT NULL, + object_id integer 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 +-- + +CREATE SEQUENCE public.extras_taggeditem_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_taggeditem_id_seq OWNER TO netbox; + +-- +-- Name: extras_taggeditem_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_taggeditem_id_seq OWNED BY public.extras_taggeditem.id; + + +-- +-- 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, + http_content_type character varying(100) NOT NULL, + secret character varying(255) NOT NULL, + enabled boolean NOT NULL, + ssl_verification boolean NOT NULL, + ca_file_path character varying(4096), + additional_headers text NOT NULL, + http_method character varying(30) NOT NULL, + body_template text NOT NULL +); + + +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 integer 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_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.extras_webhook_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_webhook_id_seq OWNER TO netbox; + +-- +-- Name: extras_webhook_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_webhook_id_seq OWNED BY public.extras_webhook.id; + + +-- +-- Name: extras_webhook_obj_type_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.extras_webhook_obj_type_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.extras_webhook_obj_type_id_seq OWNER TO netbox; + +-- +-- Name: extras_webhook_obj_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.extras_webhook_obj_type_id_seq OWNED BY public.extras_webhook_content_types.id; + + +-- +-- Name: ipam_aggregate; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.ipam_aggregate ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + prefix cidr NOT NULL, + date_added date, + description character varying(200) NOT NULL, + rir_id bigint NOT NULL, + custom_field_data jsonb NOT NULL, + tenant_id bigint +); + + +ALTER TABLE public.ipam_aggregate OWNER TO netbox; + +-- +-- Name: ipam_aggregate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.ipam_aggregate_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.ipam_aggregate_id_seq OWNER TO netbox; + +-- +-- Name: ipam_aggregate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.ipam_aggregate_id_seq OWNED BY public.ipam_aggregate.id; + + +-- +-- Name: ipam_ipaddress; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.ipam_ipaddress ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + address inet NOT NULL, + description character varying(200) NOT NULL, + assigned_object_id integer, + nat_inside_id bigint, + vrf_id bigint, + tenant_id bigint, + status character varying(50) NOT NULL, + role character varying(50) NOT NULL, + dns_name character varying(255) NOT NULL, + assigned_object_type_id integer, + custom_field_data jsonb NOT NULL, + CONSTRAINT ipam_ipaddress_assigned_object_id_cff64474_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 +-- + +CREATE SEQUENCE public.ipam_ipaddress_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.ipam_ipaddress_id_seq OWNER TO netbox; + +-- +-- Name: ipam_ipaddress_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.ipam_ipaddress_id_seq OWNED BY public.ipam_ipaddress.id; + + +-- +-- Name: ipam_prefix; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.ipam_prefix ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + prefix cidr NOT NULL, + status character varying(50) NOT NULL, + description character varying(200) NOT NULL, + role_id bigint, + site_id bigint, + vlan_id bigint, + vrf_id bigint, + tenant_id bigint, + is_pool boolean NOT NULL, + custom_field_data jsonb NOT NULL, + _children bigint NOT NULL, + _depth smallint 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 +-- + +CREATE SEQUENCE public.ipam_prefix_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.ipam_prefix_id_seq OWNER TO netbox; + +-- +-- Name: ipam_prefix_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.ipam_prefix_id_seq OWNED BY public.ipam_prefix.id; + + +-- +-- Name: ipam_rir; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.ipam_rir ( + id bigint NOT NULL, + name character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + is_private boolean NOT NULL, + created date, + last_updated timestamp with time zone, + description character varying(200) NOT NULL, + custom_field_data jsonb NOT NULL +); + + +ALTER TABLE public.ipam_rir OWNER TO netbox; + +-- +-- Name: ipam_rir_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.ipam_rir_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.ipam_rir_id_seq OWNER TO netbox; + +-- +-- Name: ipam_rir_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.ipam_rir_id_seq OWNED BY public.ipam_rir.id; + + +-- +-- Name: ipam_role; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.ipam_role ( + id bigint NOT NULL, + name character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + weight smallint NOT NULL, + created date, + last_updated timestamp with time zone, + description character varying(200) NOT NULL, + custom_field_data jsonb 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 +-- + +CREATE SEQUENCE public.ipam_role_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.ipam_role_id_seq OWNER TO netbox; + +-- +-- Name: ipam_role_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.ipam_role_id_seq OWNED BY public.ipam_role.id; + + +-- +-- Name: ipam_routetarget; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.ipam_routetarget ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + custom_field_data jsonb NOT NULL, + name character varying(21) NOT NULL, + description character varying(200) NOT NULL, + tenant_id bigint +); + + +ALTER TABLE public.ipam_routetarget OWNER TO netbox; + +-- +-- Name: ipam_routetarget_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.ipam_routetarget_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.ipam_routetarget_id_seq OWNER TO netbox; + +-- +-- Name: ipam_routetarget_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.ipam_routetarget_id_seq OWNED BY public.ipam_routetarget.id; + + +-- +-- Name: ipam_service; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.ipam_service ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + name character varying(100) NOT NULL, + protocol character varying(50) NOT NULL, + description character varying(200) NOT NULL, + device_id bigint, + virtual_machine_id bigint, + custom_field_data jsonb NOT NULL, + ports integer[] NOT NULL +); + + +ALTER TABLE public.ipam_service OWNER TO netbox; + +-- +-- Name: ipam_service_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.ipam_service_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.ipam_service_id_seq OWNER TO netbox; + +-- +-- Name: ipam_service_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.ipam_service_id_seq OWNED BY public.ipam_service.id; + + +-- +-- Name: ipam_service_ipaddresses; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.ipam_service_ipaddresses ( + id integer 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 +-- + +CREATE SEQUENCE public.ipam_service_ipaddresses_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.ipam_service_ipaddresses_id_seq OWNER TO netbox; + +-- +-- Name: ipam_service_ipaddresses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.ipam_service_ipaddresses_id_seq OWNED BY public.ipam_service_ipaddresses.id; + + +-- +-- Name: ipam_vlan; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.ipam_vlan ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + vid smallint NOT NULL, + name character varying(64) NOT NULL, + status character varying(50) NOT NULL, + role_id bigint, + site_id bigint, + group_id bigint, + description character varying(200) NOT NULL, + tenant_id bigint, + custom_field_data jsonb 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 +-- + +CREATE SEQUENCE public.ipam_vlan_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.ipam_vlan_id_seq OWNER TO netbox; + +-- +-- Name: ipam_vlan_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.ipam_vlan_id_seq OWNED BY public.ipam_vlan.id; + + +-- +-- Name: ipam_vlangroup; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.ipam_vlangroup ( + id bigint NOT NULL, + name character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + scope_id bigint, + created date, + last_updated timestamp with time zone, + description character varying(200) NOT NULL, + custom_field_data jsonb NOT NULL, + scope_type_id integer, + CONSTRAINT ipam_vlangroup_scope_id_0c4b1fd6_check CHECK ((scope_id >= 0)) +); + + +ALTER TABLE public.ipam_vlangroup OWNER TO netbox; + +-- +-- Name: ipam_vlangroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.ipam_vlangroup_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.ipam_vlangroup_id_seq OWNER TO netbox; + +-- +-- Name: ipam_vlangroup_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.ipam_vlangroup_id_seq OWNED BY public.ipam_vlangroup.id; + + +-- +-- Name: ipam_vrf; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.ipam_vrf ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + name character varying(100) NOT NULL, + rd character varying(21), + description character varying(200) NOT NULL, + enforce_unique boolean NOT NULL, + tenant_id bigint, + custom_field_data jsonb 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 integer 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 +-- + +CREATE SEQUENCE public.ipam_vrf_export_targets_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.ipam_vrf_export_targets_id_seq OWNER TO netbox; + +-- +-- Name: ipam_vrf_export_targets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.ipam_vrf_export_targets_id_seq OWNED BY public.ipam_vrf_export_targets.id; + + +-- +-- Name: ipam_vrf_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.ipam_vrf_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.ipam_vrf_id_seq OWNER TO netbox; + +-- +-- Name: ipam_vrf_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.ipam_vrf_id_seq OWNED BY public.ipam_vrf.id; + + +-- +-- Name: ipam_vrf_import_targets; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.ipam_vrf_import_targets ( + id integer 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 +-- + +CREATE SEQUENCE public.ipam_vrf_import_targets_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.ipam_vrf_import_targets_id_seq OWNER TO netbox; + +-- +-- Name: ipam_vrf_import_targets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.ipam_vrf_import_targets_id_seq OWNED BY public.ipam_vrf_import_targets.id; + + +-- +-- Name: secrets_secret; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.secrets_secret ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + name character varying(100) NOT NULL, + ciphertext bytea NOT NULL, + hash character varying(128) NOT NULL, + role_id bigint NOT NULL, + custom_field_data jsonb NOT NULL, + assigned_object_id integer NOT NULL, + assigned_object_type_id integer NOT NULL, + CONSTRAINT secrets_secret_assigned_object_id_check CHECK ((assigned_object_id >= 0)) +); + + +ALTER TABLE public.secrets_secret OWNER TO netbox; + +-- +-- Name: secrets_secret_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.secrets_secret_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.secrets_secret_id_seq OWNER TO netbox; + +-- +-- Name: secrets_secret_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.secrets_secret_id_seq OWNED BY public.secrets_secret.id; + + +-- +-- Name: secrets_secretrole; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.secrets_secretrole ( + id bigint NOT NULL, + name character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + created date, + last_updated timestamp with time zone, + description character varying(200) NOT NULL, + custom_field_data jsonb NOT NULL +); + + +ALTER TABLE public.secrets_secretrole OWNER TO netbox; + +-- +-- Name: secrets_secretrole_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.secrets_secretrole_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.secrets_secretrole_id_seq OWNER TO netbox; + +-- +-- Name: secrets_secretrole_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.secrets_secretrole_id_seq OWNED BY public.secrets_secretrole.id; + + +-- +-- Name: secrets_sessionkey; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.secrets_sessionkey ( + id bigint NOT NULL, + cipher bytea NOT NULL, + hash character varying(128) NOT NULL, + created timestamp with time zone NOT NULL, + userkey_id bigint NOT NULL +); + + +ALTER TABLE public.secrets_sessionkey OWNER TO netbox; + +-- +-- Name: secrets_sessionkey_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.secrets_sessionkey_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.secrets_sessionkey_id_seq OWNER TO netbox; + +-- +-- Name: secrets_sessionkey_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.secrets_sessionkey_id_seq OWNED BY public.secrets_sessionkey.id; + + +-- +-- Name: secrets_userkey; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.secrets_userkey ( + id bigint NOT NULL, + created date NOT NULL, + last_updated timestamp with time zone NOT NULL, + public_key text NOT NULL, + master_key_cipher bytea, + user_id integer NOT NULL +); + + +ALTER TABLE public.secrets_userkey OWNER TO netbox; + +-- +-- Name: secrets_userkey_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.secrets_userkey_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.secrets_userkey_id_seq OWNER TO netbox; + +-- +-- Name: secrets_userkey_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.secrets_userkey_id_seq OWNED BY public.secrets_userkey.id; + + +-- +-- 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 +-- + +CREATE SEQUENCE public.taggit_tag_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.taggit_tag_id_seq OWNER TO netbox; + +-- +-- Name: taggit_tag_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.taggit_tag_id_seq OWNED BY public.taggit_tag.id; + + +-- +-- 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 +-- + +CREATE SEQUENCE public.taggit_taggeditem_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.taggit_taggeditem_id_seq OWNER TO netbox; + +-- +-- Name: taggit_taggeditem_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.taggit_taggeditem_id_seq OWNED BY public.taggit_taggeditem.id; + + +-- +-- Name: tenancy_tenant; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.tenancy_tenant ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + 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, + custom_field_data jsonb NOT NULL +); + + +ALTER TABLE public.tenancy_tenant OWNER TO netbox; + +-- +-- Name: tenancy_tenant_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.tenancy_tenant_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.tenancy_tenant_id_seq OWNER TO netbox; + +-- +-- Name: tenancy_tenant_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.tenancy_tenant_id_seq OWNED BY public.tenancy_tenant.id; + + +-- +-- Name: tenancy_tenantgroup; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.tenancy_tenantgroup ( + id bigint NOT NULL, + name character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + created date, + last_updated timestamp with time zone, + parent_id bigint, + level integer NOT NULL, + lft integer NOT NULL, + rght integer NOT NULL, + tree_id integer NOT NULL, + description character varying(200) NOT NULL, + custom_field_data jsonb NOT NULL, + 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 +-- + +CREATE SEQUENCE public.tenancy_tenantgroup_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.tenancy_tenantgroup_id_seq OWNER TO netbox; + +-- +-- Name: tenancy_tenantgroup_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.tenancy_tenantgroup_id_seq OWNED BY public.tenancy_tenantgroup.id; + + +-- +-- 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, + constraints jsonb, + actions character varying(30)[] NOT NULL +); + + +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 integer 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 +-- + +CREATE SEQUENCE public.users_objectpermission_groups_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.users_objectpermission_groups_id_seq OWNER TO netbox; + +-- +-- Name: users_objectpermission_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.users_objectpermission_groups_id_seq OWNED BY public.users_objectpermission_groups.id; + + +-- +-- Name: users_objectpermission_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.users_objectpermission_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.users_objectpermission_id_seq OWNER TO netbox; + +-- +-- Name: users_objectpermission_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.users_objectpermission_id_seq OWNED BY public.users_objectpermission.id; + + +-- +-- Name: users_objectpermission_object_types; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.users_objectpermission_object_types ( + id integer 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 +-- + +CREATE SEQUENCE public.users_objectpermission_object_types_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.users_objectpermission_object_types_id_seq OWNER TO netbox; + +-- +-- Name: users_objectpermission_object_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.users_objectpermission_object_types_id_seq OWNED BY public.users_objectpermission_object_types.id; + + +-- +-- Name: users_objectpermission_users; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.users_objectpermission_users ( + id integer 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 +-- + +CREATE SEQUENCE public.users_objectpermission_users_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.users_objectpermission_users_id_seq OWNER TO netbox; + +-- +-- Name: users_objectpermission_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.users_objectpermission_users_id_seq OWNED BY public.users_objectpermission_users.id; + + +-- +-- 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 +); + + +ALTER TABLE public.users_token OWNER TO netbox; + +-- +-- Name: users_token_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.users_token_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.users_token_id_seq OWNER TO netbox; + +-- +-- Name: users_token_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.users_token_id_seq OWNED BY public.users_token.id; + + +-- +-- Name: users_userconfig; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.users_userconfig ( + id integer 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 +-- + +CREATE SEQUENCE public.users_userconfig_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.users_userconfig_id_seq OWNER TO netbox; + +-- +-- Name: users_userconfig_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.users_userconfig_id_seq OWNED BY public.users_userconfig.id; + + +-- +-- Name: virtualization_cluster; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.virtualization_cluster ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + name character varying(100) NOT NULL, + comments text NOT NULL, + group_id bigint, + type_id bigint NOT NULL, + site_id bigint, + tenant_id bigint, + custom_field_data jsonb NOT NULL +); + + +ALTER TABLE public.virtualization_cluster OWNER TO netbox; + +-- +-- Name: virtualization_cluster_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.virtualization_cluster_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.virtualization_cluster_id_seq OWNER TO netbox; + +-- +-- Name: virtualization_cluster_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.virtualization_cluster_id_seq OWNED BY public.virtualization_cluster.id; + + +-- +-- Name: virtualization_clustergroup; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.virtualization_clustergroup ( + id bigint NOT NULL, + name character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + created date, + last_updated timestamp with time zone, + description character varying(200) NOT NULL, + custom_field_data jsonb NOT NULL +); + + +ALTER TABLE public.virtualization_clustergroup OWNER TO netbox; + +-- +-- Name: virtualization_clustergroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.virtualization_clustergroup_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.virtualization_clustergroup_id_seq OWNER TO netbox; + +-- +-- Name: virtualization_clustergroup_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.virtualization_clustergroup_id_seq OWNED BY public.virtualization_clustergroup.id; + + +-- +-- Name: virtualization_clustertype; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.virtualization_clustertype ( + id bigint NOT NULL, + name character varying(100) NOT NULL, + slug character varying(100) NOT NULL, + created date, + last_updated timestamp with time zone, + description character varying(200) NOT NULL, + custom_field_data jsonb NOT NULL +); + + +ALTER TABLE public.virtualization_clustertype OWNER TO netbox; + +-- +-- Name: virtualization_clustertype_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox +-- + +CREATE SEQUENCE public.virtualization_clustertype_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.virtualization_clustertype_id_seq OWNER TO netbox; + +-- +-- Name: virtualization_clustertype_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.virtualization_clustertype_id_seq OWNED BY public.virtualization_clustertype.id; + + +-- +-- Name: virtualization_virtualmachine; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.virtualization_virtualmachine ( + id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + name character varying(64) NOT NULL, + vcpus numeric(6,2), + memory integer, + disk integer, + comments text NOT NULL, + cluster_id bigint NOT NULL, + platform_id bigint, + primary_ip4_id bigint, + primary_ip6_id bigint, + tenant_id bigint, + status character varying(50) NOT NULL, + role_id bigint, + local_context_data jsonb, + custom_field_data jsonb NOT NULL, + _name character varying(100) 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 +-- + +CREATE SEQUENCE public.virtualization_virtualmachine_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.virtualization_virtualmachine_id_seq OWNER TO netbox; + +-- +-- Name: virtualization_virtualmachine_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.virtualization_virtualmachine_id_seq OWNED BY public.virtualization_virtualmachine.id; + + +-- +-- Name: virtualization_vminterface; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.virtualization_vminterface ( + id bigint NOT NULL, + name character varying(64) NOT NULL, + _name character varying(100) NOT NULL, + enabled boolean NOT NULL, + mac_address macaddr, + mtu integer, + mode character varying(50) NOT NULL, + description character varying(200) NOT NULL, + untagged_vlan_id bigint, + virtual_machine_id bigint NOT NULL, + created date, + last_updated timestamp with time zone, + custom_field_data jsonb NOT NULL, + parent_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 +-- + +CREATE SEQUENCE public.virtualization_vminterface_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.virtualization_vminterface_id_seq OWNER TO netbox; + +-- +-- Name: virtualization_vminterface_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.virtualization_vminterface_id_seq OWNED BY public.virtualization_vminterface.id; + + +-- +-- Name: virtualization_vminterface_tagged_vlans; Type: TABLE; Schema: public; Owner: netbox +-- + +CREATE TABLE public.virtualization_vminterface_tagged_vlans ( + id integer 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 +-- + +CREATE SEQUENCE public.virtualization_vminterface_tagged_vlans_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public.virtualization_vminterface_tagged_vlans_id_seq OWNER TO netbox; + +-- +-- Name: virtualization_vminterface_tagged_vlans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: netbox +-- + +ALTER SEQUENCE public.virtualization_vminterface_tagged_vlans_id_seq OWNED BY public.virtualization_vminterface_tagged_vlans.id; + + +-- +-- Name: auth_group id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.auth_group ALTER COLUMN id SET DEFAULT nextval('public.auth_group_id_seq'::regclass); + + +-- +-- Name: auth_group_permissions id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.auth_group_permissions ALTER COLUMN id SET DEFAULT nextval('public.auth_group_permissions_id_seq'::regclass); + + +-- +-- Name: auth_permission id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.auth_permission ALTER COLUMN id SET DEFAULT nextval('public.auth_permission_id_seq'::regclass); + + +-- +-- Name: auth_user id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.auth_user ALTER COLUMN id SET DEFAULT nextval('public.auth_user_id_seq'::regclass); + + +-- +-- Name: auth_user_groups id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.auth_user_groups ALTER COLUMN id SET DEFAULT nextval('public.auth_user_groups_id_seq'::regclass); + + +-- +-- Name: auth_user_user_permissions id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.auth_user_user_permissions ALTER COLUMN id SET DEFAULT nextval('public.auth_user_user_permissions_id_seq'::regclass); + + +-- +-- Name: circuits_circuit id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.circuits_circuit ALTER COLUMN id SET DEFAULT nextval('public.circuits_circuit_id_seq'::regclass); + + +-- +-- Name: circuits_circuittermination id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.circuits_circuittermination ALTER COLUMN id SET DEFAULT nextval('public.circuits_circuittermination_id_seq'::regclass); + + +-- +-- Name: circuits_circuittype id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.circuits_circuittype ALTER COLUMN id SET DEFAULT nextval('public.circuits_circuittype_id_seq'::regclass); + + +-- +-- Name: circuits_provider id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.circuits_provider ALTER COLUMN id SET DEFAULT nextval('public.circuits_provider_id_seq'::regclass); + + +-- +-- Name: circuits_providernetwork id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.circuits_providernetwork ALTER COLUMN id SET DEFAULT nextval('public.circuits_providernetwork_id_seq'::regclass); + + +-- +-- Name: dcim_cable id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_cable ALTER COLUMN id SET DEFAULT nextval('public.dcim_cable_id_seq'::regclass); + + +-- +-- Name: dcim_cablepath id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_cablepath ALTER COLUMN id SET DEFAULT nextval('public.dcim_cablepath_id_seq'::regclass); + + +-- +-- Name: dcim_consoleport id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleport ALTER COLUMN id SET DEFAULT nextval('public.dcim_consoleport_id_seq'::regclass); + + +-- +-- Name: dcim_consoleporttemplate id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleporttemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_consoleporttemplate_id_seq'::regclass); + + +-- +-- Name: dcim_consoleserverport id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleserverport ALTER COLUMN id SET DEFAULT nextval('public.dcim_consoleserverport_id_seq'::regclass); + + +-- +-- Name: dcim_consoleserverporttemplate id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleserverporttemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_consoleserverporttemplate_id_seq'::regclass); + + +-- +-- Name: dcim_device id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_device ALTER COLUMN id SET DEFAULT nextval('public.dcim_device_id_seq'::regclass); + + +-- +-- Name: dcim_devicebay id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_devicebay ALTER COLUMN id SET DEFAULT nextval('public.dcim_devicebay_id_seq'::regclass); + + +-- +-- Name: dcim_devicebaytemplate id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_devicebaytemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_devicebaytemplate_id_seq'::regclass); + + +-- +-- Name: dcim_devicerole id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_devicerole ALTER COLUMN id SET DEFAULT nextval('public.dcim_devicerole_id_seq'::regclass); + + +-- +-- Name: dcim_devicetype id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_devicetype ALTER COLUMN id SET DEFAULT nextval('public.dcim_devicetype_id_seq'::regclass); + + +-- +-- Name: dcim_frontport id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_frontport ALTER COLUMN id SET DEFAULT nextval('public.dcim_frontport_id_seq'::regclass); + + +-- +-- Name: dcim_frontporttemplate id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_frontporttemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_frontporttemplate_id_seq'::regclass); + + +-- +-- Name: dcim_interface id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_interface ALTER COLUMN id SET DEFAULT nextval('public.dcim_interface_id_seq'::regclass); + + +-- +-- Name: dcim_interface_tagged_vlans id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_interface_tagged_vlans ALTER COLUMN id SET DEFAULT nextval('public.dcim_interface_tagged_vlans_id_seq'::regclass); + + +-- +-- Name: dcim_interfacetemplate id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_interfacetemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_interfacetemplate_id_seq'::regclass); + + +-- +-- Name: dcim_inventoryitem id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_inventoryitem ALTER COLUMN id SET DEFAULT nextval('public.dcim_inventoryitem_id_seq'::regclass); + + +-- +-- Name: dcim_location id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_location ALTER COLUMN id SET DEFAULT nextval('public.dcim_rackgroup_id_seq'::regclass); + + +-- +-- Name: dcim_manufacturer id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_manufacturer ALTER COLUMN id SET DEFAULT nextval('public.dcim_manufacturer_id_seq'::regclass); + + +-- +-- Name: dcim_platform id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_platform ALTER COLUMN id SET DEFAULT nextval('public.dcim_platform_id_seq'::regclass); + + +-- +-- Name: dcim_powerfeed id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerfeed ALTER COLUMN id SET DEFAULT nextval('public.dcim_powerfeed_id_seq'::regclass); + + +-- +-- Name: dcim_poweroutlet id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_poweroutlet ALTER COLUMN id SET DEFAULT nextval('public.dcim_poweroutlet_id_seq'::regclass); + + +-- +-- Name: dcim_poweroutlettemplate id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_poweroutlettemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_poweroutlettemplate_id_seq'::regclass); + + +-- +-- Name: dcim_powerpanel id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerpanel ALTER COLUMN id SET DEFAULT nextval('public.dcim_powerpanel_id_seq'::regclass); + + +-- +-- Name: dcim_powerport id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerport ALTER COLUMN id SET DEFAULT nextval('public.dcim_powerport_id_seq'::regclass); + + +-- +-- Name: dcim_powerporttemplate id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerporttemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_powerporttemplate_id_seq'::regclass); + + +-- +-- Name: dcim_rack id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rack ALTER COLUMN id SET DEFAULT nextval('public.dcim_rack_id_seq'::regclass); + + +-- +-- Name: dcim_rackreservation id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rackreservation ALTER COLUMN id SET DEFAULT nextval('public.dcim_rackreservation_id_seq'::regclass); + + +-- +-- Name: dcim_rackrole id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rackrole ALTER COLUMN id SET DEFAULT nextval('public.dcim_rackrole_id_seq'::regclass); + + +-- +-- Name: dcim_rearport id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rearport ALTER COLUMN id SET DEFAULT nextval('public.dcim_rearport_id_seq'::regclass); + + +-- +-- Name: dcim_rearporttemplate id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rearporttemplate ALTER COLUMN id SET DEFAULT nextval('public.dcim_rearporttemplate_id_seq'::regclass); + + +-- +-- Name: dcim_region id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_region ALTER COLUMN id SET DEFAULT nextval('public.dcim_region_id_seq'::regclass); + + +-- +-- Name: dcim_site id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_site ALTER COLUMN id SET DEFAULT nextval('public.dcim_site_id_seq'::regclass); + + +-- +-- Name: dcim_sitegroup id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_sitegroup ALTER COLUMN id SET DEFAULT nextval('public.dcim_sitegroup_id_seq'::regclass); + + +-- +-- Name: dcim_virtualchassis id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_virtualchassis ALTER COLUMN id SET DEFAULT nextval('public.dcim_virtualchassis_id_seq'::regclass); + + +-- +-- Name: django_admin_log id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.django_admin_log ALTER COLUMN id SET DEFAULT nextval('public.django_admin_log_id_seq'::regclass); + + +-- +-- Name: django_content_type id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.django_content_type ALTER COLUMN id SET DEFAULT nextval('public.django_content_type_id_seq'::regclass); + + +-- +-- Name: django_migrations id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.django_migrations ALTER COLUMN id SET DEFAULT nextval('public.django_migrations_id_seq'::regclass); + + +-- +-- Name: extras_configcontext id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_configcontext ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_id_seq'::regclass); + + +-- +-- Name: extras_configcontext_cluster_groups id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_configcontext_cluster_groups ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_cluster_groups_id_seq'::regclass); + + +-- +-- Name: extras_configcontext_clusters id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_configcontext_clusters ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_clusters_id_seq'::regclass); + + +-- +-- Name: extras_configcontext_device_types id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_configcontext_device_types ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_device_types_id_seq'::regclass); + + +-- +-- Name: extras_configcontext_platforms id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_configcontext_platforms ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_platforms_id_seq'::regclass); + + +-- +-- Name: extras_configcontext_regions id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_configcontext_regions ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_regions_id_seq'::regclass); + + +-- +-- Name: extras_configcontext_roles id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_configcontext_roles ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_roles_id_seq'::regclass); + + +-- +-- Name: extras_configcontext_site_groups id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_configcontext_site_groups ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_site_groups_id_seq'::regclass); + + +-- +-- Name: extras_configcontext_sites id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_configcontext_sites ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_sites_id_seq'::regclass); + + +-- +-- Name: extras_configcontext_tags id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_configcontext_tags ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_tags_id_seq'::regclass); + + +-- +-- Name: extras_configcontext_tenant_groups id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_configcontext_tenant_groups ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_tenant_groups_id_seq'::regclass); + + +-- +-- Name: extras_configcontext_tenants id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_configcontext_tenants ALTER COLUMN id SET DEFAULT nextval('public.extras_configcontext_tenants_id_seq'::regclass); + + +-- +-- Name: extras_customfield id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_customfield ALTER COLUMN id SET DEFAULT nextval('public.extras_customfield_id_seq'::regclass); + + +-- +-- Name: extras_customfield_content_types id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_customfield_content_types ALTER COLUMN id SET DEFAULT nextval('public.extras_customfield_obj_type_id_seq'::regclass); + + +-- +-- Name: extras_customlink id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_customlink ALTER COLUMN id SET DEFAULT nextval('public.extras_customlink_id_seq'::regclass); + + +-- +-- Name: extras_exporttemplate id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_exporttemplate ALTER COLUMN id SET DEFAULT nextval('public.extras_exporttemplate_id_seq'::regclass); + + +-- +-- Name: extras_imageattachment id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_imageattachment ALTER COLUMN id SET DEFAULT nextval('public.extras_imageattachment_id_seq'::regclass); + + +-- +-- Name: extras_jobresult id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_jobresult ALTER COLUMN id SET DEFAULT nextval('public.extras_jobresult_id_seq'::regclass); + + +-- +-- Name: extras_journalentry id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_journalentry ALTER COLUMN id SET DEFAULT nextval('public.extras_journalentry_id_seq'::regclass); + + +-- +-- Name: extras_objectchange id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_objectchange ALTER COLUMN id SET DEFAULT nextval('public.extras_objectchange_id_seq'::regclass); + + +-- +-- Name: extras_tag id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_tag ALTER COLUMN id SET DEFAULT nextval('public.extras_tag_id_seq'::regclass); + + +-- +-- Name: extras_taggeditem id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_taggeditem ALTER COLUMN id SET DEFAULT nextval('public.extras_taggeditem_id_seq'::regclass); + + +-- +-- Name: extras_webhook id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_webhook ALTER COLUMN id SET DEFAULT nextval('public.extras_webhook_id_seq'::regclass); + + +-- +-- Name: extras_webhook_content_types id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_webhook_content_types ALTER COLUMN id SET DEFAULT nextval('public.extras_webhook_obj_type_id_seq'::regclass); + + +-- +-- Name: ipam_aggregate id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_aggregate ALTER COLUMN id SET DEFAULT nextval('public.ipam_aggregate_id_seq'::regclass); + + +-- +-- Name: ipam_ipaddress id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_ipaddress ALTER COLUMN id SET DEFAULT nextval('public.ipam_ipaddress_id_seq'::regclass); + + +-- +-- Name: ipam_prefix id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_prefix ALTER COLUMN id SET DEFAULT nextval('public.ipam_prefix_id_seq'::regclass); + + +-- +-- Name: ipam_rir id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_rir ALTER COLUMN id SET DEFAULT nextval('public.ipam_rir_id_seq'::regclass); + + +-- +-- Name: ipam_role id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_role ALTER COLUMN id SET DEFAULT nextval('public.ipam_role_id_seq'::regclass); + + +-- +-- Name: ipam_routetarget id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_routetarget ALTER COLUMN id SET DEFAULT nextval('public.ipam_routetarget_id_seq'::regclass); + + +-- +-- Name: ipam_service id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_service ALTER COLUMN id SET DEFAULT nextval('public.ipam_service_id_seq'::regclass); + + +-- +-- Name: ipam_service_ipaddresses id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_service_ipaddresses ALTER COLUMN id SET DEFAULT nextval('public.ipam_service_ipaddresses_id_seq'::regclass); + + +-- +-- Name: ipam_vlan id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_vlan ALTER COLUMN id SET DEFAULT nextval('public.ipam_vlan_id_seq'::regclass); + + +-- +-- Name: ipam_vlangroup id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_vlangroup ALTER COLUMN id SET DEFAULT nextval('public.ipam_vlangroup_id_seq'::regclass); + + +-- +-- Name: ipam_vrf id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_vrf ALTER COLUMN id SET DEFAULT nextval('public.ipam_vrf_id_seq'::regclass); + + +-- +-- Name: ipam_vrf_export_targets id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_vrf_export_targets ALTER COLUMN id SET DEFAULT nextval('public.ipam_vrf_export_targets_id_seq'::regclass); + + +-- +-- Name: ipam_vrf_import_targets id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_vrf_import_targets ALTER COLUMN id SET DEFAULT nextval('public.ipam_vrf_import_targets_id_seq'::regclass); + + +-- +-- Name: secrets_secret id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_secret ALTER COLUMN id SET DEFAULT nextval('public.secrets_secret_id_seq'::regclass); + + +-- +-- Name: secrets_secretrole id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_secretrole ALTER COLUMN id SET DEFAULT nextval('public.secrets_secretrole_id_seq'::regclass); + + +-- +-- Name: secrets_sessionkey id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_sessionkey ALTER COLUMN id SET DEFAULT nextval('public.secrets_sessionkey_id_seq'::regclass); + + +-- +-- Name: secrets_userkey id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_userkey ALTER COLUMN id SET DEFAULT nextval('public.secrets_userkey_id_seq'::regclass); + + +-- +-- Name: taggit_tag id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.taggit_tag ALTER COLUMN id SET DEFAULT nextval('public.taggit_tag_id_seq'::regclass); + + +-- +-- Name: taggit_taggeditem id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.taggit_taggeditem ALTER COLUMN id SET DEFAULT nextval('public.taggit_taggeditem_id_seq'::regclass); + + +-- +-- Name: tenancy_tenant id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.tenancy_tenant ALTER COLUMN id SET DEFAULT nextval('public.tenancy_tenant_id_seq'::regclass); + + +-- +-- Name: tenancy_tenantgroup id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.tenancy_tenantgroup ALTER COLUMN id SET DEFAULT nextval('public.tenancy_tenantgroup_id_seq'::regclass); + + +-- +-- Name: users_objectpermission id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.users_objectpermission ALTER COLUMN id SET DEFAULT nextval('public.users_objectpermission_id_seq'::regclass); + + +-- +-- Name: users_objectpermission_groups id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.users_objectpermission_groups ALTER COLUMN id SET DEFAULT nextval('public.users_objectpermission_groups_id_seq'::regclass); + + +-- +-- Name: users_objectpermission_object_types id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.users_objectpermission_object_types ALTER COLUMN id SET DEFAULT nextval('public.users_objectpermission_object_types_id_seq'::regclass); + + +-- +-- Name: users_objectpermission_users id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.users_objectpermission_users ALTER COLUMN id SET DEFAULT nextval('public.users_objectpermission_users_id_seq'::regclass); + + +-- +-- Name: users_token id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.users_token ALTER COLUMN id SET DEFAULT nextval('public.users_token_id_seq'::regclass); + + +-- +-- Name: users_userconfig id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.users_userconfig ALTER COLUMN id SET DEFAULT nextval('public.users_userconfig_id_seq'::regclass); + + +-- +-- Name: virtualization_cluster id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_cluster ALTER COLUMN id SET DEFAULT nextval('public.virtualization_cluster_id_seq'::regclass); + + +-- +-- Name: virtualization_clustergroup id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_clustergroup ALTER COLUMN id SET DEFAULT nextval('public.virtualization_clustergroup_id_seq'::regclass); + + +-- +-- Name: virtualization_clustertype id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_clustertype ALTER COLUMN id SET DEFAULT nextval('public.virtualization_clustertype_id_seq'::regclass); + + +-- +-- Name: virtualization_virtualmachine id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_virtualmachine ALTER COLUMN id SET DEFAULT nextval('public.virtualization_virtualmachine_id_seq'::regclass); + + +-- +-- Name: virtualization_vminterface id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_vminterface ALTER COLUMN id SET DEFAULT nextval('public.virtualization_vminterface_id_seq'::regclass); + + +-- +-- Name: virtualization_vminterface_tagged_vlans id; Type: DEFAULT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_vminterface_tagged_vlans ALTER COLUMN id SET DEFAULT nextval('public.virtualization_vminterface_tagged_vlans_id_seq'::regclass); + + +-- +-- Data for Name: auth_group; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.auth_group (id, name) FROM stdin; +\. + + +-- +-- 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 15 add_logentry +2 Can change log entry 15 change_logentry +3 Can delete log entry 15 delete_logentry +4 Can view log entry 15 view_logentry +5 Can add permission 16 add_permission +6 Can change permission 16 change_permission +7 Can delete permission 16 delete_permission +8 Can view permission 16 view_permission +9 Can add group 17 add_group +10 Can change group 17 change_group +11 Can delete group 17 delete_group +12 Can view group 17 view_group +13 Can add user 18 add_user +14 Can change user 18 change_user +15 Can delete user 18 delete_user +16 Can view user 18 view_user +17 Can add content type 19 add_contenttype +18 Can change content type 19 change_contenttype +19 Can delete content type 19 delete_contenttype +20 Can view content type 19 view_contenttype +21 Can add session 20 add_session +22 Can change session 20 change_session +23 Can delete session 20 delete_session +24 Can view session 20 view_session +25 Can add tag 21 add_tag +26 Can change tag 21 change_tag +27 Can delete tag 21 delete_tag +28 Can view tag 21 view_tag +29 Can add tagged item 22 add_taggeditem +30 Can change tagged item 22 change_taggeditem +31 Can delete tagged item 22 delete_taggeditem +32 Can view tagged item 22 view_taggeditem +33 Can add circuit 23 add_circuit +34 Can change circuit 23 change_circuit +35 Can delete circuit 23 delete_circuit +36 Can view circuit 23 view_circuit +37 Can add circuit type 24 add_circuittype +38 Can change circuit type 24 change_circuittype +39 Can delete circuit type 24 delete_circuittype +40 Can view circuit type 24 view_circuittype +41 Can add provider 25 add_provider +42 Can change provider 25 change_provider +43 Can delete provider 25 delete_provider +44 Can view provider 25 view_provider +45 Can add circuit termination 7 add_circuittermination +46 Can change circuit termination 7 change_circuittermination +47 Can delete circuit termination 7 delete_circuittermination +48 Can view circuit termination 7 view_circuittermination +49 Can add provider network 26 add_providernetwork +50 Can change provider network 26 change_providernetwork +51 Can delete provider network 26 delete_providernetwork +52 Can view provider network 26 view_providernetwork +53 Can add console port 1 add_consoleport +54 Can change console port 1 change_consoleport +55 Can delete console port 1 delete_consoleport +56 Can view console port 1 view_consoleport +57 Can add console port template 27 add_consoleporttemplate +58 Can change console port template 27 change_consoleporttemplate +59 Can delete console port template 27 delete_consoleporttemplate +60 Can view console port template 27 view_consoleporttemplate +61 Can add console server port 2 add_consoleserverport +62 Can change console server port 2 change_consoleserverport +63 Can delete console server port 2 delete_consoleserverport +64 Can view console server port 2 view_consoleserverport +65 Can add console server port template 28 add_consoleserverporttemplate +66 Can change console server port template 28 change_consoleserverporttemplate +67 Can delete console server port template 28 delete_consoleserverporttemplate +68 Can view console server port template 28 view_consoleserverporttemplate +69 Can add device 14 add_device +70 Can change device 14 change_device +71 Can delete device 14 delete_device +72 Can view device 14 view_device +73 Can add device role 29 add_devicerole +74 Can change device role 29 change_devicerole +75 Can delete device role 29 delete_devicerole +76 Can view device role 29 view_devicerole +77 Can add device type 30 add_devicetype +78 Can change device type 30 change_devicetype +79 Can delete device type 30 delete_devicetype +80 Can view device type 30 view_devicetype +81 Can add interface 5 add_interface +82 Can change interface 5 change_interface +83 Can delete interface 5 delete_interface +84 Can view interface 5 view_interface +85 Can add interface template 31 add_interfacetemplate +86 Can change interface template 31 change_interfacetemplate +87 Can delete interface template 31 delete_interfacetemplate +88 Can view interface template 31 view_interfacetemplate +89 Can add manufacturer 32 add_manufacturer +90 Can change manufacturer 32 change_manufacturer +91 Can delete manufacturer 32 delete_manufacturer +92 Can view manufacturer 32 view_manufacturer +93 Can add platform 33 add_platform +94 Can change platform 33 change_platform +95 Can delete platform 33 delete_platform +96 Can view platform 33 view_platform +97 Can add power outlet 4 add_poweroutlet +98 Can change power outlet 4 change_poweroutlet +99 Can delete power outlet 4 delete_poweroutlet +100 Can view power outlet 4 view_poweroutlet +101 Can add power outlet template 34 add_poweroutlettemplate +102 Can change power outlet template 34 change_poweroutlettemplate +103 Can delete power outlet template 34 delete_poweroutlettemplate +104 Can view power outlet template 34 view_poweroutlettemplate +105 Can add power port 3 add_powerport +106 Can change power port 3 change_powerport +107 Can delete power port 3 delete_powerport +108 Can view power port 3 view_powerport +109 Can add power port template 35 add_powerporttemplate +110 Can change power port template 35 change_powerporttemplate +111 Can delete power port template 35 delete_powerporttemplate +112 Can view power port template 35 view_powerporttemplate +113 Can add rack 36 add_rack +114 Can change rack 36 change_rack +115 Can delete rack 36 delete_rack +116 Can view rack 36 view_rack +117 Can add site 13 add_site +118 Can change site 13 change_site +119 Can delete site 13 delete_site +120 Can view site 13 view_site +121 Can add device bay 37 add_devicebay +122 Can change device bay 37 change_devicebay +123 Can delete device bay 37 delete_devicebay +124 Can view device bay 37 view_devicebay +125 Can add device bay template 38 add_devicebaytemplate +126 Can change device bay template 38 change_devicebaytemplate +127 Can delete device bay template 38 delete_devicebaytemplate +128 Can view device bay template 38 view_devicebaytemplate +129 Can add rack role 39 add_rackrole +130 Can change rack role 39 change_rackrole +131 Can delete rack role 39 delete_rackrole +132 Can view rack role 39 view_rackrole +133 Can add rack reservation 40 add_rackreservation +134 Can change rack reservation 40 change_rackreservation +135 Can delete rack reservation 40 delete_rackreservation +136 Can view rack reservation 40 view_rackreservation +137 Can add region 41 add_region +138 Can change region 41 change_region +139 Can delete region 41 delete_region +140 Can view region 41 view_region +141 Can add inventory item 42 add_inventoryitem +142 Can change inventory item 42 change_inventoryitem +143 Can delete inventory item 42 delete_inventoryitem +144 Can view inventory item 42 view_inventoryitem +145 Can add virtual chassis 43 add_virtualchassis +146 Can change virtual chassis 43 change_virtualchassis +147 Can delete virtual chassis 43 delete_virtualchassis +148 Can view virtual chassis 43 view_virtualchassis +149 Can add front port 10 add_frontport +150 Can change front port 10 change_frontport +151 Can delete front port 10 delete_frontport +152 Can view front port 10 view_frontport +153 Can add front port template 44 add_frontporttemplate +154 Can change front port template 44 change_frontporttemplate +155 Can delete front port template 44 delete_frontporttemplate +156 Can view front port template 44 view_frontporttemplate +157 Can add rear port 11 add_rearport +158 Can change rear port 11 change_rearport +159 Can delete rear port 11 delete_rearport +160 Can view rear port 11 view_rearport +161 Can add rear port template 45 add_rearporttemplate +162 Can change rear port template 45 change_rearporttemplate +163 Can delete rear port template 45 delete_rearporttemplate +164 Can view rear port template 45 view_rearporttemplate +165 Can add cable 46 add_cable +166 Can change cable 46 change_cable +167 Can delete cable 46 delete_cable +168 Can view cable 46 view_cable +169 Can add power feed 12 add_powerfeed +170 Can change power feed 12 change_powerfeed +171 Can delete power feed 12 delete_powerfeed +172 Can view power feed 12 view_powerfeed +173 Can add power panel 47 add_powerpanel +174 Can change power panel 47 change_powerpanel +175 Can delete power panel 47 delete_powerpanel +176 Can view power panel 47 view_powerpanel +177 Can add cable path 48 add_cablepath +178 Can change cable path 48 change_cablepath +179 Can delete cable path 48 delete_cablepath +180 Can view cable path 48 view_cablepath +181 Can add location 49 add_location +182 Can change location 49 change_location +183 Can delete location 49 delete_location +184 Can view location 49 view_location +185 Can add site group 50 add_sitegroup +186 Can change site group 50 change_sitegroup +187 Can delete site group 50 delete_sitegroup +188 Can view site group 50 view_sitegroup +189 Can add aggregate 51 add_aggregate +190 Can change aggregate 51 change_aggregate +191 Can delete aggregate 51 delete_aggregate +192 Can view aggregate 51 view_aggregate +193 Can add IP address 52 add_ipaddress +194 Can change IP address 52 change_ipaddress +195 Can delete IP address 52 delete_ipaddress +196 Can view IP address 52 view_ipaddress +197 Can add prefix 53 add_prefix +198 Can change prefix 53 change_prefix +199 Can delete prefix 53 delete_prefix +200 Can view prefix 53 view_prefix +201 Can add RIR 54 add_rir +202 Can change RIR 54 change_rir +203 Can delete RIR 54 delete_rir +204 Can view RIR 54 view_rir +205 Can add role 55 add_role +206 Can change role 55 change_role +207 Can delete role 55 delete_role +208 Can view role 55 view_role +209 Can add VLAN 56 add_vlan +210 Can change VLAN 56 change_vlan +211 Can delete VLAN 56 delete_vlan +212 Can view VLAN 56 view_vlan +213 Can add VRF 57 add_vrf +214 Can change VRF 57 change_vrf +215 Can delete VRF 57 delete_vrf +216 Can view VRF 57 view_vrf +217 Can add VLAN group 58 add_vlangroup +218 Can change VLAN group 58 change_vlangroup +219 Can delete VLAN group 58 delete_vlangroup +220 Can view VLAN group 58 view_vlangroup +221 Can add service 59 add_service +222 Can change service 59 change_service +223 Can delete service 59 delete_service +224 Can view service 59 view_service +225 Can add route target 60 add_routetarget +226 Can change route target 60 change_routetarget +227 Can delete route target 60 delete_routetarget +228 Can view route target 60 view_routetarget +229 Can add export template 61 add_exporttemplate +230 Can change export template 61 change_exporttemplate +231 Can delete export template 61 delete_exporttemplate +232 Can view export template 61 view_exporttemplate +233 Can add custom field 62 add_customfield +234 Can change custom field 62 change_customfield +235 Can delete custom field 62 delete_customfield +236 Can view custom field 62 view_customfield +237 Can add image attachment 63 add_imageattachment +238 Can change image attachment 63 change_imageattachment +239 Can delete image attachment 63 delete_imageattachment +240 Can view image attachment 63 view_imageattachment +241 Can add webhook 64 add_webhook +242 Can change webhook 64 change_webhook +243 Can delete webhook 64 delete_webhook +244 Can view webhook 64 view_webhook +245 Can add object change 65 add_objectchange +246 Can change object change 65 change_objectchange +247 Can delete object change 65 delete_objectchange +248 Can view object change 65 view_objectchange +249 Can add config context 66 add_configcontext +250 Can change config context 66 change_configcontext +251 Can delete config context 66 delete_configcontext +252 Can view config context 66 view_configcontext +253 Can add tag 67 add_tag +254 Can change tag 67 change_tag +255 Can delete tag 67 delete_tag +256 Can view tag 67 view_tag +257 Can add tagged item 68 add_taggeditem +258 Can change tagged item 68 change_taggeditem +259 Can delete tagged item 68 delete_taggeditem +260 Can view tagged item 68 view_taggeditem +261 Can add custom link 69 add_customlink +262 Can change custom link 69 change_customlink +263 Can delete custom link 69 delete_customlink +264 Can view custom link 69 view_customlink +265 Can add script 70 add_script +266 Can change script 70 change_script +267 Can delete script 70 delete_script +268 Can view script 70 view_script +269 Can add report 9 add_report +270 Can change report 9 change_report +271 Can delete report 9 delete_report +272 Can view report 9 view_report +273 Can add job result 71 add_jobresult +274 Can change job result 71 change_jobresult +275 Can delete job result 71 delete_jobresult +276 Can view job result 71 view_jobresult +277 Can add journal entry 72 add_journalentry +278 Can change journal entry 72 change_journalentry +279 Can delete journal entry 72 delete_journalentry +280 Can view journal entry 72 view_journalentry +281 Can add secret 73 add_secret +282 Can change secret 73 change_secret +283 Can delete secret 73 delete_secret +284 Can view secret 73 view_secret +285 Can add secret role 74 add_secretrole +286 Can change secret role 74 change_secretrole +287 Can delete secret role 74 delete_secretrole +288 Can view secret role 74 view_secretrole +289 Can add user key 75 add_userkey +290 Can change user key 75 change_userkey +291 Can delete user key 75 delete_userkey +292 Can view user key 75 view_userkey +293 Can add session key 76 add_sessionkey +294 Can change session key 76 change_sessionkey +295 Can delete session key 76 delete_sessionkey +296 Can view session key 76 view_sessionkey +297 Can add tenant 77 add_tenant +298 Can change tenant 77 change_tenant +299 Can delete tenant 77 delete_tenant +300 Can view tenant 77 view_tenant +301 Can add tenant group 78 add_tenantgroup +302 Can change tenant group 78 change_tenantgroup +303 Can delete tenant group 78 delete_tenantgroup +304 Can view tenant group 78 view_tenantgroup +305 Can add token 79 add_token +306 Can change token 79 change_token +307 Can delete token 79 delete_token +308 Can view token 79 view_token +309 Can add User Preferences 80 add_userconfig +310 Can change User Preferences 80 change_userconfig +311 Can delete User Preferences 80 delete_userconfig +312 Can view User Preferences 80 view_userconfig +313 Can add Group 81 add_admingroup +314 Can change Group 81 change_admingroup +315 Can delete Group 81 delete_admingroup +316 Can view Group 81 view_admingroup +317 Can add User 82 add_adminuser +318 Can change User 82 change_adminuser +319 Can delete User 82 delete_adminuser +320 Can view User 82 view_adminuser +321 Can add permission 83 add_objectpermission +322 Can change permission 83 change_objectpermission +323 Can delete permission 83 delete_objectpermission +324 Can view permission 83 view_objectpermission +325 Can add cluster 84 add_cluster +326 Can change cluster 84 change_cluster +327 Can delete cluster 84 delete_cluster +328 Can view cluster 84 view_cluster +329 Can add cluster group 85 add_clustergroup +330 Can change cluster group 85 change_clustergroup +331 Can delete cluster group 85 delete_clustergroup +332 Can view cluster group 85 view_clustergroup +333 Can add cluster type 86 add_clustertype +334 Can change cluster type 86 change_clustertype +335 Can delete cluster type 86 delete_clustertype +336 Can view cluster type 86 view_clustertype +337 Can add virtual machine 87 add_virtualmachine +338 Can change virtual machine 87 change_virtualmachine +339 Can delete virtual machine 87 delete_virtualmachine +340 Can view virtual machine 87 view_virtualmachine +341 Can add interface 8 add_vminterface +342 Can change interface 8 change_vminterface +343 Can delete interface 8 delete_vminterface +344 Can view interface 8 view_vminterface +\. + + +-- +-- 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$260000$KU6piZPWoA1JTanzScBoip$A3y3ggIz5ii5zrp8GIbfK4VodTwk01uSppMdlR0WudI= 2022-08-13 12:36:12.419376+00 t admin admin@example.com t t 2022-08-13 12:35:19.52069+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; +\. + + +-- +-- 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 (id, created, last_updated, cid, install_date, commit_rate, comments, provider_id, type_id, tenant_id, description, status, custom_field_data, termination_a_id, termination_z_id) FROM stdin; +\. + + +-- +-- Data for Name: circuits_circuittermination; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.circuits_circuittermination (id, term_side, port_speed, upstream_speed, xconnect_id, pp_info, circuit_id, site_id, cable_id, description, _cable_peer_id, _cable_peer_type_id, created, last_updated, mark_connected, provider_network_id) FROM stdin; +\. + + +-- +-- Data for Name: circuits_circuittype; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.circuits_circuittype (id, name, slug, created, last_updated, description, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: circuits_provider; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.circuits_provider (id, created, last_updated, name, slug, asn, account, portal_url, noc_contact, admin_contact, comments, custom_field_data) 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) FROM stdin; +\. + + +-- +-- Data for Name: dcim_cable; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_cable (id, created, last_updated, termination_a_id, termination_b_id, type, status, label, color, length, length_unit, _abs_length, termination_a_type_id, termination_b_type_id, _termination_a_device_id, _termination_b_device_id, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: dcim_cablepath; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_cablepath (id, origin_id, destination_id, path, is_active, is_split, destination_type_id, origin_type_id) FROM stdin; +\. + + +-- +-- Data for Name: dcim_consoleport; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_consoleport (id, name, device_id, cable_id, description, type, _name, label, _cable_peer_id, _cable_peer_type_id, _path_id, created, custom_field_data, last_updated, mark_connected, speed) FROM stdin; +\. + + +-- +-- Data for Name: dcim_consoleporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_consoleporttemplate (id, name, device_type_id, type, _name, label, description, created, last_updated) FROM stdin; +\. + + +-- +-- Data for Name: dcim_consoleserverport; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_consoleserverport (id, name, device_id, cable_id, description, type, _name, label, _cable_peer_id, _cable_peer_type_id, _path_id, created, custom_field_data, last_updated, mark_connected, speed) FROM stdin; +\. + + +-- +-- Data for Name: dcim_consoleserverporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_consoleserverporttemplate (id, name, device_type_id, type, _name, label, description, created, last_updated) FROM stdin; +\. + + +-- +-- Data for Name: dcim_device; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_device (id, created, last_updated, name, serial, "position", face, status, comments, device_role_id, device_type_id, platform_id, rack_id, primary_ip4_id, primary_ip6_id, tenant_id, asset_tag, site_id, cluster_id, virtual_chassis_id, vc_position, vc_priority, local_context_data, _name, custom_field_data, location_id) FROM stdin; +\. + + +-- +-- Data for Name: dcim_devicebay; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_devicebay (id, name, device_id, installed_device_id, description, _name, label, created, custom_field_data, last_updated) FROM stdin; +\. + + +-- +-- Data for Name: dcim_devicebaytemplate; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_devicebaytemplate (id, name, device_type_id, _name, label, description, created, last_updated) FROM stdin; +\. + + +-- +-- Data for Name: dcim_devicerole; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_devicerole (id, name, slug, color, vm_role, created, last_updated, description, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: dcim_devicetype; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_devicetype (id, model, slug, u_height, is_full_depth, manufacturer_id, subdevice_role, part_number, comments, created, last_updated, front_image, rear_image, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: dcim_frontport; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_frontport (id, name, type, rear_port_position, description, device_id, rear_port_id, cable_id, _name, label, _cable_peer_id, _cable_peer_type_id, created, custom_field_data, last_updated, mark_connected) FROM stdin; +\. + + +-- +-- Data for Name: dcim_frontporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_frontporttemplate (id, name, type, rear_port_position, device_type_id, rear_port_id, _name, label, description, created, last_updated) FROM stdin; +\. + + +-- +-- Data for Name: dcim_interface; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_interface (id, name, type, mgmt_only, description, device_id, mac_address, lag_id, enabled, mtu, mode, untagged_vlan_id, cable_id, _name, label, _cable_peer_id, _cable_peer_type_id, _path_id, created, custom_field_data, last_updated, mark_connected, parent_id) 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_interfacetemplate; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_interfacetemplate (id, name, type, mgmt_only, device_type_id, _name, label, description, created, last_updated) FROM stdin; +\. + + +-- +-- Data for Name: dcim_inventoryitem; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_inventoryitem (id, name, part_id, serial, discovered, device_id, parent_id, manufacturer_id, asset_tag, description, _name, label, level, lft, rght, tree_id, created, custom_field_data, last_updated) FROM stdin; +\. + + +-- +-- Data for Name: dcim_location; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_location (id, name, slug, site_id, created, last_updated, parent_id, level, lft, rght, tree_id, description, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: dcim_manufacturer; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_manufacturer (id, name, slug, created, last_updated, description, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: dcim_platform; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_platform (id, name, slug, napalm_driver, manufacturer_id, created, last_updated, napalm_args, description, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: dcim_powerfeed; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_powerfeed (id, created, last_updated, name, status, type, supply, phase, voltage, amperage, max_utilization, available_power, comments, cable_id, power_panel_id, rack_id, custom_field_data, _cable_peer_id, _cable_peer_type_id, _path_id, mark_connected) FROM stdin; +\. + + +-- +-- Data for Name: dcim_poweroutlet; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_poweroutlet (id, name, device_id, cable_id, description, feed_leg, power_port_id, type, _name, label, _cable_peer_id, _cable_peer_type_id, _path_id, created, custom_field_data, last_updated, mark_connected) FROM stdin; +\. + + +-- +-- Data for Name: dcim_poweroutlettemplate; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_poweroutlettemplate (id, name, device_type_id, feed_leg, power_port_id, type, _name, label, description, created, last_updated) FROM stdin; +\. + + +-- +-- Data for Name: dcim_powerpanel; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_powerpanel (id, created, last_updated, name, location_id, site_id, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: dcim_powerport; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_powerport (id, name, device_id, cable_id, description, allocated_draw, maximum_draw, type, _name, label, _cable_peer_id, _cable_peer_type_id, _path_id, created, custom_field_data, last_updated, mark_connected) FROM stdin; +\. + + +-- +-- Data for Name: dcim_powerporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_powerporttemplate (id, name, device_type_id, allocated_draw, maximum_draw, type, _name, label, description, created, last_updated) FROM stdin; +\. + + +-- +-- Data for Name: dcim_rack; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_rack (id, created, last_updated, name, facility_id, u_height, comments, location_id, site_id, tenant_id, type, width, role_id, desc_units, serial, status, asset_tag, outer_depth, outer_unit, outer_width, _name, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: dcim_rackreservation; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_rackreservation (id, units, created, description, rack_id, user_id, tenant_id, last_updated, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: dcim_rackrole; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_rackrole (id, name, slug, color, created, last_updated, description, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: dcim_rearport; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_rearport (id, name, type, positions, description, device_id, cable_id, _name, label, _cable_peer_id, _cable_peer_type_id, created, custom_field_data, last_updated, mark_connected) FROM stdin; +\. + + +-- +-- Data for Name: dcim_rearporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_rearporttemplate (id, name, type, positions, device_type_id, _name, label, description, created, last_updated) FROM stdin; +\. + + +-- +-- Data for Name: dcim_region; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_region (id, name, slug, lft, rght, tree_id, level, parent_id, created, last_updated, description, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: dcim_site; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.dcim_site (id, created, last_updated, name, slug, facility, asn, physical_address, shipping_address, comments, tenant_id, contact_email, contact_name, contact_phone, region_id, description, status, time_zone, latitude, longitude, _name, custom_field_data, group_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 (id, domain, master_id, created, last_updated, name, custom_field_data) 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 dcim consoleport +2 dcim consoleserverport +3 dcim powerport +4 dcim poweroutlet +5 dcim interface +7 circuits circuittermination +8 virtualization vminterface +9 extras report +10 dcim frontport +11 dcim rearport +12 dcim powerfeed +13 dcim site +14 dcim device +15 admin logentry +16 auth permission +17 auth group +18 auth user +19 contenttypes contenttype +20 sessions session +21 taggit tag +22 taggit taggeditem +23 circuits circuit +24 circuits circuittype +25 circuits provider +26 circuits providernetwork +27 dcim consoleporttemplate +28 dcim consoleserverporttemplate +29 dcim devicerole +30 dcim devicetype +31 dcim interfacetemplate +32 dcim manufacturer +33 dcim platform +34 dcim poweroutlettemplate +35 dcim powerporttemplate +36 dcim rack +37 dcim devicebay +38 dcim devicebaytemplate +39 dcim rackrole +40 dcim rackreservation +41 dcim region +42 dcim inventoryitem +43 dcim virtualchassis +44 dcim frontporttemplate +45 dcim rearporttemplate +46 dcim cable +47 dcim powerpanel +48 dcim cablepath +49 dcim location +50 dcim sitegroup +51 ipam aggregate +52 ipam ipaddress +53 ipam prefix +54 ipam rir +55 ipam role +56 ipam vlan +57 ipam vrf +58 ipam vlangroup +59 ipam service +60 ipam routetarget +61 extras exporttemplate +62 extras customfield +63 extras imageattachment +64 extras webhook +65 extras objectchange +66 extras configcontext +67 extras tag +68 extras taggeditem +69 extras customlink +70 extras script +71 extras jobresult +72 extras journalentry +73 secrets secret +74 secrets secretrole +75 secrets userkey +76 secrets sessionkey +77 tenancy tenant +78 tenancy tenantgroup +79 users token +80 users userconfig +81 users admingroup +82 users adminuser +83 users objectpermission +84 virtualization cluster +85 virtualization clustergroup +86 virtualization clustertype +87 virtualization virtualmachine +\. + + +-- +-- 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 2022-08-13 12:33:18.625286+00 +2 auth 0001_initial 2022-08-13 12:33:18.725944+00 +3 admin 0001_initial 2022-08-13 12:33:18.758257+00 +4 admin 0002_logentry_remove_auto_add 2022-08-13 12:33:18.775304+00 +5 admin 0003_logentry_add_action_flag_choices 2022-08-13 12:33:18.791376+00 +6 contenttypes 0002_remove_content_type_name 2022-08-13 12:33:18.826117+00 +7 auth 0002_alter_permission_name_max_length 2022-08-13 12:33:18.845672+00 +8 auth 0003_alter_user_email_max_length 2022-08-13 12:33:18.862818+00 +9 auth 0004_alter_user_username_opts 2022-08-13 12:33:18.878535+00 +10 auth 0005_alter_user_last_login_null 2022-08-13 12:33:18.896395+00 +11 auth 0006_require_contenttypes_0002 2022-08-13 12:33:18.900398+00 +12 auth 0007_alter_validators_add_error_messages 2022-08-13 12:33:18.915679+00 +13 auth 0008_alter_user_username_max_length 2022-08-13 12:33:18.93597+00 +14 auth 0009_alter_user_last_name_max_length 2022-08-13 12:33:18.951204+00 +15 auth 0010_alter_group_name_max_length 2022-08-13 12:33:18.96995+00 +16 auth 0011_update_proxy_permissions 2022-08-13 12:33:18.986719+00 +17 auth 0012_alter_user_first_name_max_length 2022-08-13 12:33:19.00201+00 +18 tenancy 0001_initial 2022-08-13 12:33:19.050054+00 +19 tenancy 0002_tenant_group_optional 2022-08-13 12:33:19.06948+00 +20 tenancy 0003_unicode_literals 2022-08-13 12:33:19.077931+00 +21 dcim 0001_initial 2022-08-13 12:33:19.493155+00 +22 ipam 0001_initial 2022-08-13 12:33:19.712288+00 +23 ipam 0002_vrf_add_enforce_unique 2022-08-13 12:33:19.723215+00 +24 dcim 0002_auto_20160622_1821 2022-08-13 12:33:20.331635+00 +25 dcim 0003_auto_20160628_1721 2022-08-13 12:33:20.36462+00 +26 dcim 0004_auto_20160701_2049 2022-08-13 12:33:20.498282+00 +27 dcim 0005_auto_20160706_1722 2022-08-13 12:33:20.535377+00 +28 dcim 0006_add_device_primary_ip4_ip6 2022-08-13 12:33:20.60929+00 +29 dcim 0007_device_copy_primary_ip 2022-08-13 12:33:20.656371+00 +30 dcim 0008_device_remove_primary_ip 2022-08-13 12:33:20.701024+00 +31 dcim 0009_site_32bit_asn_support 2022-08-13 12:33:20.733665+00 +32 dcim 0010_devicebay_installed_device_set_null 2022-08-13 12:33:20.769017+00 +33 ipam 0003_ipam_add_vlangroups 2022-08-13 12:33:20.870414+00 +34 ipam 0004_ipam_vlangroup_uniqueness 2022-08-13 12:33:20.912383+00 +35 ipam 0005_auto_20160725_1842 2022-08-13 12:33:20.94514+00 +36 ipam 0006_vrf_vlan_add_tenant 2022-08-13 12:33:21.030214+00 +37 ipam 0007_prefix_ipaddress_add_tenant 2022-08-13 12:33:21.112461+00 +38 ipam 0008_prefix_change_order 2022-08-13 12:33:21.132322+00 +39 ipam 0009_ipaddress_add_status 2022-08-13 12:33:21.156455+00 +40 ipam 0010_ipaddress_help_texts 2022-08-13 12:33:21.213163+00 +41 ipam 0011_rir_add_is_private 2022-08-13 12:33:21.233011+00 +42 dcim 0011_devicetype_part_number 2022-08-13 12:33:21.252469+00 +43 dcim 0012_site_rack_device_add_tenant 2022-08-13 12:33:21.38447+00 +44 dcim 0013_add_interface_form_factors 2022-08-13 12:33:21.557953+00 +45 dcim 0014_rack_add_type_width 2022-08-13 12:33:21.614549+00 +46 dcim 0015_rack_add_u_height_validator 2022-08-13 12:33:21.650738+00 +47 dcim 0016_module_add_manufacturer 2022-08-13 12:33:21.697571+00 +48 dcim 0017_rack_add_role 2022-08-13 12:33:21.766112+00 +49 dcim 0018_device_add_asset_tag 2022-08-13 12:33:21.81178+00 +50 dcim 0019_new_iface_form_factors 2022-08-13 12:33:21.852118+00 +51 dcim 0020_rack_desc_units 2022-08-13 12:33:21.880392+00 +52 dcim 0021_add_ff_flexstack 2022-08-13 12:33:21.952856+00 +53 dcim 0022_color_names_to_rgb 2022-08-13 12:33:22.064717+00 +54 ipam 0012_services 2022-08-13 12:33:22.156157+00 +55 ipam 0013_prefix_add_is_pool 2022-08-13 12:33:22.260086+00 +56 ipam 0014_ipaddress_status_add_deprecated 2022-08-13 12:33:22.307677+00 +57 ipam 0015_global_vlans 2022-08-13 12:33:22.403594+00 +58 ipam 0016_unicode_literals 2022-08-13 12:33:23.130894+00 +59 ipam 0017_ipaddress_roles 2022-08-13 12:33:23.197823+00 +60 ipam 0018_remove_service_uniqueness_constraint 2022-08-13 12:33:23.23299+00 +61 dcim 0023_devicetype_comments 2022-08-13 12:33:23.253228+00 +62 dcim 0024_site_add_contact_fields 2022-08-13 12:33:23.314523+00 +63 dcim 0025_devicetype_add_interface_ordering 2022-08-13 12:33:23.346755+00 +64 dcim 0026_add_rack_reservations 2022-08-13 12:33:23.420152+00 +65 dcim 0027_device_add_site 2022-08-13 12:33:23.488045+00 +66 dcim 0028_device_copy_rack_to_site 2022-08-13 12:33:23.546369+00 +67 dcim 0029_allow_rackless_devices 2022-08-13 12:33:23.666711+00 +68 dcim 0030_interface_add_lag 2022-08-13 12:33:23.887582+00 +69 dcim 0031_regions 2022-08-13 12:33:23.978556+00 +70 dcim 0032_device_increase_name_length 2022-08-13 12:33:24.028384+00 +71 dcim 0033_rackreservation_rack_editable 2022-08-13 12:33:24.082243+00 +72 dcim 0034_rename_module_to_inventoryitem 2022-08-13 12:33:24.33698+00 +73 dcim 0035_device_expand_status_choices 2022-08-13 12:33:24.49614+00 +74 dcim 0036_add_ff_juniper_vcp 2022-08-13 12:33:24.545126+00 +75 dcim 0037_unicode_literals 2022-08-13 12:33:25.592867+00 +76 dcim 0038_wireless_interfaces 2022-08-13 12:33:25.639603+00 +77 dcim 0039_interface_add_enabled_mtu 2022-08-13 12:33:25.700393+00 +78 dcim 0040_inventoryitem_add_asset_tag_description 2022-08-13 12:33:25.892133+00 +79 dcim 0041_napalm_integration 2022-08-13 12:33:26.002506+00 +80 dcim 0042_interface_ff_10ge_cx4 2022-08-13 12:33:26.048604+00 +81 dcim 0043_device_component_name_lengths 2022-08-13 12:33:26.264182+00 +82 virtualization 0001_virtualization 2022-08-13 12:33:26.523739+00 +83 virtualization 0002_virtualmachine_add_status 2022-08-13 12:33:26.561293+00 +84 dcim 0044_virtualization 2022-08-13 12:33:26.749925+00 +85 virtualization 0003_cluster_add_site 2022-08-13 12:33:26.819201+00 +86 virtualization 0004_virtualmachine_add_role 2022-08-13 12:33:27.036124+00 +87 virtualization 0005_django2 2022-08-13 12:33:27.098514+00 +88 taggit 0001_initial 2022-08-13 12:33:27.19499+00 +89 taggit 0002_auto_20150616_2121 2022-08-13 12:33:27.209215+00 +90 virtualization 0006_tags 2022-08-13 12:33:27.332541+00 +91 virtualization 0007_change_logging 2022-08-13 12:33:27.479879+00 +92 virtualization 0008_virtualmachine_local_context_data 2022-08-13 12:33:27.520431+00 +93 tenancy 0004_tags 2022-08-13 12:33:27.588716+00 +94 tenancy 0005_change_logging 2022-08-13 12:33:27.661296+00 +95 extras 0001_initial 2022-08-13 12:33:27.92986+00 +96 extras 0002_custom_fields 2022-08-13 12:33:28.350387+00 +97 extras 0003_exporttemplate_add_description 2022-08-13 12:33:28.401195+00 +98 extras 0004_topologymap_change_comma_to_semicolon 2022-08-13 12:33:28.429671+00 +99 extras 0005_useraction_add_bulk_create 2022-08-13 12:33:28.456853+00 +100 extras 0006_add_imageattachments 2022-08-13 12:33:28.540755+00 +101 extras 0007_unicode_literals 2022-08-13 12:33:28.784148+00 +102 extras 0008_reports 2022-08-13 12:33:28.937663+00 +103 extras 0009_topologymap_type 2022-08-13 12:33:28.966211+00 +104 extras 0010_customfield_filter_logic 2022-08-13 12:33:29.228285+00 +105 extras 0011_django2 2022-08-13 12:33:29.428571+00 +106 extras 0012_webhooks 2022-08-13 12:33:29.551586+00 +107 extras 0013_objectchange 2022-08-13 12:33:29.653097+00 +108 ipam 0019_virtualization 2022-08-13 12:33:29.855091+00 +109 ipam 0020_ipaddress_add_role_carp 2022-08-13 12:33:29.932987+00 +110 dcim 0045_devicerole_vm_role 2022-08-13 12:33:29.951326+00 +111 dcim 0046_rack_lengthen_facility_id 2022-08-13 12:33:29.992488+00 +112 dcim 0047_more_100ge_form_factors 2022-08-13 12:33:30.047649+00 +113 dcim 0048_rack_serial 2022-08-13 12:33:30.216248+00 +114 dcim 0049_rackreservation_change_user 2022-08-13 12:33:30.298276+00 +115 dcim 0050_interface_vlan_tagging 2022-08-13 12:33:30.515607+00 +116 dcim 0051_rackreservation_tenant 2022-08-13 12:33:30.610728+00 +117 dcim 0052_virtual_chassis 2022-08-13 12:33:31.020253+00 +118 dcim 0053_platform_manufacturer 2022-08-13 12:33:31.120664+00 +119 dcim 0054_site_status_timezone_description 2022-08-13 12:33:31.352917+00 +120 dcim 0055_virtualchassis_ordering 2022-08-13 12:33:31.465932+00 +121 dcim 0056_django2 2022-08-13 12:33:31.620557+00 +122 dcim 0057_tags 2022-08-13 12:33:32.785974+00 +123 dcim 0058_relax_rack_naming_constraints 2022-08-13 12:33:32.924849+00 +124 dcim 0059_site_latitude_longitude 2022-08-13 12:33:33.142332+00 +125 dcim 0060_change_logging 2022-08-13 12:33:33.836928+00 +126 dcim 0061_platform_napalm_args 2022-08-13 12:33:33.863058+00 +127 extras 0014_configcontexts 2022-08-13 12:33:34.413123+00 +128 extras 0015_remove_useraction 2022-08-13 12:33:34.60529+00 +129 extras 0016_exporttemplate_add_cable 2022-08-13 12:33:34.693769+00 +130 extras 0017_exporttemplate_mime_type_length 2022-08-13 12:33:34.721805+00 +131 extras 0018_exporttemplate_add_jinja2 2022-08-13 12:33:34.837321+00 +132 extras 0019_tag_taggeditem 2022-08-13 12:33:35.139834+00 +133 virtualization 0009_custom_tag_models 2022-08-13 12:33:35.314456+00 +134 virtualization 0010_cluster_add_tenant 2022-08-13 12:33:35.413669+00 +135 virtualization 0011_3569_virtualmachine_fields 2022-08-13 12:33:35.582664+00 +136 tenancy 0006_custom_tag_models 2022-08-13 12:33:35.673473+00 +137 virtualization 0012_vm_name_nonunique 2022-08-13 12:33:35.77988+00 +138 virtualization 0013_deterministic_ordering 2022-08-13 12:33:35.836533+00 +139 virtualization 0014_standardize_description 2022-08-13 12:33:35.864499+00 +140 ipam 0021_vrf_ordering 2022-08-13 12:33:35.903603+00 +141 ipam 0022_tags 2022-08-13 12:33:36.675536+00 +142 ipam 0023_change_logging 2022-08-13 12:33:37.752855+00 +143 ipam 0024_vrf_allow_null_rd 2022-08-13 12:33:37.943245+00 +144 ipam 0025_custom_tag_models 2022-08-13 12:33:38.473282+00 +145 ipam 0026_prefix_ordering_vrf_nulls_first 2022-08-13 12:33:38.528416+00 +146 ipam 0027_ipaddress_add_dns_name 2022-08-13 12:33:38.579866+00 +147 ipam 0028_3569_prefix_fields 2022-08-13 12:33:38.871793+00 +148 ipam 0029_3569_ipaddress_fields 2022-08-13 12:33:39.410676+00 +149 ipam 0030_3569_vlan_fields 2022-08-13 12:33:39.757044+00 +150 ipam 0031_3569_service_fields 2022-08-13 12:33:39.918282+00 +151 ipam 0032_role_description 2022-08-13 12:33:39.936176+00 +152 ipam 0033_deterministic_ordering 2022-08-13 12:33:40.204614+00 +153 ipam 0034_fix_ipaddress_status_dhcp 2022-08-13 12:33:40.29652+00 +154 ipam 0035_drop_ip_family 2022-08-13 12:33:40.653892+00 +155 ipam 0036_standardize_description 2022-08-13 12:33:41.055521+00 +156 secrets 0001_initial 2022-08-13 12:33:41.706503+00 +157 secrets 0002_userkey_add_session_key 2022-08-13 12:33:41.911663+00 +158 secrets 0003_unicode_literals 2022-08-13 12:33:41.940301+00 +159 secrets 0004_tags 2022-08-13 12:33:42.046941+00 +160 secrets 0005_change_logging 2022-08-13 12:33:42.192875+00 +161 secrets 0006_custom_tag_models 2022-08-13 12:33:42.301652+00 +162 dcim 0062_interface_mtu 2022-08-13 12:33:42.568014+00 +163 dcim 0063_device_local_context_data 2022-08-13 12:33:42.644046+00 +164 dcim 0064_remove_platform_rpc_client 2022-08-13 12:33:42.673141+00 +165 dcim 0065_front_rear_ports 2022-08-13 12:33:44.173233+00 +166 circuits 0001_initial 2022-08-13 12:33:44.233918+00 +167 circuits 0002_auto_20160622_1821 2022-08-13 12:33:44.715731+00 +168 circuits 0003_provider_32bit_asn_support 2022-08-13 12:33:44.759035+00 +169 circuits 0004_circuit_add_tenant 2022-08-13 12:33:44.896848+00 +170 circuits 0005_circuit_add_upstream_speed 2022-08-13 12:33:44.952127+00 +171 circuits 0006_terminations 2022-08-13 12:33:45.751434+00 +172 dcim 0066_cables 2022-08-13 12:33:49.271097+00 +173 dcim 0067_device_type_remove_qualifiers 2022-08-13 12:33:49.592087+00 +174 dcim 0068_rack_new_fields 2022-08-13 12:33:49.924073+00 +175 dcim 0069_deprecate_nullablecharfield 2022-08-13 12:33:50.256413+00 +176 dcim 0070_custom_tag_models 2022-08-13 12:33:52.171815+00 +177 circuits 0007_circuit_add_description 2022-08-13 12:33:52.224096+00 +178 circuits 0008_circuittermination_interface_protect_on_delete 2022-08-13 12:33:52.339602+00 +179 circuits 0009_unicode_literals 2022-08-13 12:33:52.743809+00 +180 circuits 0010_circuit_status 2022-08-13 12:33:52.796537+00 +181 circuits 0011_tags 2022-08-13 12:33:53.151419+00 +182 circuits 0012_change_logging 2022-08-13 12:33:53.294353+00 +183 circuits 0013_cables 2022-08-13 12:33:53.821967+00 +184 circuits 0014_circuittermination_description 2022-08-13 12:33:54.026376+00 +185 circuits 0015_custom_tag_models 2022-08-13 12:33:54.244787+00 +186 extras 0020_tag_data 2022-08-13 12:33:54.785839+00 +187 extras 0021_add_color_comments_changelog_to_tag 2022-08-13 12:33:55.014739+00 +188 extras 0022_custom_links 2022-08-13 12:33:55.47831+00 +189 extras 0023_fix_tag_sequences 2022-08-13 12:33:55.490168+00 +190 extras 0024_scripts 2022-08-13 12:33:55.500636+00 +191 extras 0025_objectchange_time_index 2022-08-13 12:33:55.550573+00 +192 extras 0026_webhook_ca_file_path 2022-08-13 12:33:55.580961+00 +193 extras 0027_webhook_additional_headers 2022-08-13 12:33:55.609457+00 +194 extras 0028_remove_topology_maps 2022-08-13 12:33:55.62096+00 +195 extras 0029_3569_customfield_fields 2022-08-13 12:33:56.1737+00 +196 extras 0030_3569_objectchange_fields 2022-08-13 12:33:56.342527+00 +197 extras 0031_3569_exporttemplate_fields 2022-08-13 12:33:56.502964+00 +198 extras 0032_3569_webhook_fields 2022-08-13 12:33:56.791305+00 +199 extras 0033_graph_type_template_language 2022-08-13 12:33:57.070133+00 +200 extras 0034_configcontext_tags 2022-08-13 12:33:57.20662+00 +201 extras 0035_deterministic_ordering 2022-08-13 12:33:57.311333+00 +202 extras 0036_contenttype_filters_to_q_objects 2022-08-13 12:33:58.014004+00 +203 extras 0037_configcontexts_clusters 2022-08-13 12:33:58.294437+00 +204 extras 0038_webhook_template_support 2022-08-13 12:33:58.525992+00 +205 extras 0039_update_features_content_types 2022-08-13 12:33:59.212838+00 +206 extras 0040_standardize_description 2022-08-13 12:33:59.322989+00 +207 extras 0041_tag_description 2022-08-13 12:33:59.701313+00 +208 extras 0042_customfield_manager 2022-08-13 12:33:59.73773+00 +209 virtualization 0015_vminterface 2022-08-13 12:33:59.899786+00 +210 ipam 0037_ipaddress_assignment 2022-08-13 12:34:00.39961+00 +211 dcim 0071_device_components_add_description 2022-08-13 12:34:00.892879+00 +212 dcim 0072_powerfeeds 2022-08-13 12:34:02.858038+00 +213 dcim 0073_interface_form_factor_to_type 2022-08-13 12:34:02.9698+00 +214 dcim 0074_increase_field_length_platform_name_slug 2022-08-13 12:34:03.366925+00 +215 dcim 0075_cable_devices 2022-08-13 12:34:03.733319+00 +216 dcim 0076_console_port_types 2022-08-13 12:34:03.928557+00 +217 dcim 0077_power_types 2022-08-13 12:34:04.256719+00 +218 dcim 0078_3569_site_fields 2022-08-13 12:34:04.531039+00 +219 dcim 0079_3569_rack_fields 2022-08-13 12:34:05.605401+00 +220 dcim 0080_3569_devicetype_fields 2022-08-13 12:34:05.927627+00 +221 dcim 0081_3569_device_fields 2022-08-13 12:34:06.716474+00 +222 dcim 0082_3569_interface_fields 2022-08-13 12:34:07.650186+00 +223 virtualization 0016_replicate_interfaces 2022-08-13 12:34:07.795992+00 +224 virtualization 0017_update_jsonfield 2022-08-13 12:34:07.882815+00 +225 virtualization 0018_custom_field_data 2022-08-13 12:34:08.041013+00 +226 tenancy 0007_nested_tenantgroups 2022-08-13 12:34:08.252008+00 +227 tenancy 0008_nested_tenantgroups_rebuild 2022-08-13 12:34:08.375134+00 +228 tenancy 0009_standardize_description 2022-08-13 12:34:08.698352+00 +229 tenancy 0010_custom_field_data 2022-08-13 12:34:08.780611+00 +230 users 0001_api_tokens 2022-08-13 12:34:08.934302+00 +231 users 0002_unicode_literals 2022-08-13 12:34:08.979132+00 +232 users 0003_token_permissions 2022-08-13 12:34:09.009125+00 +233 users 0004_standardize_description 2022-08-13 12:34:09.041446+00 +234 users 0005_userconfig 2022-08-13 12:34:09.187893+00 +235 users 0006_create_userconfigs 2022-08-13 12:34:09.313647+00 +236 users 0007_proxy_group_user 2022-08-13 12:34:09.331439+00 +237 users 0008_objectpermission 2022-08-13 12:34:09.533374+00 +238 users 0009_replicate_permissions 2022-08-13 12:34:09.820763+00 +239 secrets 0007_secretrole_description 2022-08-13 12:34:09.86288+00 +240 secrets 0008_standardize_description 2022-08-13 12:34:09.900844+00 +241 secrets 0009_secretrole_drop_users_groups 2022-08-13 12:34:10.156475+00 +242 secrets 0010_custom_field_data 2022-08-13 12:34:10.242348+00 +243 ipam 0038_custom_field_data 2022-08-13 12:34:10.859476+00 +244 extras 0043_report 2022-08-13 12:34:10.86918+00 +245 extras 0044_jobresult 2022-08-13 12:34:11.157994+00 +246 extras 0045_configcontext_changelog 2022-08-13 12:34:11.32417+00 +247 extras 0046_update_jsonfield 2022-08-13 12:34:11.524375+00 +248 extras 0047_tag_ordering 2022-08-13 12:34:11.601439+00 +249 extras 0048_exporttemplate_remove_template_language 2022-08-13 12:34:11.653509+00 +250 extras 0049_remove_graph 2022-08-13 12:34:11.664306+00 +251 extras 0050_customfield_changes 2022-08-13 12:34:12.186342+00 +252 dcim 0082_3569_port_fields 2022-08-13 12:34:13.112691+00 +253 dcim 0083_3569_cable_fields 2022-08-13 12:34:14.117322+00 +254 dcim 0084_3569_powerfeed_fields 2022-08-13 12:34:15.232604+00 +255 dcim 0085_3569_poweroutlet_fields 2022-08-13 12:34:15.910888+00 +256 dcim 0086_device_name_nonunique 2022-08-13 12:34:16.107048+00 +257 dcim 0087_role_descriptions 2022-08-13 12:34:16.151148+00 +258 dcim 0088_powerfeed_available_power 2022-08-13 12:34:16.252521+00 +259 dcim 0089_deterministic_ordering 2022-08-13 12:34:16.423075+00 +260 dcim 0090_cable_termination_models 2022-08-13 12:34:16.862119+00 +261 dcim 0091_interface_type_other 2022-08-13 12:34:16.998855+00 +262 dcim 0092_fix_rack_outer_unit 2022-08-13 12:34:17.128978+00 +263 dcim 0093_device_component_ordering 2022-08-13 12:34:19.505079+00 +264 dcim 0094_device_component_template_ordering 2022-08-13 12:34:20.884476+00 +265 dcim 0095_primary_model_ordering 2022-08-13 12:34:21.967044+00 +266 dcim 0096_interface_ordering 2022-08-13 12:34:22.616037+00 +267 dcim 0097_interfacetemplate_type_other 2022-08-13 12:34:22.7549+00 +268 dcim 0098_devicetype_images 2022-08-13 12:34:22.920732+00 +269 dcim 0099_powerfeed_negative_voltage 2022-08-13 12:34:23.012193+00 +270 dcim 0100_mptt_remove_indexes 2022-08-13 12:34:23.424429+00 +271 dcim 0101_nested_rackgroups 2022-08-13 12:34:23.996852+00 +272 dcim 0102_nested_rackgroups_rebuild 2022-08-13 12:34:24.12708+00 +273 dcim 0103_standardize_description 2022-08-13 12:34:25.411165+00 +274 dcim 0104_correct_infiniband_types 2022-08-13 12:34:25.546557+00 +275 dcim 0105_interface_name_collation 2022-08-13 12:34:25.634151+00 +276 dcim 0106_role_default_color 2022-08-13 12:34:25.928199+00 +277 dcim 0107_component_labels 2022-08-13 12:34:26.797743+00 +278 dcim 0108_add_tags 2022-08-13 12:34:27.372463+00 +279 dcim 0109_interface_remove_vm 2022-08-13 12:34:27.672542+00 +280 dcim 0110_virtualchassis_name 2022-08-13 12:34:28.425543+00 +281 dcim 0111_component_template_description 2022-08-13 12:34:28.628893+00 +282 dcim 0112_standardize_components 2022-08-13 12:34:30.89544+00 +283 dcim 0113_nullbooleanfield_to_booleanfield 2022-08-13 12:34:31.383592+00 +284 dcim 0114_update_jsonfield 2022-08-13 12:34:31.613877+00 +285 dcim 0115_rackreservation_order 2022-08-13 12:34:31.71522+00 +286 dcim 0116_rearport_max_positions 2022-08-13 12:34:32.132749+00 +287 dcim 0117_custom_field_data 2022-08-13 12:34:32.938264+00 +288 circuits 0016_3569_circuit_fields 2022-08-13 12:34:33.361169+00 +289 circuits 0017_circuittype_description 2022-08-13 12:34:33.377857+00 +290 circuits 0018_standardize_description 2022-08-13 12:34:33.543667+00 +291 circuits 0019_nullbooleanfield_to_booleanfield 2022-08-13 12:34:33.625071+00 +292 circuits 0020_custom_field_data 2022-08-13 12:34:33.786795+00 +293 extras 0051_migrate_customfields 2022-08-13 12:34:34.309206+00 +294 extras 0052_customfield_cleanup 2022-08-13 12:34:34.400218+00 +295 extras 0053_rename_webhook_obj_type 2022-08-13 12:34:34.680167+00 +296 extras 0054_standardize_models 2022-08-13 12:34:35.688215+00 +297 extras 0055_objectchange_data 2022-08-13 12:34:35.854953+00 +298 dcim 0118_inventoryitem_mptt 2022-08-13 12:34:36.321185+00 +299 dcim 0119_inventoryitem_mptt_rebuild 2022-08-13 12:34:36.457725+00 +300 dcim 0120_cache_cable_peer 2022-08-13 12:34:38.944055+00 +301 dcim 0121_cablepath 2022-08-13 12:34:42.129513+00 +302 dcim 0122_standardize_name_length 2022-08-13 12:34:43.730993+00 +303 dcim 0123_standardize_models 2022-08-13 12:34:55.406652+00 +304 dcim 0124_mark_connected 2022-08-13 12:34:56.463872+00 +305 dcim 0125_console_port_speed 2022-08-13 12:34:56.673625+00 +306 dcim 0126_rename_rackgroup_location 2022-08-13 12:34:57.668096+00 +307 dcim 0127_device_location 2022-08-13 12:34:57.840157+00 +308 dcim 0128_device_location_populate 2022-08-13 12:34:57.983765+00 +309 dcim 0129_interface_parent 2022-08-13 12:34:58.158745+00 +310 dcim 0130_sitegroup 2022-08-13 12:34:58.358337+00 +311 extras 0056_extend_configcontext 2022-08-13 12:34:58.94733+00 +312 extras 0057_customlink_rename_fields 2022-08-13 12:34:59.11041+00 +313 extras 0058_journalentry 2022-08-13 12:34:59.274891+00 +314 circuits 0021_cache_cable_peer 2022-08-13 12:34:59.644644+00 +315 circuits 0022_cablepath 2022-08-13 12:35:00.268334+00 +316 circuits 0023_circuittermination_port_speed_optional 2022-08-13 12:35:00.36936+00 +317 circuits 0024_standardize_name_length 2022-08-13 12:35:00.683696+00 +318 circuits 0025_standardize_models 2022-08-13 12:35:01.789719+00 +319 circuits 0026_mark_connected 2022-08-13 12:35:01.899261+00 +320 circuits 0027_providernetwork 2022-08-13 12:35:03.116325+00 +321 circuits 0028_cache_circuit_terminations 2022-08-13 12:35:03.272081+00 +322 circuits 0029_circuit_tracing 2022-08-13 12:35:03.596226+00 +323 dcim 0131_consoleport_speed 2022-08-13 12:35:03.881039+00 +324 extras 0059_exporttemplate_as_attachment 2022-08-13 12:35:04.152683+00 +325 tenancy 0011_standardize_name_length 2022-08-13 12:35:04.750864+00 +326 ipam 0039_service_ports_array 2022-08-13 12:35:05.067946+00 +327 ipam 0040_service_drop_port 2022-08-13 12:35:05.388602+00 +328 ipam 0041_routetarget 2022-08-13 12:35:05.923066+00 +329 ipam 0042_standardize_name_length 2022-08-13 12:35:06.275106+00 +330 ipam 0043_add_tenancy_to_aggregates 2022-08-13 12:35:06.440943+00 +331 ipam 0044_standardize_models 2022-08-13 12:35:09.116534+00 +332 ipam 0045_vlangroup_scope 2022-08-13 12:35:09.51198+00 +333 ipam 0046_set_vlangroup_scope_types 2022-08-13 12:35:09.665918+00 +334 ipam 0047_prefix_depth_children 2022-08-13 12:35:10.072307+00 +335 ipam 0048_prefix_populate_depth_children 2022-08-13 12:35:10.225233+00 +336 secrets 0011_secret_generic_assignments 2022-08-13 12:35:11.469054+00 +337 secrets 0012_standardize_name_length 2022-08-13 12:35:11.505905+00 +338 secrets 0013_standardize_models 2022-08-13 12:35:12.045837+00 +339 sessions 0001_initial 2022-08-13 12:35:12.074412+00 +340 taggit 0003_taggeditem_add_unique_index 2022-08-13 12:35:12.143503+00 +341 tenancy 0012_standardize_models 2022-08-13 12:35:13.175569+00 +342 users 0010_update_jsonfield 2022-08-13 12:35:13.30504+00 +343 users 0011_standardize_models 2022-08-13 12:35:13.488681+00 +344 virtualization 0019_standardize_name_length 2022-08-13 12:35:13.842934+00 +345 virtualization 0020_standardize_models 2022-08-13 12:35:15.671974+00 +346 virtualization 0021_virtualmachine_vcpus_decimal 2022-08-13 12:35:15.826789+00 +347 virtualization 0022_vminterface_parent 2022-08-13 12:35:16.232097+00 +348 virtualization 0023_virtualmachine_natural_ordering 2022-08-13 12:35:16.587163+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; +7c8v9kyt85uyagvhqhrjw2lcz5pjyo63 .eJxVjEsKwjAQQO-StZSZ9Je49AJ6gzLJzNAoRmhSEMS724IL3b73eC8z0VrnaS2yTInN0aA5_LJA8SZ5F1lqeDybXUmuKVJNj9ycw1VivchyT6Vs4PTt_yYzlXk7eGQ_MigH6zH2TlvUFpDEgai1becUekvKRAGYRz8Adl5GdYBDT2reH0H0Ok4:1oMqNA:qb7sLlIs9tWSke-XZslPlEpQvcJWDXc7Z4fOOFK8Fco 2022-08-27 12:36:12.783532+00 +\. + + +-- +-- Data for Name: extras_configcontext; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.extras_configcontext (id, name, weight, description, is_active, data, created, last_updated) 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_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_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_customfield; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.extras_customfield (id, type, name, label, description, required, weight, filter_logic, choices, "default", validation_maximum, validation_minimum, validation_regex) FROM stdin; +\. + + +-- +-- 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; +\. + + +-- +-- 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, content_type_id) FROM stdin; +\. + + +-- +-- Data for Name: extras_exporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.extras_exporttemplate (id, name, template_code, mime_type, file_extension, content_type_id, description, as_attachment) 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) 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) FROM stdin; +\. + + +-- +-- Data for Name: extras_journalentry; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.extras_journalentry (id, assigned_object_id, created, last_updated, kind, comments, assigned_object_type_id, created_by_id) 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, postchange_data, changed_object_type_id, related_object_type_id, user_id, prechange_data) FROM stdin; +1 2022-08-13 12:38:27.930754+00 admin fc565ccf-63c6-4f72-8317-320b7958dadf create 1 \N 10.0.0.1/25 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "10.0.0.1/25", "created": "2022-08-13", "dns_name": "mail.foo.com", "nat_inside": null, "description": "", "last_updated": "2022-08-13T12:38:27.914Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} 52 \N 1 \N +2 2022-08-13 12:38:43.782187+00 admin 2c664cab-0e76-4439-810f-788de8603aec create 2 \N 192.168.1.2/25 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "192.168.1.2/25", "created": "2022-08-13", "dns_name": "moes-server.acme.com", "nat_inside": null, "description": "", "last_updated": "2022-08-13T12:38:43.777Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} 52 \N 1 \N +3 2022-08-13 12:38:59.751895+00 admin 4b2b55ef-b477-4140-86fe-e413c487aea0 create 3 \N 192.168.1.3/25 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "192.168.1.3/25", "created": "2022-08-13", "dns_name": "crappy-old-server.example.com", "nat_inside": null, "description": "", "last_updated": "2022-08-13T12:38:59.746Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} 52 \N 1 \N +4 2022-08-13 12:39:18.198502+00 admin 24f2fc0c-c44f-450b-95dd-c130be68978e create 4 \N fe80::250:56ff:fe2d:8faf/64 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "fe80::250:56ff:fe2d:8faf/64", "created": "2022-08-13", "dns_name": "mail.foo.com", "nat_inside": null, "description": "", "last_updated": "2022-08-13T12:39:18.193Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} 52 \N 1 \N +5 2022-08-13 12:39:37.431385+00 admin 8cf151fe-b3d8-46f0-a7a9-216fc4c89e85 create 5 \N fe80::250:56ff:fe3d:8faf/64 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "fe80::250:56ff:fe3d:8faf/64", "created": "2022-08-13", "dns_name": "mail2.foo.com", "nat_inside": null, "description": "", "last_updated": "2022-08-13T12:39:37.426Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} 52 \N 1 \N +6 2022-08-13 12:43:20.751678+00 admin c6e02e4f-2302-4df9-8d93-47288d140fb7 create 6 \N 192.168.50.110/25 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "192.168.50.110/25", "created": "2022-08-13", "dns_name": "mail2.foo.com", "nat_inside": null, "description": "", "last_updated": "2022-08-13T12:43:20.747Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} 52 \N 1 \N +7 2022-08-13 12:45:11.257568+00 admin ecd2bb47-9d05-411b-b4d8-c56fb8d5874a update 4 \N fe80::250:56ff:fe2d:8faf/64 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "fe80::250:56ff:fe2d:8faf/64", "created": "2022-08-13", "dns_name": "mail6.foo.com", "nat_inside": null, "description": "", "last_updated": "2022-08-13T12:45:11.249Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} 52 \N 1 {"vrf": null, "role": "", "tags": [], "status": "active", "tenant": null, "address": "fe80::250:56ff:fe2d:8faf/64", "created": "2022-08-13", "dns_name": "mail.foo.com", "nat_inside": null, "description": "", "last_updated": "2022-08-13T12:39:18.193Z", "custom_fields": {}, "assigned_object_id": null, "assigned_object_type": null} +\. + + +-- +-- Data for Name: extras_tag; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.extras_tag (id, name, slug, color, description, created, last_updated) FROM stdin; +\. + + +-- +-- Data for Name: extras_taggeditem; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.extras_taggeditem (id, object_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, http_content_type, secret, enabled, ssl_verification, ca_file_path, additional_headers, http_method, body_template) FROM stdin; +\. + + +-- +-- 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; +\. + + +-- +-- Data for Name: ipam_aggregate; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.ipam_aggregate (id, created, last_updated, prefix, date_added, description, rir_id, custom_field_data, tenant_id) FROM stdin; +\. + + +-- +-- Data for Name: ipam_ipaddress; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.ipam_ipaddress (id, created, last_updated, address, description, assigned_object_id, nat_inside_id, vrf_id, tenant_id, status, role, dns_name, assigned_object_type_id, custom_field_data) FROM stdin; +1 2022-08-13 2022-08-13 12:38:27.914236+00 10.0.0.1/25 \N \N \N \N active mail.foo.com \N {} +2 2022-08-13 2022-08-13 12:38:43.777516+00 192.168.1.2/25 \N \N \N \N active moes-server.acme.com \N {} +3 2022-08-13 2022-08-13 12:38:59.746109+00 192.168.1.3/25 \N \N \N \N active crappy-old-server.example.com \N {} +5 2022-08-13 2022-08-13 12:39:37.426866+00 fe80::250:56ff:fe3d:8faf/64 \N \N \N \N active mail2.foo.com \N {} +6 2022-08-13 2022-08-13 12:43:20.747224+00 192.168.50.110/25 \N \N \N \N active mail2.foo.com \N {} +4 2022-08-13 2022-08-13 12:45:11.249967+00 fe80::250:56ff:fe2d:8faf/64 \N \N \N \N active mail6.foo.com \N {} +\. + + +-- +-- Data for Name: ipam_prefix; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.ipam_prefix (id, created, last_updated, prefix, status, description, role_id, site_id, vlan_id, vrf_id, tenant_id, is_pool, custom_field_data, _children, _depth) FROM stdin; +\. + + +-- +-- Data for Name: ipam_rir; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.ipam_rir (id, name, slug, is_private, created, last_updated, description, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: ipam_role; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.ipam_role (id, name, slug, weight, created, last_updated, description, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: ipam_routetarget; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.ipam_routetarget (id, created, last_updated, custom_field_data, name, description, tenant_id) FROM stdin; +\. + + +-- +-- Data for Name: ipam_service; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.ipam_service (id, created, last_updated, name, protocol, description, device_id, virtual_machine_id, custom_field_data, ports) 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_vlan; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.ipam_vlan (id, created, last_updated, vid, name, status, role_id, site_id, group_id, description, tenant_id, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: ipam_vlangroup; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.ipam_vlangroup (id, name, slug, scope_id, created, last_updated, description, custom_field_data, scope_type_id) FROM stdin; +\. + + +-- +-- Data for Name: ipam_vrf; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.ipam_vrf (id, created, last_updated, name, rd, description, enforce_unique, tenant_id, custom_field_data) 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: secrets_secret; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.secrets_secret (id, created, last_updated, name, ciphertext, hash, role_id, custom_field_data, assigned_object_id, assigned_object_type_id) FROM stdin; +\. + + +-- +-- Data for Name: secrets_secretrole; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.secrets_secretrole (id, name, slug, created, last_updated, description, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: secrets_sessionkey; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.secrets_sessionkey (id, cipher, hash, created, userkey_id) FROM stdin; +\. + + +-- +-- Data for Name: secrets_userkey; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.secrets_userkey (id, created, last_updated, public_key, master_key_cipher, user_id) 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_tenant; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.tenancy_tenant (id, created, last_updated, name, slug, description, comments, group_id, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: tenancy_tenantgroup; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.tenancy_tenantgroup (id, name, slug, created, last_updated, parent_id, level, lft, rght, tree_id, description, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: users_objectpermission; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.users_objectpermission (id, name, description, enabled, constraints, actions) FROM stdin; +\. + + +-- +-- 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; +\. + + +-- +-- 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; +\. + + +-- +-- 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) FROM stdin; +1 2022-08-13 12:35:19.714377+00 \N 0123456789abcdef0123456789abcdef01234567 t 1 +\. + + +-- +-- Data for Name: users_userconfig; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.users_userconfig (id, data, user_id) FROM stdin; +1 {} 1 +\. + + +-- +-- Data for Name: virtualization_cluster; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.virtualization_cluster (id, created, last_updated, name, comments, group_id, type_id, site_id, tenant_id, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: virtualization_clustergroup; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.virtualization_clustergroup (id, name, slug, created, last_updated, description, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: virtualization_clustertype; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.virtualization_clustertype (id, name, slug, created, last_updated, description, custom_field_data) FROM stdin; +\. + + +-- +-- Data for Name: virtualization_virtualmachine; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.virtualization_virtualmachine (id, created, last_updated, name, vcpus, memory, disk, comments, cluster_id, platform_id, primary_ip4_id, primary_ip6_id, tenant_id, status, role_id, local_context_data, custom_field_data, _name) FROM stdin; +\. + + +-- +-- Data for Name: virtualization_vminterface; Type: TABLE DATA; Schema: public; Owner: netbox +-- + +COPY public.virtualization_vminterface (id, name, _name, enabled, mac_address, mtu, mode, description, untagged_vlan_id, virtual_machine_id, created, last_updated, custom_field_data, parent_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; +\. + + +-- +-- Name: auth_group_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.auth_group_id_seq', 1, false); + + +-- +-- 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', 344, 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, false); + + +-- +-- Name: auth_user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.auth_user_id_seq', 1, 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_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_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', 1, false); + + +-- +-- Name: dcim_devicetype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.dcim_devicetype_id_seq', 1, false); + + +-- +-- 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_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_manufacturer_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.dcim_manufacturer_id_seq', 1, false); + + +-- +-- 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_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_rackgroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.dcim_rackgroup_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_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.dcim_site_id_seq', 1, false); + + +-- +-- 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: 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', 87, true); + + +-- +-- Name: django_migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.django_migrations_id_seq', 348, true); + + +-- +-- 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_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_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_customfield_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.extras_customfield_id_seq', 1, false); + + +-- +-- Name: extras_customfield_obj_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.extras_customfield_obj_type_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_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', 7, true); + + +-- +-- Name: extras_tag_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.extras_tag_id_seq', 1, false); + + +-- +-- 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_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.extras_webhook_id_seq', 1, false); + + +-- +-- Name: extras_webhook_obj_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.extras_webhook_obj_type_id_seq', 1, false); + + +-- +-- 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_ipaddress_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.ipam_ipaddress_id_seq', 6, true); + + +-- +-- 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', 1, false); + + +-- +-- 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_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: secrets_secret_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.secrets_secret_id_seq', 1, false); + + +-- +-- Name: secrets_secretrole_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.secrets_secretrole_id_seq', 1, false); + + +-- +-- Name: secrets_sessionkey_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.secrets_sessionkey_id_seq', 1, false); + + +-- +-- Name: secrets_userkey_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.secrets_userkey_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_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', 1, false); + + +-- +-- Name: users_objectpermission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.users_objectpermission_id_seq', 1, false); + + +-- +-- 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', 1, false); + + +-- +-- 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', 1, true); + + +-- +-- Name: users_userconfig_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox +-- + +SELECT pg_catalog.setval('public.users_userconfig_id_seq', 1, 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: 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_provider_id_cid_b6f29862_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.circuits_circuit + ADD CONSTRAINT circuits_circuit_provider_id_cid_b6f29862_uniq UNIQUE (provider_id, cid); + + +-- +-- Name: circuits_circuittermination circuits_circuittermination_circuit_id_term_side_b13efd0e_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.circuits_circuittermination + ADD CONSTRAINT circuits_circuittermination_circuit_id_term_side_b13efd0e_uniq UNIQUE (circuit_id, term_side); + + +-- +-- 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_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 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_provider_id_name_6f6610a0_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.circuits_providernetwork + ADD CONSTRAINT circuits_providernetwork_provider_id_name_6f6610a0_uniq UNIQUE (provider_id, name); + + +-- +-- Name: circuits_providernetwork circuits_providernetwork_provider_name; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.circuits_providernetwork + ADD CONSTRAINT circuits_providernetwork_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_cable dcim_cable_termination_a_type_id_termination_a_id_e9d24bad_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_cable + ADD CONSTRAINT dcim_cable_termination_a_type_id_termination_a_id_e9d24bad_uniq UNIQUE (termination_a_type_id, termination_a_id); + + +-- +-- Name: dcim_cable dcim_cable_termination_b_type_id_termination_b_id_057fc21f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_cable + ADD CONSTRAINT dcim_cable_termination_b_type_id_termination_b_id_057fc21f_uniq UNIQUE (termination_b_type_id, termination_b_id); + + +-- +-- Name: dcim_cablepath dcim_cablepath_origin_type_id_origin_id_41b6f814_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_cablepath + ADD CONSTRAINT dcim_cablepath_origin_type_id_origin_id_41b6f814_uniq UNIQUE (origin_type_id, origin_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_consoleport dcim_consoleport_device_id_name_293786b6_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleport + ADD CONSTRAINT dcim_consoleport_device_id_name_293786b6_uniq UNIQUE (device_id, name); + + +-- +-- 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_consoleporttemplate dcim_consoleporttemplate_device_type_id_name_8208f9ca_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleporttemplate + ADD CONSTRAINT dcim_consoleporttemplate_device_type_id_name_8208f9ca_uniq UNIQUE (device_type_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_consoleserverport dcim_consoleserverport_device_id_name_fb1c5999_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleserverport + ADD CONSTRAINT dcim_consoleserverport_device_id_name_fb1c5999_uniq UNIQUE (device_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_consoleserverporttemplate dcim_consoleserverportte_device_type_id_name_a05c974d_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleserverporttemplate + ADD CONSTRAINT dcim_consoleserverportte_device_type_id_name_a05c974d_uniq UNIQUE (device_type_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_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_rack_id_position_face_43208a79_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_device + ADD CONSTRAINT dcim_device_rack_id_position_face_43208a79_uniq UNIQUE (rack_id, "position", face); + + +-- +-- Name: dcim_device dcim_device_site_id_tenant_id_name_93f4f962_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_device + ADD CONSTRAINT dcim_device_site_id_tenant_id_name_93f4f962_uniq UNIQUE (site_id, tenant_id, name); + + +-- +-- Name: dcim_device dcim_device_virtual_chassis_id_vc_position_efea7133_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_device + ADD CONSTRAINT dcim_device_virtual_chassis_id_vc_position_efea7133_uniq UNIQUE (virtual_chassis_id, vc_position); + + +-- +-- Name: dcim_devicebay dcim_devicebay_device_id_name_2475a67b_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_devicebay + ADD CONSTRAINT dcim_devicebay_device_id_name_2475a67b_uniq UNIQUE (device_id, name); + + +-- +-- 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_devicebaytemplate dcim_devicebaytemplate_device_type_id_name_8f4899fe_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_devicebaytemplate + ADD CONSTRAINT dcim_devicebaytemplate_device_type_id_name_8f4899fe_uniq UNIQUE (device_type_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_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_manufacturer_id_model_17948c0c_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_devicetype + ADD CONSTRAINT dcim_devicetype_manufacturer_id_model_17948c0c_uniq UNIQUE (manufacturer_id, model); + + +-- +-- Name: dcim_devicetype dcim_devicetype_manufacturer_id_slug_a0b931cb_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_devicetype + ADD CONSTRAINT dcim_devicetype_manufacturer_id_slug_a0b931cb_uniq UNIQUE (manufacturer_id, 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_frontport dcim_frontport_device_id_name_235b7af2_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_frontport + ADD CONSTRAINT dcim_frontport_device_id_name_235b7af2_uniq UNIQUE (device_id, name); + + +-- +-- 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_rear_port_id_rear_port_position_8b0bf7ca_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_frontport + ADD CONSTRAINT dcim_frontport_rear_port_id_rear_port_position_8b0bf7ca_uniq UNIQUE (rear_port_id, rear_port_position); + + +-- +-- Name: dcim_frontporttemplate dcim_frontporttemplate_device_type_id_name_0a0a0e05_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_frontporttemplate + ADD CONSTRAINT dcim_frontporttemplate_device_type_id_name_0a0a0e05_uniq UNIQUE (device_type_id, name); + + +-- +-- 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_rear_port_id_rear_port_p_401fe927_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_frontporttemplate + ADD CONSTRAINT dcim_frontporttemplate_rear_port_id_rear_port_p_401fe927_uniq UNIQUE (rear_port_id, rear_port_position); + + +-- +-- Name: dcim_interface dcim_interface_device_id_name_bffc4ec4_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_interface + ADD CONSTRAINT dcim_interface_device_id_name_bffc4ec4_uniq UNIQUE (device_id, name); + + +-- +-- 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_interfacetemplate dcim_interfacetemplate_device_type_id_name_3a847237_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_interfacetemplate + ADD CONSTRAINT dcim_interfacetemplate_device_type_id_name_3a847237_uniq UNIQUE (device_type_id, name); + + +-- +-- 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_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_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_inventoryitem dcim_module_device_id_parent_id_name_4d8292af_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_inventoryitem + ADD CONSTRAINT dcim_module_device_id_parent_id_name_4d8292af_uniq UNIQUE (device_id, parent_id, name); + + +-- +-- Name: dcim_inventoryitem dcim_module_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_inventoryitem + ADD CONSTRAINT dcim_module_pkey PRIMARY KEY (id); + + +-- +-- 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_power_panel_id_name_0fbaae9f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerfeed + ADD CONSTRAINT dcim_powerfeed_power_panel_id_name_0fbaae9f_uniq UNIQUE (power_panel_id, name); + + +-- +-- Name: dcim_poweroutlet dcim_poweroutlet_device_id_name_981b00c1_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_poweroutlet + ADD CONSTRAINT dcim_poweroutlet_device_id_name_981b00c1_uniq UNIQUE (device_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_poweroutlettemplate dcim_poweroutlettemplate_device_type_id_name_eafbb07d_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_poweroutlettemplate + ADD CONSTRAINT dcim_poweroutlettemplate_device_type_id_name_eafbb07d_uniq UNIQUE (device_type_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_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_site_id_name_804df4c0_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerpanel + ADD CONSTRAINT dcim_powerpanel_site_id_name_804df4c0_uniq UNIQUE (site_id, name); + + +-- +-- Name: dcim_powerport dcim_powerport_device_id_name_948af82c_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerport + ADD CONSTRAINT dcim_powerport_device_id_name_948af82c_uniq UNIQUE (device_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_powerporttemplate dcim_powerporttemplate_device_type_id_name_b4e9689f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerporttemplate + ADD CONSTRAINT dcim_powerporttemplate_device_type_id_name_b4e9689f_uniq UNIQUE (device_type_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_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_group_id_facility_id_f16a53ae_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rack + ADD CONSTRAINT dcim_rack_group_id_facility_id_f16a53ae_uniq UNIQUE (location_id, facility_id); + + +-- +-- Name: dcim_rack dcim_rack_group_id_name_846f3826_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rack + ADD CONSTRAINT dcim_rack_group_id_name_846f3826_uniq UNIQUE (location_id, name); + + +-- +-- 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_location dcim_rackgroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_location + ADD CONSTRAINT dcim_rackgroup_pkey PRIMARY KEY (id); + + +-- +-- Name: dcim_location dcim_rackgroup_site_id_name_c9bd921f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_location + ADD CONSTRAINT dcim_rackgroup_site_id_name_c9bd921f_uniq UNIQUE (site_id, name); + + +-- +-- Name: dcim_location dcim_rackgroup_site_id_slug_7fbfd118_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_location + ADD CONSTRAINT dcim_rackgroup_site_id_slug_7fbfd118_uniq UNIQUE (site_id, slug); + + +-- +-- 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_device_id_name_4b14dde6_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rearport + ADD CONSTRAINT dcim_rearport_device_id_name_4b14dde6_uniq UNIQUE (device_id, name); + + +-- +-- 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_rearporttemplate dcim_rearporttemplate_device_type_id_name_9bdddb29_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rearporttemplate + ADD CONSTRAINT dcim_rearporttemplate_device_type_id_name_9bdddb29_uniq UNIQUE (device_type_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_region dcim_region_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_region + ADD CONSTRAINT dcim_region_name_key UNIQUE (name); + + +-- +-- 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_region dcim_region_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_region + ADD CONSTRAINT dcim_region_slug_key UNIQUE (slug); + + +-- +-- 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_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_sitegroup + ADD CONSTRAINT dcim_sitegroup_name_key UNIQUE (name); + + +-- +-- 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_sitegroup dcim_sitegroup_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_sitegroup + ADD CONSTRAINT dcim_sitegroup_slug_key UNIQUE (slug); + + +-- +-- 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: 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_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_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_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 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_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_content_types extras_customfield_obj_t_customfield_id_contentty_77878958_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_customfield_content_types + ADD CONSTRAINT extras_customfield_obj_t_customfield_id_contentty_77878958_uniq UNIQUE (customfield_id, contenttype_id); + + +-- +-- Name: extras_customfield_content_types extras_customfield_obj_type_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_customfield_content_types + ADD CONSTRAINT extras_customfield_obj_type_pkey PRIMARY KEY (id); + + +-- +-- 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 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 extras_exporttemplate_content_type_id_name_edca9b9b_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_exporttemplate + ADD CONSTRAINT extras_exporttemplate_content_type_id_name_edca9b9b_uniq UNIQUE (content_type_id, name); + + +-- +-- 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_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 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_content_types extras_webhook_obj_type_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_webhook_content_types + ADD CONSTRAINT extras_webhook_obj_type_pkey PRIMARY KEY (id); + + +-- +-- Name: extras_webhook_content_types extras_webhook_obj_type_webhook_id_contenttype_id_99b8b9c3_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_webhook_content_types + ADD CONSTRAINT extras_webhook_obj_type_webhook_id_contenttype_id_99b8b9c3_uniq UNIQUE (webhook_id, contenttype_id); + + +-- +-- Name: extras_webhook extras_webhook_payload_url_type_create__dd332134_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_webhook + ADD CONSTRAINT extras_webhook_payload_url_type_create__dd332134_uniq UNIQUE (payload_url, type_create, type_update, type_delete); + + +-- +-- 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: 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_ipaddress ipam_ipaddress_nat_inside_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_ipaddress + ADD CONSTRAINT ipam_ipaddress_nat_inside_id_key UNIQUE (nat_inside_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_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_vlan ipam_vlan_group_id_name_e53919df_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_vlan + ADD CONSTRAINT ipam_vlan_group_id_name_e53919df_uniq UNIQUE (group_id, name); + + +-- +-- Name: ipam_vlan ipam_vlan_group_id_vid_5ca4cc47_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_vlan + ADD CONSTRAINT ipam_vlan_group_id_vid_5ca4cc47_uniq UNIQUE (group_id, vid); + + +-- +-- 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_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_scope_type_id_scope_id_name_66199b4b_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_vlangroup + ADD CONSTRAINT ipam_vlangroup_scope_type_id_scope_id_name_66199b4b_uniq UNIQUE (scope_type_id, scope_id, name); + + +-- +-- Name: ipam_vlangroup ipam_vlangroup_scope_type_id_scope_id_slug_6ae7ef85_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_vlangroup + ADD CONSTRAINT ipam_vlangroup_scope_type_id_scope_id_slug_6ae7ef85_uniq 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: secrets_secret secrets_secret_assigned_object_type_id__c3da11b2_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_secret + ADD CONSTRAINT secrets_secret_assigned_object_type_id__c3da11b2_uniq UNIQUE (assigned_object_type_id, assigned_object_id, role_id, name); + + +-- +-- Name: secrets_secret secrets_secret_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_secret + ADD CONSTRAINT secrets_secret_pkey PRIMARY KEY (id); + + +-- +-- Name: secrets_secretrole secrets_secretrole_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_secretrole + ADD CONSTRAINT secrets_secretrole_name_key UNIQUE (name); + + +-- +-- Name: secrets_secretrole secrets_secretrole_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_secretrole + ADD CONSTRAINT secrets_secretrole_pkey PRIMARY KEY (id); + + +-- +-- Name: secrets_secretrole secrets_secretrole_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_secretrole + ADD CONSTRAINT secrets_secretrole_slug_key UNIQUE (slug); + + +-- +-- Name: secrets_sessionkey secrets_sessionkey_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_sessionkey + ADD CONSTRAINT secrets_sessionkey_pkey PRIMARY KEY (id); + + +-- +-- Name: secrets_sessionkey secrets_sessionkey_userkey_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_sessionkey + ADD CONSTRAINT secrets_sessionkey_userkey_id_key UNIQUE (userkey_id); + + +-- +-- Name: secrets_userkey secrets_userkey_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_userkey + ADD CONSTRAINT secrets_userkey_pkey PRIMARY KEY (id); + + +-- +-- Name: secrets_userkey secrets_userkey_user_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_userkey + ADD CONSTRAINT secrets_userkey_user_id_key UNIQUE (user_id); + + +-- +-- 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_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_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_cluster + ADD CONSTRAINT virtualization_cluster_name_key UNIQUE (name); + + +-- +-- 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_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_virtualma_cluster_id_tenant_id_nam_56c69afb_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_virtualmachine + ADD CONSTRAINT virtualization_virtualma_cluster_id_tenant_id_nam_56c69afb_uniq UNIQUE (cluster_id, tenant_id, name); + + +-- +-- 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 virtualization_vminterfa_virtual_machine_id_name_cfb9c423_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_vminterface + ADD CONSTRAINT virtualization_vminterfa_virtual_machine_id_name_cfb9c423_uniq UNIQUE (virtual_machine_id, name); + + +-- +-- 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: 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_peer_type_id_bd122156; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX circuits_circuittermination__cable_peer_type_id_bd122156 ON public.circuits_circuittermination USING btree (_cable_peer_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_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__termination_a_device_id_e59cde1c; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_cable__termination_a_device_id_e59cde1c ON public.dcim_cable USING btree (_termination_a_device_id); + + +-- +-- Name: dcim_cable__termination_b_device_id_a9073762; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_cable__termination_b_device_id_a9073762 ON public.dcim_cable USING btree (_termination_b_device_id); + + +-- +-- Name: dcim_cable_termination_a_type_id_a614bab8; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_cable_termination_a_type_id_a614bab8 ON public.dcim_cable USING btree (termination_a_type_id); + + +-- +-- Name: dcim_cable_termination_b_type_id_a91595d0; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_cable_termination_b_type_id_a91595d0 ON public.dcim_cable USING btree (termination_b_type_id); + + +-- +-- Name: dcim_cablepath_destination_type_id_a8c1654b; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_cablepath_destination_type_id_a8c1654b ON public.dcim_cablepath USING btree (destination_type_id); + + +-- +-- Name: dcim_cablepath_origin_type_id_6de54f6d; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_cablepath_origin_type_id_6de54f6d ON public.dcim_cablepath USING btree (origin_type_id); + + +-- +-- Name: dcim_consoleport__cable_peer_type_id_52adb1be; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_consoleport__cable_peer_type_id_52adb1be ON public.dcim_consoleport USING btree (_cable_peer_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_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_consoleserverport__cable_peer_type_id_132b6744; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_consoleserverport__cable_peer_type_id_132b6744 ON public.dcim_consoleserverport USING btree (_cable_peer_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_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_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_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_peer_type_id_c4690f56; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_frontport__cable_peer_type_id_c4690f56 ON public.dcim_frontport USING btree (_cable_peer_type_id); + + +-- +-- 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_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_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__cable_peer_type_id_ce52cb81; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_interface__cable_peer_type_id_ce52cb81 ON public.dcim_interface USING btree (_cable_peer_type_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_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_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_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_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_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_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_device_id_53cfd5be; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_module_device_id_53cfd5be ON public.dcim_inventoryitem USING btree (device_id); + + +-- +-- Name: dcim_module_manufacturer_id_95322cbb; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_module_manufacturer_id_95322cbb ON public.dcim_inventoryitem USING btree (manufacturer_id); + + +-- +-- Name: dcim_module_parent_id_bb5d0341; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_module_parent_id_bb5d0341 ON public.dcim_inventoryitem USING btree (parent_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__cable_peer_type_id_9f930589; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_powerfeed__cable_peer_type_id_9f930589 ON public.dcim_powerfeed USING btree (_cable_peer_type_id); + + +-- +-- 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__cable_peer_type_id_bbff28d0; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_poweroutlet__cable_peer_type_id_bbff28d0 ON public.dcim_poweroutlet USING btree (_cable_peer_type_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_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_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_rack_group_id_76467cc9; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_powerpanel_rack_group_id_76467cc9 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__cable_peer_type_id_9df2a278; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_powerport__cable_peer_type_id_9df2a278 ON public.dcim_powerport USING btree (_cable_peer_type_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_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_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_group_id_44e90ea9; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_rack_group_id_44e90ea9 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_rackgroup_parent_id_cc315105; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_rackgroup_parent_id_cc315105 ON public.dcim_location USING btree (parent_id); + + +-- +-- Name: dcim_rackgroup_site_id_13520e89; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_rackgroup_site_id_13520e89 ON public.dcim_location USING btree (site_id); + + +-- +-- Name: dcim_rackgroup_slug_3f4582a7; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_rackgroup_slug_3f4582a7 ON public.dcim_location USING btree (slug); + + +-- +-- Name: dcim_rackgroup_slug_3f4582a7_like; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_rackgroup_slug_3f4582a7_like ON public.dcim_location USING btree (slug varchar_pattern_ops); + + +-- +-- Name: dcim_rackgroup_tree_id_9c2ad6f4; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_rackgroup_tree_id_9c2ad6f4 ON public.dcim_location USING btree (tree_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_peer_type_id_cecf241c; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_rearport__cable_peer_type_id_cecf241c ON public.dcim_rearport USING btree (_cable_peer_type_id); + + +-- +-- 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_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_region_name_ba5a7082_like; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_region_name_ba5a7082_like ON public.dcim_region USING btree (name varchar_pattern_ops); + + +-- +-- 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_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_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_803063c0_like; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX dcim_sitegroup_name_803063c0_like ON public.dcim_sitegroup USING btree (name varchar_pattern_ops); + + +-- +-- 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_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: 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_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_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_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_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_obj_type_contenttype_id_6890b714; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX extras_customfield_obj_type_contenttype_id_6890b714 ON public.extras_customfield_content_types USING btree (contenttype_id); + + +-- +-- Name: extras_customfield_obj_type_customfield_id_82480f86; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX extras_customfield_obj_type_customfield_id_82480f86 ON public.extras_customfield_content_types USING btree (customfield_id); + + +-- +-- Name: extras_customlink_content_type_id_4d35b063; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX extras_customlink_content_type_id_4d35b063 ON public.extras_customlink USING btree (content_type_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_type_id_59737e21; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX extras_exporttemplate_content_type_id_59737e21 ON public.extras_exporttemplate USING btree (content_type_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_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_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: extras_webhook_obj_type_contenttype_id_85c7693b; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX extras_webhook_obj_type_contenttype_id_85c7693b ON public.extras_webhook_content_types USING btree (contenttype_id); + + +-- +-- Name: extras_webhook_obj_type_webhook_id_c7bed170; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX extras_webhook_obj_type_webhook_id_c7bed170 ON public.extras_webhook_content_types USING btree (webhook_id); + + +-- +-- 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_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_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_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_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: secrets_secret_assigned_object_type_id_285b92a4; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX secrets_secret_assigned_object_type_id_285b92a4 ON public.secrets_secret USING btree (assigned_object_type_id); + + +-- +-- Name: secrets_secret_role_id_39d9347f; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX secrets_secret_role_id_39d9347f ON public.secrets_secret USING btree (role_id); + + +-- +-- Name: secrets_secretrole_name_7b6ee7a4_like; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX secrets_secretrole_name_7b6ee7a4_like ON public.secrets_secretrole USING btree (name varchar_pattern_ops); + + +-- +-- Name: secrets_secretrole_slug_a06c885e_like; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX secrets_secretrole_slug_a06c885e_like ON public.secrets_secretrole USING btree (slug varchar_pattern_ops); + + +-- +-- 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_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_name_1b59a61b_like; Type: INDEX; Schema: public; Owner: netbox +-- + +CREATE INDEX virtualization_cluster_name_1b59a61b_like ON public.virtualization_cluster USING btree (name varchar_pattern_ops); + + +-- +-- 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_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_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_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: 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; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.circuits_circuit + ADD CONSTRAINT circuits_circuit_provider_id_d9195418_fk FOREIGN KEY (provider_id) REFERENCES public.circuits_provider(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: circuits_circuit circuits_circuit_tenant_id_812508a5_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.circuits_circuit + ADD CONSTRAINT circuits_circuit_tenant_id_812508a5_fk 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; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.circuits_circuit + ADD CONSTRAINT circuits_circuit_type_id_1b9f485a_fk FOREIGN KEY (type_id) REFERENCES public.circuits_circuittype(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: circuits_circuittermination circuits_circuitterm__cable_peer_type_id_bd122156_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.circuits_circuittermination + ADD CONSTRAINT circuits_circuitterm__cable_peer_type_id_bd122156_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(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_circuit_id_257e87e7_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.circuits_circuittermination + ADD CONSTRAINT circuits_circuittermination_circuit_id_257e87e7_fk FOREIGN KEY (circuit_id) REFERENCES public.circuits_circuit(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_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_termination_a_type_i_a614bab8_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_cable + ADD CONSTRAINT dcim_cable_termination_a_type_i_a614bab8_fk_django_co FOREIGN KEY (termination_a_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_cable dcim_cable_termination_b_type_i_a91595d0_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_cable + ADD CONSTRAINT dcim_cable_termination_b_type_i_a91595d0_fk_django_co FOREIGN KEY (termination_b_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_cablepath dcim_cablepath_destination_type_id_a8c1654b_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_cablepath + ADD CONSTRAINT dcim_cablepath_destination_type_id_a8c1654b_fk_django_co FOREIGN KEY (destination_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_cablepath dcim_cablepath_origin_type_id_6de54f6d_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_cablepath + ADD CONSTRAINT dcim_cablepath_origin_type_id_6de54f6d_fk_django_co FOREIGN KEY (origin_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_consoleport dcim_consoleport__cable_peer_type_id_52adb1be_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleport + ADD CONSTRAINT dcim_consoleport__cable_peer_type_id_52adb1be_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_consoleport dcim_consoleport__path_id_e40a4436_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleport + ADD CONSTRAINT dcim_consoleport__path_id_e40a4436_fk FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_consoleport dcim_consoleport_device_id_f2d90d3c_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleport + ADD CONSTRAINT dcim_consoleport_device_id_f2d90d3c_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_consoleporttemplate dcim_consoleporttemplate_device_type_id_075d4015_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleporttemplate + ADD CONSTRAINT dcim_consoleporttemplate_device_type_id_075d4015_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_consoleserverport dcim_consoleserverpo__cable_peer_type_id_132b6744_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleserverport + ADD CONSTRAINT dcim_consoleserverpo__cable_peer_type_id_132b6744_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_consoleserverport dcim_consoleserverport__path_id_dc5abe09_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleserverport + ADD CONSTRAINT dcim_consoleserverport__path_id_dc5abe09_fk FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_consoleserverport dcim_consoleserverport_device_id_d9866581_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleserverport + ADD CONSTRAINT dcim_consoleserverport_device_id_d9866581_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_consoleserverporttemplate dcim_consoleserverporttemplate_device_type_id_579bdc86_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_consoleserverporttemplate + ADD CONSTRAINT dcim_consoleserverporttemplate_device_type_id_579bdc86_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_device dcim_device_cluster_id_cf852f78_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_device + ADD CONSTRAINT dcim_device_cluster_id_cf852f78_fk FOREIGN KEY (cluster_id) REFERENCES public.virtualization_cluster(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_device dcim_device_device_role_id_682e8188_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_device + ADD CONSTRAINT dcim_device_device_role_id_682e8188_fk FOREIGN KEY (device_role_id) REFERENCES public.dcim_devicerole(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_device dcim_device_device_type_id_d61b4086_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_device + ADD CONSTRAINT dcim_device_device_type_id_d61b4086_fk 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; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_device + ADD CONSTRAINT dcim_device_platform_id_468138f1_fk FOREIGN KEY (platform_id) REFERENCES public.dcim_platform(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_device dcim_device_primary_ip4_id_2ccd943a_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_device + ADD CONSTRAINT dcim_device_primary_ip4_id_2ccd943a_fk FOREIGN KEY (primary_ip4_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_device dcim_device_primary_ip6_id_d180fe91_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_device + ADD CONSTRAINT dcim_device_primary_ip6_id_d180fe91_fk FOREIGN KEY (primary_ip6_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_device dcim_device_rack_id_23bde71f_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_device + ADD CONSTRAINT dcim_device_rack_id_23bde71f_fk FOREIGN KEY (rack_id) REFERENCES public.dcim_rack(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_device dcim_device_site_id_ff897cf6_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_device + ADD CONSTRAINT dcim_device_site_id_ff897cf6_fk FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_device dcim_device_tenant_id_dcea7969_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_device + ADD CONSTRAINT dcim_device_tenant_id_dcea7969_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_device dcim_device_virtual_chassis_id_aed51693_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_device + ADD CONSTRAINT dcim_device_virtual_chassis_id_aed51693_fk FOREIGN KEY (virtual_chassis_id) REFERENCES public.dcim_virtualchassis(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_devicebay dcim_devicebay_device_id_0c8a1218_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_devicebay + ADD CONSTRAINT dcim_devicebay_device_id_0c8a1218_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_devicebay dcim_devicebay_installed_device_id_04618112_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_devicebay + ADD CONSTRAINT dcim_devicebay_installed_device_id_04618112_fk FOREIGN KEY (installed_device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_devicebaytemplate dcim_devicebaytemplate_device_type_id_f4b24a29_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_devicebaytemplate + ADD CONSTRAINT dcim_devicebaytemplate_device_type_id_f4b24a29_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_devicetype dcim_devicetype_manufacturer_id_a3e8029e_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_devicetype + ADD CONSTRAINT dcim_devicetype_manufacturer_id_a3e8029e_fk FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_frontport dcim_frontport__cable_peer_type_id_c4690f56_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_frontport + ADD CONSTRAINT dcim_frontport__cable_peer_type_id_c4690f56_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_frontport dcim_frontport_device_id_950557b5_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_frontport + ADD CONSTRAINT dcim_frontport_device_id_950557b5_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_frontport dcim_frontport_rear_port_id_78df2532_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_frontport + ADD CONSTRAINT dcim_frontport_rear_port_id_78df2532_fk FOREIGN KEY (rear_port_id) REFERENCES public.dcim_rearport(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_frontporttemplate dcim_frontporttemplate_device_type_id_f088b952_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_frontporttemplate + ADD CONSTRAINT dcim_frontporttemplate_device_type_id_f088b952_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_frontporttemplate dcim_frontporttemplate_rear_port_id_9775411b_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_frontporttemplate + ADD CONSTRAINT dcim_frontporttemplate_rear_port_id_9775411b_fk FOREIGN KEY (rear_port_id) REFERENCES public.dcim_rearporttemplate(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_interface dcim_interface__cable_peer_type_id_ce52cb81_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_interface + ADD CONSTRAINT dcim_interface__cable_peer_type_id_ce52cb81_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_interface dcim_interface__path_id_f8f4f7f0_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_interface + ADD CONSTRAINT dcim_interface__path_id_f8f4f7f0_fk FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_interface dcim_interface_device_id_359c6115_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_interface + ADD CONSTRAINT dcim_interface_device_id_359c6115_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_interface dcim_interface_lag_id_ea1a1d12_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_interface + ADD CONSTRAINT dcim_interface_lag_id_ea1a1d12_fk FOREIGN KEY (lag_id) REFERENCES public.dcim_interface(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 dcim_interface_untagged_vlan_id_838dc7be_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_interface + ADD CONSTRAINT dcim_interface_untagged_vlan_id_838dc7be_fk FOREIGN KEY (untagged_vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_interfacetemplate dcim_interfacetemplate_device_type_id_4bfcbfab_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_interfacetemplate + ADD CONSTRAINT dcim_interfacetemplate_device_type_id_4bfcbfab_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_inventoryitem dcim_inventoryitem_device_id_033d83f8_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_inventoryitem + ADD CONSTRAINT dcim_inventoryitem_device_id_033d83f8_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_inventoryitem dcim_inventoryitem_manufacturer_id_dcd1b78a_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_inventoryitem + ADD CONSTRAINT dcim_inventoryitem_manufacturer_id_dcd1b78a_fk FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_inventoryitem dcim_inventoryitem_parent_id_7ebcd457_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_inventoryitem + ADD CONSTRAINT dcim_inventoryitem_parent_id_7ebcd457_fk FOREIGN KEY (parent_id) REFERENCES public.dcim_inventoryitem(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_platform dcim_platform_manufacturer_id_83f72d3d_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_platform + ADD CONSTRAINT dcim_platform_manufacturer_id_83f72d3d_fk FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_powerfeed dcim_powerfeed__cable_peer_type_id_9f930589_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerfeed + ADD CONSTRAINT dcim_powerfeed__cable_peer_type_id_9f930589_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_powerfeed dcim_powerfeed__path_id_a1ea1f28_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerfeed + ADD CONSTRAINT dcim_powerfeed__path_id_a1ea1f28_fk FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_powerfeed dcim_powerfeed_power_panel_id_32bde3be_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerfeed + ADD CONSTRAINT dcim_powerfeed_power_panel_id_32bde3be_fk FOREIGN KEY (power_panel_id) REFERENCES public.dcim_powerpanel(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_powerfeed dcim_powerfeed_rack_id_7abba090_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerfeed + ADD CONSTRAINT dcim_powerfeed_rack_id_7abba090_fk FOREIGN KEY (rack_id) REFERENCES public.dcim_rack(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_poweroutlet dcim_poweroutlet__cable_peer_type_id_bbff28d0_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_poweroutlet + ADD CONSTRAINT dcim_poweroutlet__cable_peer_type_id_bbff28d0_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_poweroutlet dcim_poweroutlet__path_id_cbb47bb9_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_poweroutlet + ADD CONSTRAINT dcim_poweroutlet__path_id_cbb47bb9_fk FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_poweroutlet dcim_poweroutlet_device_id_286351d7_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_poweroutlet + ADD CONSTRAINT dcim_poweroutlet_device_id_286351d7_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_poweroutlet dcim_poweroutlet_power_port_id_9bdf4163_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_poweroutlet + ADD CONSTRAINT dcim_poweroutlet_power_port_id_9bdf4163_fk FOREIGN KEY (power_port_id) REFERENCES public.dcim_powerport(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_poweroutlettemplate dcim_poweroutlettemplate_device_type_id_26b2316c_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_poweroutlettemplate + ADD CONSTRAINT dcim_poweroutlettemplate_device_type_id_26b2316c_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_poweroutlettemplate dcim_poweroutlettemplate_power_port_id_c0fb0c42_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_poweroutlettemplate + ADD CONSTRAINT dcim_poweroutlettemplate_power_port_id_c0fb0c42_fk 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; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerpanel + ADD CONSTRAINT dcim_powerpanel_site_id_c430bc89_fk FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_powerport dcim_powerport__cable_peer_type_id_9df2a278_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerport + ADD CONSTRAINT dcim_powerport__cable_peer_type_id_9df2a278_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_powerport dcim_powerport__path_id_9fe4af8f_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerport + ADD CONSTRAINT dcim_powerport__path_id_9fe4af8f_fk FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_powerport dcim_powerport_device_id_ef7185ae_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerport + ADD CONSTRAINT dcim_powerport_device_id_ef7185ae_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_powerporttemplate dcim_powerporttemplate_device_type_id_1ddfbfcc_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_powerporttemplate + ADD CONSTRAINT dcim_powerporttemplate_device_type_id_1ddfbfcc_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(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; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rack + ADD CONSTRAINT dcim_rack_role_id_62d6919e_fk FOREIGN KEY (role_id) REFERENCES public.dcim_rackrole(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_rack dcim_rack_site_id_403c7b3a_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rack + ADD CONSTRAINT dcim_rack_site_id_403c7b3a_fk FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_rack dcim_rack_tenant_id_7cdf3725_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rack + ADD CONSTRAINT dcim_rack_tenant_id_7cdf3725_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_location dcim_rackgroup_site_id_13520e89_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_location + ADD CONSTRAINT dcim_rackgroup_site_id_13520e89_fk FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_rackreservation dcim_rackreservation_rack_id_1ebbaa9b_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rackreservation + ADD CONSTRAINT dcim_rackreservation_rack_id_1ebbaa9b_fk FOREIGN KEY (rack_id) REFERENCES public.dcim_rack(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_rackreservation dcim_rackreservation_tenant_id_eb5e045f_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rackreservation + ADD CONSTRAINT dcim_rackreservation_tenant_id_eb5e045f_fk 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_peer_type_id_cecf241c_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rearport + ADD CONSTRAINT dcim_rearport__cable_peer_type_id_cecf241c_fk_django_co FOREIGN KEY (_cable_peer_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_rearport dcim_rearport_device_id_0bdfe9c0_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rearport + ADD CONSTRAINT dcim_rearport_device_id_0bdfe9c0_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_rearporttemplate dcim_rearporttemplate_device_type_id_6a02fd01_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_rearporttemplate + ADD CONSTRAINT dcim_rearporttemplate_device_type_id_6a02fd01_fk FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_region dcim_region_parent_id_2486f5d4_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_region + ADD CONSTRAINT dcim_region_parent_id_2486f5d4_fk FOREIGN KEY (parent_id) REFERENCES public.dcim_region(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; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_site + ADD CONSTRAINT dcim_site_region_id_45210932_fk FOREIGN KEY (region_id) REFERENCES public.dcim_region(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: dcim_site dcim_site_tenant_id_15e7df63_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_site + ADD CONSTRAINT dcim_site_tenant_id_15e7df63_fk 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; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.dcim_virtualchassis + ADD CONSTRAINT dcim_virtualchassis_master_id_ab54cfc6_fk FOREIGN KEY (master_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_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_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_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_customfield_content_types extras_customfield_o_contenttype_id_6890b714_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_customfield_content_types + ADD CONSTRAINT extras_customfield_o_contenttype_id_6890b714_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: extras_customlink extras_customlink_content_type_id_4d35b063_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_customlink + ADD CONSTRAINT extras_customlink_content_type_id_4d35b063_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: extras_exporttemplate extras_exporttemplat_content_type_id_59737e21_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_exporttemplate + ADD CONSTRAINT extras_exporttemplat_content_type_id_59737e21_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(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_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; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_taggeditem + ADD CONSTRAINT extras_taggeditem_tag_id_d48af7c7_fk FOREIGN KEY (tag_id) REFERENCES public.extras_tag(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: extras_webhook_content_types extras_webhook_obj_t_contenttype_id_85c7693b_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.extras_webhook_content_types + ADD CONSTRAINT extras_webhook_obj_t_contenttype_id_85c7693b_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_aggregate ipam_aggregate_rir_id_ef7a27bd_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_aggregate + ADD CONSTRAINT ipam_aggregate_rir_id_ef7a27bd_fk FOREIGN KEY (rir_id) REFERENCES public.ipam_rir(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_aggregate ipam_aggregate_tenant_id_637dd1a1_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_aggregate + ADD CONSTRAINT ipam_aggregate_tenant_id_637dd1a1_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(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; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_ipaddress + ADD CONSTRAINT ipam_ipaddress_nat_inside_id_a45fb7c5_fk FOREIGN KEY (nat_inside_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_ipaddress ipam_ipaddress_tenant_id_ac55acfd_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_ipaddress + ADD CONSTRAINT ipam_ipaddress_tenant_id_ac55acfd_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_ipaddress ipam_ipaddress_vrf_id_51fcc59b_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_ipaddress + ADD CONSTRAINT ipam_ipaddress_vrf_id_51fcc59b_fk FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_prefix ipam_prefix_role_id_0a98d415_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_prefix + ADD CONSTRAINT ipam_prefix_role_id_0a98d415_fk FOREIGN KEY (role_id) REFERENCES public.ipam_role(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_prefix ipam_prefix_site_id_0b20df05_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_prefix + ADD CONSTRAINT ipam_prefix_site_id_0b20df05_fk FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_prefix ipam_prefix_tenant_id_7ba1fcc4_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_prefix + ADD CONSTRAINT ipam_prefix_tenant_id_7ba1fcc4_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_prefix ipam_prefix_vlan_id_1db91bff_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_prefix + ADD CONSTRAINT ipam_prefix_vlan_id_1db91bff_fk FOREIGN KEY (vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_prefix ipam_prefix_vrf_id_34f78ed0_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_prefix + ADD CONSTRAINT ipam_prefix_vrf_id_34f78ed0_fk FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_routetarget ipam_routetarget_tenant_id_5a0b35e8_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_routetarget + ADD CONSTRAINT ipam_routetarget_tenant_id_5a0b35e8_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_service ipam_service_device_id_b4d2bb9c_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_service + ADD CONSTRAINT ipam_service_device_id_b4d2bb9c_fk FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_service ipam_service_virtual_machine_id_e8b53562_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_service + ADD CONSTRAINT ipam_service_virtual_machine_id_e8b53562_fk FOREIGN KEY (virtual_machine_id) REFERENCES public.virtualization_virtualmachine(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_vlan ipam_vlan_group_id_88cbfa62_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_vlan + ADD CONSTRAINT ipam_vlan_group_id_88cbfa62_fk FOREIGN KEY (group_id) REFERENCES public.ipam_vlangroup(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_vlan ipam_vlan_role_id_f5015962_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_vlan + ADD CONSTRAINT ipam_vlan_role_id_f5015962_fk FOREIGN KEY (role_id) REFERENCES public.ipam_role(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_vlan ipam_vlan_site_id_a59334e3_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_vlan + ADD CONSTRAINT ipam_vlan_site_id_a59334e3_fk FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: ipam_vlan ipam_vlan_tenant_id_71a8290d_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_vlan + ADD CONSTRAINT ipam_vlan_tenant_id_71a8290d_fk 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 ipam_vrf_tenant_id_498b0051_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.ipam_vrf + ADD CONSTRAINT ipam_vrf_tenant_id_498b0051_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: secrets_secret secrets_secret_assigned_object_type_285b92a4_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_secret + ADD CONSTRAINT secrets_secret_assigned_object_type_285b92a4_fk_django_co FOREIGN KEY (assigned_object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: secrets_secret secrets_secret_role_id_39d9347f_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_secret + ADD CONSTRAINT secrets_secret_role_id_39d9347f_fk FOREIGN KEY (role_id) REFERENCES public.secrets_secretrole(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: secrets_sessionkey secrets_sessionkey_userkey_id_3ca6176b_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_sessionkey + ADD CONSTRAINT secrets_sessionkey_userkey_id_3ca6176b_fk FOREIGN KEY (userkey_id) REFERENCES public.secrets_userkey(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: secrets_userkey secrets_userkey_user_id_13ada46b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.secrets_userkey + ADD CONSTRAINT secrets_userkey_user_id_13ada46b_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_tenant tenancy_tenant_group_id_7daef6f4_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.tenancy_tenant + ADD CONSTRAINT tenancy_tenant_group_id_7daef6f4_fk FOREIGN KEY (group_id) REFERENCES public.tenancy_tenantgroup(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: tenancy_tenantgroup tenancy_tenantgroup_parent_id_2542fc18_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.tenancy_tenantgroup + ADD CONSTRAINT tenancy_tenantgroup_parent_id_2542fc18_fk 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_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_cluster_group_id_de379828_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_cluster + ADD CONSTRAINT virtualization_cluster_group_id_de379828_fk FOREIGN KEY (group_id) REFERENCES public.virtualization_clustergroup(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: virtualization_cluster virtualization_cluster_site_id_4d5af282_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_cluster + ADD CONSTRAINT virtualization_cluster_site_id_4d5af282_fk FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: virtualization_cluster virtualization_cluster_tenant_id_bc2868d0_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_cluster + ADD CONSTRAINT virtualization_cluster_tenant_id_bc2868d0_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: virtualization_cluster virtualization_cluster_type_id_4efafb0a_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_cluster + ADD CONSTRAINT virtualization_cluster_type_id_4efafb0a_fk FOREIGN KEY (type_id) REFERENCES public.virtualization_clustertype(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: virtualization_virtualmachine virtualization_virtualmachine_cluster_id_6c9f9047_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_virtualmachine + ADD CONSTRAINT virtualization_virtualmachine_cluster_id_6c9f9047_fk FOREIGN KEY (cluster_id) REFERENCES public.virtualization_cluster(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: virtualization_virtualmachine virtualization_virtualmachine_platform_id_a6c5ccb2_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_virtualmachine + ADD CONSTRAINT virtualization_virtualmachine_platform_id_a6c5ccb2_fk FOREIGN KEY (platform_id) REFERENCES public.dcim_platform(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: virtualization_virtualmachine virtualization_virtualmachine_role_id_0cc898f9_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_virtualmachine + ADD CONSTRAINT virtualization_virtualmachine_role_id_0cc898f9_fk FOREIGN KEY (role_id) REFERENCES public.dcim_devicerole(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: virtualization_virtualmachine virtualization_virtualmachine_tenant_id_d00d1d77_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_virtualmachine + ADD CONSTRAINT virtualization_virtualmachine_tenant_id_d00d1d77_fk FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(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_vminterface_untagged_vlan_id_aea4fc69_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_vminterface + ADD CONSTRAINT virtualization_vminterface_untagged_vlan_id_aea4fc69_fk FOREIGN KEY (untagged_vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: virtualization_vminterface virtualization_vminterface_virtual_machine_id_e9f89829_fk; Type: FK CONSTRAINT; Schema: public; Owner: netbox +-- + +ALTER TABLE ONLY public.virtualization_vminterface + ADD CONSTRAINT virtualization_vminterface_virtual_machine_id_e9f89829_fk FOREIGN KEY (virtual_machine_id) REFERENCES public.virtualization_virtualmachine(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- PostgreSQL database dump complete +-- +