--
--


SELECT pg_catalog.set_config('search_path', '', false);

--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: 
--

CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;


--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: 
--

COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';


--
-- Name: pg_trgm; Type: EXTENSION; Schema: -; Owner: 
--

CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public;


--
-- Name: EXTENSION pg_trgm; Type: COMMENT; Schema: -; Owner: 
--

COMMENT ON EXTENSION pg_trgm IS 'text similarity measurement and index searching based on trigrams';




--
-- Name: accesstoken; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.accesstoken (
    id integer NOT NULL,
    friendly_name character varying(255),
    repository_id integer NOT NULL,
    created timestamp without time zone NOT NULL,
    role_id integer NOT NULL,
    temporary boolean NOT NULL,
    kind_id integer,
    token_code character varying(255) NOT NULL,
    token_name character varying(255) NOT NULL
);


ALTER TABLE public.accesstoken OWNER TO "quayregistry-quay-database";

--
-- Name: accesstoken_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.accesstoken_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.accesstoken_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: accesstoken_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.accesstoken_id_seq OWNED BY public.accesstoken.id;


--
-- Name: accesstokenkind; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.accesstokenkind (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.accesstokenkind OWNER TO "quayregistry-quay-database";

--
-- Name: accesstokenkind_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.accesstokenkind_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.accesstokenkind_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: accesstokenkind_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.accesstokenkind_id_seq OWNED BY public.accesstokenkind.id;


--
-- Name: alembic_version; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.alembic_version (
    version_num character varying(32) NOT NULL
);


ALTER TABLE public.alembic_version OWNER TO "quayregistry-quay-database";

--
-- Name: apprblob; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.apprblob (
    id integer NOT NULL,
    digest character varying(255) NOT NULL,
    media_type_id integer NOT NULL,
    size bigint NOT NULL,
    uncompressed_size bigint
);


ALTER TABLE public.apprblob OWNER TO "quayregistry-quay-database";

--
-- Name: apprblob_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.apprblob_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.apprblob_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: apprblob_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.apprblob_id_seq OWNED BY public.apprblob.id;


--
-- Name: apprblobplacement; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.apprblobplacement (
    id integer NOT NULL,
    blob_id integer NOT NULL,
    location_id integer NOT NULL
);


ALTER TABLE public.apprblobplacement OWNER TO "quayregistry-quay-database";

--
-- Name: apprblobplacement_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.apprblobplacement_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.apprblobplacement_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: apprblobplacement_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.apprblobplacement_id_seq OWNED BY public.apprblobplacement.id;


--
-- Name: apprblobplacementlocation; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.apprblobplacementlocation (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.apprblobplacementlocation OWNER TO "quayregistry-quay-database";

--
-- Name: apprblobplacementlocation_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.apprblobplacementlocation_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.apprblobplacementlocation_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: apprblobplacementlocation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.apprblobplacementlocation_id_seq OWNED BY public.apprblobplacementlocation.id;


--
-- Name: apprmanifest; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.apprmanifest (
    id integer NOT NULL,
    digest character varying(255) NOT NULL,
    media_type_id integer NOT NULL,
    manifest_json text NOT NULL
);


ALTER TABLE public.apprmanifest OWNER TO "quayregistry-quay-database";

--
-- Name: apprmanifest_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.apprmanifest_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.apprmanifest_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: apprmanifest_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.apprmanifest_id_seq OWNED BY public.apprmanifest.id;


--
-- Name: apprmanifestblob; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.apprmanifestblob (
    id integer NOT NULL,
    manifest_id integer NOT NULL,
    blob_id integer NOT NULL
);


ALTER TABLE public.apprmanifestblob OWNER TO "quayregistry-quay-database";

--
-- Name: apprmanifestblob_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.apprmanifestblob_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.apprmanifestblob_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: apprmanifestblob_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.apprmanifestblob_id_seq OWNED BY public.apprmanifestblob.id;


--
-- Name: apprmanifestlist; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.apprmanifestlist (
    id integer NOT NULL,
    digest character varying(255) NOT NULL,
    manifest_list_json text NOT NULL,
    schema_version character varying(255) NOT NULL,
    media_type_id integer NOT NULL
);


ALTER TABLE public.apprmanifestlist OWNER TO "quayregistry-quay-database";

--
-- Name: apprmanifestlist_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.apprmanifestlist_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.apprmanifestlist_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: apprmanifestlist_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.apprmanifestlist_id_seq OWNED BY public.apprmanifestlist.id;


--
-- Name: apprmanifestlistmanifest; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.apprmanifestlistmanifest (
    id integer NOT NULL,
    manifest_list_id integer NOT NULL,
    manifest_id integer NOT NULL,
    operating_system character varying(255),
    architecture character varying(255),
    platform_json text,
    media_type_id integer NOT NULL
);


ALTER TABLE public.apprmanifestlistmanifest OWNER TO "quayregistry-quay-database";

--
-- Name: apprmanifestlistmanifest_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.apprmanifestlistmanifest_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.apprmanifestlistmanifest_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: apprmanifestlistmanifest_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.apprmanifestlistmanifest_id_seq OWNED BY public.apprmanifestlistmanifest.id;


--
-- Name: apprtag; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.apprtag (
    id integer NOT NULL,
    name character varying(255) NOT NULL,
    repository_id integer NOT NULL,
    manifest_list_id integer,
    lifetime_start bigint NOT NULL,
    lifetime_end bigint,
    hidden boolean NOT NULL,
    reverted boolean NOT NULL,
    protected boolean NOT NULL,
    tag_kind_id integer NOT NULL,
    linked_tag_id integer
);


ALTER TABLE public.apprtag OWNER TO "quayregistry-quay-database";

--
-- Name: apprtag_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.apprtag_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.apprtag_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: apprtag_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.apprtag_id_seq OWNED BY public.apprtag.id;


--
-- Name: apprtagkind; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.apprtagkind (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.apprtagkind OWNER TO "quayregistry-quay-database";

--
-- Name: apprtagkind_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.apprtagkind_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.apprtagkind_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: apprtagkind_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.apprtagkind_id_seq OWNED BY public.apprtagkind.id;


--
-- Name: appspecificauthtoken; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.appspecificauthtoken (
    id integer NOT NULL,
    user_id integer NOT NULL,
    uuid character varying(36) NOT NULL,
    title character varying(255) NOT NULL,
    created timestamp without time zone NOT NULL,
    expiration timestamp without time zone,
    last_accessed timestamp without time zone,
    token_name character varying(255) NOT NULL,
    token_secret character varying(255) NOT NULL
);


ALTER TABLE public.appspecificauthtoken OWNER TO "quayregistry-quay-database";

--
-- Name: appspecificauthtoken_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.appspecificauthtoken_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.appspecificauthtoken_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: appspecificauthtoken_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.appspecificauthtoken_id_seq OWNED BY public.appspecificauthtoken.id;


--
-- Name: blobupload; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.blobupload (
    id integer NOT NULL,
    repository_id integer NOT NULL,
    uuid character varying(255) NOT NULL,
    byte_count bigint NOT NULL,
    sha_state text,
    location_id integer NOT NULL,
    storage_metadata text,
    chunk_count integer DEFAULT 0 NOT NULL,
    uncompressed_byte_count bigint,
    created timestamp without time zone DEFAULT '2022-01-28 03:54:18'::timestamp without time zone NOT NULL,
    piece_sha_state text,
    piece_hashes text
);


ALTER TABLE public.blobupload OWNER TO "quayregistry-quay-database";

--
-- Name: blobupload_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.blobupload_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.blobupload_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: blobupload_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.blobupload_id_seq OWNED BY public.blobupload.id;


--
-- Name: buildtriggerservice; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.buildtriggerservice (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.buildtriggerservice OWNER TO "quayregistry-quay-database";

--
-- Name: buildtriggerservice_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.buildtriggerservice_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.buildtriggerservice_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: buildtriggerservice_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.buildtriggerservice_id_seq OWNED BY public.buildtriggerservice.id;


--
-- Name: deletednamespace; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.deletednamespace (
    id integer NOT NULL,
    namespace_id integer NOT NULL,
    marked timestamp without time zone NOT NULL,
    original_username character varying(255) NOT NULL,
    original_email character varying(255) NOT NULL,
    queue_id character varying(255)
);


ALTER TABLE public.deletednamespace OWNER TO "quayregistry-quay-database";

--
-- Name: deletednamespace_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.deletednamespace_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.deletednamespace_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: deletednamespace_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.deletednamespace_id_seq OWNED BY public.deletednamespace.id;


--
-- Name: deletedrepository; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.deletedrepository (
    id integer NOT NULL,
    repository_id integer NOT NULL,
    marked timestamp without time zone NOT NULL,
    original_name character varying(255) NOT NULL,
    queue_id character varying(255)
);


ALTER TABLE public.deletedrepository OWNER TO "quayregistry-quay-database";

--
-- Name: deletedrepository_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.deletedrepository_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.deletedrepository_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: deletedrepository_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.deletedrepository_id_seq OWNED BY public.deletedrepository.id;


--
-- Name: derivedstorageforimage; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.derivedstorageforimage (
    id integer NOT NULL,
    source_image_id integer NOT NULL,
    derivative_id integer NOT NULL,
    transformation_id integer NOT NULL,
    uniqueness_hash character varying(255)
);


ALTER TABLE public.derivedstorageforimage OWNER TO "quayregistry-quay-database";

--
-- Name: derivedstorageforimage_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.derivedstorageforimage_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.derivedstorageforimage_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: derivedstorageforimage_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.derivedstorageforimage_id_seq OWNED BY public.derivedstorageforimage.id;


--
-- Name: disablereason; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.disablereason (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.disablereason OWNER TO "quayregistry-quay-database";

--
-- Name: disablereason_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.disablereason_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.disablereason_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: disablereason_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.disablereason_id_seq OWNED BY public.disablereason.id;


--
-- Name: emailconfirmation; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.emailconfirmation (
    id integer NOT NULL,
    code character varying(255) NOT NULL,
    user_id integer NOT NULL,
    pw_reset boolean NOT NULL,
    new_email character varying(255),
    email_confirm boolean NOT NULL,
    created timestamp without time zone NOT NULL,
    verification_code character varying(255)
);


ALTER TABLE public.emailconfirmation OWNER TO "quayregistry-quay-database";

--
-- Name: emailconfirmation_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.emailconfirmation_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.emailconfirmation_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: emailconfirmation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.emailconfirmation_id_seq OWNED BY public.emailconfirmation.id;


--
-- Name: externalnotificationevent; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.externalnotificationevent (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.externalnotificationevent OWNER TO "quayregistry-quay-database";

--
-- Name: externalnotificationevent_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.externalnotificationevent_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.externalnotificationevent_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: externalnotificationevent_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.externalnotificationevent_id_seq OWNED BY public.externalnotificationevent.id;


--
-- Name: externalnotificationmethod; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.externalnotificationmethod (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.externalnotificationmethod OWNER TO "quayregistry-quay-database";

--
-- Name: externalnotificationmethod_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.externalnotificationmethod_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.externalnotificationmethod_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: externalnotificationmethod_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.externalnotificationmethod_id_seq OWNED BY public.externalnotificationmethod.id;


--
-- Name: federatedlogin; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.federatedlogin (
    id integer NOT NULL,
    user_id integer NOT NULL,
    service_id integer NOT NULL,
    service_ident character varying(255) NOT NULL,
    metadata_json text NOT NULL
);


ALTER TABLE public.federatedlogin OWNER TO "quayregistry-quay-database";

--
-- Name: federatedlogin_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.federatedlogin_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.federatedlogin_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: federatedlogin_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.federatedlogin_id_seq OWNED BY public.federatedlogin.id;


--
-- Name: image; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.image (
    id integer NOT NULL,
    docker_image_id character varying(255) NOT NULL,
    repository_id integer NOT NULL,
    ancestors character varying(60535),
    storage_id integer,
    created timestamp without time zone,
    comment text,
    command text,
    aggregate_size bigint,
    v1_json_metadata text,
    v1_checksum character varying(255),
    security_indexed boolean DEFAULT false NOT NULL,
    security_indexed_engine integer DEFAULT '-1'::integer NOT NULL,
    parent_id integer
);


ALTER TABLE public.image OWNER TO "quayregistry-quay-database";

--
-- Name: image_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.image_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.image_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: image_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.image_id_seq OWNED BY public.image.id;


--
-- Name: imagestorage; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.imagestorage (
    id integer NOT NULL,
    uuid character varying(255) NOT NULL,
    image_size bigint,
    uncompressed_size bigint,
    uploading boolean,
    cas_path boolean DEFAULT false NOT NULL,
    content_checksum character varying(255)
);


ALTER TABLE public.imagestorage OWNER TO "quayregistry-quay-database";

--
-- Name: imagestorage_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.imagestorage_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.imagestorage_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: imagestorage_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.imagestorage_id_seq OWNED BY public.imagestorage.id;


--
-- Name: imagestoragelocation; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.imagestoragelocation (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.imagestoragelocation OWNER TO "quayregistry-quay-database";

--
-- Name: imagestoragelocation_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.imagestoragelocation_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.imagestoragelocation_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: imagestoragelocation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.imagestoragelocation_id_seq OWNED BY public.imagestoragelocation.id;


--
-- Name: imagestorageplacement; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.imagestorageplacement (
    id integer NOT NULL,
    storage_id integer NOT NULL,
    location_id integer NOT NULL
);


ALTER TABLE public.imagestorageplacement OWNER TO "quayregistry-quay-database";

--
-- Name: imagestorageplacement_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.imagestorageplacement_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.imagestorageplacement_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: imagestorageplacement_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.imagestorageplacement_id_seq OWNED BY public.imagestorageplacement.id;


--
-- Name: imagestoragesignature; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.imagestoragesignature (
    id integer NOT NULL,
    storage_id integer NOT NULL,
    kind_id integer NOT NULL,
    signature text,
    uploading boolean
);


ALTER TABLE public.imagestoragesignature OWNER TO "quayregistry-quay-database";

--
-- Name: imagestoragesignature_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.imagestoragesignature_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.imagestoragesignature_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: imagestoragesignature_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.imagestoragesignature_id_seq OWNED BY public.imagestoragesignature.id;


--
-- Name: imagestoragesignaturekind; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.imagestoragesignaturekind (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.imagestoragesignaturekind OWNER TO "quayregistry-quay-database";

--
-- Name: imagestoragesignaturekind_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.imagestoragesignaturekind_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.imagestoragesignaturekind_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: imagestoragesignaturekind_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.imagestoragesignaturekind_id_seq OWNED BY public.imagestoragesignaturekind.id;


--
-- Name: imagestoragetransformation; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.imagestoragetransformation (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.imagestoragetransformation OWNER TO "quayregistry-quay-database";

--
-- Name: imagestoragetransformation_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.imagestoragetransformation_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.imagestoragetransformation_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: imagestoragetransformation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.imagestoragetransformation_id_seq OWNED BY public.imagestoragetransformation.id;


--
-- Name: label; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.label (
    id integer NOT NULL,
    uuid character varying(255) NOT NULL,
    key character varying(255) NOT NULL,
    value text NOT NULL,
    media_type_id integer NOT NULL,
    source_type_id integer NOT NULL
);


ALTER TABLE public.label OWNER TO "quayregistry-quay-database";

--
-- Name: label_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.label_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.label_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: label_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.label_id_seq OWNED BY public.label.id;


--
-- Name: labelsourcetype; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.labelsourcetype (
    id integer NOT NULL,
    name character varying(255) NOT NULL,
    mutable boolean NOT NULL
);


ALTER TABLE public.labelsourcetype OWNER TO "quayregistry-quay-database";

--
-- Name: labelsourcetype_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.labelsourcetype_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.labelsourcetype_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: labelsourcetype_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.labelsourcetype_id_seq OWNED BY public.labelsourcetype.id;


--
-- Name: logentry; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.logentry (
    id bigint NOT NULL,
    kind_id integer NOT NULL,
    account_id integer NOT NULL,
    performer_id integer,
    repository_id integer,
    datetime timestamp without time zone NOT NULL,
    ip character varying(255),
    metadata_json text NOT NULL
);


ALTER TABLE public.logentry OWNER TO "quayregistry-quay-database";

--
-- Name: logentry2; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.logentry2 (
    id integer NOT NULL,
    kind_id integer NOT NULL,
    account_id integer NOT NULL,
    performer_id integer,
    repository_id integer,
    datetime timestamp without time zone NOT NULL,
    ip character varying(255),
    metadata_json text NOT NULL
);


ALTER TABLE public.logentry2 OWNER TO "quayregistry-quay-database";

--
-- Name: logentry2_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.logentry2_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.logentry2_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: logentry2_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.logentry2_id_seq OWNED BY public.logentry2.id;


--
-- Name: logentry3; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.logentry3 (
    id bigint NOT NULL,
    kind_id integer NOT NULL,
    account_id integer NOT NULL,
    performer_id integer,
    repository_id integer,
    datetime timestamp without time zone NOT NULL,
    ip character varying(255),
    metadata_json text NOT NULL
);


ALTER TABLE public.logentry3 OWNER TO "quayregistry-quay-database";

--
-- Name: logentry3_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.logentry3_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.logentry3_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: logentry3_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.logentry3_id_seq OWNED BY public.logentry3.id;


--
-- Name: logentry_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.logentry_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.logentry_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: logentry_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.logentry_id_seq OWNED BY public.logentry.id;


--
-- Name: logentrykind; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.logentrykind (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.logentrykind OWNER TO "quayregistry-quay-database";

--
-- Name: logentrykind_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.logentrykind_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.logentrykind_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: logentrykind_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.logentrykind_id_seq OWNED BY public.logentrykind.id;


--
-- Name: loginservice; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.loginservice (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.loginservice OWNER TO "quayregistry-quay-database";

--
-- Name: loginservice_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.loginservice_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.loginservice_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: loginservice_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.loginservice_id_seq OWNED BY public.loginservice.id;


--
-- Name: manifest; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.manifest (
    id integer NOT NULL,
    repository_id integer NOT NULL,
    digest character varying(255) NOT NULL,
    media_type_id integer NOT NULL,
    manifest_bytes text NOT NULL,
    config_media_type character varying(255),
    layers_compressed_size bigint
);


ALTER TABLE public.manifest OWNER TO "quayregistry-quay-database";

--
-- Name: manifest_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.manifest_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.manifest_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: manifest_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.manifest_id_seq OWNED BY public.manifest.id;


--
-- Name: manifestblob; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.manifestblob (
    id integer NOT NULL,
    repository_id integer NOT NULL,
    manifest_id integer NOT NULL,
    blob_id integer NOT NULL
);


ALTER TABLE public.manifestblob OWNER TO "quayregistry-quay-database";

--
-- Name: manifestblob_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.manifestblob_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.manifestblob_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: manifestblob_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.manifestblob_id_seq OWNED BY public.manifestblob.id;


--
-- Name: manifestchild; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.manifestchild (
    id integer NOT NULL,
    repository_id integer NOT NULL,
    manifest_id integer NOT NULL,
    child_manifest_id integer NOT NULL
);


ALTER TABLE public.manifestchild OWNER TO "quayregistry-quay-database";

--
-- Name: manifestchild_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.manifestchild_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.manifestchild_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: manifestchild_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.manifestchild_id_seq OWNED BY public.manifestchild.id;


--
-- Name: manifestlabel; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.manifestlabel (
    id integer NOT NULL,
    repository_id integer NOT NULL,
    manifest_id integer NOT NULL,
    label_id integer NOT NULL
);


ALTER TABLE public.manifestlabel OWNER TO "quayregistry-quay-database";

--
-- Name: manifestlabel_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.manifestlabel_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.manifestlabel_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: manifestlabel_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.manifestlabel_id_seq OWNED BY public.manifestlabel.id;


--
-- Name: manifestlegacyimage; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.manifestlegacyimage (
    id integer NOT NULL,
    repository_id integer NOT NULL,
    manifest_id integer NOT NULL,
    image_id integer NOT NULL
);


ALTER TABLE public.manifestlegacyimage OWNER TO "quayregistry-quay-database";

--
-- Name: manifestlegacyimage_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.manifestlegacyimage_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.manifestlegacyimage_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: manifestlegacyimage_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.manifestlegacyimage_id_seq OWNED BY public.manifestlegacyimage.id;


--
-- Name: manifestsecuritystatus; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.manifestsecuritystatus (
    id integer NOT NULL,
    manifest_id integer NOT NULL,
    repository_id integer NOT NULL,
    index_status integer NOT NULL,
    error_json text NOT NULL,
    last_indexed timestamp without time zone NOT NULL,
    indexer_hash character varying(128) NOT NULL,
    indexer_version integer NOT NULL,
    metadata_json text NOT NULL
);


ALTER TABLE public.manifestsecuritystatus OWNER TO "quayregistry-quay-database";

--
-- Name: manifestsecuritystatus_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.manifestsecuritystatus_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.manifestsecuritystatus_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: manifestsecuritystatus_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.manifestsecuritystatus_id_seq OWNED BY public.manifestsecuritystatus.id;


--
-- Name: mediatype; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.mediatype (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.mediatype OWNER TO "quayregistry-quay-database";

--
-- Name: mediatype_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.mediatype_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.mediatype_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: mediatype_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.mediatype_id_seq OWNED BY public.mediatype.id;


--
-- Name: messages; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.messages (
    id integer NOT NULL,
    content text NOT NULL,
    uuid character varying(36) DEFAULT ''::character varying NOT NULL,
    media_type_id integer DEFAULT 1 NOT NULL,
    severity character varying(255) DEFAULT 'info'::character varying NOT NULL
);


ALTER TABLE public.messages OWNER TO "quayregistry-quay-database";

--
-- Name: messages_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.messages_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.messages_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.messages_id_seq OWNED BY public.messages.id;


--
-- Name: namespacegeorestriction; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.namespacegeorestriction (
    id integer NOT NULL,
    namespace_id integer NOT NULL,
    added timestamp without time zone NOT NULL,
    description character varying(255) NOT NULL,
    unstructured_json text NOT NULL,
    restricted_region_iso_code character varying(255) NOT NULL
);


ALTER TABLE public.namespacegeorestriction OWNER TO "quayregistry-quay-database";

--
-- Name: namespacegeorestriction_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.namespacegeorestriction_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.namespacegeorestriction_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: namespacegeorestriction_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.namespacegeorestriction_id_seq OWNED BY public.namespacegeorestriction.id;


--
-- Name: notification; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.notification (
    id integer NOT NULL,
    uuid character varying(255) NOT NULL,
    kind_id integer NOT NULL,
    target_id integer NOT NULL,
    metadata_json text NOT NULL,
    created timestamp without time zone NOT NULL,
    dismissed boolean NOT NULL,
    lookup_path character varying(255)
);


ALTER TABLE public.notification OWNER TO "quayregistry-quay-database";

--
-- Name: notification_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.notification_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.notification_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: notification_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.notification_id_seq OWNED BY public.notification.id;


--
-- Name: notificationkind; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.notificationkind (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.notificationkind OWNER TO "quayregistry-quay-database";

--
-- Name: notificationkind_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.notificationkind_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.notificationkind_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: notificationkind_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.notificationkind_id_seq OWNED BY public.notificationkind.id;


--
-- Name: oauthaccesstoken; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.oauthaccesstoken (
    id integer NOT NULL,
    uuid character varying(255) NOT NULL,
    application_id integer NOT NULL,
    authorized_user_id integer NOT NULL,
    scope character varying(255) NOT NULL,
    token_type character varying(255) NOT NULL,
    expires_at timestamp without time zone NOT NULL,
    data text NOT NULL,
    token_code character varying(255) NOT NULL,
    token_name character varying(255) NOT NULL
);


ALTER TABLE public.oauthaccesstoken OWNER TO "quayregistry-quay-database";

--
-- Name: oauthaccesstoken_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.oauthaccesstoken_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.oauthaccesstoken_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: oauthaccesstoken_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.oauthaccesstoken_id_seq OWNED BY public.oauthaccesstoken.id;


--
-- Name: oauthapplication; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.oauthapplication (
    id integer NOT NULL,
    client_id character varying(255) NOT NULL,
    redirect_uri character varying(255) NOT NULL,
    application_uri character varying(255) NOT NULL,
    organization_id integer NOT NULL,
    name character varying(255) NOT NULL,
    description text NOT NULL,
    gravatar_email character varying(255),
    secure_client_secret character varying(255),
    fully_migrated boolean DEFAULT false NOT NULL
);


ALTER TABLE public.oauthapplication OWNER TO "quayregistry-quay-database";

--
-- Name: oauthapplication_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.oauthapplication_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.oauthapplication_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: oauthapplication_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.oauthapplication_id_seq OWNED BY public.oauthapplication.id;


--
-- Name: oauthauthorizationcode; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.oauthauthorizationcode (
    id integer NOT NULL,
    application_id integer NOT NULL,
    scope character varying(255) NOT NULL,
    data text NOT NULL,
    code_credential character varying(255) NOT NULL,
    code_name character varying(255) NOT NULL
);


ALTER TABLE public.oauthauthorizationcode OWNER TO "quayregistry-quay-database";

--
-- Name: oauthauthorizationcode_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.oauthauthorizationcode_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.oauthauthorizationcode_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: oauthauthorizationcode_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.oauthauthorizationcode_id_seq OWNED BY public.oauthauthorizationcode.id;


--
-- Name: permissionprototype; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.permissionprototype (
    id integer NOT NULL,
    org_id integer NOT NULL,
    uuid character varying(255) NOT NULL,
    activating_user_id integer,
    delegate_user_id integer,
    delegate_team_id integer,
    role_id integer NOT NULL
);


ALTER TABLE public.permissionprototype OWNER TO "quayregistry-quay-database";

--
-- Name: permissionprototype_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.permissionprototype_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.permissionprototype_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: permissionprototype_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.permissionprototype_id_seq OWNED BY public.permissionprototype.id;


--
-- Name: quayregion; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.quayregion (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.quayregion OWNER TO "quayregistry-quay-database";

--
-- Name: quayregion_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.quayregion_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.quayregion_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: quayregion_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.quayregion_id_seq OWNED BY public.quayregion.id;


--
-- Name: quayrelease; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.quayrelease (
    id integer NOT NULL,
    service_id integer NOT NULL,
    version character varying(255) NOT NULL,
    region_id integer NOT NULL,
    reverted boolean NOT NULL,
    created timestamp without time zone NOT NULL
);


ALTER TABLE public.quayrelease OWNER TO "quayregistry-quay-database";

--
-- Name: quayrelease_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.quayrelease_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.quayrelease_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: quayrelease_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.quayrelease_id_seq OWNED BY public.quayrelease.id;


--
-- Name: quayservice; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.quayservice (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.quayservice OWNER TO "quayregistry-quay-database";

--
-- Name: quayservice_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.quayservice_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.quayservice_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: quayservice_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.quayservice_id_seq OWNED BY public.quayservice.id;


--
-- Name: queueitem; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.queueitem (
    id integer NOT NULL,
    queue_name character varying(1024) NOT NULL,
    body text NOT NULL,
    available_after timestamp without time zone NOT NULL,
    available boolean NOT NULL,
    processing_expires timestamp without time zone,
    retries_remaining integer NOT NULL,
    state_id character varying(255) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE public.queueitem OWNER TO "quayregistry-quay-database";

--
-- Name: queueitem_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.queueitem_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.queueitem_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: queueitem_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.queueitem_id_seq OWNED BY public.queueitem.id;


--
-- Name: repomirrorconfig; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.repomirrorconfig (
    id integer NOT NULL,
    repository_id integer NOT NULL,
    creation_date timestamp without time zone NOT NULL,
    is_enabled boolean NOT NULL,
    mirror_type integer NOT NULL,
    internal_robot_id integer NOT NULL,
    external_registry_username character varying(2048),
    external_registry_password character varying(2048),
    external_registry_config text NOT NULL,
    sync_interval integer DEFAULT 60 NOT NULL,
    sync_start_date timestamp without time zone,
    sync_expiration_date timestamp without time zone,
    sync_retries_remaining integer DEFAULT 3 NOT NULL,
    sync_status integer NOT NULL,
    sync_transaction_id character varying(36),
    root_rule_id integer NOT NULL,
    external_reference text NOT NULL
);


ALTER TABLE public.repomirrorconfig OWNER TO "quayregistry-quay-database";

--
-- Name: repomirrorconfig_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.repomirrorconfig_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.repomirrorconfig_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: repomirrorconfig_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.repomirrorconfig_id_seq OWNED BY public.repomirrorconfig.id;


--
-- Name: repomirrorrule; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.repomirrorrule (
    id integer NOT NULL,
    uuid character varying(36) NOT NULL,
    repository_id integer NOT NULL,
    creation_date timestamp without time zone NOT NULL,
    rule_type integer NOT NULL,
    rule_value text NOT NULL,
    left_child_id integer,
    right_child_id integer
);


ALTER TABLE public.repomirrorrule OWNER TO "quayregistry-quay-database";

--
-- Name: repomirrorrule_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.repomirrorrule_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.repomirrorrule_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: repomirrorrule_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.repomirrorrule_id_seq OWNED BY public.repomirrorrule.id;


--
-- Name: repository; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.repository (
    id integer NOT NULL,
    namespace_user_id integer,
    name character varying(255) NOT NULL,
    visibility_id integer NOT NULL,
    description text,
    badge_token character varying(255) NOT NULL,
    kind_id integer DEFAULT 1 NOT NULL,
    trust_enabled boolean DEFAULT false NOT NULL,
    state integer DEFAULT 0 NOT NULL
);


ALTER TABLE public.repository OWNER TO "quayregistry-quay-database";

--
-- Name: repository_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.repository_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.repository_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: repository_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.repository_id_seq OWNED BY public.repository.id;


--
-- Name: repositoryactioncount; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.repositoryactioncount (
    id integer NOT NULL,
    repository_id integer NOT NULL,
    count integer NOT NULL,
    date date NOT NULL
);


ALTER TABLE public.repositoryactioncount OWNER TO "quayregistry-quay-database";

--
-- Name: repositoryactioncount_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.repositoryactioncount_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.repositoryactioncount_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: repositoryactioncount_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.repositoryactioncount_id_seq OWNED BY public.repositoryactioncount.id;


--
-- Name: repositoryauthorizedemail; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.repositoryauthorizedemail (
    id integer NOT NULL,
    repository_id integer NOT NULL,
    email character varying(255) NOT NULL,
    code character varying(255) NOT NULL,
    confirmed boolean NOT NULL
);


ALTER TABLE public.repositoryauthorizedemail OWNER TO "quayregistry-quay-database";

--
-- Name: repositoryauthorizedemail_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.repositoryauthorizedemail_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.repositoryauthorizedemail_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: repositoryauthorizedemail_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.repositoryauthorizedemail_id_seq OWNED BY public.repositoryauthorizedemail.id;


--
-- Name: repositorybuild; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.repositorybuild (
    id integer NOT NULL,
    uuid character varying(255) NOT NULL,
    repository_id integer NOT NULL,
    access_token_id integer NOT NULL,
    resource_key character varying(255),
    job_config text NOT NULL,
    phase character varying(255) NOT NULL,
    started timestamp without time zone NOT NULL,
    display_name character varying(255) NOT NULL,
    trigger_id integer,
    pull_robot_id integer,
    logs_archived boolean DEFAULT false NOT NULL,
    queue_id character varying(255)
);


ALTER TABLE public.repositorybuild OWNER TO "quayregistry-quay-database";

--
-- Name: repositorybuild_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.repositorybuild_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.repositorybuild_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: repositorybuild_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.repositorybuild_id_seq OWNED BY public.repositorybuild.id;


--
-- Name: repositorybuildtrigger; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.repositorybuildtrigger (
    id integer NOT NULL,
    uuid character varying(255) NOT NULL,
    service_id integer NOT NULL,
    repository_id integer NOT NULL,
    connected_user_id integer NOT NULL,
    config text NOT NULL,
    write_token_id integer,
    pull_robot_id integer,
    disabled_reason_id integer,
    enabled boolean DEFAULT true NOT NULL,
    successive_failure_count integer DEFAULT 0 NOT NULL,
    successive_internal_error_count integer DEFAULT 0 NOT NULL,
    disabled_datetime timestamp without time zone,
    secure_auth_token character varying(255),
    secure_private_key text,
    fully_migrated boolean DEFAULT false NOT NULL
);


ALTER TABLE public.repositorybuildtrigger OWNER TO "quayregistry-quay-database";

--
-- Name: repositorybuildtrigger_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.repositorybuildtrigger_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.repositorybuildtrigger_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: repositorybuildtrigger_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.repositorybuildtrigger_id_seq OWNED BY public.repositorybuildtrigger.id;


--
-- Name: repositorykind; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.repositorykind (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.repositorykind OWNER TO "quayregistry-quay-database";

--
-- Name: repositorykind_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.repositorykind_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.repositorykind_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: repositorykind_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.repositorykind_id_seq OWNED BY public.repositorykind.id;


--
-- Name: repositorynotification; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.repositorynotification (
    id integer NOT NULL,
    uuid character varying(255) NOT NULL,
    repository_id integer NOT NULL,
    event_id integer NOT NULL,
    method_id integer NOT NULL,
    title character varying(255),
    config_json text NOT NULL,
    event_config_json text NOT NULL,
    number_of_failures integer DEFAULT 0 NOT NULL
);


ALTER TABLE public.repositorynotification OWNER TO "quayregistry-quay-database";

--
-- Name: repositorynotification_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.repositorynotification_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.repositorynotification_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: repositorynotification_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.repositorynotification_id_seq OWNED BY public.repositorynotification.id;


--
-- Name: repositorypermission; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.repositorypermission (
    id integer NOT NULL,
    team_id integer,
    user_id integer,
    repository_id integer NOT NULL,
    role_id integer NOT NULL
);


ALTER TABLE public.repositorypermission OWNER TO "quayregistry-quay-database";

--
-- Name: repositorypermission_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.repositorypermission_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.repositorypermission_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: repositorypermission_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.repositorypermission_id_seq OWNED BY public.repositorypermission.id;


--
-- Name: repositorysearchscore; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.repositorysearchscore (
    id integer NOT NULL,
    repository_id integer NOT NULL,
    score bigint NOT NULL,
    last_updated timestamp without time zone
);


ALTER TABLE public.repositorysearchscore OWNER TO "quayregistry-quay-database";

--
-- Name: repositorysearchscore_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.repositorysearchscore_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.repositorysearchscore_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: repositorysearchscore_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.repositorysearchscore_id_seq OWNED BY public.repositorysearchscore.id;


--
-- Name: repositorytag; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.repositorytag (
    id integer NOT NULL,
    name character varying(255) NOT NULL,
    image_id integer NOT NULL,
    repository_id integer NOT NULL,
    lifetime_start_ts integer DEFAULT 0 NOT NULL,
    lifetime_end_ts integer,
    hidden boolean DEFAULT false NOT NULL,
    reversion boolean DEFAULT false NOT NULL
);


ALTER TABLE public.repositorytag OWNER TO "quayregistry-quay-database";

--
-- Name: repositorytag_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.repositorytag_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.repositorytag_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: repositorytag_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.repositorytag_id_seq OWNED BY public.repositorytag.id;


--
-- Name: robotaccountmetadata; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.robotaccountmetadata (
    id integer NOT NULL,
    robot_account_id integer NOT NULL,
    description character varying(255) NOT NULL,
    unstructured_json text NOT NULL
);


ALTER TABLE public.robotaccountmetadata OWNER TO "quayregistry-quay-database";

--
-- Name: robotaccountmetadata_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.robotaccountmetadata_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.robotaccountmetadata_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: robotaccountmetadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.robotaccountmetadata_id_seq OWNED BY public.robotaccountmetadata.id;


--
-- Name: robotaccounttoken; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.robotaccounttoken (
    id integer NOT NULL,
    robot_account_id integer NOT NULL,
    token character varying(255) NOT NULL,
    fully_migrated boolean DEFAULT false NOT NULL
);


ALTER TABLE public.robotaccounttoken OWNER TO "quayregistry-quay-database";

--
-- Name: robotaccounttoken_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.robotaccounttoken_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.robotaccounttoken_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: robotaccounttoken_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.robotaccounttoken_id_seq OWNED BY public.robotaccounttoken.id;


--
-- Name: role; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.role (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.role OWNER TO "quayregistry-quay-database";

--
-- Name: role_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.role_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.role_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: role_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.role_id_seq OWNED BY public.role.id;


--
-- Name: servicekey; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.servicekey (
    id integer NOT NULL,
    name character varying(255) NOT NULL,
    kid character varying(255) NOT NULL,
    service character varying(255) NOT NULL,
    jwk text NOT NULL,
    metadata text NOT NULL,
    created_date timestamp without time zone NOT NULL,
    expiration_date timestamp without time zone,
    rotation_duration integer,
    approval_id integer
);


ALTER TABLE public.servicekey OWNER TO "quayregistry-quay-database";

--
-- Name: servicekey_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.servicekey_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.servicekey_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: servicekey_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.servicekey_id_seq OWNED BY public.servicekey.id;


--
-- Name: servicekeyapproval; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.servicekeyapproval (
    id integer NOT NULL,
    approver_id integer,
    approval_type character varying(255) NOT NULL,
    approved_date timestamp without time zone NOT NULL,
    notes text NOT NULL
);


ALTER TABLE public.servicekeyapproval OWNER TO "quayregistry-quay-database";

--
-- Name: servicekeyapproval_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.servicekeyapproval_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.servicekeyapproval_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: servicekeyapproval_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.servicekeyapproval_id_seq OWNED BY public.servicekeyapproval.id;


--
-- Name: star; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.star (
    id integer NOT NULL,
    user_id integer NOT NULL,
    repository_id integer NOT NULL,
    created timestamp without time zone NOT NULL
);


ALTER TABLE public.star OWNER TO "quayregistry-quay-database";

--
-- Name: star_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.star_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.star_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: star_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.star_id_seq OWNED BY public.star.id;


--
-- Name: tag; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.tag (
    id integer NOT NULL,
    name character varying(255) NOT NULL,
    repository_id integer NOT NULL,
    manifest_id integer,
    lifetime_start_ms bigint NOT NULL,
    lifetime_end_ms bigint,
    hidden boolean DEFAULT false NOT NULL,
    reversion boolean DEFAULT false NOT NULL,
    tag_kind_id integer NOT NULL,
    linked_tag_id integer
);


ALTER TABLE public.tag OWNER TO "quayregistry-quay-database";

--
-- Name: tag_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.tag_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tag_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: tag_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.tag_id_seq OWNED BY public.tag.id;


--
-- Name: tagkind; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.tagkind (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.tagkind OWNER TO "quayregistry-quay-database";

--
-- Name: tagkind_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.tagkind_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tagkind_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: tagkind_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.tagkind_id_seq OWNED BY public.tagkind.id;


--
-- Name: tagmanifest; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.tagmanifest (
    id integer NOT NULL,
    tag_id integer NOT NULL,
    digest character varying(255) NOT NULL,
    json_data text NOT NULL
);


ALTER TABLE public.tagmanifest OWNER TO "quayregistry-quay-database";

--
-- Name: tagmanifest_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.tagmanifest_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tagmanifest_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: tagmanifest_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.tagmanifest_id_seq OWNED BY public.tagmanifest.id;


--
-- Name: tagmanifestlabel; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.tagmanifestlabel (
    id integer NOT NULL,
    repository_id integer NOT NULL,
    annotated_id integer NOT NULL,
    label_id integer NOT NULL
);


ALTER TABLE public.tagmanifestlabel OWNER TO "quayregistry-quay-database";

--
-- Name: tagmanifestlabel_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.tagmanifestlabel_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tagmanifestlabel_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: tagmanifestlabel_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.tagmanifestlabel_id_seq OWNED BY public.tagmanifestlabel.id;


--
-- Name: tagmanifestlabelmap; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.tagmanifestlabelmap (
    id integer NOT NULL,
    tag_manifest_id integer NOT NULL,
    manifest_id integer,
    label_id integer NOT NULL,
    tag_manifest_label_id integer NOT NULL,
    manifest_label_id integer,
    broken_manifest boolean DEFAULT false NOT NULL
);


ALTER TABLE public.tagmanifestlabelmap OWNER TO "quayregistry-quay-database";

--
-- Name: tagmanifestlabelmap_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.tagmanifestlabelmap_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tagmanifestlabelmap_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: tagmanifestlabelmap_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.tagmanifestlabelmap_id_seq OWNED BY public.tagmanifestlabelmap.id;


--
-- Name: tagmanifesttomanifest; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.tagmanifesttomanifest (
    id integer NOT NULL,
    tag_manifest_id integer NOT NULL,
    manifest_id integer NOT NULL,
    broken boolean DEFAULT false NOT NULL
);


ALTER TABLE public.tagmanifesttomanifest OWNER TO "quayregistry-quay-database";

--
-- Name: tagmanifesttomanifest_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.tagmanifesttomanifest_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tagmanifesttomanifest_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: tagmanifesttomanifest_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.tagmanifesttomanifest_id_seq OWNED BY public.tagmanifesttomanifest.id;


--
-- Name: tagtorepositorytag; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.tagtorepositorytag (
    id integer NOT NULL,
    repository_id integer NOT NULL,
    tag_id integer NOT NULL,
    repository_tag_id integer NOT NULL
);


ALTER TABLE public.tagtorepositorytag OWNER TO "quayregistry-quay-database";

--
-- Name: tagtorepositorytag_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.tagtorepositorytag_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tagtorepositorytag_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: tagtorepositorytag_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.tagtorepositorytag_id_seq OWNED BY public.tagtorepositorytag.id;


--
-- Name: team; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.team (
    id integer NOT NULL,
    name character varying(255) NOT NULL,
    organization_id integer NOT NULL,
    role_id integer NOT NULL,
    description text NOT NULL
);


ALTER TABLE public.team OWNER TO "quayregistry-quay-database";

--
-- Name: team_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.team_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.team_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: team_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.team_id_seq OWNED BY public.team.id;


--
-- Name: teammember; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.teammember (
    id integer NOT NULL,
    user_id integer NOT NULL,
    team_id integer NOT NULL
);


ALTER TABLE public.teammember OWNER TO "quayregistry-quay-database";

--
-- Name: teammember_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.teammember_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.teammember_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: teammember_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.teammember_id_seq OWNED BY public.teammember.id;


--
-- Name: teammemberinvite; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.teammemberinvite (
    id integer NOT NULL,
    user_id integer,
    email character varying(255),
    team_id integer NOT NULL,
    inviter_id integer NOT NULL,
    invite_token character varying(255) NOT NULL
);


ALTER TABLE public.teammemberinvite OWNER TO "quayregistry-quay-database";

--
-- Name: teammemberinvite_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.teammemberinvite_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.teammemberinvite_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: teammemberinvite_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.teammemberinvite_id_seq OWNED BY public.teammemberinvite.id;


--
-- Name: teamrole; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.teamrole (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.teamrole OWNER TO "quayregistry-quay-database";

--
-- Name: teamrole_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.teamrole_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.teamrole_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: teamrole_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.teamrole_id_seq OWNED BY public.teamrole.id;


--
-- Name: teamsync; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.teamsync (
    id integer NOT NULL,
    team_id integer NOT NULL,
    transaction_id character varying(255) NOT NULL,
    last_updated timestamp without time zone,
    service_id integer NOT NULL,
    config text NOT NULL
);


ALTER TABLE public.teamsync OWNER TO "quayregistry-quay-database";

--
-- Name: teamsync_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.teamsync_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.teamsync_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: teamsync_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.teamsync_id_seq OWNED BY public.teamsync.id;


--
-- Name: torrentinfo; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.torrentinfo (
    id integer NOT NULL,
    storage_id integer NOT NULL,
    piece_length integer NOT NULL,
    pieces text NOT NULL
);


ALTER TABLE public.torrentinfo OWNER TO "quayregistry-quay-database";

--
-- Name: torrentinfo_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.torrentinfo_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.torrentinfo_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: torrentinfo_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.torrentinfo_id_seq OWNED BY public.torrentinfo.id;


--
-- Name: uploadedblob; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.uploadedblob (
    id bigint NOT NULL,
    repository_id integer NOT NULL,
    blob_id integer NOT NULL,
    uploaded_at timestamp without time zone NOT NULL,
    expires_at timestamp without time zone NOT NULL
);


ALTER TABLE public.uploadedblob OWNER TO "quayregistry-quay-database";

--
-- Name: uploadedblob_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.uploadedblob_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.uploadedblob_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: uploadedblob_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.uploadedblob_id_seq OWNED BY public.uploadedblob.id;


--
-- Name: user; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public."user" (
    id integer NOT NULL,
    uuid character varying(36),
    username character varying(255) NOT NULL,
    password_hash character varying(255),
    email character varying(255) NOT NULL,
    verified boolean NOT NULL,
    stripe_id character varying(255),
    organization boolean NOT NULL,
    robot boolean NOT NULL,
    invoice_email boolean NOT NULL,
    invalid_login_attempts integer DEFAULT 0 NOT NULL,
    last_invalid_login timestamp without time zone NOT NULL,
    removed_tag_expiration_s integer DEFAULT 1209600 NOT NULL,
    enabled boolean DEFAULT true NOT NULL,
    invoice_email_address character varying(255),
    company character varying(255),
    family_name character varying(255),
    given_name character varying(255),
    location character varying(255),
    maximum_queued_builds_count integer,
    creation_date timestamp without time zone,
    last_accessed timestamp without time zone
);


ALTER TABLE public."user" OWNER TO "quayregistry-quay-database";

--
-- Name: user_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.user_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.user_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.user_id_seq OWNED BY public."user".id;


--
-- Name: userprompt; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.userprompt (
    id integer NOT NULL,
    user_id integer NOT NULL,
    kind_id integer NOT NULL
);


ALTER TABLE public.userprompt OWNER TO "quayregistry-quay-database";

--
-- Name: userprompt_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.userprompt_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.userprompt_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: userprompt_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.userprompt_id_seq OWNED BY public.userprompt.id;


--
-- Name: userpromptkind; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.userpromptkind (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.userpromptkind OWNER TO "quayregistry-quay-database";

--
-- Name: userpromptkind_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.userpromptkind_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.userpromptkind_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: userpromptkind_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.userpromptkind_id_seq OWNED BY public.userpromptkind.id;


--
-- Name: userregion; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.userregion (
    id integer NOT NULL,
    user_id integer NOT NULL,
    location_id integer NOT NULL
);


ALTER TABLE public.userregion OWNER TO "quayregistry-quay-database";

--
-- Name: userregion_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.userregion_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.userregion_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: userregion_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.userregion_id_seq OWNED BY public.userregion.id;


--
-- Name: visibility; Type: TABLE; Schema: public; Owner: quayregistry-quay-database
--

CREATE TABLE public.visibility (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.visibility OWNER TO "quayregistry-quay-database";

--
-- Name: visibility_id_seq; Type: SEQUENCE; Schema: public; Owner: quayregistry-quay-database
--

CREATE SEQUENCE public.visibility_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.visibility_id_seq OWNER TO "quayregistry-quay-database";

--
-- Name: visibility_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quayregistry-quay-database
--

ALTER SEQUENCE public.visibility_id_seq OWNED BY public.visibility.id;


--
-- Name: accesstoken id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.accesstoken ALTER COLUMN id SET DEFAULT nextval('public.accesstoken_id_seq'::regclass);


--
-- Name: accesstokenkind id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.accesstokenkind ALTER COLUMN id SET DEFAULT nextval('public.accesstokenkind_id_seq'::regclass);


--
-- Name: apprblob id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprblob ALTER COLUMN id SET DEFAULT nextval('public.apprblob_id_seq'::regclass);


--
-- Name: apprblobplacement id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprblobplacement ALTER COLUMN id SET DEFAULT nextval('public.apprblobplacement_id_seq'::regclass);


--
-- Name: apprblobplacementlocation id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprblobplacementlocation ALTER COLUMN id SET DEFAULT nextval('public.apprblobplacementlocation_id_seq'::regclass);


--
-- Name: apprmanifest id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprmanifest ALTER COLUMN id SET DEFAULT nextval('public.apprmanifest_id_seq'::regclass);


--
-- Name: apprmanifestblob id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprmanifestblob ALTER COLUMN id SET DEFAULT nextval('public.apprmanifestblob_id_seq'::regclass);


--
-- Name: apprmanifestlist id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprmanifestlist ALTER COLUMN id SET DEFAULT nextval('public.apprmanifestlist_id_seq'::regclass);


--
-- Name: apprmanifestlistmanifest id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprmanifestlistmanifest ALTER COLUMN id SET DEFAULT nextval('public.apprmanifestlistmanifest_id_seq'::regclass);


--
-- Name: apprtag id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprtag ALTER COLUMN id SET DEFAULT nextval('public.apprtag_id_seq'::regclass);


--
-- Name: apprtagkind id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprtagkind ALTER COLUMN id SET DEFAULT nextval('public.apprtagkind_id_seq'::regclass);


--
-- Name: appspecificauthtoken id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.appspecificauthtoken ALTER COLUMN id SET DEFAULT nextval('public.appspecificauthtoken_id_seq'::regclass);


--
-- Name: blobupload id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.blobupload ALTER COLUMN id SET DEFAULT nextval('public.blobupload_id_seq'::regclass);


--
-- Name: buildtriggerservice id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.buildtriggerservice ALTER COLUMN id SET DEFAULT nextval('public.buildtriggerservice_id_seq'::regclass);


--
-- Name: deletednamespace id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.deletednamespace ALTER COLUMN id SET DEFAULT nextval('public.deletednamespace_id_seq'::regclass);


--
-- Name: deletedrepository id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.deletedrepository ALTER COLUMN id SET DEFAULT nextval('public.deletedrepository_id_seq'::regclass);


--
-- Name: derivedstorageforimage id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.derivedstorageforimage ALTER COLUMN id SET DEFAULT nextval('public.derivedstorageforimage_id_seq'::regclass);


--
-- Name: disablereason id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.disablereason ALTER COLUMN id SET DEFAULT nextval('public.disablereason_id_seq'::regclass);


--
-- Name: emailconfirmation id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.emailconfirmation ALTER COLUMN id SET DEFAULT nextval('public.emailconfirmation_id_seq'::regclass);


--
-- Name: externalnotificationevent id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.externalnotificationevent ALTER COLUMN id SET DEFAULT nextval('public.externalnotificationevent_id_seq'::regclass);


--
-- Name: externalnotificationmethod id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.externalnotificationmethod ALTER COLUMN id SET DEFAULT nextval('public.externalnotificationmethod_id_seq'::regclass);


--
-- Name: federatedlogin id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.federatedlogin ALTER COLUMN id SET DEFAULT nextval('public.federatedlogin_id_seq'::regclass);


--
-- Name: image id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.image ALTER COLUMN id SET DEFAULT nextval('public.image_id_seq'::regclass);


--
-- Name: imagestorage id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestorage ALTER COLUMN id SET DEFAULT nextval('public.imagestorage_id_seq'::regclass);


--
-- Name: imagestoragelocation id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestoragelocation ALTER COLUMN id SET DEFAULT nextval('public.imagestoragelocation_id_seq'::regclass);


--
-- Name: imagestorageplacement id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestorageplacement ALTER COLUMN id SET DEFAULT nextval('public.imagestorageplacement_id_seq'::regclass);


--
-- Name: imagestoragesignature id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestoragesignature ALTER COLUMN id SET DEFAULT nextval('public.imagestoragesignature_id_seq'::regclass);


--
-- Name: imagestoragesignaturekind id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestoragesignaturekind ALTER COLUMN id SET DEFAULT nextval('public.imagestoragesignaturekind_id_seq'::regclass);


--
-- Name: imagestoragetransformation id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestoragetransformation ALTER COLUMN id SET DEFAULT nextval('public.imagestoragetransformation_id_seq'::regclass);


--
-- Name: label id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.label ALTER COLUMN id SET DEFAULT nextval('public.label_id_seq'::regclass);


--
-- Name: labelsourcetype id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.labelsourcetype ALTER COLUMN id SET DEFAULT nextval('public.labelsourcetype_id_seq'::regclass);


--
-- Name: logentry id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.logentry ALTER COLUMN id SET DEFAULT nextval('public.logentry_id_seq'::regclass);


--
-- Name: logentry2 id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.logentry2 ALTER COLUMN id SET DEFAULT nextval('public.logentry2_id_seq'::regclass);


--
-- Name: logentry3 id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.logentry3 ALTER COLUMN id SET DEFAULT nextval('public.logentry3_id_seq'::regclass);


--
-- Name: logentrykind id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.logentrykind ALTER COLUMN id SET DEFAULT nextval('public.logentrykind_id_seq'::regclass);


--
-- Name: loginservice id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.loginservice ALTER COLUMN id SET DEFAULT nextval('public.loginservice_id_seq'::regclass);


--
-- Name: manifest id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifest ALTER COLUMN id SET DEFAULT nextval('public.manifest_id_seq'::regclass);


--
-- Name: manifestblob id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestblob ALTER COLUMN id SET DEFAULT nextval('public.manifestblob_id_seq'::regclass);


--
-- Name: manifestchild id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestchild ALTER COLUMN id SET DEFAULT nextval('public.manifestchild_id_seq'::regclass);


--
-- Name: manifestlabel id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestlabel ALTER COLUMN id SET DEFAULT nextval('public.manifestlabel_id_seq'::regclass);


--
-- Name: manifestlegacyimage id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestlegacyimage ALTER COLUMN id SET DEFAULT nextval('public.manifestlegacyimage_id_seq'::regclass);


--
-- Name: manifestsecuritystatus id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestsecuritystatus ALTER COLUMN id SET DEFAULT nextval('public.manifestsecuritystatus_id_seq'::regclass);


--
-- Name: mediatype id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.mediatype ALTER COLUMN id SET DEFAULT nextval('public.mediatype_id_seq'::regclass);


--
-- Name: messages id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.messages ALTER COLUMN id SET DEFAULT nextval('public.messages_id_seq'::regclass);


--
-- Name: namespacegeorestriction id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.namespacegeorestriction ALTER COLUMN id SET DEFAULT nextval('public.namespacegeorestriction_id_seq'::regclass);


--
-- Name: notification id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.notification ALTER COLUMN id SET DEFAULT nextval('public.notification_id_seq'::regclass);


--
-- Name: notificationkind id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.notificationkind ALTER COLUMN id SET DEFAULT nextval('public.notificationkind_id_seq'::regclass);


--
-- Name: oauthaccesstoken id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.oauthaccesstoken ALTER COLUMN id SET DEFAULT nextval('public.oauthaccesstoken_id_seq'::regclass);


--
-- Name: oauthapplication id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.oauthapplication ALTER COLUMN id SET DEFAULT nextval('public.oauthapplication_id_seq'::regclass);


--
-- Name: oauthauthorizationcode id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.oauthauthorizationcode ALTER COLUMN id SET DEFAULT nextval('public.oauthauthorizationcode_id_seq'::regclass);


--
-- Name: permissionprototype id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.permissionprototype ALTER COLUMN id SET DEFAULT nextval('public.permissionprototype_id_seq'::regclass);


--
-- Name: quayregion id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.quayregion ALTER COLUMN id SET DEFAULT nextval('public.quayregion_id_seq'::regclass);


--
-- Name: quayrelease id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.quayrelease ALTER COLUMN id SET DEFAULT nextval('public.quayrelease_id_seq'::regclass);


--
-- Name: quayservice id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.quayservice ALTER COLUMN id SET DEFAULT nextval('public.quayservice_id_seq'::regclass);


--
-- Name: queueitem id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.queueitem ALTER COLUMN id SET DEFAULT nextval('public.queueitem_id_seq'::regclass);


--
-- Name: repomirrorconfig id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repomirrorconfig ALTER COLUMN id SET DEFAULT nextval('public.repomirrorconfig_id_seq'::regclass);


--
-- Name: repomirrorrule id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repomirrorrule ALTER COLUMN id SET DEFAULT nextval('public.repomirrorrule_id_seq'::regclass);


--
-- Name: repository id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repository ALTER COLUMN id SET DEFAULT nextval('public.repository_id_seq'::regclass);


--
-- Name: repositoryactioncount id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositoryactioncount ALTER COLUMN id SET DEFAULT nextval('public.repositoryactioncount_id_seq'::regclass);


--
-- Name: repositoryauthorizedemail id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositoryauthorizedemail ALTER COLUMN id SET DEFAULT nextval('public.repositoryauthorizedemail_id_seq'::regclass);


--
-- Name: repositorybuild id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorybuild ALTER COLUMN id SET DEFAULT nextval('public.repositorybuild_id_seq'::regclass);


--
-- Name: repositorybuildtrigger id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorybuildtrigger ALTER COLUMN id SET DEFAULT nextval('public.repositorybuildtrigger_id_seq'::regclass);


--
-- Name: repositorykind id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorykind ALTER COLUMN id SET DEFAULT nextval('public.repositorykind_id_seq'::regclass);


--
-- Name: repositorynotification id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorynotification ALTER COLUMN id SET DEFAULT nextval('public.repositorynotification_id_seq'::regclass);


--
-- Name: repositorypermission id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorypermission ALTER COLUMN id SET DEFAULT nextval('public.repositorypermission_id_seq'::regclass);


--
-- Name: repositorysearchscore id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorysearchscore ALTER COLUMN id SET DEFAULT nextval('public.repositorysearchscore_id_seq'::regclass);


--
-- Name: repositorytag id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorytag ALTER COLUMN id SET DEFAULT nextval('public.repositorytag_id_seq'::regclass);


--
-- Name: robotaccountmetadata id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.robotaccountmetadata ALTER COLUMN id SET DEFAULT nextval('public.robotaccountmetadata_id_seq'::regclass);


--
-- Name: robotaccounttoken id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.robotaccounttoken ALTER COLUMN id SET DEFAULT nextval('public.robotaccounttoken_id_seq'::regclass);


--
-- Name: role id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.role ALTER COLUMN id SET DEFAULT nextval('public.role_id_seq'::regclass);


--
-- Name: servicekey id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.servicekey ALTER COLUMN id SET DEFAULT nextval('public.servicekey_id_seq'::regclass);


--
-- Name: servicekeyapproval id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.servicekeyapproval ALTER COLUMN id SET DEFAULT nextval('public.servicekeyapproval_id_seq'::regclass);


--
-- Name: star id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.star ALTER COLUMN id SET DEFAULT nextval('public.star_id_seq'::regclass);


--
-- Name: tag id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tag ALTER COLUMN id SET DEFAULT nextval('public.tag_id_seq'::regclass);


--
-- Name: tagkind id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagkind ALTER COLUMN id SET DEFAULT nextval('public.tagkind_id_seq'::regclass);


--
-- Name: tagmanifest id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifest ALTER COLUMN id SET DEFAULT nextval('public.tagmanifest_id_seq'::regclass);


--
-- Name: tagmanifestlabel id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifestlabel ALTER COLUMN id SET DEFAULT nextval('public.tagmanifestlabel_id_seq'::regclass);


--
-- Name: tagmanifestlabelmap id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifestlabelmap ALTER COLUMN id SET DEFAULT nextval('public.tagmanifestlabelmap_id_seq'::regclass);


--
-- Name: tagmanifesttomanifest id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifesttomanifest ALTER COLUMN id SET DEFAULT nextval('public.tagmanifesttomanifest_id_seq'::regclass);


--
-- Name: tagtorepositorytag id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagtorepositorytag ALTER COLUMN id SET DEFAULT nextval('public.tagtorepositorytag_id_seq'::regclass);


--
-- Name: team id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.team ALTER COLUMN id SET DEFAULT nextval('public.team_id_seq'::regclass);


--
-- Name: teammember id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.teammember ALTER COLUMN id SET DEFAULT nextval('public.teammember_id_seq'::regclass);


--
-- Name: teammemberinvite id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.teammemberinvite ALTER COLUMN id SET DEFAULT nextval('public.teammemberinvite_id_seq'::regclass);


--
-- Name: teamrole id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.teamrole ALTER COLUMN id SET DEFAULT nextval('public.teamrole_id_seq'::regclass);


--
-- Name: teamsync id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.teamsync ALTER COLUMN id SET DEFAULT nextval('public.teamsync_id_seq'::regclass);


--
-- Name: torrentinfo id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.torrentinfo ALTER COLUMN id SET DEFAULT nextval('public.torrentinfo_id_seq'::regclass);


--
-- Name: uploadedblob id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.uploadedblob ALTER COLUMN id SET DEFAULT nextval('public.uploadedblob_id_seq'::regclass);


--
-- Name: user id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public."user" ALTER COLUMN id SET DEFAULT nextval('public.user_id_seq'::regclass);


--
-- Name: userprompt id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.userprompt ALTER COLUMN id SET DEFAULT nextval('public.userprompt_id_seq'::regclass);


--
-- Name: userpromptkind id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.userpromptkind ALTER COLUMN id SET DEFAULT nextval('public.userpromptkind_id_seq'::regclass);


--
-- Name: userregion id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.userregion ALTER COLUMN id SET DEFAULT nextval('public.userregion_id_seq'::regclass);


--
-- Name: visibility id; Type: DEFAULT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.visibility ALTER COLUMN id SET DEFAULT nextval('public.visibility_id_seq'::regclass);


--
-- Data for Name: accesstoken; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.accesstoken (id, friendly_name, repository_id, created, role_id, temporary, kind_id, token_code, token_name) FROM stdin;
\.


--
-- Data for Name: accesstokenkind; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.accesstokenkind (id, name) FROM stdin;
1	build-worker
2	pushpull-token
\.


--
-- Data for Name: alembic_version; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.alembic_version (version_num) FROM stdin;
88e64904d000
\.


--
-- Data for Name: apprblob; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.apprblob (id, digest, media_type_id, size, uncompressed_size) FROM stdin;
\.


--
-- Data for Name: apprblobplacement; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.apprblobplacement (id, blob_id, location_id) FROM stdin;
\.


--
-- Data for Name: apprblobplacementlocation; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.apprblobplacementlocation (id, name) FROM stdin;
1	local_eu
2	local_us
\.


--
-- Data for Name: apprmanifest; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.apprmanifest (id, digest, media_type_id, manifest_json) FROM stdin;
\.


--
-- Data for Name: apprmanifestblob; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.apprmanifestblob (id, manifest_id, blob_id) FROM stdin;
\.


--
-- Data for Name: apprmanifestlist; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.apprmanifestlist (id, digest, manifest_list_json, schema_version, media_type_id) FROM stdin;
\.


--
-- Data for Name: apprmanifestlistmanifest; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.apprmanifestlistmanifest (id, manifest_list_id, manifest_id, operating_system, architecture, platform_json, media_type_id) FROM stdin;
\.


--
-- Data for Name: apprtag; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.apprtag (id, name, repository_id, manifest_list_id, lifetime_start, lifetime_end, hidden, reverted, protected, tag_kind_id, linked_tag_id) FROM stdin;
\.


--
-- Data for Name: apprtagkind; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.apprtagkind (id, name) FROM stdin;
1	tag
2	release
3	channel
\.


--
-- Data for Name: appspecificauthtoken; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.appspecificauthtoken (id, user_id, uuid, title, created, expiration, last_accessed, token_name, token_secret) FROM stdin;
\.


--
-- Data for Name: blobupload; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.blobupload (id, repository_id, uuid, byte_count, sha_state, location_id, storage_metadata, chunk_count, uncompressed_byte_count, created, piece_sha_state, piece_hashes) FROM stdin;
\.


--
-- Data for Name: buildtriggerservice; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.buildtriggerservice (id, name) FROM stdin;
1	github
2	gitlab
3	bitbucket
4	custom-git
\.


--
-- Data for Name: deletednamespace; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.deletednamespace (id, namespace_id, marked, original_username, original_email, queue_id) FROM stdin;
\.


--
-- Data for Name: deletedrepository; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.deletedrepository (id, repository_id, marked, original_name, queue_id) FROM stdin;
\.


--
-- Data for Name: derivedstorageforimage; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.derivedstorageforimage (id, source_image_id, derivative_id, transformation_id, uniqueness_hash) FROM stdin;
\.


--
-- Data for Name: disablereason; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.disablereason (id, name) FROM stdin;
1	user_toggled
2	successive_build_failures
3	successive_build_internal_errors
\.


--
-- Data for Name: emailconfirmation; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.emailconfirmation (id, code, user_id, pw_reset, new_email, email_confirm, created, verification_code) FROM stdin;
\.


--
-- Data for Name: externalnotificationevent; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.externalnotificationevent (id, name) FROM stdin;
1	build_failure
2	build_queued
3	build_start
4	build_success
5	repo_push
6	vulnerability_found
7	build_cancelled
8	repo_mirror_sync_started
9	repo_mirror_sync_success
10	repo_mirror_sync_failed
\.


--
-- Data for Name: externalnotificationmethod; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.externalnotificationmethod (id, name) FROM stdin;
1	email
2	flowdock
3	hipchat
4	quay_notification
5	slack
6	webhook
\.


--
-- Data for Name: federatedlogin; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.federatedlogin (id, user_id, service_id, service_ident, metadata_json) FROM stdin;
1	3	2	robot:3	{}
\.


--
-- Data for Name: image; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.image (id, docker_image_id, repository_id, ancestors, storage_id, created, comment, command, aggregate_size, v1_json_metadata, v1_checksum, security_indexed, security_indexed_engine, parent_id) FROM stdin;
\.


--
-- Data for Name: imagestorage; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.imagestorage (id, uuid, image_size, uncompressed_size, uploading, cas_path, content_checksum) FROM stdin;
1	3d75576e-a353-4761-b9ca-8914a42a616a	2811969	5879808	f	t	sha256:540db60ca9383eac9e418f78490994d0af424aab7bf6d0e47ac8ed4e2e9bcbba
2	37382138-9f85-4ad1-aee7-ca1ec6e783d3	1472	\N	f	t	sha256:6dbb9cc54074106d46d4ccb330f2a40a682d49dda5f4844962b7dce9fe44aaec
3	e2e9fb8f-6cd0-49a2-836c-255f0e33e7ad	61946585	170002944	f	t	sha256:99a21848b482c10fd4b103b7ab95e1446142e76e3dfa673efd0a23fb264ec5e5
4	74525385-9014-42eb-84ae-e391a7a0ef8e	1478	\N	f	t	sha256:e2c0b9bec08e6887cb8bf67884fcb5cc62bfa0fec17a732278ac18309d9a3c47
5	e5073c0e-efd5-4000-8e1d-ba20c8068d6b	32	\N	f	t	sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
6	c62f70f1-5375-4378-84ef-c20f590b6599	50432971	119260672	f	t	sha256:bd8f6a7501ccbe80b95c82519ed6fd4f7236a41e0ae59ba4a8df76af24629efc
7	a4ea0420-0dec-4ee8-a1bb-bf7260da0500	1463	\N	f	t	sha256:0d587dfbc4f4800bfe9ab08662e8396ffc37060c493f8ef24b2823fef3320df6
8	f9c2b2dc-c16b-44c4-8c85-936c1620da99	61947132	170008064	f	t	sha256:3c2c91c7c4311eca863331479504040ee4f45fda9a610947b82886e7bbd5b737
9	b9a92b75-6733-4de8-b72f-7c0020e8ca37	1478	\N	f	t	sha256:53ef897d731f9a5673c083d0e86d7911f85d6e63bb2be2346b17bdbacdc58637
10	1957a003-9e27-44c4-9274-1b0ebb43fdb2	81847982	231292416	f	t	sha256:dd34f38d274c37f470ba7f106237c6a95c7211be36678aa4e749ba45961f1e4c
11	821469b6-433e-46c8-901b-0ed297eca6d4	1478	\N	f	t	sha256:816d99f0bbe8c6cca3d2935865e23e754483d2cface2476d21376a7c656d920f
12	caf6b7d8-6184-43ec-9ff0-b6ebbc45a201	15776487	36918272	f	t	sha256:5b8d16cfb98918b19072cedfeb8e4978fd60635c705623c0417ca28328df674f
13	08b7d1a2-a76d-4980-8c4e-93e93083832b	1815	\N	f	t	sha256:09e8512ca73d7a6b9e9089970971ebabbf790aaa069783f633646e9b97503df2
14	de621541-cd40-4e3a-81fb-21b221f0c7e8	6145912	18512896	f	t	sha256:1ecef690e281c31d68c3cd0628207e8b02fb0e60575604fc5436404d1007a75e
15	19e0e9b4-5087-4a38-a11e-ff99a3de4117	9997183	17866752	f	t	sha256:efe9738af0cb2184ee8f3fb3dcb130455385aa428a27d14e1e07a5587ff16e64
16	cf645e42-86e5-4ff0-a92f-8ca0ab4438e0	233	4608	f	t	sha256:d7a9fa72f19290251b0f5df9144f9da3b63189e321d4b0f330344b464f1168c8
17	24e7953a-5a6f-4354-a4bf-9e996136dd9a	7832944	17178624	f	t	sha256:44718e6d535d365250316b02459f98a1b0fa490158cc53057d18858507504d60
18	224170ad-6907-4b5f-83b7-77aa046c3351	2164749	8551936	f	t	sha256:d1460947be4310d0aae84803ddd0a3c1e2fcdd1eccb455a01db6525fb70ddc67
19	38de76dc-1b46-4915-a8a4-4b8a56b7a6f1	19148354	56620544	f	t	sha256:0649c5bd98518385dfa6b98f398c409f54f3c2744297d7cab30b03ecba9fcfb5
20	aba487cd-5829-4f85-ae94-3c1245b760c6	51841093	150023168	f	t	sha256:f37aabde37b87d272286df45e6a3145b0884b72e07e657bf1a2a1e74a92c6172
21	349d80a0-6c29-4a3d-94ad-c99a31cad60e	192350897	520748032	f	t	sha256:3923d444ed0552ce73ef51fa235f1b45edafdec096abda6abab710637dac7ec6
22	4c7b073b-27eb-4169-ba9b-147f77cb7e6b	8341	\N	f	t	sha256:49e3c70d884f2640959e0392c03f5352d852e673a28dca3b16d2d9c400149906
23	7cb8d080-d008-43ff-b997-a4a1755aa851	1408	20480	f	t	sha256:d000cbac530403b7c2253313b0d8a847611ed575ab1e48c3c635271732726d80
24	45610f33-508c-433b-a32b-abd01d224035	32319569	83148800	f	t	sha256:c6f5fb9b6d3e1e5915172521ed92e1bb8ea9952bf04eaadcea36f55f45d09cf4
25	9f0d554f-0fe7-47b8-917a-06edea13c907	4476	\N	f	t	sha256:99a3db928eb59baffb349fc298559eb84f48eab25c31d837a227376c9b9f78f9
26	065a81a2-8e09-470c-9e38-0ca5799d8e67	46698741	117497856	f	t	sha256:bb0005c3d7295f7b42b8151e773c939cacc3aff9beb39adc1832834f62dffd67
27	a88df76c-3b46-49e2-80ba-74c712900f25	1698	\N	f	t	sha256:29db5464de2dc3cb69fdde6ad0839363ef1bc97d790c0e5742e05bf862c0b592
28	8f84dc94-dbe6-4db6-bbbc-03d600ec1666	187	3584	f	t	sha256:10e6159c56c084c858f5de2416454ac0a49ddda47b764e4379c5d5a147c9bf5f
29	ef3381b2-c3d3-4997-8ecd-966513312d05	848	15360	f	t	sha256:c4394a92d1f8760cf7d17fee0bcee732c94c5b858dd8d19c7ff02beecf3b4e83
30	31902f58-b2c9-4460-8194-a945b42db110	28569016	75274752	f	t	sha256:a70d879fa5984474288d52009479054b8bb2993de2a1859f43b5480600cecb24
31	60c90b9e-4346-489a-9ccb-4d956958d886	3316	\N	f	t	sha256:26b77e58432b01665d7e876248c9056fa58bf4a7ab82576a024f5cf3dac146d6
\.


--
-- Data for Name: imagestoragelocation; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.imagestoragelocation (id, name) FROM stdin;
1	s3_us_east_1
2	s3_eu_west_1
3	s3_ap_southeast_1
4	s3_ap_southeast_2
5	s3_ap_northeast_1
6	s3_sa_east_1
7	local
8	s3_us_west_1
9	local_us
\.


--
-- Data for Name: imagestorageplacement; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.imagestorageplacement (id, storage_id, location_id) FROM stdin;
1	1	9
2	2	9
3	3	9
4	4	9
5	5	9
6	6	9
7	7	9
8	8	9
9	9	9
10	10	9
11	11	9
12	12	9
13	13	9
14	14	9
15	15	9
16	16	9
17	17	9
18	18	9
19	19	9
20	20	9
21	21	9
22	22	9
23	23	9
24	24	9
25	25	9
26	26	9
27	27	9
28	28	9
29	29	9
30	30	9
31	31	9
\.


--
-- Data for Name: imagestoragesignature; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.imagestoragesignature (id, storage_id, kind_id, signature, uploading) FROM stdin;
\.


--
-- Data for Name: imagestoragesignaturekind; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.imagestoragesignaturekind (id, name) FROM stdin;
1	gpg2
\.


--
-- Data for Name: imagestoragetransformation; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.imagestoragetransformation (id, name) FROM stdin;
1	squash
2	aci
\.


--
-- Data for Name: label; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.label (id, uuid, key, value, media_type_id, source_type_id) FROM stdin;
1	50e97ad2-9615-44de-977d-585e88ca43c0	build-date	20210416	1	1
2	83fe22f5-c2f9-4e5f-a6b1-a1cf94589ac9	name	Photon OS x86_64/4.0 Base Image	1	1
3	e71f8134-0e02-4360-8902-c807ce84b5e8	vendor	VMware	1	1
4	913a12aa-beac-4cd9-bbee-5953c849b658	architecture	x86_64	1	1
5	b2049829-ab90-4787-9297-328927bc1af3	build-date	2021-04-20T04:05:36.757200	1	1
6	1a7e5a76-9016-4c87-846f-a7409fd18bfd	com.redhat.build-host	cpt-1003.osbs.prod.upshift.rdu2.redhat.com	1	1
7	174570a8-ebac-4d16-8cca-397b792ecedc	com.redhat.component	rhel7-atomic-container	1	1
8	64869127-ed29-4d75-8b71-f32682933fa3	com.redhat.license_terms	https://www.redhat.com/licenses/eulas	1	1
9	e4a8c9e3-6483-44bb-ab53-a25f99453939	description	The Red Hat Enterprise Linux Base image is designed to be a minimal, fully supported base image where several of the traditional operating system components such as python an systemd have been removed. The Atomic Image also includes a simple package manager called microdnf which can add/update packages as needed.	1	1
10	6a350dc0-71da-4c6f-9168-ae417c743350	distribution-scope	public	1	1
11	74a95e73-5129-4276-8c80-4847202205d4	io.k8s.description	The Red Hat Enterprise Linux Base image is designed to be a minimal, fully supported base image where several of the traditional operating system components such as python an systemd have been removed. The Atomic Image also includes a simple package manager called microdnf which can add/update packages as needed.	1	1
12	f7eca109-078e-4741-a96c-58e9eb481ac9	io.k8s.display-name	Red Hat Enterprise Linux 7	1	1
13	0262e2c7-9374-41b7-ac34-a6c8b6ed7cbd	io.openshift.tags	minimal rhel7	1	1
14	ef32e201-72d0-415a-857a-246d3e671fdb	maintainer	Red Hat, Inc.	1	1
15	6a7e12f3-5122-4201-a2b0-e47df63fa9d1	name	rhel7-atomic	1	1
16	35937fe1-e77b-4cdc-b57d-898a08baed93	release	368	1	1
17	64053818-017d-4e8e-971b-d95d1b5c8fb9	summary	Provides the latest release of Red Hat Enterprise Linux 7 in a minimal, fully supported base image where several of the traditional operating system components such as python an systemd have been removed.	1	1
18	106d302a-984e-44fc-af0b-29f7d1144356	url	https://access.redhat.com/containers/#/registry.access.redhat.com/rhel7-atomic/images/7.9-368	1	1
19	bef2e484-594d-4115-b846-2df3a9f6d958	vcs-ref	9458c9de09a5c5395628921aa56237946749b433	1	1
20	c9ad5801-b06b-49b3-a2ce-70a50c985434	vcs-type	git	1	1
21	4f5e3d55-06de-49fd-95f7-8b832ce06889	vendor	Red Hat, Inc.	1	1
22	08d6f7e6-a2f2-4f0e-8076-0f67108af565	version	7.9	1	1
23	341a9a44-1718-4a2e-8ee0-f9215424ca8e	com.suse.sle.base.created	2021-04-19T09:08:17.140147690Z	1	1
24	70d94006-631c-4c7b-b66a-12c87128f8af	com.suse.sle.base.description	Image containing a minimal environment for containers based on SUSE Linux Enterprise Server 15 SP2.	1	1
25	a50be16c-bd0c-4a7e-9dd0-e69cd9bf0220	com.suse.sle.base.disturl	obs://build.suse.de/SUSE:SLE-15-SP2:Update:CR/images/4a8871be8078bcef2e2417e2a98fc3a0-sles15-image	1	1
26	1ae4cae1-c100-467b-b1f6-eb51b99fff39	com.suse.sle.base.reference	registry.suse.com/suse/sle15:15.2.8.2.892	1	1
27	228f308a-0a92-4a60-9916-382ff7732dac	com.suse.sle.base.title	SUSE Linux Enterprise Server 15 SP2 Base Container	1	1
28	6c3c6ff8-9ca0-4945-a524-a2ff321f8089	com.suse.sle.base.url	https://www.suse.com/products/server/	1	1
29	391ff7f9-2f93-4fe8-877f-7422651a4d0b	com.suse.sle.base.vendor	SUSE LLC	1	1
30	c5955383-1fb2-4cd0-9abc-3d6d83cfc484	com.suse.sle.base.version	15.2.8.2.892	1	1
31	95163a9b-91fa-45a4-8b1d-eb58f03ca5eb	org.openbuildservice.disturl	obs://build.suse.de/SUSE:SLE-15-SP2:Update:CR/images/4a8871be8078bcef2e2417e2a98fc3a0-sles15-image	1	1
32	3ab7c4ba-fe97-4b58-a1be-d773dc08fe84	org.opencontainers.image.created	2021-04-19T09:08:17.140147690Z	1	1
33	c0dd61bf-0252-4022-8599-e63a8c36a806	org.opencontainers.image.description	Image containing a minimal environment for containers based on SUSE Linux Enterprise Server 15 SP2.	1	1
34	f4bf512c-b974-436c-9473-e3391585cbd6	org.opencontainers.image.title	SUSE Linux Enterprise Server 15 SP2 Base Container	1	1
35	c81d797c-83e9-4d0a-9504-8a54143c85cf	org.opencontainers.image.url	https://www.suse.com/products/server/	1	1
36	b5226fa6-0b6a-4ba2-9362-c0ee7f017a3f	org.opencontainers.image.vendor	SUSE LLC	1	1
37	094ab66c-b426-432d-a73a-61eb1e412fff	org.opencontainers.image.version	15.2.8.2.892	1	1
38	6feec739-a13c-407e-be07-7a922e275ae8	org.opensuse.reference	registry.suse.com/suse/sle15:15.2.8.2.892	1	1
\.


--
-- Data for Name: labelsourcetype; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.labelsourcetype (id, name, mutable) FROM stdin;
1	manifest	f
2	api	t
3	internal	f
\.


--
-- Data for Name: logentry; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.logentry (id, kind_id, account_id, performer_id, repository_id, datetime, ip, metadata_json) FROM stdin;
\.


--
-- Data for Name: logentry2; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.logentry2 (id, kind_id, account_id, performer_id, repository_id, datetime, ip, metadata_json) FROM stdin;
\.


--
-- Data for Name: logentry3; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.logentry3 (id, kind_id, account_id, performer_id, repository_id, datetime, ip, metadata_json) FROM stdin;
1	14	2	1	1	2022-01-28 03:57:55.253777	10.129.2.23	{"repo": "test", "namespace": "testorg"}
2	75	2	1	1	2022-01-28 03:58:00.306193	10.129.2.23	{"repo": "test", "namespace": "testorg", "state_changed": "MIRROR"}
3	15	2	1	\N	2022-01-28 03:58:18.408781	10.129.2.23	{"robot": "aws", "description": "", "unstructured_metadata": null}
4	65	2	1	1	2022-01-28 03:58:21.720652	10.129.2.23	{"repo": "test", "namespace": "testorg", "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:93.0) Gecko/20100101 Firefox/93.0", "changed": "external_reference", "to": "quay.io/lzha/quaydemo", "username": "quay", "resolved_ip": {"provider": "internet", "service": null, "sync_token": "1631687596", "country_iso_code": null}}
5	66	2	\N	1	2022-01-28 03:58:47.345032	\N	{"verb": "start", "namespace": "testorg", "repo": "test", "message": "'quay.io/lzha/quaydemo' with tag pattern '*'", "tag": null, "tags": null, "stdout": null, "stderr": null}
6	42	2	3	1	2022-01-28 03:58:54.821706	10.131.0.33	{"repo": "test", "namespace": "testorg", "user-agent": "skopeo/1.3.2-dev", "tag": "alpine", "username": "testorg+aws", "is_robot": true, "resolved_ip": {"provider": "internet", "service": null, "sync_token": "1631687596", "country_iso_code": null}}
7	70	2	\N	1	2022-01-28 03:58:54.850816	\N	{"verb": "finish", "namespace": "testorg", "repo": "test", "message": "Source 'docker://quay.io/lzha/quaydemo:alpine' successful sync", "tag": "alpine", "tags": null, "stdout": "Copying blob sha256:540db60ca9383eac9e418f78490994d0af424aab7bf6d0e47ac8ed4e2e9bcbba\\nCopying config sha256:6dbb9cc54074106d46d4ccb330f2a40a682d49dda5f4844962b7dce9fe44aaec\\nWriting manifest to image destination\\nStoring signatures\\n", "stderr": ""}
8	42	2	3	1	2022-01-28 03:59:04.91897	10.131.0.33	{"repo": "test", "namespace": "testorg", "user-agent": "skopeo/1.3.2-dev", "tag": "amazonlinux", "username": "testorg+aws", "is_robot": true, "resolved_ip": {"provider": "internet", "service": null, "sync_token": "1631687596", "country_iso_code": null}}
9	70	2	\N	1	2022-01-28 03:59:04.9415	\N	{"verb": "finish", "namespace": "testorg", "repo": "test", "message": "Source 'docker://quay.io/lzha/quaydemo:amazonlinux' successful sync", "tag": "amazonlinux", "tags": null, "stdout": "Copying blob sha256:99a21848b482c10fd4b103b7ab95e1446142e76e3dfa673efd0a23fb264ec5e5\\nCopying config sha256:e2c0b9bec08e6887cb8bf67884fcb5cc62bfa0fec17a732278ac18309d9a3c47\\nWriting manifest to image destination\\nStoring signatures\\n", "stderr": ""}
10	42	2	3	1	2022-01-28 03:59:18.34902	10.131.0.33	{"repo": "test", "namespace": "testorg", "user-agent": "skopeo/1.3.2-dev", "tag": "debian", "username": "testorg+aws", "is_robot": true, "resolved_ip": {"provider": "internet", "service": null, "sync_token": "1631687596", "country_iso_code": null}}
11	70	2	\N	1	2022-01-28 03:59:18.37165	\N	{"verb": "finish", "namespace": "testorg", "repo": "test", "message": "Source 'docker://quay.io/lzha/quaydemo:debian' successful sync", "tag": "debian", "tags": null, "stdout": "Copying blob sha256:bd8f6a7501ccbe80b95c82519ed6fd4f7236a41e0ae59ba4a8df76af24629efc\\nCopying config sha256:0d587dfbc4f4800bfe9ab08662e8396ffc37060c493f8ef24b2823fef3320df6\\nWriting manifest to image destination\\nStoring signatures\\n", "stderr": ""}
12	42	2	3	1	2022-01-28 03:59:28.923879	10.131.0.33	{"repo": "test", "namespace": "testorg", "user-agent": "skopeo/1.3.2-dev", "tag": "latest", "username": "testorg+aws", "is_robot": true, "resolved_ip": {"provider": "internet", "service": null, "sync_token": "1631687596", "country_iso_code": null}}
13	70	2	\N	1	2022-01-28 03:59:28.94009	\N	{"verb": "finish", "namespace": "testorg", "repo": "test", "message": "Source 'docker://quay.io/lzha/quaydemo:latest' successful sync", "tag": "latest", "tags": null, "stdout": "Copying blob sha256:3c2c91c7c4311eca863331479504040ee4f45fda9a610947b82886e7bbd5b737\\nCopying config sha256:53ef897d731f9a5673c083d0e86d7911f85d6e63bb2be2346b17bdbacdc58637\\nWriting manifest to image destination\\nStoring signatures\\n", "stderr": ""}
14	42	2	3	1	2022-01-28 03:59:48.65132	10.131.0.33	{"repo": "test", "namespace": "testorg", "user-agent": "skopeo/1.3.2-dev", "tag": "oraclelinux", "username": "testorg+aws", "is_robot": true, "resolved_ip": {"provider": "internet", "service": null, "sync_token": "1631687596", "country_iso_code": null}}
15	70	2	\N	1	2022-01-28 03:59:48.668571	\N	{"verb": "finish", "namespace": "testorg", "repo": "test", "message": "Source 'docker://quay.io/lzha/quaydemo:oraclelinux' successful sync", "tag": "oraclelinux", "tags": null, "stdout": "Copying blob sha256:dd34f38d274c37f470ba7f106237c6a95c7211be36678aa4e749ba45961f1e4c\\nCopying config sha256:816d99f0bbe8c6cca3d2935865e23e754483d2cface2476d21376a7c656d920f\\nWriting manifest to image destination\\nStoring signatures\\n", "stderr": ""}
16	42	2	3	1	2022-01-28 03:59:53.706358	10.131.0.33	{"repo": "test", "namespace": "testorg", "user-agent": "skopeo/1.3.2-dev", "tag": "photon", "username": "testorg+aws", "is_robot": true, "resolved_ip": {"provider": "internet", "service": null, "sync_token": "1631687596", "country_iso_code": null}}
17	70	2	\N	1	2022-01-28 03:59:53.721975	\N	{"verb": "finish", "namespace": "testorg", "repo": "test", "message": "Source 'docker://quay.io/lzha/quaydemo:photon' successful sync", "tag": "photon", "tags": null, "stdout": "Copying blob sha256:5b8d16cfb98918b19072cedfeb8e4978fd60635c705623c0417ca28328df674f\\nCopying config sha256:09e8512ca73d7a6b9e9089970971ebabbf790aaa069783f633646e9b97503df2\\nWriting manifest to image destination\\nStoring signatures\\n", "stderr": ""}
18	42	2	3	1	2022-01-28 04:00:26.896263	10.131.0.33	{"repo": "test", "namespace": "testorg", "user-agent": "skopeo/1.3.2-dev", "tag": "python3", "username": "testorg+aws", "is_robot": true, "resolved_ip": {"provider": "internet", "service": null, "sync_token": "1631687596", "country_iso_code": null}}
19	70	2	\N	1	2022-01-28 04:00:26.914208	\N	{"verb": "finish", "namespace": "testorg", "repo": "test", "message": "Source 'docker://quay.io/lzha/quaydemo:python3' successful sync", "tag": "python3", "tags": null, "stdout": "Copying blob sha256:bd8f6a7501ccbe80b95c82519ed6fd4f7236a41e0ae59ba4a8df76af24629efc\\nCopying blob sha256:1ecef690e281c31d68c3cd0628207e8b02fb0e60575604fc5436404d1007a75e\\nCopying blob sha256:3923d444ed0552ce73ef51fa235f1b45edafdec096abda6abab710637dac7ec6\\nCopying blob sha256:f37aabde37b87d272286df45e6a3145b0884b72e07e657bf1a2a1e74a92c6172\\nCopying blob sha256:efe9738af0cb2184ee8f3fb3dcb130455385aa428a27d14e1e07a5587ff16e64\\nCopying blob sha256:44718e6d535d365250316b02459f98a1b0fa490158cc53057d18858507504d60\\nCopying blob sha256:0649c5bd98518385dfa6b98f398c409f54f3c2744297d7cab30b03ecba9fcfb5\\nCopying blob sha256:d7a9fa72f19290251b0f5df9144f9da3b63189e321d4b0f330344b464f1168c8\\nCopying blob sha256:d1460947be4310d0aae84803ddd0a3c1e2fcdd1eccb455a01db6525fb70ddc67\\nCopying config sha256:49e3c70d884f2640959e0392c03f5352d852e673a28dca3b16d2d9c400149906\\nWriting manifest to image destination\\nStoring signatures\\n", "stderr": ""}
20	42	2	3	1	2022-01-28 04:00:34.041894	10.131.0.33	{"repo": "test", "namespace": "testorg", "user-agent": "skopeo/1.3.2-dev", "tag": "rhel7", "username": "testorg+aws", "is_robot": true, "resolved_ip": {"provider": "internet", "service": null, "sync_token": "1631687596", "country_iso_code": null}}
22	42	2	3	1	2022-01-28 04:00:58.445992	10.129.2.23	{"repo": "test", "namespace": "testorg", "user-agent": "skopeo/1.3.2-dev", "tag": "suse", "username": "testorg+aws", "is_robot": true, "resolved_ip": {"provider": "internet", "service": null, "sync_token": "1631687596", "country_iso_code": null}}
21	70	2	\N	1	2022-01-28 04:00:34.05877	\N	{"verb": "finish", "namespace": "testorg", "repo": "test", "message": "Source 'docker://quay.io/lzha/quaydemo:rhel7' successful sync", "tag": "rhel7", "tags": null, "stdout": "Copying blob sha256:d000cbac530403b7c2253313b0d8a847611ed575ab1e48c3c635271732726d80\\nCopying blob sha256:c6f5fb9b6d3e1e5915172521ed92e1bb8ea9952bf04eaadcea36f55f45d09cf4\\nCopying config sha256:99a3db928eb59baffb349fc298559eb84f48eab25c31d837a227376c9b9f78f9\\nWriting manifest to image destination\\nStoring signatures\\n", "stderr": ""}
23	70	2	\N	1	2022-01-28 04:00:58.462735	\N	{"verb": "finish", "namespace": "testorg", "repo": "test", "message": "Source 'docker://quay.io/lzha/quaydemo:suse' successful sync", "tag": "suse", "tags": null, "stdout": "Copying blob sha256:bb0005c3d7295f7b42b8151e773c939cacc3aff9beb39adc1832834f62dffd67\\nCopying config sha256:29db5464de2dc3cb69fdde6ad0839363ef1bc97d790c0e5742e05bf862c0b592\\nWriting manifest to image destination\\nStoring signatures\\n", "stderr": ""}
24	42	2	3	1	2022-01-28 04:01:06.748741	10.129.2.23	{"repo": "test", "namespace": "testorg", "user-agent": "skopeo/1.3.2-dev", "tag": "ubuntu", "username": "testorg+aws", "is_robot": true, "resolved_ip": {"provider": "internet", "service": null, "sync_token": "1631687596", "country_iso_code": null}}
25	70	2	\N	1	2022-01-28 04:01:06.768783	\N	{"verb": "finish", "namespace": "testorg", "repo": "test", "message": "Source 'docker://quay.io/lzha/quaydemo:ubuntu' successful sync", "tag": "ubuntu", "tags": null, "stdout": "Copying blob sha256:10e6159c56c084c858f5de2416454ac0a49ddda47b764e4379c5d5a147c9bf5f\\nCopying blob sha256:c4394a92d1f8760cf7d17fee0bcee732c94c5b858dd8d19c7ff02beecf3b4e83\\nCopying blob sha256:a70d879fa5984474288d52009479054b8bb2993de2a1859f43b5480600cecb24\\nCopying config sha256:26b77e58432b01665d7e876248c9056fa58bf4a7ab82576a024f5cf3dac146d6\\nWriting manifest to image destination\\nStoring signatures\\n", "stderr": ""}
26	68	2	\N	1	2022-01-28 04:01:06.791652	\N	{"verb": "end", "namespace": "testorg", "repo": "test", "message": "'quay.io/lzha/quaydemo' with tag pattern '*'", "tag": null, "tags": "alpine, amazonlinux, debian, latest, oraclelinux, photon, python3, rhel7, suse, ubuntu", "stdout": null, "stderr": null}
\.


--
-- Data for Name: logentrykind; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.logentrykind (id, name) FROM stdin;
1	account_change_cc
2	account_change_password
3	account_change_plan
4	account_convert
5	add_repo_accesstoken
6	add_repo_notification
7	add_repo_permission
8	add_repo_webhook
9	build_dockerfile
10	change_repo_permission
11	change_repo_visibility
12	create_application
13	create_prototype_permission
14	create_repo
15	create_robot
16	create_tag
17	delete_application
18	delete_prototype_permission
19	delete_repo
20	delete_repo_accesstoken
21	delete_repo_notification
22	delete_repo_permission
23	delete_repo_trigger
24	delete_repo_webhook
25	delete_robot
26	delete_tag
27	manifest_label_add
28	manifest_label_delete
29	modify_prototype_permission
30	move_tag
31	org_add_team_member
32	org_create_team
33	org_delete_team
34	org_delete_team_member_invite
35	org_invite_team_member
36	org_remove_team_member
37	org_set_team_description
38	org_set_team_role
39	org_team_member_invite_accepted
40	org_team_member_invite_declined
41	pull_repo
42	push_repo
43	regenerate_robot_token
44	repo_verb
45	reset_application_client_secret
46	revert_tag
47	service_key_approve
48	service_key_create
49	service_key_delete
50	service_key_extend
51	service_key_modify
52	service_key_rotate
53	setup_repo_trigger
54	set_repo_description
55	take_ownership
56	update_application
57	change_repo_trust
58	reset_repo_notification
59	change_tag_expiration
60	create_app_specific_token
61	revoke_app_specific_token
62	toggle_repo_trigger
63	repo_mirror_enabled
64	repo_mirror_disabled
65	repo_mirror_config_changed
66	repo_mirror_sync_started
67	repo_mirror_sync_failed
68	repo_mirror_sync_success
69	repo_mirror_sync_now_requested
70	repo_mirror_sync_tag_success
71	repo_mirror_sync_tag_failed
72	repo_mirror_sync_test_success
73	repo_mirror_sync_test_failed
74	repo_mirror_sync_test_started
75	change_repo_state
\.


--
-- Data for Name: loginservice; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.loginservice (id, name) FROM stdin;
1	github
2	quayrobot
3	ldap
4	google
5	keystone
6	dex
7	jwtauthn
\.


--
-- Data for Name: manifest; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.manifest (id, repository_id, digest, media_type_id, manifest_bytes, config_media_type, layers_compressed_size) FROM stdin;
1	1	sha256:def822f9851ca422481ec6fee59a9966f12b351c62ccb9aca841526ffaa9f748	16	{\n   "schemaVersion": 2,\n   "mediaType": "application/vnd.docker.distribution.manifest.v2+json",\n   "config": {\n      "mediaType": "application/vnd.docker.container.image.v1+json",\n      "size": 1472,\n      "digest": "sha256:6dbb9cc54074106d46d4ccb330f2a40a682d49dda5f4844962b7dce9fe44aaec"\n   },\n   "layers": [\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 2811969,\n         "digest": "sha256:540db60ca9383eac9e418f78490994d0af424aab7bf6d0e47ac8ed4e2e9bcbba"\n      }\n   ]\n}	application/vnd.docker.container.image.v1+json	2811969
2	1	sha256:bfc3ba0cc5604df7e13d85e39a2a27a1dc93885f24184423524adf50a4ecd916	16	{\n   "schemaVersion": 2,\n   "mediaType": "application/vnd.docker.distribution.manifest.v2+json",\n   "config": {\n      "mediaType": "application/vnd.docker.container.image.v1+json",\n      "size": 1478,\n      "digest": "sha256:e2c0b9bec08e6887cb8bf67884fcb5cc62bfa0fec17a732278ac18309d9a3c47"\n   },\n   "layers": [\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 61946585,\n         "digest": "sha256:99a21848b482c10fd4b103b7ab95e1446142e76e3dfa673efd0a23fb264ec5e5"\n      }\n   ]\n}	application/vnd.docker.container.image.v1+json	61946585
3	1	sha256:fa335fed387465ccc369958d7908e1975e7d65677f7f3050d862161754ebcf90	16	{\n   "schemaVersion": 2,\n   "mediaType": "application/vnd.docker.distribution.manifest.v2+json",\n   "config": {\n      "mediaType": "application/vnd.docker.container.image.v1+json",\n      "size": 1463,\n      "digest": "sha256:0d587dfbc4f4800bfe9ab08662e8396ffc37060c493f8ef24b2823fef3320df6"\n   },\n   "layers": [\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 50432971,\n         "digest": "sha256:bd8f6a7501ccbe80b95c82519ed6fd4f7236a41e0ae59ba4a8df76af24629efc"\n      }\n   ]\n}	application/vnd.docker.container.image.v1+json	50432971
4	1	sha256:930034b169a5d135367a750be2bb7ecf2d6eff2283b74fc7125c22668fad9a92	16	{\n   "schemaVersion": 2,\n   "mediaType": "application/vnd.docker.distribution.manifest.v2+json",\n   "config": {\n      "mediaType": "application/vnd.docker.container.image.v1+json",\n      "size": 1478,\n      "digest": "sha256:53ef897d731f9a5673c083d0e86d7911f85d6e63bb2be2346b17bdbacdc58637"\n   },\n   "layers": [\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 61947132,\n         "digest": "sha256:3c2c91c7c4311eca863331479504040ee4f45fda9a610947b82886e7bbd5b737"\n      }\n   ]\n}	application/vnd.docker.container.image.v1+json	61947132
5	1	sha256:71f3708ae917523db4450607cc26c2f2c7942bdd28487c9e80bcc20c4eeb60c8	16	{\n   "schemaVersion": 2,\n   "mediaType": "application/vnd.docker.distribution.manifest.v2+json",\n   "config": {\n      "mediaType": "application/vnd.docker.container.image.v1+json",\n      "size": 1478,\n      "digest": "sha256:816d99f0bbe8c6cca3d2935865e23e754483d2cface2476d21376a7c656d920f"\n   },\n   "layers": [\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 81847982,\n         "digest": "sha256:dd34f38d274c37f470ba7f106237c6a95c7211be36678aa4e749ba45961f1e4c"\n      }\n   ]\n}	application/vnd.docker.container.image.v1+json	81847982
6	1	sha256:9834f91dcdbb540d23053b0a4267b50618a950ffa75309b2d7f72414f0b312f1	16	{\n   "schemaVersion": 2,\n   "mediaType": "application/vnd.docker.distribution.manifest.v2+json",\n   "config": {\n      "mediaType": "application/vnd.docker.container.image.v1+json",\n      "size": 1815,\n      "digest": "sha256:09e8512ca73d7a6b9e9089970971ebabbf790aaa069783f633646e9b97503df2"\n   },\n   "layers": [\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 15776487,\n         "digest": "sha256:5b8d16cfb98918b19072cedfeb8e4978fd60635c705623c0417ca28328df674f"\n      }\n   ]\n}	application/vnd.docker.container.image.v1+json	15776487
7	1	sha256:b004a71e38f8ace26e7554d5c2fa802a8bb39a5818cbe10ab49fd0b408a40c20	16	{\n   "schemaVersion": 2,\n   "mediaType": "application/vnd.docker.distribution.manifest.v2+json",\n   "config": {\n      "mediaType": "application/vnd.docker.container.image.v1+json",\n      "size": 8341,\n      "digest": "sha256:49e3c70d884f2640959e0392c03f5352d852e673a28dca3b16d2d9c400149906"\n   },\n   "layers": [\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 50432971,\n         "digest": "sha256:bd8f6a7501ccbe80b95c82519ed6fd4f7236a41e0ae59ba4a8df76af24629efc"\n      },\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 7832944,\n         "digest": "sha256:44718e6d535d365250316b02459f98a1b0fa490158cc53057d18858507504d60"\n      },\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 9997183,\n         "digest": "sha256:efe9738af0cb2184ee8f3fb3dcb130455385aa428a27d14e1e07a5587ff16e64"\n      },\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 51841093,\n         "digest": "sha256:f37aabde37b87d272286df45e6a3145b0884b72e07e657bf1a2a1e74a92c6172"\n      },\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 192350897,\n         "digest": "sha256:3923d444ed0552ce73ef51fa235f1b45edafdec096abda6abab710637dac7ec6"\n      },\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 6145912,\n         "digest": "sha256:1ecef690e281c31d68c3cd0628207e8b02fb0e60575604fc5436404d1007a75e"\n      },\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 19148354,\n         "digest": "sha256:0649c5bd98518385dfa6b98f398c409f54f3c2744297d7cab30b03ecba9fcfb5"\n      },\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 233,\n         "digest": "sha256:d7a9fa72f19290251b0f5df9144f9da3b63189e321d4b0f330344b464f1168c8"\n      },\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 2164749,\n         "digest": "sha256:d1460947be4310d0aae84803ddd0a3c1e2fcdd1eccb455a01db6525fb70ddc67"\n      }\n   ]\n}	application/vnd.docker.container.image.v1+json	339914336
8	1	sha256:d26773b0614ef0474ccb2e356f7e6756d10ed57773db716fe32c3b4d362f56e4	16	{\n   "schemaVersion": 2,\n   "mediaType": "application/vnd.docker.distribution.manifest.v2+json",\n   "config": {\n      "mediaType": "application/vnd.docker.container.image.v1+json",\n      "size": 4476,\n      "digest": "sha256:99a3db928eb59baffb349fc298559eb84f48eab25c31d837a227376c9b9f78f9"\n   },\n   "layers": [\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 32319569,\n         "digest": "sha256:c6f5fb9b6d3e1e5915172521ed92e1bb8ea9952bf04eaadcea36f55f45d09cf4"\n      },\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 1408,\n         "digest": "sha256:d000cbac530403b7c2253313b0d8a847611ed575ab1e48c3c635271732726d80"\n      }\n   ]\n}	application/vnd.docker.container.image.v1+json	32320977
9	1	sha256:da623f0ffc2178fc63ab2030eb3e5733d8d4e490a3960ab4cee0d97c9e73ed16	16	{\n   "schemaVersion": 2,\n   "mediaType": "application/vnd.docker.distribution.manifest.v2+json",\n   "config": {\n      "mediaType": "application/vnd.docker.container.image.v1+json",\n      "size": 1698,\n      "digest": "sha256:29db5464de2dc3cb69fdde6ad0839363ef1bc97d790c0e5742e05bf862c0b592"\n   },\n   "layers": [\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 46698741,\n         "digest": "sha256:bb0005c3d7295f7b42b8151e773c939cacc3aff9beb39adc1832834f62dffd67"\n      }\n   ]\n}	application/vnd.docker.container.image.v1+json	46698741
10	1	sha256:5403064f94b617f7975a19ba4d1a1299fd584397f6ee4393d0e16744ed11aab1	16	{\n   "schemaVersion": 2,\n   "mediaType": "application/vnd.docker.distribution.manifest.v2+json",\n   "config": {\n      "mediaType": "application/vnd.docker.container.image.v1+json",\n      "size": 3316,\n      "digest": "sha256:26b77e58432b01665d7e876248c9056fa58bf4a7ab82576a024f5cf3dac146d6"\n   },\n   "layers": [\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 28569016,\n         "digest": "sha256:a70d879fa5984474288d52009479054b8bb2993de2a1859f43b5480600cecb24"\n      },\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 848,\n         "digest": "sha256:c4394a92d1f8760cf7d17fee0bcee732c94c5b858dd8d19c7ff02beecf3b4e83"\n      },\n      {\n         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",\n         "size": 187,\n         "digest": "sha256:10e6159c56c084c858f5de2416454ac0a49ddda47b764e4379c5d5a147c9bf5f"\n      }\n   ]\n}	application/vnd.docker.container.image.v1+json	28570051
\.


--
-- Data for Name: manifestblob; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.manifestblob (id, repository_id, manifest_id, blob_id) FROM stdin;
1	1	1	1
2	1	1	2
3	1	2	3
4	1	2	4
5	1	3	6
6	1	3	7
7	1	4	8
8	1	4	9
9	1	5	10
10	1	5	11
11	1	6	12
12	1	6	13
13	1	7	6
14	1	7	14
15	1	7	15
16	1	7	16
17	1	7	17
18	1	7	18
19	1	7	19
20	1	7	20
21	1	7	21
22	1	7	22
23	1	8	24
24	1	8	25
25	1	8	23
26	1	9	26
27	1	9	27
28	1	10	28
29	1	10	29
30	1	10	30
31	1	10	31
\.


--
-- Data for Name: manifestchild; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.manifestchild (id, repository_id, manifest_id, child_manifest_id) FROM stdin;
\.


--
-- Data for Name: manifestlabel; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.manifestlabel (id, repository_id, manifest_id, label_id) FROM stdin;
1	1	6	1
2	1	6	2
3	1	6	3
4	1	8	4
5	1	8	5
6	1	8	6
7	1	8	7
8	1	8	8
9	1	8	9
10	1	8	10
11	1	8	11
12	1	8	12
13	1	8	13
14	1	8	14
15	1	8	15
16	1	8	16
17	1	8	17
18	1	8	18
19	1	8	19
20	1	8	20
21	1	8	21
22	1	8	22
23	1	9	23
24	1	9	24
25	1	9	25
26	1	9	26
27	1	9	27
28	1	9	28
29	1	9	29
30	1	9	30
31	1	9	31
32	1	9	32
33	1	9	33
34	1	9	34
35	1	9	35
36	1	9	36
37	1	9	37
38	1	9	38
\.


--
-- Data for Name: manifestlegacyimage; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.manifestlegacyimage (id, repository_id, manifest_id, image_id) FROM stdin;
\.


--
-- Data for Name: manifestsecuritystatus; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.manifestsecuritystatus (id, manifest_id, repository_id, index_status, error_json, last_indexed, indexer_hash, indexer_version, metadata_json) FROM stdin;
1	1	1	2	""	2022-01-28 03:59:07.741773	cae7d2cc4be8ae68b4f01830e017c5de	4	{}
2	2	1	2	""	2022-01-28 03:59:15.438413	cae7d2cc4be8ae68b4f01830e017c5de	4	{}
3	3	1	2	""	2022-01-28 03:59:41.62852	cae7d2cc4be8ae68b4f01830e017c5de	4	{}
4	4	1	2	""	2022-01-28 03:59:48.475403	cae7d2cc4be8ae68b4f01830e017c5de	4	{}
5	5	1	2	""	2022-01-28 04:00:14.799928	cae7d2cc4be8ae68b4f01830e017c5de	4	{}
6	6	1	2	""	2022-01-28 04:00:16.952948	cae7d2cc4be8ae68b4f01830e017c5de	4	{}
7	7	1	2	""	2022-01-28 04:00:57.729654	cae7d2cc4be8ae68b4f01830e017c5de	4	{}
8	8	1	2	""	2022-01-28 04:01:02.059774	cae7d2cc4be8ae68b4f01830e017c5de	4	{}
9	9	1	2	""	2022-01-28 04:01:11.504134	cae7d2cc4be8ae68b4f01830e017c5de	4	{}
10	10	1	2	""	2022-01-28 04:01:39.632843	cae7d2cc4be8ae68b4f01830e017c5de	4	{}
\.


--
-- Data for Name: mediatype; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.mediatype (id, name) FROM stdin;
1	text/plain
2	application/json
3	text/markdown
4	application/vnd.cnr.blob.v0.tar+gzip
5	application/vnd.cnr.package-manifest.helm.v0.json
6	application/vnd.cnr.package-manifest.kpm.v0.json
7	application/vnd.cnr.package-manifest.docker-compose.v0.json
8	application/vnd.cnr.package.kpm.v0.tar+gzip
9	application/vnd.cnr.package.helm.v0.tar+gzip
10	application/vnd.cnr.package.docker-compose.v0.tar+gzip
11	application/vnd.cnr.manifests.v0.json
12	application/vnd.cnr.manifest.list.v0.json
13	application/vnd.docker.distribution.manifest.v1+json
14	application/vnd.docker.distribution.manifest.v1+prettyjws
15	application/vnd.docker.distribution.manifest.list.v2+json
16	application/vnd.docker.distribution.manifest.v2+json
17	application/vnd.oci.image.index.v1+json
18	application/vnd.oci.image.manifest.v1+json
\.


--
-- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.messages (id, content, uuid, media_type_id, severity) FROM stdin;
\.


--
-- Data for Name: namespacegeorestriction; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.namespacegeorestriction (id, namespace_id, added, description, unstructured_json, restricted_region_iso_code) FROM stdin;
\.


--
-- Data for Name: notification; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.notification (id, uuid, kind_id, target_id, metadata_json, created, dismissed, lookup_path) FROM stdin;
\.


--
-- Data for Name: notificationkind; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.notificationkind (id, name) FROM stdin;
1	build_failure
2	build_queued
3	build_start
4	build_success
5	expiring_license
6	maintenance
7	org_team_invite
8	over_private_usage
9	password_required
10	repo_push
11	service_key_submitted
12	vulnerability_found
13	build_cancelled
14	repo_mirror_sync_started
15	repo_mirror_sync_success
16	repo_mirror_sync_failed
\.


--
-- Data for Name: oauthaccesstoken; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.oauthaccesstoken (id, uuid, application_id, authorized_user_id, scope, token_type, expires_at, data, token_code, token_name) FROM stdin;
\.


--
-- Data for Name: oauthapplication; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.oauthapplication (id, client_id, redirect_uri, application_uri, organization_id, name, description, gravatar_email, secure_client_secret, fully_migrated) FROM stdin;
\.


--
-- Data for Name: oauthauthorizationcode; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.oauthauthorizationcode (id, application_id, scope, data, code_credential, code_name) FROM stdin;
\.


--
-- Data for Name: permissionprototype; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.permissionprototype (id, org_id, uuid, activating_user_id, delegate_user_id, delegate_team_id, role_id) FROM stdin;
\.


--
-- Data for Name: quayregion; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.quayregion (id, name) FROM stdin;
\.


--
-- Data for Name: quayrelease; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.quayrelease (id, service_id, version, region_id, reverted, created) FROM stdin;
\.


--
-- Data for Name: quayservice; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.quayservice (id, name) FROM stdin;
\.


--
-- Data for Name: queueitem; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.queueitem (id, queue_name, body, available_after, available, processing_expires, retries_remaining, state_id) FROM stdin;
\.


--
-- Data for Name: repomirrorconfig; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.repomirrorconfig (id, repository_id, creation_date, is_enabled, mirror_type, internal_robot_id, external_registry_username, external_registry_password, external_registry_config, sync_interval, sync_start_date, sync_expiration_date, sync_retries_remaining, sync_status, sync_transaction_id, root_rule_id, external_reference) FROM stdin;
1	1	2022-01-28 03:58:21.712674	t	1	3	\N	\N	{"verify_tls": true, "proxy": {"http_proxy": null, "https_proxy": null, "no_proxy": null}}	86400	2022-01-29 03:58:00.798883	\N	3	1	362f4224-1370-4de4-81bc-d3d7e54fef0f	1	quay.io/lzha/quaydemo
\.


--
-- Data for Name: repomirrorrule; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.repomirrorrule (id, uuid, repository_id, creation_date, rule_type, rule_value, left_child_id, right_child_id) FROM stdin;
1	69860802-4e45-43d6-925a-9d896af1fe48	1	2022-01-28 03:58:21.680986	1	["*"]	\N	\N
\.


--
-- Data for Name: repository; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.repository (id, namespace_user_id, name, visibility_id, description, badge_token, kind_id, trust_enabled, state) FROM stdin;
1	2	test	2		ca4b45ad-541f-4a81-9933-ad7650b2bcc9	1	f	2
\.


--
-- Data for Name: repositoryactioncount; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.repositoryactioncount (id, repository_id, count, date) FROM stdin;
1	1	0	2022-01-27
\.


--
-- Data for Name: repositoryauthorizedemail; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.repositoryauthorizedemail (id, repository_id, email, code, confirmed) FROM stdin;
\.


--
-- Data for Name: repositorybuild; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.repositorybuild (id, uuid, repository_id, access_token_id, resource_key, job_config, phase, started, display_name, trigger_id, pull_robot_id, logs_archived, queue_id) FROM stdin;
\.


--
-- Data for Name: repositorybuildtrigger; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.repositorybuildtrigger (id, uuid, service_id, repository_id, connected_user_id, config, write_token_id, pull_robot_id, disabled_reason_id, enabled, successive_failure_count, successive_internal_error_count, disabled_datetime, secure_auth_token, secure_private_key, fully_migrated) FROM stdin;
\.


--
-- Data for Name: repositorykind; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.repositorykind (id, name) FROM stdin;
1	image
2	application
\.


--
-- Data for Name: repositorynotification; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.repositorynotification (id, uuid, repository_id, event_id, method_id, title, config_json, event_config_json, number_of_failures) FROM stdin;
\.


--
-- Data for Name: repositorypermission; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.repositorypermission (id, team_id, user_id, repository_id, role_id) FROM stdin;
1	\N	1	1	1
2	\N	3	1	2
\.


--
-- Data for Name: repositorysearchscore; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.repositorysearchscore (id, repository_id, score, last_updated) FROM stdin;
1	1	0	\N
\.


--
-- Data for Name: repositorytag; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.repositorytag (id, name, image_id, repository_id, lifetime_start_ts, lifetime_end_ts, hidden, reversion) FROM stdin;
\.


--
-- Data for Name: robotaccountmetadata; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.robotaccountmetadata (id, robot_account_id, description, unstructured_json) FROM stdin;
1	3		{}
\.


--
-- Data for Name: robotaccounttoken; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.robotaccounttoken (id, robot_account_id, token, fully_migrated) FROM stdin;
1	3	v0$$uRouQd3i+xSz8q2SBYiQqcd4kPvXRMmLa9e1u1hv2z/OjimQyivWNbRPuys15nqLJAIuMEWrHC2fRVScxvd8vnLmysJRrZtAEjZcOMgekCsjvj1yG7egiHeEN4xj	t
\.


--
-- Data for Name: role; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.role (id, name) FROM stdin;
1	admin
2	write
3	read
\.


--
-- Data for Name: servicekey; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.servicekey (id, name, kid, service, jwk, metadata, created_date, expiration_date, rotation_duration, approval_id) FROM stdin;
2	https://quayregistry-quay-quay357.apps.quay-perf-796.perfscale.devcluster.openshift.com:443	bTYnZP8ZLb-lXdBnX3L0b_YSmQwgP4a6bA6d7YTOgQQ	quay	{"n": "34jyvrH74FGZ_Yy09XzLd-X-OdTlUURCMHbdKYgP_jsy8mtxC6cN1I2Kj2895iUJX5jD6iJmcgRPQUUF_fkRLU1aDEgB3Vq-MMSWBj4neOfGhtVQBQhCUu0EP9IvViuUE7x5RZjs5nSiQaOpVAJVX-45IxGKCGNqAwLzQ_R82WpGKcLoKEydTv7roVxe_Ti9emKWxkz9VH_1ClQ0qVUBLiTyt9RPKo9nUysRohRouaSpEsTv-5VP1zVhzGSZM791m2Ri0OFrA06LLQyD8DxYQC_Fs5SNxJNuEwdA93E9MH-lfc1CJH_PgiK7uT2Z9NRYosEOfw_4F6gMZeGB4x-icQ", "e": "AQAB", "kty": "RSA", "kid": "bTYnZP8ZLb-lXdBnX3L0b_YSmQwgP4a6bA6d7YTOgQQ"}	{"created_by": "CLI tool"}	2022-01-28 03:55:46.20129	2022-01-28 05:55:46.087455	\N	2
1	https://quayregistry-quay-quay357.apps.quay-perf-796.perfscale.devcluster.openshift.com:443	XAsmCJBfNqCbhhJ8fEIs2bqB0k5V4nG-KBZDg_UpZ5E	quay	{"n": "tLdI4gHnODwCxQOfaQ5xcQmduhNRWhSVVTU62c8Wkn8HIxzBChfhED3C6ws6471jcqBdZDb-60RbbZbYnx5EOjS-R190pfeTb2vciyHESrZ7Ggad42xHrOUOBS18CzMvljI_8eyY38-JtvA8zdpkNF_r8n1bhAtQxCHjQwTNHCQzGWC1NJcRL-zB8Sqq-KGal_MtKza3urpRvQbAT2QL7tnXa4LQdQTDRdq6jpiBuqxrLlhpL92i5W6EEexoitk2fhnjMVpAewbnXf4r3eRGa3fHCY1vJixfxnZ7A9LV6BnwzTEfQlqrHAD_ZLDQMqr9JLyhz4BKxsMBUvA-XfO4gw", "e": "AQAB", "kty": "RSA", "kid": "XAsmCJBfNqCbhhJ8fEIs2bqB0k5V4nG-KBZDg_UpZ5E"}	{"created_by": "CLI tool"}	2022-01-28 03:55:12.722723	2022-01-28 06:06:09.345296	\N	1
\.


--
-- Data for Name: servicekeyapproval; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.servicekeyapproval (id, approver_id, approval_type, approved_date, notes) FROM stdin;
1	\N	ServiceKeyApprovalType.AUTOMATIC	2022-01-28 03:55:12.730269	
2	\N	ServiceKeyApprovalType.AUTOMATIC	2022-01-28 03:55:46.20529	
\.


--
-- Data for Name: star; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.star (id, user_id, repository_id, created) FROM stdin;
1	1	1	2022-01-28 04:00:30.237425
\.


--
-- Data for Name: tag; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.tag (id, name, repository_id, manifest_id, lifetime_start_ms, lifetime_end_ms, hidden, reversion, tag_kind_id, linked_tag_id) FROM stdin;
1	alpine	1	1	1643342334803	\N	f	f	1	\N
2	amazonlinux	1	2	1643342344911	\N	f	f	1	\N
3	debian	1	3	1643342358339	\N	f	f	1	\N
4	latest	1	4	1643342368916	\N	f	f	1	\N
5	oraclelinux	1	5	1643342388643	\N	f	f	1	\N
6	photon	1	6	1643342393699	\N	f	f	1	\N
7	python3	1	7	1643342426887	\N	f	f	1	\N
8	rhel7	1	8	1643342434034	\N	f	f	1	\N
9	suse	1	9	1643342458438	\N	f	f	1	\N
10	ubuntu	1	10	1643342466737	\N	f	f	1	\N
\.


--
-- Data for Name: tagkind; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.tagkind (id, name) FROM stdin;
1	tag
\.


--
-- Data for Name: tagmanifest; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.tagmanifest (id, tag_id, digest, json_data) FROM stdin;
\.


--
-- Data for Name: tagmanifestlabel; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.tagmanifestlabel (id, repository_id, annotated_id, label_id) FROM stdin;
\.


--
-- Data for Name: tagmanifestlabelmap; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.tagmanifestlabelmap (id, tag_manifest_id, manifest_id, label_id, tag_manifest_label_id, manifest_label_id, broken_manifest) FROM stdin;
\.


--
-- Data for Name: tagmanifesttomanifest; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.tagmanifesttomanifest (id, tag_manifest_id, manifest_id, broken) FROM stdin;
\.


--
-- Data for Name: tagtorepositorytag; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.tagtorepositorytag (id, repository_id, tag_id, repository_tag_id) FROM stdin;
\.


--
-- Data for Name: team; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.team (id, name, organization_id, role_id, description) FROM stdin;
1	owners	2	1	
\.


--
-- Data for Name: teammember; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.teammember (id, user_id, team_id) FROM stdin;
1	1	1
\.


--
-- Data for Name: teammemberinvite; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.teammemberinvite (id, user_id, email, team_id, inviter_id, invite_token) FROM stdin;
\.


--
-- Data for Name: teamrole; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.teamrole (id, name) FROM stdin;
1	admin
2	creator
3	member
\.


--
-- Data for Name: teamsync; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.teamsync (id, team_id, transaction_id, last_updated, service_id, config) FROM stdin;
\.


--
-- Data for Name: torrentinfo; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.torrentinfo (id, storage_id, piece_length, pieces) FROM stdin;
\.


--
-- Data for Name: uploadedblob; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.uploadedblob (id, repository_id, blob_id, uploaded_at, expires_at) FROM stdin;
1	1	1	2022-01-28 03:58:53.528169	2022-01-28 04:58:53.528144
2	1	2	2022-01-28 03:58:54.661353	2022-01-28 04:58:54.661322
3	1	3	2022-01-28 03:59:03.830465	2022-01-28 04:59:03.830452
4	1	4	2022-01-28 03:59:04.773257	2022-01-28 04:59:04.773209
5	1	6	2022-01-28 03:59:17.208087	2022-01-28 04:59:17.208073
6	1	7	2022-01-28 03:59:18.2113	2022-01-28 04:59:18.211287
7	1	8	2022-01-28 03:59:27.859508	2022-01-28 04:59:27.859494
8	1	9	2022-01-28 03:59:28.789282	2022-01-28 04:59:28.789269
9	1	10	2022-01-28 03:59:47.572269	2022-01-28 04:59:47.572251
10	1	11	2022-01-28 03:59:48.52287	2022-01-28 04:59:48.522857
11	1	12	2022-01-28 03:59:52.623124	2022-01-28 04:59:52.623102
12	1	13	2022-01-28 03:59:53.566061	2022-01-28 04:59:53.566046
13	1	14	2022-01-28 03:59:57.657742	2022-01-28 04:59:57.657723
14	1	15	2022-01-28 03:59:57.840339	2022-01-28 04:59:57.840322
15	1	16	2022-01-28 03:59:59.963126	2022-01-28 04:59:59.963111
16	1	17	2022-01-28 04:00:00.074389	2022-01-28 05:00:00.074364
17	1	18	2022-01-28 04:00:00.699768	2022-01-28 05:00:00.699752
18	1	19	2022-01-28 04:00:02.150822	2022-01-28 05:00:02.150806
19	1	20	2022-01-28 04:00:07.253972	2022-01-28 05:00:07.253956
20	1	21	2022-01-28 04:00:25.589501	2022-01-28 05:00:25.589474
21	1	22	2022-01-28 04:00:26.756161	2022-01-28 05:00:26.756148
22	1	23	2022-01-28 04:00:29.03799	2022-01-28 05:00:29.037974
23	1	24	2022-01-28 04:00:32.869194	2022-01-28 05:00:32.869182
24	1	25	2022-01-28 04:00:33.80615	2022-01-28 05:00:33.806137
25	1	26	2022-01-28 04:00:56.981929	2022-01-28 05:00:56.981916
26	1	27	2022-01-28 04:00:58.021107	2022-01-28 05:00:58.021094
27	1	28	2022-01-28 04:01:00.818526	2022-01-28 05:01:00.818511
28	1	29	2022-01-28 04:01:00.855258	2022-01-28 05:01:00.855244
29	1	30	2022-01-28 04:01:04.494725	2022-01-28 05:01:04.494712
30	1	31	2022-01-28 04:01:06.579315	2022-01-28 05:01:06.579296
\.


--
-- Data for Name: user; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public."user" (id, uuid, username, password_hash, email, verified, stripe_id, organization, robot, invoice_email, invalid_login_attempts, last_invalid_login, removed_tag_expiration_s, enabled, invoice_email_address, company, family_name, given_name, location, maximum_queued_builds_count, creation_date, last_accessed) FROM stdin;
1	f76be203-16b2-4367-929f-768894282c26	quay	$2b$12$FjiaTnvcZIzJri7OY6G1vOIgoe9Gtj0qEBHArXMrJh512LmA2qaWq	quay@redhat.com	t	\N	f	f	f	0	2022-01-28 03:57:34.103244	1209600	t	\N	\N	\N	\N	\N	\N	2022-01-28 03:57:34.103248	\N
2	1b88ab93-9804-4cbe-bbce-1cccdf13f3b1	testorg	\N	63a5d26b-9068-4a26-929c-c68495d1820f	f	\N	t	f	f	0	2022-01-28 03:57:50.718769	1209600	t	\N	\N	\N	\N	\N	\N	2022-01-28 03:57:50.718772	\N
3	9addca00-0db4-4f89-8edf-f1a7e9da1862	testorg+aws	\N	0f01f738-2d22-477f-b9b0-cc1903951c13	f	\N	f	t	f	0	2022-01-28 03:58:18.400078	1209600	t	\N	\N	\N	\N	\N	\N	2022-01-28 03:58:18.40008	2022-01-28 04:00:59.552489
\.


--
-- Data for Name: userprompt; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.userprompt (id, user_id, kind_id) FROM stdin;
\.


--
-- Data for Name: userpromptkind; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.userpromptkind (id, name) FROM stdin;
1	confirm_username
2	enter_name
3	enter_company
\.


--
-- Data for Name: userregion; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.userregion (id, user_id, location_id) FROM stdin;
\.


--
-- Data for Name: visibility; Type: TABLE DATA; Schema: public; Owner: quayregistry-quay-database
--

COPY public.visibility (id, name) FROM stdin;
1	public
2	private
\.


--
-- Name: accesstoken_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.accesstoken_id_seq', 1, false);


--
-- Name: accesstokenkind_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.accesstokenkind_id_seq', 2, true);


--
-- Name: apprblob_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.apprblob_id_seq', 1, false);


--
-- Name: apprblobplacement_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.apprblobplacement_id_seq', 1, false);


--
-- Name: apprblobplacementlocation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.apprblobplacementlocation_id_seq', 3, false);


--
-- Name: apprmanifest_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.apprmanifest_id_seq', 1, false);


--
-- Name: apprmanifestblob_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.apprmanifestblob_id_seq', 1, false);


--
-- Name: apprmanifestlist_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.apprmanifestlist_id_seq', 1, false);


--
-- Name: apprmanifestlistmanifest_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.apprmanifestlistmanifest_id_seq', 1, false);


--
-- Name: apprtag_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.apprtag_id_seq', 1, false);


--
-- Name: apprtagkind_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.apprtagkind_id_seq', 4, false);


--
-- Name: appspecificauthtoken_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.appspecificauthtoken_id_seq', 1, false);


--
-- Name: blobupload_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.blobupload_id_seq', 30, true);


--
-- Name: buildtriggerservice_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.buildtriggerservice_id_seq', 4, true);


--
-- Name: deletednamespace_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.deletednamespace_id_seq', 1, false);


--
-- Name: deletedrepository_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.deletedrepository_id_seq', 1, false);


--
-- Name: derivedstorageforimage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.derivedstorageforimage_id_seq', 1, false);


--
-- Name: disablereason_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.disablereason_id_seq', 1, false);


--
-- Name: emailconfirmation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.emailconfirmation_id_seq', 1, false);


--
-- Name: externalnotificationevent_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.externalnotificationevent_id_seq', 10, true);


--
-- Name: externalnotificationmethod_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.externalnotificationmethod_id_seq', 6, true);


--
-- Name: federatedlogin_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.federatedlogin_id_seq', 1, true);


--
-- Name: image_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.image_id_seq', 1, false);


--
-- Name: imagestorage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.imagestorage_id_seq', 31, true);


--
-- Name: imagestoragelocation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.imagestoragelocation_id_seq', 9, true);


--
-- Name: imagestorageplacement_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.imagestorageplacement_id_seq', 31, true);


--
-- Name: imagestoragesignature_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.imagestoragesignature_id_seq', 1, false);


--
-- Name: imagestoragesignaturekind_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.imagestoragesignaturekind_id_seq', 1, true);


--
-- Name: imagestoragetransformation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.imagestoragetransformation_id_seq', 2, true);


--
-- Name: label_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.label_id_seq', 38, true);


--
-- Name: labelsourcetype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.labelsourcetype_id_seq', 3, true);


--
-- Name: logentry2_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.logentry2_id_seq', 1, false);


--
-- Name: logentry3_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.logentry3_id_seq', 26, true);


--
-- Name: logentry_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.logentry_id_seq', 1, false);


--
-- Name: logentrykind_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.logentrykind_id_seq', 75, true);


--
-- Name: loginservice_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.loginservice_id_seq', 7, true);


--
-- Name: manifest_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.manifest_id_seq', 10, true);


--
-- Name: manifestblob_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.manifestblob_id_seq', 31, true);


--
-- Name: manifestchild_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.manifestchild_id_seq', 1, false);


--
-- Name: manifestlabel_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.manifestlabel_id_seq', 38, true);


--
-- Name: manifestlegacyimage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.manifestlegacyimage_id_seq', 1, false);


--
-- Name: manifestsecuritystatus_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.manifestsecuritystatus_id_seq', 10, true);


--
-- Name: mediatype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.mediatype_id_seq', 18, true);


--
-- Name: messages_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.messages_id_seq', 1, false);


--
-- Name: namespacegeorestriction_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.namespacegeorestriction_id_seq', 1, false);


--
-- Name: notification_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.notification_id_seq', 1, false);


--
-- Name: notificationkind_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.notificationkind_id_seq', 16, true);


--
-- Name: oauthaccesstoken_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.oauthaccesstoken_id_seq', 1, false);


--
-- Name: oauthapplication_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.oauthapplication_id_seq', 1, false);


--
-- Name: oauthauthorizationcode_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.oauthauthorizationcode_id_seq', 1, false);


--
-- Name: permissionprototype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.permissionprototype_id_seq', 1, false);


--
-- Name: quayregion_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.quayregion_id_seq', 1, false);


--
-- Name: quayrelease_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.quayrelease_id_seq', 1, false);


--
-- Name: quayservice_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.quayservice_id_seq', 1, false);


--
-- Name: queueitem_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.queueitem_id_seq', 1, false);


--
-- Name: repomirrorconfig_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.repomirrorconfig_id_seq', 1, true);


--
-- Name: repomirrorrule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.repomirrorrule_id_seq', 1, true);


--
-- Name: repository_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.repository_id_seq', 1, true);


--
-- Name: repositoryactioncount_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.repositoryactioncount_id_seq', 1, true);


--
-- Name: repositoryauthorizedemail_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.repositoryauthorizedemail_id_seq', 1, false);


--
-- Name: repositorybuild_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.repositorybuild_id_seq', 1, false);


--
-- Name: repositorybuildtrigger_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.repositorybuildtrigger_id_seq', 1, false);


--
-- Name: repositorykind_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.repositorykind_id_seq', 1, false);


--
-- Name: repositorynotification_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.repositorynotification_id_seq', 1, false);


--
-- Name: repositorypermission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.repositorypermission_id_seq', 2, true);


--
-- Name: repositorysearchscore_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.repositorysearchscore_id_seq', 1, true);


--
-- Name: repositorytag_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.repositorytag_id_seq', 1, false);


--
-- Name: robotaccountmetadata_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.robotaccountmetadata_id_seq', 1, true);


--
-- Name: robotaccounttoken_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.robotaccounttoken_id_seq', 1, true);


--
-- Name: role_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.role_id_seq', 3, true);


--
-- Name: servicekey_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.servicekey_id_seq', 2, true);


--
-- Name: servicekeyapproval_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.servicekeyapproval_id_seq', 2, true);


--
-- Name: star_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.star_id_seq', 1, true);


--
-- Name: tag_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.tag_id_seq', 10, true);


--
-- Name: tagkind_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.tagkind_id_seq', 1, true);


--
-- Name: tagmanifest_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.tagmanifest_id_seq', 1, false);


--
-- Name: tagmanifestlabel_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.tagmanifestlabel_id_seq', 1, false);


--
-- Name: tagmanifestlabelmap_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.tagmanifestlabelmap_id_seq', 1, false);


--
-- Name: tagmanifesttomanifest_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.tagmanifesttomanifest_id_seq', 1, false);


--
-- Name: tagtorepositorytag_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.tagtorepositorytag_id_seq', 1, false);


--
-- Name: team_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.team_id_seq', 1, true);


--
-- Name: teammember_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.teammember_id_seq', 1, true);


--
-- Name: teammemberinvite_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.teammemberinvite_id_seq', 1, false);


--
-- Name: teamrole_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.teamrole_id_seq', 3, true);


--
-- Name: teamsync_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.teamsync_id_seq', 1, false);


--
-- Name: torrentinfo_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.torrentinfo_id_seq', 1, false);


--
-- Name: uploadedblob_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.uploadedblob_id_seq', 30, true);


--
-- Name: user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.user_id_seq', 3, true);


--
-- Name: userprompt_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.userprompt_id_seq', 1, false);


--
-- Name: userpromptkind_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.userpromptkind_id_seq', 3, true);


--
-- Name: userregion_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.userregion_id_seq', 1, false);


--
-- Name: visibility_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quayregistry-quay-database
--

SELECT pg_catalog.setval('public.visibility_id_seq', 2, true);


--
-- Name: alembic_version alembic_version_pkc; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.alembic_version
    ADD CONSTRAINT alembic_version_pkc PRIMARY KEY (version_num);


--
-- Name: accesstoken pk_accesstoken; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.accesstoken
    ADD CONSTRAINT pk_accesstoken PRIMARY KEY (id);


--
-- Name: accesstokenkind pk_accesstokenkind; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.accesstokenkind
    ADD CONSTRAINT pk_accesstokenkind PRIMARY KEY (id);


--
-- Name: apprblob pk_apprblob; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprblob
    ADD CONSTRAINT pk_apprblob PRIMARY KEY (id);


--
-- Name: apprblobplacement pk_apprblobplacement; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprblobplacement
    ADD CONSTRAINT pk_apprblobplacement PRIMARY KEY (id);


--
-- Name: apprblobplacementlocation pk_apprblobplacementlocation; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprblobplacementlocation
    ADD CONSTRAINT pk_apprblobplacementlocation PRIMARY KEY (id);


--
-- Name: apprmanifest pk_apprmanifest; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprmanifest
    ADD CONSTRAINT pk_apprmanifest PRIMARY KEY (id);


--
-- Name: apprmanifestblob pk_apprmanifestblob; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprmanifestblob
    ADD CONSTRAINT pk_apprmanifestblob PRIMARY KEY (id);


--
-- Name: apprmanifestlist pk_apprmanifestlist; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprmanifestlist
    ADD CONSTRAINT pk_apprmanifestlist PRIMARY KEY (id);


--
-- Name: apprmanifestlistmanifest pk_apprmanifestlistmanifest; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprmanifestlistmanifest
    ADD CONSTRAINT pk_apprmanifestlistmanifest PRIMARY KEY (id);


--
-- Name: apprtag pk_apprtag; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprtag
    ADD CONSTRAINT pk_apprtag PRIMARY KEY (id);


--
-- Name: apprtagkind pk_apprtagkind; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprtagkind
    ADD CONSTRAINT pk_apprtagkind PRIMARY KEY (id);


--
-- Name: appspecificauthtoken pk_appspecificauthtoken; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.appspecificauthtoken
    ADD CONSTRAINT pk_appspecificauthtoken PRIMARY KEY (id);


--
-- Name: blobupload pk_blobupload; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.blobupload
    ADD CONSTRAINT pk_blobupload PRIMARY KEY (id);


--
-- Name: buildtriggerservice pk_buildtriggerservice; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.buildtriggerservice
    ADD CONSTRAINT pk_buildtriggerservice PRIMARY KEY (id);


--
-- Name: deletednamespace pk_deletednamespace; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.deletednamespace
    ADD CONSTRAINT pk_deletednamespace PRIMARY KEY (id);


--
-- Name: deletedrepository pk_deletedrepository; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.deletedrepository
    ADD CONSTRAINT pk_deletedrepository PRIMARY KEY (id);


--
-- Name: derivedstorageforimage pk_derivedstorageforimage; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.derivedstorageforimage
    ADD CONSTRAINT pk_derivedstorageforimage PRIMARY KEY (id);


--
-- Name: disablereason pk_disablereason; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.disablereason
    ADD CONSTRAINT pk_disablereason PRIMARY KEY (id);


--
-- Name: emailconfirmation pk_emailconfirmation; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.emailconfirmation
    ADD CONSTRAINT pk_emailconfirmation PRIMARY KEY (id);


--
-- Name: externalnotificationevent pk_externalnotificationevent; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.externalnotificationevent
    ADD CONSTRAINT pk_externalnotificationevent PRIMARY KEY (id);


--
-- Name: externalnotificationmethod pk_externalnotificationmethod; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.externalnotificationmethod
    ADD CONSTRAINT pk_externalnotificationmethod PRIMARY KEY (id);


--
-- Name: federatedlogin pk_federatedlogin; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.federatedlogin
    ADD CONSTRAINT pk_federatedlogin PRIMARY KEY (id);


--
-- Name: image pk_image; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.image
    ADD CONSTRAINT pk_image PRIMARY KEY (id);


--
-- Name: imagestorage pk_imagestorage; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestorage
    ADD CONSTRAINT pk_imagestorage PRIMARY KEY (id);


--
-- Name: imagestoragelocation pk_imagestoragelocation; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestoragelocation
    ADD CONSTRAINT pk_imagestoragelocation PRIMARY KEY (id);


--
-- Name: imagestorageplacement pk_imagestorageplacement; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestorageplacement
    ADD CONSTRAINT pk_imagestorageplacement PRIMARY KEY (id);


--
-- Name: imagestoragesignature pk_imagestoragesignature; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestoragesignature
    ADD CONSTRAINT pk_imagestoragesignature PRIMARY KEY (id);


--
-- Name: imagestoragesignaturekind pk_imagestoragesignaturekind; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestoragesignaturekind
    ADD CONSTRAINT pk_imagestoragesignaturekind PRIMARY KEY (id);


--
-- Name: imagestoragetransformation pk_imagestoragetransformation; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestoragetransformation
    ADD CONSTRAINT pk_imagestoragetransformation PRIMARY KEY (id);


--
-- Name: label pk_label; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.label
    ADD CONSTRAINT pk_label PRIMARY KEY (id);


--
-- Name: labelsourcetype pk_labelsourcetype; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.labelsourcetype
    ADD CONSTRAINT pk_labelsourcetype PRIMARY KEY (id);


--
-- Name: logentry pk_logentry; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.logentry
    ADD CONSTRAINT pk_logentry PRIMARY KEY (id);


--
-- Name: logentry2 pk_logentry2; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.logentry2
    ADD CONSTRAINT pk_logentry2 PRIMARY KEY (id);


--
-- Name: logentry3 pk_logentry3; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.logentry3
    ADD CONSTRAINT pk_logentry3 PRIMARY KEY (id);


--
-- Name: logentrykind pk_logentrykind; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.logentrykind
    ADD CONSTRAINT pk_logentrykind PRIMARY KEY (id);


--
-- Name: loginservice pk_loginservice; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.loginservice
    ADD CONSTRAINT pk_loginservice PRIMARY KEY (id);


--
-- Name: manifest pk_manifest; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifest
    ADD CONSTRAINT pk_manifest PRIMARY KEY (id);


--
-- Name: manifestblob pk_manifestblob; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestblob
    ADD CONSTRAINT pk_manifestblob PRIMARY KEY (id);


--
-- Name: manifestchild pk_manifestchild; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestchild
    ADD CONSTRAINT pk_manifestchild PRIMARY KEY (id);


--
-- Name: manifestlabel pk_manifestlabel; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestlabel
    ADD CONSTRAINT pk_manifestlabel PRIMARY KEY (id);


--
-- Name: manifestlegacyimage pk_manifestlegacyimage; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestlegacyimage
    ADD CONSTRAINT pk_manifestlegacyimage PRIMARY KEY (id);


--
-- Name: manifestsecuritystatus pk_manifestsecuritystatus; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestsecuritystatus
    ADD CONSTRAINT pk_manifestsecuritystatus PRIMARY KEY (id);


--
-- Name: mediatype pk_mediatype; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.mediatype
    ADD CONSTRAINT pk_mediatype PRIMARY KEY (id);


--
-- Name: messages pk_messages; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.messages
    ADD CONSTRAINT pk_messages PRIMARY KEY (id);


--
-- Name: namespacegeorestriction pk_namespacegeorestriction; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.namespacegeorestriction
    ADD CONSTRAINT pk_namespacegeorestriction PRIMARY KEY (id);


--
-- Name: notification pk_notification; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.notification
    ADD CONSTRAINT pk_notification PRIMARY KEY (id);


--
-- Name: notificationkind pk_notificationkind; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.notificationkind
    ADD CONSTRAINT pk_notificationkind PRIMARY KEY (id);


--
-- Name: oauthaccesstoken pk_oauthaccesstoken; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.oauthaccesstoken
    ADD CONSTRAINT pk_oauthaccesstoken PRIMARY KEY (id);


--
-- Name: oauthapplication pk_oauthapplication; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.oauthapplication
    ADD CONSTRAINT pk_oauthapplication PRIMARY KEY (id);


--
-- Name: oauthauthorizationcode pk_oauthauthorizationcode; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.oauthauthorizationcode
    ADD CONSTRAINT pk_oauthauthorizationcode PRIMARY KEY (id);


--
-- Name: permissionprototype pk_permissionprototype; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.permissionprototype
    ADD CONSTRAINT pk_permissionprototype PRIMARY KEY (id);


--
-- Name: quayregion pk_quayregion; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.quayregion
    ADD CONSTRAINT pk_quayregion PRIMARY KEY (id);


--
-- Name: quayrelease pk_quayrelease; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.quayrelease
    ADD CONSTRAINT pk_quayrelease PRIMARY KEY (id);


--
-- Name: quayservice pk_quayservice; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.quayservice
    ADD CONSTRAINT pk_quayservice PRIMARY KEY (id);


--
-- Name: queueitem pk_queueitem; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.queueitem
    ADD CONSTRAINT pk_queueitem PRIMARY KEY (id);


--
-- Name: repomirrorconfig pk_repomirrorconfig; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repomirrorconfig
    ADD CONSTRAINT pk_repomirrorconfig PRIMARY KEY (id);


--
-- Name: repomirrorrule pk_repomirrorrule; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repomirrorrule
    ADD CONSTRAINT pk_repomirrorrule PRIMARY KEY (id);


--
-- Name: repository pk_repository; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repository
    ADD CONSTRAINT pk_repository PRIMARY KEY (id);


--
-- Name: repositoryactioncount pk_repositoryactioncount; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositoryactioncount
    ADD CONSTRAINT pk_repositoryactioncount PRIMARY KEY (id);


--
-- Name: repositoryauthorizedemail pk_repositoryauthorizedemail; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositoryauthorizedemail
    ADD CONSTRAINT pk_repositoryauthorizedemail PRIMARY KEY (id);


--
-- Name: repositorybuild pk_repositorybuild; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorybuild
    ADD CONSTRAINT pk_repositorybuild PRIMARY KEY (id);


--
-- Name: repositorybuildtrigger pk_repositorybuildtrigger; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorybuildtrigger
    ADD CONSTRAINT pk_repositorybuildtrigger PRIMARY KEY (id);


--
-- Name: repositorykind pk_repositorykind; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorykind
    ADD CONSTRAINT pk_repositorykind PRIMARY KEY (id);


--
-- Name: repositorynotification pk_repositorynotification; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorynotification
    ADD CONSTRAINT pk_repositorynotification PRIMARY KEY (id);


--
-- Name: repositorypermission pk_repositorypermission; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorypermission
    ADD CONSTRAINT pk_repositorypermission PRIMARY KEY (id);


--
-- Name: repositorysearchscore pk_repositorysearchscore; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorysearchscore
    ADD CONSTRAINT pk_repositorysearchscore PRIMARY KEY (id);


--
-- Name: repositorytag pk_repositorytag; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorytag
    ADD CONSTRAINT pk_repositorytag PRIMARY KEY (id);


--
-- Name: robotaccountmetadata pk_robotaccountmetadata; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.robotaccountmetadata
    ADD CONSTRAINT pk_robotaccountmetadata PRIMARY KEY (id);


--
-- Name: robotaccounttoken pk_robotaccounttoken; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.robotaccounttoken
    ADD CONSTRAINT pk_robotaccounttoken PRIMARY KEY (id);


--
-- Name: role pk_role; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.role
    ADD CONSTRAINT pk_role PRIMARY KEY (id);


--
-- Name: servicekey pk_servicekey; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.servicekey
    ADD CONSTRAINT pk_servicekey PRIMARY KEY (id);


--
-- Name: servicekeyapproval pk_servicekeyapproval; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.servicekeyapproval
    ADD CONSTRAINT pk_servicekeyapproval PRIMARY KEY (id);


--
-- Name: star pk_star; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.star
    ADD CONSTRAINT pk_star PRIMARY KEY (id);


--
-- Name: tag pk_tag; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tag
    ADD CONSTRAINT pk_tag PRIMARY KEY (id);


--
-- Name: tagkind pk_tagkind; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagkind
    ADD CONSTRAINT pk_tagkind PRIMARY KEY (id);


--
-- Name: tagmanifest pk_tagmanifest; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifest
    ADD CONSTRAINT pk_tagmanifest PRIMARY KEY (id);


--
-- Name: tagmanifestlabel pk_tagmanifestlabel; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifestlabel
    ADD CONSTRAINT pk_tagmanifestlabel PRIMARY KEY (id);


--
-- Name: tagmanifestlabelmap pk_tagmanifestlabelmap; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifestlabelmap
    ADD CONSTRAINT pk_tagmanifestlabelmap PRIMARY KEY (id);


--
-- Name: tagmanifesttomanifest pk_tagmanifesttomanifest; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifesttomanifest
    ADD CONSTRAINT pk_tagmanifesttomanifest PRIMARY KEY (id);


--
-- Name: tagtorepositorytag pk_tagtorepositorytag; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagtorepositorytag
    ADD CONSTRAINT pk_tagtorepositorytag PRIMARY KEY (id);


--
-- Name: team pk_team; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.team
    ADD CONSTRAINT pk_team PRIMARY KEY (id);


--
-- Name: teammember pk_teammember; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.teammember
    ADD CONSTRAINT pk_teammember PRIMARY KEY (id);


--
-- Name: teammemberinvite pk_teammemberinvite; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.teammemberinvite
    ADD CONSTRAINT pk_teammemberinvite PRIMARY KEY (id);


--
-- Name: teamrole pk_teamrole; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.teamrole
    ADD CONSTRAINT pk_teamrole PRIMARY KEY (id);


--
-- Name: teamsync pk_teamsync; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.teamsync
    ADD CONSTRAINT pk_teamsync PRIMARY KEY (id);


--
-- Name: torrentinfo pk_torrentinfo; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.torrentinfo
    ADD CONSTRAINT pk_torrentinfo PRIMARY KEY (id);


--
-- Name: uploadedblob pk_uploadedblob; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.uploadedblob
    ADD CONSTRAINT pk_uploadedblob PRIMARY KEY (id);


--
-- Name: user pk_user; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public."user"
    ADD CONSTRAINT pk_user PRIMARY KEY (id);


--
-- Name: userprompt pk_userprompt; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.userprompt
    ADD CONSTRAINT pk_userprompt PRIMARY KEY (id);


--
-- Name: userpromptkind pk_userpromptkind; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.userpromptkind
    ADD CONSTRAINT pk_userpromptkind PRIMARY KEY (id);


--
-- Name: userregion pk_userregion; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.userregion
    ADD CONSTRAINT pk_userregion PRIMARY KEY (id);


--
-- Name: visibility pk_visibility; Type: CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.visibility
    ADD CONSTRAINT pk_visibility PRIMARY KEY (id);


--
-- Name: accesstoken_kind_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX accesstoken_kind_id ON public.accesstoken USING btree (kind_id);


--
-- Name: accesstoken_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX accesstoken_repository_id ON public.accesstoken USING btree (repository_id);


--
-- Name: accesstoken_role_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX accesstoken_role_id ON public.accesstoken USING btree (role_id);


--
-- Name: accesstoken_token_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX accesstoken_token_name ON public.accesstoken USING btree (token_name);


--
-- Name: accesstokenkind_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX accesstokenkind_name ON public.accesstokenkind USING btree (name);


--
-- Name: apprblob_digest; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX apprblob_digest ON public.apprblob USING btree (digest);


--
-- Name: apprblob_media_type_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprblob_media_type_id ON public.apprblob USING btree (media_type_id);


--
-- Name: apprblobplacement_blob_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprblobplacement_blob_id ON public.apprblobplacement USING btree (blob_id);


--
-- Name: apprblobplacement_blob_id_location_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX apprblobplacement_blob_id_location_id ON public.apprblobplacement USING btree (blob_id, location_id);


--
-- Name: apprblobplacement_location_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprblobplacement_location_id ON public.apprblobplacement USING btree (location_id);


--
-- Name: apprblobplacementlocation_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX apprblobplacementlocation_name ON public.apprblobplacementlocation USING btree (name);


--
-- Name: apprmanifest_digest; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX apprmanifest_digest ON public.apprmanifest USING btree (digest);


--
-- Name: apprmanifest_media_type_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprmanifest_media_type_id ON public.apprmanifest USING btree (media_type_id);


--
-- Name: apprmanifestblob_blob_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprmanifestblob_blob_id ON public.apprmanifestblob USING btree (blob_id);


--
-- Name: apprmanifestblob_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprmanifestblob_manifest_id ON public.apprmanifestblob USING btree (manifest_id);


--
-- Name: apprmanifestblob_manifest_id_blob_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX apprmanifestblob_manifest_id_blob_id ON public.apprmanifestblob USING btree (manifest_id, blob_id);


--
-- Name: apprmanifestlist_digest; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX apprmanifestlist_digest ON public.apprmanifestlist USING btree (digest);


--
-- Name: apprmanifestlist_media_type_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprmanifestlist_media_type_id ON public.apprmanifestlist USING btree (media_type_id);


--
-- Name: apprmanifestlistmanifest_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprmanifestlistmanifest_manifest_id ON public.apprmanifestlistmanifest USING btree (manifest_id);


--
-- Name: apprmanifestlistmanifest_manifest_list_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprmanifestlistmanifest_manifest_list_id ON public.apprmanifestlistmanifest USING btree (manifest_list_id);


--
-- Name: apprmanifestlistmanifest_manifest_list_id_media_type_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprmanifestlistmanifest_manifest_list_id_media_type_id ON public.apprmanifestlistmanifest USING btree (manifest_list_id, media_type_id);


--
-- Name: apprmanifestlistmanifest_manifest_list_id_operating_system_arch; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprmanifestlistmanifest_manifest_list_id_operating_system_arch ON public.apprmanifestlistmanifest USING btree (manifest_list_id, operating_system, architecture, media_type_id);


--
-- Name: apprmanifestlistmanifest_media_type_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprmanifestlistmanifest_media_type_id ON public.apprmanifestlistmanifest USING btree (media_type_id);


--
-- Name: apprtag_lifetime_end; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprtag_lifetime_end ON public.apprtag USING btree (lifetime_end);


--
-- Name: apprtag_linked_tag_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprtag_linked_tag_id ON public.apprtag USING btree (linked_tag_id);


--
-- Name: apprtag_manifest_list_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprtag_manifest_list_id ON public.apprtag USING btree (manifest_list_id);


--
-- Name: apprtag_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprtag_repository_id ON public.apprtag USING btree (repository_id);


--
-- Name: apprtag_repository_id_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprtag_repository_id_name ON public.apprtag USING btree (repository_id, name);


--
-- Name: apprtag_repository_id_name_hidden; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprtag_repository_id_name_hidden ON public.apprtag USING btree (repository_id, name, hidden);


--
-- Name: apprtag_repository_id_name_lifetime_end; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX apprtag_repository_id_name_lifetime_end ON public.apprtag USING btree (repository_id, name, lifetime_end);


--
-- Name: apprtag_tag_kind_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX apprtag_tag_kind_id ON public.apprtag USING btree (tag_kind_id);


--
-- Name: apprtagkind_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX apprtagkind_name ON public.apprtagkind USING btree (name);


--
-- Name: appspecificauthtoken_token_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX appspecificauthtoken_token_name ON public.appspecificauthtoken USING btree (token_name);


--
-- Name: appspecificauthtoken_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX appspecificauthtoken_user_id ON public.appspecificauthtoken USING btree (user_id);


--
-- Name: appspecificauthtoken_user_id_expiration; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX appspecificauthtoken_user_id_expiration ON public.appspecificauthtoken USING btree (user_id, expiration);


--
-- Name: appspecificauthtoken_uuid; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX appspecificauthtoken_uuid ON public.appspecificauthtoken USING btree (uuid);


--
-- Name: blobupload_created; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX blobupload_created ON public.blobupload USING btree (created);


--
-- Name: blobupload_location_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX blobupload_location_id ON public.blobupload USING btree (location_id);


--
-- Name: blobupload_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX blobupload_repository_id ON public.blobupload USING btree (repository_id);


--
-- Name: blobupload_repository_id_uuid; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX blobupload_repository_id_uuid ON public.blobupload USING btree (repository_id, uuid);


--
-- Name: blobupload_uuid; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX blobupload_uuid ON public.blobupload USING btree (uuid);


--
-- Name: buildtriggerservice_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX buildtriggerservice_name ON public.buildtriggerservice USING btree (name);


--
-- Name: deletednamespace_namespace_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX deletednamespace_namespace_id ON public.deletednamespace USING btree (namespace_id);


--
-- Name: deletednamespace_original_email; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX deletednamespace_original_email ON public.deletednamespace USING btree (original_email);


--
-- Name: deletednamespace_original_username; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX deletednamespace_original_username ON public.deletednamespace USING btree (original_username);


--
-- Name: deletednamespace_queue_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX deletednamespace_queue_id ON public.deletednamespace USING btree (queue_id);


--
-- Name: deletedrepository_original_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX deletedrepository_original_name ON public.deletedrepository USING btree (original_name);


--
-- Name: deletedrepository_queue_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX deletedrepository_queue_id ON public.deletedrepository USING btree (queue_id);


--
-- Name: deletedrepository_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX deletedrepository_repository_id ON public.deletedrepository USING btree (repository_id);


--
-- Name: derivedstorageforimage_derivative_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX derivedstorageforimage_derivative_id ON public.derivedstorageforimage USING btree (derivative_id);


--
-- Name: derivedstorageforimage_source_image_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX derivedstorageforimage_source_image_id ON public.derivedstorageforimage USING btree (source_image_id);


--
-- Name: derivedstorageforimage_transformation_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX derivedstorageforimage_transformation_id ON public.derivedstorageforimage USING btree (transformation_id);


--
-- Name: disablereason_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX disablereason_name ON public.disablereason USING btree (name);


--
-- Name: emailconfirmation_code; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX emailconfirmation_code ON public.emailconfirmation USING btree (code);


--
-- Name: emailconfirmation_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX emailconfirmation_user_id ON public.emailconfirmation USING btree (user_id);


--
-- Name: externalnotificationevent_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX externalnotificationevent_name ON public.externalnotificationevent USING btree (name);


--
-- Name: externalnotificationmethod_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX externalnotificationmethod_name ON public.externalnotificationmethod USING btree (name);


--
-- Name: federatedlogin_service_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX federatedlogin_service_id ON public.federatedlogin USING btree (service_id);


--
-- Name: federatedlogin_service_id_service_ident; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX federatedlogin_service_id_service_ident ON public.federatedlogin USING btree (service_id, service_ident);


--
-- Name: federatedlogin_service_id_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX federatedlogin_service_id_user_id ON public.federatedlogin USING btree (service_id, user_id);


--
-- Name: federatedlogin_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX federatedlogin_user_id ON public.federatedlogin USING btree (user_id);


--
-- Name: image_ancestors; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX image_ancestors ON public.image USING btree (ancestors);


--
-- Name: image_docker_image_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX image_docker_image_id ON public.image USING btree (docker_image_id);


--
-- Name: image_parent_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX image_parent_id ON public.image USING btree (parent_id);


--
-- Name: image_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX image_repository_id ON public.image USING btree (repository_id);


--
-- Name: image_repository_id_docker_image_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX image_repository_id_docker_image_id ON public.image USING btree (repository_id, docker_image_id);


--
-- Name: image_security_indexed; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX image_security_indexed ON public.image USING btree (security_indexed);


--
-- Name: image_security_indexed_engine; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX image_security_indexed_engine ON public.image USING btree (security_indexed_engine);


--
-- Name: image_security_indexed_engine_security_indexed; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX image_security_indexed_engine_security_indexed ON public.image USING btree (security_indexed_engine, security_indexed);


--
-- Name: image_storage_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX image_storage_id ON public.image USING btree (storage_id);


--
-- Name: imagestorage_content_checksum; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX imagestorage_content_checksum ON public.imagestorage USING btree (content_checksum);


--
-- Name: imagestorage_uuid; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX imagestorage_uuid ON public.imagestorage USING btree (uuid);


--
-- Name: imagestoragelocation_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX imagestoragelocation_name ON public.imagestoragelocation USING btree (name);


--
-- Name: imagestorageplacement_location_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX imagestorageplacement_location_id ON public.imagestorageplacement USING btree (location_id);


--
-- Name: imagestorageplacement_storage_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX imagestorageplacement_storage_id ON public.imagestorageplacement USING btree (storage_id);


--
-- Name: imagestorageplacement_storage_id_location_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX imagestorageplacement_storage_id_location_id ON public.imagestorageplacement USING btree (storage_id, location_id);


--
-- Name: imagestoragesignature_kind_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX imagestoragesignature_kind_id ON public.imagestoragesignature USING btree (kind_id);


--
-- Name: imagestoragesignature_kind_id_storage_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX imagestoragesignature_kind_id_storage_id ON public.imagestoragesignature USING btree (kind_id, storage_id);


--
-- Name: imagestoragesignature_storage_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX imagestoragesignature_storage_id ON public.imagestoragesignature USING btree (storage_id);


--
-- Name: imagestoragesignaturekind_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX imagestoragesignaturekind_name ON public.imagestoragesignaturekind USING btree (name);


--
-- Name: imagestoragetransformation_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX imagestoragetransformation_name ON public.imagestoragetransformation USING btree (name);


--
-- Name: label_key; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX label_key ON public.label USING btree (key);


--
-- Name: label_media_type_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX label_media_type_id ON public.label USING btree (media_type_id);


--
-- Name: label_source_type_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX label_source_type_id ON public.label USING btree (source_type_id);


--
-- Name: label_uuid; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX label_uuid ON public.label USING btree (uuid);


--
-- Name: labelsourcetype_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX labelsourcetype_name ON public.labelsourcetype USING btree (name);


--
-- Name: logentry2_account_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry2_account_id ON public.logentry2 USING btree (account_id);


--
-- Name: logentry2_account_id_datetime; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry2_account_id_datetime ON public.logentry2 USING btree (account_id, datetime);


--
-- Name: logentry2_datetime; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry2_datetime ON public.logentry2 USING btree (datetime);


--
-- Name: logentry2_kind_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry2_kind_id ON public.logentry2 USING btree (kind_id);


--
-- Name: logentry2_performer_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry2_performer_id ON public.logentry2 USING btree (performer_id);


--
-- Name: logentry2_performer_id_datetime; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry2_performer_id_datetime ON public.logentry2 USING btree (performer_id, datetime);


--
-- Name: logentry2_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry2_repository_id ON public.logentry2 USING btree (repository_id);


--
-- Name: logentry2_repository_id_datetime; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry2_repository_id_datetime ON public.logentry2 USING btree (repository_id, datetime);


--
-- Name: logentry2_repository_id_datetime_kind_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry2_repository_id_datetime_kind_id ON public.logentry2 USING btree (repository_id, datetime, kind_id);


--
-- Name: logentry3_account_id_datetime; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry3_account_id_datetime ON public.logentry3 USING btree (account_id, datetime);


--
-- Name: logentry3_datetime; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry3_datetime ON public.logentry3 USING btree (datetime);


--
-- Name: logentry3_performer_id_datetime; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry3_performer_id_datetime ON public.logentry3 USING btree (performer_id, datetime);


--
-- Name: logentry3_repository_id_datetime_kind_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry3_repository_id_datetime_kind_id ON public.logentry3 USING btree (repository_id, datetime, kind_id);


--
-- Name: logentry_account_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry_account_id ON public.logentry USING btree (account_id);


--
-- Name: logentry_account_id_datetime; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry_account_id_datetime ON public.logentry USING btree (account_id, datetime);


--
-- Name: logentry_datetime; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry_datetime ON public.logentry USING btree (datetime);


--
-- Name: logentry_kind_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry_kind_id ON public.logentry USING btree (kind_id);


--
-- Name: logentry_performer_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry_performer_id ON public.logentry USING btree (performer_id);


--
-- Name: logentry_performer_id_datetime; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry_performer_id_datetime ON public.logentry USING btree (performer_id, datetime);


--
-- Name: logentry_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry_repository_id ON public.logentry USING btree (repository_id);


--
-- Name: logentry_repository_id_datetime; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry_repository_id_datetime ON public.logentry USING btree (repository_id, datetime);


--
-- Name: logentry_repository_id_datetime_kind_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX logentry_repository_id_datetime_kind_id ON public.logentry USING btree (repository_id, datetime, kind_id);


--
-- Name: logentrykind_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX logentrykind_name ON public.logentrykind USING btree (name);


--
-- Name: loginservice_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX loginservice_name ON public.loginservice USING btree (name);


--
-- Name: manifest_digest; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifest_digest ON public.manifest USING btree (digest);


--
-- Name: manifest_media_type_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifest_media_type_id ON public.manifest USING btree (media_type_id);


--
-- Name: manifest_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifest_repository_id ON public.manifest USING btree (repository_id);


--
-- Name: manifest_repository_id_config_media_type; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifest_repository_id_config_media_type ON public.manifest USING btree (repository_id, config_media_type);


--
-- Name: manifest_repository_id_digest; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX manifest_repository_id_digest ON public.manifest USING btree (repository_id, digest);


--
-- Name: manifest_repository_id_media_type_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifest_repository_id_media_type_id ON public.manifest USING btree (repository_id, media_type_id);


--
-- Name: manifestblob_blob_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestblob_blob_id ON public.manifestblob USING btree (blob_id);


--
-- Name: manifestblob_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestblob_manifest_id ON public.manifestblob USING btree (manifest_id);


--
-- Name: manifestblob_manifest_id_blob_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX manifestblob_manifest_id_blob_id ON public.manifestblob USING btree (manifest_id, blob_id);


--
-- Name: manifestblob_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestblob_repository_id ON public.manifestblob USING btree (repository_id);


--
-- Name: manifestchild_child_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestchild_child_manifest_id ON public.manifestchild USING btree (child_manifest_id);


--
-- Name: manifestchild_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestchild_manifest_id ON public.manifestchild USING btree (manifest_id);


--
-- Name: manifestchild_manifest_id_child_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX manifestchild_manifest_id_child_manifest_id ON public.manifestchild USING btree (manifest_id, child_manifest_id);


--
-- Name: manifestchild_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestchild_repository_id ON public.manifestchild USING btree (repository_id);


--
-- Name: manifestchild_repository_id_child_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestchild_repository_id_child_manifest_id ON public.manifestchild USING btree (repository_id, child_manifest_id);


--
-- Name: manifestchild_repository_id_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestchild_repository_id_manifest_id ON public.manifestchild USING btree (repository_id, manifest_id);


--
-- Name: manifestchild_repository_id_manifest_id_child_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestchild_repository_id_manifest_id_child_manifest_id ON public.manifestchild USING btree (repository_id, manifest_id, child_manifest_id);


--
-- Name: manifestlabel_label_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestlabel_label_id ON public.manifestlabel USING btree (label_id);


--
-- Name: manifestlabel_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestlabel_manifest_id ON public.manifestlabel USING btree (manifest_id);


--
-- Name: manifestlabel_manifest_id_label_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX manifestlabel_manifest_id_label_id ON public.manifestlabel USING btree (manifest_id, label_id);


--
-- Name: manifestlabel_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestlabel_repository_id ON public.manifestlabel USING btree (repository_id);


--
-- Name: manifestlegacyimage_image_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestlegacyimage_image_id ON public.manifestlegacyimage USING btree (image_id);


--
-- Name: manifestlegacyimage_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX manifestlegacyimage_manifest_id ON public.manifestlegacyimage USING btree (manifest_id);


--
-- Name: manifestlegacyimage_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestlegacyimage_repository_id ON public.manifestlegacyimage USING btree (repository_id);


--
-- Name: manifestsecuritystatus_index_status; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestsecuritystatus_index_status ON public.manifestsecuritystatus USING btree (index_status);


--
-- Name: manifestsecuritystatus_indexer_hash; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestsecuritystatus_indexer_hash ON public.manifestsecuritystatus USING btree (indexer_hash);


--
-- Name: manifestsecuritystatus_indexer_version; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestsecuritystatus_indexer_version ON public.manifestsecuritystatus USING btree (indexer_version);


--
-- Name: manifestsecuritystatus_last_indexed; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestsecuritystatus_last_indexed ON public.manifestsecuritystatus USING btree (last_indexed);


--
-- Name: manifestsecuritystatus_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX manifestsecuritystatus_manifest_id ON public.manifestsecuritystatus USING btree (manifest_id);


--
-- Name: manifestsecuritystatus_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX manifestsecuritystatus_repository_id ON public.manifestsecuritystatus USING btree (repository_id);


--
-- Name: mediatype_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX mediatype_name ON public.mediatype USING btree (name);


--
-- Name: messages_media_type_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX messages_media_type_id ON public.messages USING btree (media_type_id);


--
-- Name: messages_severity; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX messages_severity ON public.messages USING btree (severity);


--
-- Name: messages_uuid; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX messages_uuid ON public.messages USING btree (uuid);


--
-- Name: namespacegeorestriction_namespace_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX namespacegeorestriction_namespace_id ON public.namespacegeorestriction USING btree (namespace_id);


--
-- Name: namespacegeorestriction_namespace_id_restricted_region_iso_code; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX namespacegeorestriction_namespace_id_restricted_region_iso_code ON public.namespacegeorestriction USING btree (namespace_id, restricted_region_iso_code);


--
-- Name: namespacegeorestriction_restricted_region_iso_code; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX namespacegeorestriction_restricted_region_iso_code ON public.namespacegeorestriction USING btree (restricted_region_iso_code);


--
-- Name: notification_created; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX notification_created ON public.notification USING btree (created);


--
-- Name: notification_kind_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX notification_kind_id ON public.notification USING btree (kind_id);


--
-- Name: notification_lookup_path; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX notification_lookup_path ON public.notification USING btree (lookup_path);


--
-- Name: notification_target_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX notification_target_id ON public.notification USING btree (target_id);


--
-- Name: notification_uuid; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX notification_uuid ON public.notification USING btree (uuid);


--
-- Name: notificationkind_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX notificationkind_name ON public.notificationkind USING btree (name);


--
-- Name: oauthaccesstoken_application_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX oauthaccesstoken_application_id ON public.oauthaccesstoken USING btree (application_id);


--
-- Name: oauthaccesstoken_authorized_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX oauthaccesstoken_authorized_user_id ON public.oauthaccesstoken USING btree (authorized_user_id);


--
-- Name: oauthaccesstoken_token_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX oauthaccesstoken_token_name ON public.oauthaccesstoken USING btree (token_name);


--
-- Name: oauthaccesstoken_uuid; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX oauthaccesstoken_uuid ON public.oauthaccesstoken USING btree (uuid);


--
-- Name: oauthapplication_client_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX oauthapplication_client_id ON public.oauthapplication USING btree (client_id);


--
-- Name: oauthapplication_organization_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX oauthapplication_organization_id ON public.oauthapplication USING btree (organization_id);


--
-- Name: oauthauthorizationcode_application_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX oauthauthorizationcode_application_id ON public.oauthauthorizationcode USING btree (application_id);


--
-- Name: oauthauthorizationcode_code_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX oauthauthorizationcode_code_name ON public.oauthauthorizationcode USING btree (code_name);


--
-- Name: permissionprototype_activating_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX permissionprototype_activating_user_id ON public.permissionprototype USING btree (activating_user_id);


--
-- Name: permissionprototype_delegate_team_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX permissionprototype_delegate_team_id ON public.permissionprototype USING btree (delegate_team_id);


--
-- Name: permissionprototype_delegate_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX permissionprototype_delegate_user_id ON public.permissionprototype USING btree (delegate_user_id);


--
-- Name: permissionprototype_org_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX permissionprototype_org_id ON public.permissionprototype USING btree (org_id);


--
-- Name: permissionprototype_org_id_activating_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX permissionprototype_org_id_activating_user_id ON public.permissionprototype USING btree (org_id, activating_user_id);


--
-- Name: permissionprototype_role_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX permissionprototype_role_id ON public.permissionprototype USING btree (role_id);


--
-- Name: permissionprototype_uuid; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX permissionprototype_uuid ON public.permissionprototype USING btree (uuid);


--
-- Name: quayregion_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX quayregion_name ON public.quayregion USING btree (name);


--
-- Name: quayrelease_created; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX quayrelease_created ON public.quayrelease USING btree (created);


--
-- Name: quayrelease_region_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX quayrelease_region_id ON public.quayrelease USING btree (region_id);


--
-- Name: quayrelease_service_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX quayrelease_service_id ON public.quayrelease USING btree (service_id);


--
-- Name: quayrelease_service_id_region_id_created; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX quayrelease_service_id_region_id_created ON public.quayrelease USING btree (service_id, region_id, created);


--
-- Name: quayrelease_service_id_version_region_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX quayrelease_service_id_version_region_id ON public.quayrelease USING btree (service_id, version, region_id);


--
-- Name: quayservice_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX quayservice_name ON public.quayservice USING btree (name);


--
-- Name: queueitem_pe_aafter_qname_rremaining_available; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX queueitem_pe_aafter_qname_rremaining_available ON public.queueitem USING btree (processing_expires, available_after, queue_name, retries_remaining, available);


--
-- Name: queueitem_pexpires_aafter_rremaining_available; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX queueitem_pexpires_aafter_rremaining_available ON public.queueitem USING btree (processing_expires, available_after, retries_remaining, available);


--
-- Name: queueitem_processing_expires_available; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX queueitem_processing_expires_available ON public.queueitem USING btree (processing_expires, available);


--
-- Name: queueitem_processing_expires_queue_name_available; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX queueitem_processing_expires_queue_name_available ON public.queueitem USING btree (processing_expires, queue_name, available);


--
-- Name: queueitem_queue_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX queueitem_queue_name ON public.queueitem USING btree (queue_name);


--
-- Name: queueitem_state_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX queueitem_state_id ON public.queueitem USING btree (state_id);


--
-- Name: repomirrorconfig_internal_robot_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repomirrorconfig_internal_robot_id ON public.repomirrorconfig USING btree (internal_robot_id);


--
-- Name: repomirrorconfig_mirror_type; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repomirrorconfig_mirror_type ON public.repomirrorconfig USING btree (mirror_type);


--
-- Name: repomirrorconfig_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX repomirrorconfig_repository_id ON public.repomirrorconfig USING btree (repository_id);


--
-- Name: repomirrorconfig_root_rule_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repomirrorconfig_root_rule_id ON public.repomirrorconfig USING btree (root_rule_id);


--
-- Name: repomirrorconfig_sync_status; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repomirrorconfig_sync_status ON public.repomirrorconfig USING btree (sync_status);


--
-- Name: repomirrorconfig_sync_transaction_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repomirrorconfig_sync_transaction_id ON public.repomirrorconfig USING btree (sync_transaction_id);


--
-- Name: repomirrorrule_left_child_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repomirrorrule_left_child_id ON public.repomirrorrule USING btree (left_child_id);


--
-- Name: repomirrorrule_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repomirrorrule_repository_id ON public.repomirrorrule USING btree (repository_id);


--
-- Name: repomirrorrule_right_child_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repomirrorrule_right_child_id ON public.repomirrorrule USING btree (right_child_id);


--
-- Name: repomirrorrule_rule_type; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repomirrorrule_rule_type ON public.repomirrorrule USING btree (rule_type);


--
-- Name: repomirrorrule_uuid; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX repomirrorrule_uuid ON public.repomirrorrule USING btree (uuid);


--
-- Name: repository_description__fulltext; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repository_description__fulltext ON public.repository USING gin (description public.gin_trgm_ops);


--
-- Name: repository_kind_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repository_kind_id ON public.repository USING btree (kind_id);


--
-- Name: repository_name__fulltext; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repository_name__fulltext ON public.repository USING gin (name public.gin_trgm_ops);


--
-- Name: repository_namespace_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repository_namespace_user_id ON public.repository USING btree (namespace_user_id);


--
-- Name: repository_namespace_user_id_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX repository_namespace_user_id_name ON public.repository USING btree (namespace_user_id, name);


--
-- Name: repository_state; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repository_state ON public.repository USING btree (state);


--
-- Name: repository_visibility_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repository_visibility_id ON public.repository USING btree (visibility_id);


--
-- Name: repositoryactioncount_date; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositoryactioncount_date ON public.repositoryactioncount USING btree (date);


--
-- Name: repositoryactioncount_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositoryactioncount_repository_id ON public.repositoryactioncount USING btree (repository_id);


--
-- Name: repositoryactioncount_repository_id_date; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX repositoryactioncount_repository_id_date ON public.repositoryactioncount USING btree (repository_id, date);


--
-- Name: repositoryauthorizedemail_code; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX repositoryauthorizedemail_code ON public.repositoryauthorizedemail USING btree (code);


--
-- Name: repositoryauthorizedemail_email_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX repositoryauthorizedemail_email_repository_id ON public.repositoryauthorizedemail USING btree (email, repository_id);


--
-- Name: repositoryauthorizedemail_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositoryauthorizedemail_repository_id ON public.repositoryauthorizedemail USING btree (repository_id);


--
-- Name: repositorybuild_access_token_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuild_access_token_id ON public.repositorybuild USING btree (access_token_id);


--
-- Name: repositorybuild_logs_archived; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuild_logs_archived ON public.repositorybuild USING btree (logs_archived);


--
-- Name: repositorybuild_pull_robot_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuild_pull_robot_id ON public.repositorybuild USING btree (pull_robot_id);


--
-- Name: repositorybuild_queue_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuild_queue_id ON public.repositorybuild USING btree (queue_id);


--
-- Name: repositorybuild_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuild_repository_id ON public.repositorybuild USING btree (repository_id);


--
-- Name: repositorybuild_repository_id_started_phase; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuild_repository_id_started_phase ON public.repositorybuild USING btree (repository_id, started, phase);


--
-- Name: repositorybuild_resource_key; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuild_resource_key ON public.repositorybuild USING btree (resource_key);


--
-- Name: repositorybuild_started; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuild_started ON public.repositorybuild USING btree (started);


--
-- Name: repositorybuild_started_logs_archived_phase; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuild_started_logs_archived_phase ON public.repositorybuild USING btree (started, logs_archived, phase);


--
-- Name: repositorybuild_trigger_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuild_trigger_id ON public.repositorybuild USING btree (trigger_id);


--
-- Name: repositorybuild_uuid; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuild_uuid ON public.repositorybuild USING btree (uuid);


--
-- Name: repositorybuildtrigger_connected_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuildtrigger_connected_user_id ON public.repositorybuildtrigger USING btree (connected_user_id);


--
-- Name: repositorybuildtrigger_disabled_datetime; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuildtrigger_disabled_datetime ON public.repositorybuildtrigger USING btree (disabled_datetime);


--
-- Name: repositorybuildtrigger_disabled_reason_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuildtrigger_disabled_reason_id ON public.repositorybuildtrigger USING btree (disabled_reason_id);


--
-- Name: repositorybuildtrigger_pull_robot_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuildtrigger_pull_robot_id ON public.repositorybuildtrigger USING btree (pull_robot_id);


--
-- Name: repositorybuildtrigger_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuildtrigger_repository_id ON public.repositorybuildtrigger USING btree (repository_id);


--
-- Name: repositorybuildtrigger_service_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuildtrigger_service_id ON public.repositorybuildtrigger USING btree (service_id);


--
-- Name: repositorybuildtrigger_uuid; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuildtrigger_uuid ON public.repositorybuildtrigger USING btree (uuid);


--
-- Name: repositorybuildtrigger_write_token_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorybuildtrigger_write_token_id ON public.repositorybuildtrigger USING btree (write_token_id);


--
-- Name: repositorykind_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX repositorykind_name ON public.repositorykind USING btree (name);


--
-- Name: repositorynotification_event_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorynotification_event_id ON public.repositorynotification USING btree (event_id);


--
-- Name: repositorynotification_method_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorynotification_method_id ON public.repositorynotification USING btree (method_id);


--
-- Name: repositorynotification_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorynotification_repository_id ON public.repositorynotification USING btree (repository_id);


--
-- Name: repositorynotification_uuid; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorynotification_uuid ON public.repositorynotification USING btree (uuid);


--
-- Name: repositorypermission_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorypermission_repository_id ON public.repositorypermission USING btree (repository_id);


--
-- Name: repositorypermission_role_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorypermission_role_id ON public.repositorypermission USING btree (role_id);


--
-- Name: repositorypermission_team_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorypermission_team_id ON public.repositorypermission USING btree (team_id);


--
-- Name: repositorypermission_team_id_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX repositorypermission_team_id_repository_id ON public.repositorypermission USING btree (team_id, repository_id);


--
-- Name: repositorypermission_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorypermission_user_id ON public.repositorypermission USING btree (user_id);


--
-- Name: repositorypermission_user_id_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX repositorypermission_user_id_repository_id ON public.repositorypermission USING btree (user_id, repository_id);


--
-- Name: repositorysearchscore_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX repositorysearchscore_repository_id ON public.repositorysearchscore USING btree (repository_id);


--
-- Name: repositorysearchscore_score; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorysearchscore_score ON public.repositorysearchscore USING btree (score);


--
-- Name: repositorytag_image_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorytag_image_id ON public.repositorytag USING btree (image_id);


--
-- Name: repositorytag_lifetime_end_ts; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorytag_lifetime_end_ts ON public.repositorytag USING btree (lifetime_end_ts);


--
-- Name: repositorytag_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorytag_repository_id ON public.repositorytag USING btree (repository_id);


--
-- Name: repositorytag_repository_id_lifetime_end_ts; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorytag_repository_id_lifetime_end_ts ON public.repositorytag USING btree (repository_id, lifetime_end_ts);


--
-- Name: repositorytag_repository_id_lifetime_start_ts; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorytag_repository_id_lifetime_start_ts ON public.repositorytag USING btree (repository_id, lifetime_start_ts);


--
-- Name: repositorytag_repository_id_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX repositorytag_repository_id_name ON public.repositorytag USING btree (repository_id, name);


--
-- Name: repositorytag_repository_id_name_lifetime_end_ts; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX repositorytag_repository_id_name_lifetime_end_ts ON public.repositorytag USING btree (repository_id, name, lifetime_end_ts);


--
-- Name: robotaccountmetadata_robot_account_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX robotaccountmetadata_robot_account_id ON public.robotaccountmetadata USING btree (robot_account_id);


--
-- Name: robotaccounttoken_robot_account_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX robotaccounttoken_robot_account_id ON public.robotaccounttoken USING btree (robot_account_id);


--
-- Name: role_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX role_name ON public.role USING btree (name);


--
-- Name: servicekey_approval_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX servicekey_approval_id ON public.servicekey USING btree (approval_id);


--
-- Name: servicekey_kid; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX servicekey_kid ON public.servicekey USING btree (kid);


--
-- Name: servicekey_service; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX servicekey_service ON public.servicekey USING btree (service);


--
-- Name: servicekeyapproval_approval_type; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX servicekeyapproval_approval_type ON public.servicekeyapproval USING btree (approval_type);


--
-- Name: servicekeyapproval_approver_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX servicekeyapproval_approver_id ON public.servicekeyapproval USING btree (approver_id);


--
-- Name: star_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX star_repository_id ON public.star USING btree (repository_id);


--
-- Name: star_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX star_user_id ON public.star USING btree (user_id);


--
-- Name: star_user_id_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX star_user_id_repository_id ON public.star USING btree (user_id, repository_id);


--
-- Name: tag_lifetime_end_ms; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tag_lifetime_end_ms ON public.tag USING btree (lifetime_end_ms);


--
-- Name: tag_linked_tag_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tag_linked_tag_id ON public.tag USING btree (linked_tag_id);


--
-- Name: tag_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tag_manifest_id ON public.tag USING btree (manifest_id);


--
-- Name: tag_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tag_repository_id ON public.tag USING btree (repository_id);


--
-- Name: tag_repository_id_lifetime_end_ms; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tag_repository_id_lifetime_end_ms ON public.tag USING btree (repository_id, lifetime_end_ms);


--
-- Name: tag_repository_id_lifetime_start_ms; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tag_repository_id_lifetime_start_ms ON public.tag USING btree (repository_id, lifetime_start_ms);


--
-- Name: tag_repository_id_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tag_repository_id_name ON public.tag USING btree (repository_id, name);


--
-- Name: tag_repository_id_name_hidden; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tag_repository_id_name_hidden ON public.tag USING btree (repository_id, name, hidden);


--
-- Name: tag_repository_id_name_lifetime_end_ms; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX tag_repository_id_name_lifetime_end_ms ON public.tag USING btree (repository_id, name, lifetime_end_ms);


--
-- Name: tag_repository_id_name_tag_kind_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tag_repository_id_name_tag_kind_id ON public.tag USING btree (repository_id, name, tag_kind_id);


--
-- Name: tag_tag_kind_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tag_tag_kind_id ON public.tag USING btree (tag_kind_id);


--
-- Name: tagkind_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX tagkind_name ON public.tagkind USING btree (name);


--
-- Name: tagmanifest_digest; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tagmanifest_digest ON public.tagmanifest USING btree (digest);


--
-- Name: tagmanifest_tag_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX tagmanifest_tag_id ON public.tagmanifest USING btree (tag_id);


--
-- Name: tagmanifestlabel_annotated_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tagmanifestlabel_annotated_id ON public.tagmanifestlabel USING btree (annotated_id);


--
-- Name: tagmanifestlabel_annotated_id_label_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX tagmanifestlabel_annotated_id_label_id ON public.tagmanifestlabel USING btree (annotated_id, label_id);


--
-- Name: tagmanifestlabel_label_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tagmanifestlabel_label_id ON public.tagmanifestlabel USING btree (label_id);


--
-- Name: tagmanifestlabel_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tagmanifestlabel_repository_id ON public.tagmanifestlabel USING btree (repository_id);


--
-- Name: tagmanifestlabelmap_broken_manifest; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tagmanifestlabelmap_broken_manifest ON public.tagmanifestlabelmap USING btree (broken_manifest);


--
-- Name: tagmanifestlabelmap_label_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tagmanifestlabelmap_label_id ON public.tagmanifestlabelmap USING btree (label_id);


--
-- Name: tagmanifestlabelmap_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tagmanifestlabelmap_manifest_id ON public.tagmanifestlabelmap USING btree (manifest_id);


--
-- Name: tagmanifestlabelmap_manifest_label_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tagmanifestlabelmap_manifest_label_id ON public.tagmanifestlabelmap USING btree (manifest_label_id);


--
-- Name: tagmanifestlabelmap_tag_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tagmanifestlabelmap_tag_manifest_id ON public.tagmanifestlabelmap USING btree (tag_manifest_id);


--
-- Name: tagmanifestlabelmap_tag_manifest_label_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tagmanifestlabelmap_tag_manifest_label_id ON public.tagmanifestlabelmap USING btree (tag_manifest_label_id);


--
-- Name: tagmanifesttomanifest_broken; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tagmanifesttomanifest_broken ON public.tagmanifesttomanifest USING btree (broken);


--
-- Name: tagmanifesttomanifest_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tagmanifesttomanifest_manifest_id ON public.tagmanifesttomanifest USING btree (manifest_id);


--
-- Name: tagmanifesttomanifest_tag_manifest_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX tagmanifesttomanifest_tag_manifest_id ON public.tagmanifesttomanifest USING btree (tag_manifest_id);


--
-- Name: tagtorepositorytag_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX tagtorepositorytag_repository_id ON public.tagtorepositorytag USING btree (repository_id);


--
-- Name: tagtorepositorytag_repository_tag_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX tagtorepositorytag_repository_tag_id ON public.tagtorepositorytag USING btree (repository_tag_id);


--
-- Name: tagtorepositorytag_tag_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX tagtorepositorytag_tag_id ON public.tagtorepositorytag USING btree (tag_id);


--
-- Name: team_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX team_name ON public.team USING btree (name);


--
-- Name: team_name_organization_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX team_name_organization_id ON public.team USING btree (name, organization_id);


--
-- Name: team_organization_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX team_organization_id ON public.team USING btree (organization_id);


--
-- Name: team_role_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX team_role_id ON public.team USING btree (role_id);


--
-- Name: teammember_team_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX teammember_team_id ON public.teammember USING btree (team_id);


--
-- Name: teammember_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX teammember_user_id ON public.teammember USING btree (user_id);


--
-- Name: teammember_user_id_team_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX teammember_user_id_team_id ON public.teammember USING btree (user_id, team_id);


--
-- Name: teammemberinvite_inviter_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX teammemberinvite_inviter_id ON public.teammemberinvite USING btree (inviter_id);


--
-- Name: teammemberinvite_team_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX teammemberinvite_team_id ON public.teammemberinvite USING btree (team_id);


--
-- Name: teammemberinvite_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX teammemberinvite_user_id ON public.teammemberinvite USING btree (user_id);


--
-- Name: teamrole_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX teamrole_name ON public.teamrole USING btree (name);


--
-- Name: teamsync_last_updated; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX teamsync_last_updated ON public.teamsync USING btree (last_updated);


--
-- Name: teamsync_service_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX teamsync_service_id ON public.teamsync USING btree (service_id);


--
-- Name: teamsync_team_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX teamsync_team_id ON public.teamsync USING btree (team_id);


--
-- Name: torrentinfo_storage_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX torrentinfo_storage_id ON public.torrentinfo USING btree (storage_id);


--
-- Name: torrentinfo_storage_id_piece_length; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX torrentinfo_storage_id_piece_length ON public.torrentinfo USING btree (storage_id, piece_length);


--
-- Name: uniqueness_index; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX uniqueness_index ON public.derivedstorageforimage USING btree (source_image_id, transformation_id, uniqueness_hash);


--
-- Name: uploadedblob_blob_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX uploadedblob_blob_id ON public.uploadedblob USING btree (blob_id);


--
-- Name: uploadedblob_expires_at; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX uploadedblob_expires_at ON public.uploadedblob USING btree (expires_at);


--
-- Name: uploadedblob_repository_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX uploadedblob_repository_id ON public.uploadedblob USING btree (repository_id);


--
-- Name: user_email; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX user_email ON public."user" USING btree (email);


--
-- Name: user_invoice_email_address; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX user_invoice_email_address ON public."user" USING btree (invoice_email_address);


--
-- Name: user_last_accessed; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX user_last_accessed ON public."user" USING btree (last_accessed);


--
-- Name: user_organization; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX user_organization ON public."user" USING btree (organization);


--
-- Name: user_robot; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX user_robot ON public."user" USING btree (robot);


--
-- Name: user_stripe_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX user_stripe_id ON public."user" USING btree (stripe_id);


--
-- Name: user_username; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX user_username ON public."user" USING btree (username);


--
-- Name: user_uuid; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX user_uuid ON public."user" USING btree (uuid);


--
-- Name: userprompt_kind_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX userprompt_kind_id ON public.userprompt USING btree (kind_id);


--
-- Name: userprompt_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX userprompt_user_id ON public.userprompt USING btree (user_id);


--
-- Name: userprompt_user_id_kind_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX userprompt_user_id_kind_id ON public.userprompt USING btree (user_id, kind_id);


--
-- Name: userpromptkind_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX userpromptkind_name ON public.userpromptkind USING btree (name);


--
-- Name: userregion_location_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX userregion_location_id ON public.userregion USING btree (location_id);


--
-- Name: userregion_user_id; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE INDEX userregion_user_id ON public.userregion USING btree (user_id);


--
-- Name: visibility_name; Type: INDEX; Schema: public; Owner: quayregistry-quay-database
--

CREATE UNIQUE INDEX visibility_name ON public.visibility USING btree (name);


--
-- Name: accesstoken fk_accesstoken_kind_id_accesstokenkind; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.accesstoken
    ADD CONSTRAINT fk_accesstoken_kind_id_accesstokenkind FOREIGN KEY (kind_id) REFERENCES public.accesstokenkind(id);


--
-- Name: accesstoken fk_accesstoken_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.accesstoken
    ADD CONSTRAINT fk_accesstoken_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: accesstoken fk_accesstoken_role_id_role; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.accesstoken
    ADD CONSTRAINT fk_accesstoken_role_id_role FOREIGN KEY (role_id) REFERENCES public.role(id);


--
-- Name: apprblob fk_apprblob_media_type_id_mediatype; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprblob
    ADD CONSTRAINT fk_apprblob_media_type_id_mediatype FOREIGN KEY (media_type_id) REFERENCES public.mediatype(id);


--
-- Name: apprblobplacement fk_apprblobplacement_blob_id_apprblob; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprblobplacement
    ADD CONSTRAINT fk_apprblobplacement_blob_id_apprblob FOREIGN KEY (blob_id) REFERENCES public.apprblob(id);


--
-- Name: apprblobplacement fk_apprblobplacement_location_id_apprblobplacementlocation; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprblobplacement
    ADD CONSTRAINT fk_apprblobplacement_location_id_apprblobplacementlocation FOREIGN KEY (location_id) REFERENCES public.apprblobplacementlocation(id);


--
-- Name: apprmanifest fk_apprmanifest_media_type_id_mediatype; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprmanifest
    ADD CONSTRAINT fk_apprmanifest_media_type_id_mediatype FOREIGN KEY (media_type_id) REFERENCES public.mediatype(id);


--
-- Name: apprmanifestblob fk_apprmanifestblob_blob_id_apprblob; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprmanifestblob
    ADD CONSTRAINT fk_apprmanifestblob_blob_id_apprblob FOREIGN KEY (blob_id) REFERENCES public.apprblob(id);


--
-- Name: apprmanifestblob fk_apprmanifestblob_manifest_id_apprmanifest; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprmanifestblob
    ADD CONSTRAINT fk_apprmanifestblob_manifest_id_apprmanifest FOREIGN KEY (manifest_id) REFERENCES public.apprmanifest(id);


--
-- Name: apprmanifestlist fk_apprmanifestlist_media_type_id_mediatype; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprmanifestlist
    ADD CONSTRAINT fk_apprmanifestlist_media_type_id_mediatype FOREIGN KEY (media_type_id) REFERENCES public.mediatype(id);


--
-- Name: apprmanifestlistmanifest fk_apprmanifestlistmanifest_manifest_id_apprmanifest; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprmanifestlistmanifest
    ADD CONSTRAINT fk_apprmanifestlistmanifest_manifest_id_apprmanifest FOREIGN KEY (manifest_id) REFERENCES public.apprmanifest(id);


--
-- Name: apprmanifestlistmanifest fk_apprmanifestlistmanifest_manifest_list_id_apprmanifestlist; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprmanifestlistmanifest
    ADD CONSTRAINT fk_apprmanifestlistmanifest_manifest_list_id_apprmanifestlist FOREIGN KEY (manifest_list_id) REFERENCES public.apprmanifestlist(id);


--
-- Name: apprmanifestlistmanifest fk_apprmanifestlistmanifest_media_type_id_mediatype; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprmanifestlistmanifest
    ADD CONSTRAINT fk_apprmanifestlistmanifest_media_type_id_mediatype FOREIGN KEY (media_type_id) REFERENCES public.mediatype(id);


--
-- Name: apprtag fk_apprtag_linked_tag_id_apprtag; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprtag
    ADD CONSTRAINT fk_apprtag_linked_tag_id_apprtag FOREIGN KEY (linked_tag_id) REFERENCES public.apprtag(id);


--
-- Name: apprtag fk_apprtag_manifest_list_id_apprmanifestlist; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprtag
    ADD CONSTRAINT fk_apprtag_manifest_list_id_apprmanifestlist FOREIGN KEY (manifest_list_id) REFERENCES public.apprmanifestlist(id);


--
-- Name: apprtag fk_apprtag_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprtag
    ADD CONSTRAINT fk_apprtag_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: apprtag fk_apprtag_tag_kind_id_apprtagkind; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.apprtag
    ADD CONSTRAINT fk_apprtag_tag_kind_id_apprtagkind FOREIGN KEY (tag_kind_id) REFERENCES public.apprtagkind(id);


--
-- Name: appspecificauthtoken fk_appspecificauthtoken_user_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.appspecificauthtoken
    ADD CONSTRAINT fk_appspecificauthtoken_user_id_user FOREIGN KEY (user_id) REFERENCES public."user"(id);


--
-- Name: blobupload fk_blobupload_location_id_imagestoragelocation; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.blobupload
    ADD CONSTRAINT fk_blobupload_location_id_imagestoragelocation FOREIGN KEY (location_id) REFERENCES public.imagestoragelocation(id);


--
-- Name: blobupload fk_blobupload_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.blobupload
    ADD CONSTRAINT fk_blobupload_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: deletednamespace fk_deletednamespace_namespace_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.deletednamespace
    ADD CONSTRAINT fk_deletednamespace_namespace_id_user FOREIGN KEY (namespace_id) REFERENCES public."user"(id);


--
-- Name: deletedrepository fk_deletedrepository_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.deletedrepository
    ADD CONSTRAINT fk_deletedrepository_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: derivedstorageforimage fk_derivedstorageforimage_derivative_id_imagestorage; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.derivedstorageforimage
    ADD CONSTRAINT fk_derivedstorageforimage_derivative_id_imagestorage FOREIGN KEY (derivative_id) REFERENCES public.imagestorage(id);


--
-- Name: derivedstorageforimage fk_derivedstorageforimage_source_image_id_image; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.derivedstorageforimage
    ADD CONSTRAINT fk_derivedstorageforimage_source_image_id_image FOREIGN KEY (source_image_id) REFERENCES public.image(id);


--
-- Name: derivedstorageforimage fk_derivedstorageforimage_transformation_constraint; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.derivedstorageforimage
    ADD CONSTRAINT fk_derivedstorageforimage_transformation_constraint FOREIGN KEY (transformation_id) REFERENCES public.imagestoragetransformation(id);


--
-- Name: emailconfirmation fk_emailconfirmation_user_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.emailconfirmation
    ADD CONSTRAINT fk_emailconfirmation_user_id_user FOREIGN KEY (user_id) REFERENCES public."user"(id);


--
-- Name: federatedlogin fk_federatedlogin_service_id_loginservice; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.federatedlogin
    ADD CONSTRAINT fk_federatedlogin_service_id_loginservice FOREIGN KEY (service_id) REFERENCES public.loginservice(id);


--
-- Name: federatedlogin fk_federatedlogin_user_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.federatedlogin
    ADD CONSTRAINT fk_federatedlogin_user_id_user FOREIGN KEY (user_id) REFERENCES public."user"(id);


--
-- Name: image fk_image_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.image
    ADD CONSTRAINT fk_image_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: image fk_image_storage_id_imagestorage; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.image
    ADD CONSTRAINT fk_image_storage_id_imagestorage FOREIGN KEY (storage_id) REFERENCES public.imagestorage(id);


--
-- Name: imagestorageplacement fk_imagestorageplacement_location_id_imagestoragelocation; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestorageplacement
    ADD CONSTRAINT fk_imagestorageplacement_location_id_imagestoragelocation FOREIGN KEY (location_id) REFERENCES public.imagestoragelocation(id);


--
-- Name: imagestorageplacement fk_imagestorageplacement_storage_id_imagestorage; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestorageplacement
    ADD CONSTRAINT fk_imagestorageplacement_storage_id_imagestorage FOREIGN KEY (storage_id) REFERENCES public.imagestorage(id);


--
-- Name: imagestoragesignature fk_imagestoragesignature_kind_id_imagestoragesignaturekind; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestoragesignature
    ADD CONSTRAINT fk_imagestoragesignature_kind_id_imagestoragesignaturekind FOREIGN KEY (kind_id) REFERENCES public.imagestoragesignaturekind(id);


--
-- Name: imagestoragesignature fk_imagestoragesignature_storage_id_imagestorage; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.imagestoragesignature
    ADD CONSTRAINT fk_imagestoragesignature_storage_id_imagestorage FOREIGN KEY (storage_id) REFERENCES public.imagestorage(id);


--
-- Name: label fk_label_media_type_id_mediatype; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.label
    ADD CONSTRAINT fk_label_media_type_id_mediatype FOREIGN KEY (media_type_id) REFERENCES public.mediatype(id);


--
-- Name: label fk_label_source_type_id_labelsourcetype; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.label
    ADD CONSTRAINT fk_label_source_type_id_labelsourcetype FOREIGN KEY (source_type_id) REFERENCES public.labelsourcetype(id);


--
-- Name: logentry2 fk_logentry2_kind_id_logentrykind; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.logentry2
    ADD CONSTRAINT fk_logentry2_kind_id_logentrykind FOREIGN KEY (kind_id) REFERENCES public.logentrykind(id);


--
-- Name: logentry fk_logentry_kind_id_logentrykind; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.logentry
    ADD CONSTRAINT fk_logentry_kind_id_logentrykind FOREIGN KEY (kind_id) REFERENCES public.logentrykind(id);


--
-- Name: manifest fk_manifest_media_type_id_mediatype; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifest
    ADD CONSTRAINT fk_manifest_media_type_id_mediatype FOREIGN KEY (media_type_id) REFERENCES public.mediatype(id);


--
-- Name: manifest fk_manifest_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifest
    ADD CONSTRAINT fk_manifest_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: manifestblob fk_manifestblob_blob_id_imagestorage; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestblob
    ADD CONSTRAINT fk_manifestblob_blob_id_imagestorage FOREIGN KEY (blob_id) REFERENCES public.imagestorage(id);


--
-- Name: manifestblob fk_manifestblob_manifest_id_manifest; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestblob
    ADD CONSTRAINT fk_manifestblob_manifest_id_manifest FOREIGN KEY (manifest_id) REFERENCES public.manifest(id);


--
-- Name: manifestblob fk_manifestblob_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestblob
    ADD CONSTRAINT fk_manifestblob_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: manifestchild fk_manifestchild_child_manifest_id_manifest; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestchild
    ADD CONSTRAINT fk_manifestchild_child_manifest_id_manifest FOREIGN KEY (child_manifest_id) REFERENCES public.manifest(id);


--
-- Name: manifestchild fk_manifestchild_manifest_id_manifest; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestchild
    ADD CONSTRAINT fk_manifestchild_manifest_id_manifest FOREIGN KEY (manifest_id) REFERENCES public.manifest(id);


--
-- Name: manifestchild fk_manifestchild_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestchild
    ADD CONSTRAINT fk_manifestchild_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: manifestlabel fk_manifestlabel_label_id_label; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestlabel
    ADD CONSTRAINT fk_manifestlabel_label_id_label FOREIGN KEY (label_id) REFERENCES public.label(id);


--
-- Name: manifestlabel fk_manifestlabel_manifest_id_manifest; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestlabel
    ADD CONSTRAINT fk_manifestlabel_manifest_id_manifest FOREIGN KEY (manifest_id) REFERENCES public.manifest(id);


--
-- Name: manifestlabel fk_manifestlabel_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestlabel
    ADD CONSTRAINT fk_manifestlabel_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: manifestlegacyimage fk_manifestlegacyimage_image_id_image; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestlegacyimage
    ADD CONSTRAINT fk_manifestlegacyimage_image_id_image FOREIGN KEY (image_id) REFERENCES public.image(id);


--
-- Name: manifestlegacyimage fk_manifestlegacyimage_manifest_id_manifest; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestlegacyimage
    ADD CONSTRAINT fk_manifestlegacyimage_manifest_id_manifest FOREIGN KEY (manifest_id) REFERENCES public.manifest(id);


--
-- Name: manifestlegacyimage fk_manifestlegacyimage_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestlegacyimage
    ADD CONSTRAINT fk_manifestlegacyimage_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: manifestsecuritystatus fk_manifestsecuritystatus_manifest_id_manifest; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestsecuritystatus
    ADD CONSTRAINT fk_manifestsecuritystatus_manifest_id_manifest FOREIGN KEY (manifest_id) REFERENCES public.manifest(id);


--
-- Name: manifestsecuritystatus fk_manifestsecuritystatus_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.manifestsecuritystatus
    ADD CONSTRAINT fk_manifestsecuritystatus_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: messages fk_messages_media_type_id_mediatype; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.messages
    ADD CONSTRAINT fk_messages_media_type_id_mediatype FOREIGN KEY (media_type_id) REFERENCES public.mediatype(id);


--
-- Name: namespacegeorestriction fk_namespacegeorestriction_namespace_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.namespacegeorestriction
    ADD CONSTRAINT fk_namespacegeorestriction_namespace_id_user FOREIGN KEY (namespace_id) REFERENCES public."user"(id);


--
-- Name: notification fk_notification_kind_id_notificationkind; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.notification
    ADD CONSTRAINT fk_notification_kind_id_notificationkind FOREIGN KEY (kind_id) REFERENCES public.notificationkind(id);


--
-- Name: notification fk_notification_target_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.notification
    ADD CONSTRAINT fk_notification_target_id_user FOREIGN KEY (target_id) REFERENCES public."user"(id);


--
-- Name: oauthaccesstoken fk_oauthaccesstoken_application_id_oauthapplication; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.oauthaccesstoken
    ADD CONSTRAINT fk_oauthaccesstoken_application_id_oauthapplication FOREIGN KEY (application_id) REFERENCES public.oauthapplication(id);


--
-- Name: oauthaccesstoken fk_oauthaccesstoken_authorized_user_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.oauthaccesstoken
    ADD CONSTRAINT fk_oauthaccesstoken_authorized_user_id_user FOREIGN KEY (authorized_user_id) REFERENCES public."user"(id);


--
-- Name: oauthapplication fk_oauthapplication_organization_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.oauthapplication
    ADD CONSTRAINT fk_oauthapplication_organization_id_user FOREIGN KEY (organization_id) REFERENCES public."user"(id);


--
-- Name: oauthauthorizationcode fk_oauthauthorizationcode_application_id_oauthapplication; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.oauthauthorizationcode
    ADD CONSTRAINT fk_oauthauthorizationcode_application_id_oauthapplication FOREIGN KEY (application_id) REFERENCES public.oauthapplication(id);


--
-- Name: permissionprototype fk_permissionprototype_activating_user_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.permissionprototype
    ADD CONSTRAINT fk_permissionprototype_activating_user_id_user FOREIGN KEY (activating_user_id) REFERENCES public."user"(id);


--
-- Name: permissionprototype fk_permissionprototype_delegate_team_id_team; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.permissionprototype
    ADD CONSTRAINT fk_permissionprototype_delegate_team_id_team FOREIGN KEY (delegate_team_id) REFERENCES public.team(id);


--
-- Name: permissionprototype fk_permissionprototype_delegate_user_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.permissionprototype
    ADD CONSTRAINT fk_permissionprototype_delegate_user_id_user FOREIGN KEY (delegate_user_id) REFERENCES public."user"(id);


--
-- Name: permissionprototype fk_permissionprototype_org_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.permissionprototype
    ADD CONSTRAINT fk_permissionprototype_org_id_user FOREIGN KEY (org_id) REFERENCES public."user"(id);


--
-- Name: permissionprototype fk_permissionprototype_role_id_role; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.permissionprototype
    ADD CONSTRAINT fk_permissionprototype_role_id_role FOREIGN KEY (role_id) REFERENCES public.role(id);


--
-- Name: quayrelease fk_quayrelease_region_id_quayregion; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.quayrelease
    ADD CONSTRAINT fk_quayrelease_region_id_quayregion FOREIGN KEY (region_id) REFERENCES public.quayregion(id);


--
-- Name: quayrelease fk_quayrelease_service_id_quayservice; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.quayrelease
    ADD CONSTRAINT fk_quayrelease_service_id_quayservice FOREIGN KEY (service_id) REFERENCES public.quayservice(id);


--
-- Name: repomirrorconfig fk_repomirrorconfig_internal_robot_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repomirrorconfig
    ADD CONSTRAINT fk_repomirrorconfig_internal_robot_id_user FOREIGN KEY (internal_robot_id) REFERENCES public."user"(id);


--
-- Name: repomirrorconfig fk_repomirrorconfig_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repomirrorconfig
    ADD CONSTRAINT fk_repomirrorconfig_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: repomirrorconfig fk_repomirrorconfig_root_rule_id_repomirrorrule; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repomirrorconfig
    ADD CONSTRAINT fk_repomirrorconfig_root_rule_id_repomirrorrule FOREIGN KEY (root_rule_id) REFERENCES public.repomirrorrule(id);


--
-- Name: repomirrorrule fk_repomirrorrule_left_child_id_repomirrorrule; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repomirrorrule
    ADD CONSTRAINT fk_repomirrorrule_left_child_id_repomirrorrule FOREIGN KEY (left_child_id) REFERENCES public.repomirrorrule(id);


--
-- Name: repomirrorrule fk_repomirrorrule_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repomirrorrule
    ADD CONSTRAINT fk_repomirrorrule_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: repomirrorrule fk_repomirrorrule_right_child_id_repomirrorrule; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repomirrorrule
    ADD CONSTRAINT fk_repomirrorrule_right_child_id_repomirrorrule FOREIGN KEY (right_child_id) REFERENCES public.repomirrorrule(id);


--
-- Name: repository fk_repository_kind_id_repositorykind; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repository
    ADD CONSTRAINT fk_repository_kind_id_repositorykind FOREIGN KEY (kind_id) REFERENCES public.repositorykind(id);


--
-- Name: repository fk_repository_namespace_user_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repository
    ADD CONSTRAINT fk_repository_namespace_user_id_user FOREIGN KEY (namespace_user_id) REFERENCES public."user"(id);


--
-- Name: repository fk_repository_visibility_id_visibility; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repository
    ADD CONSTRAINT fk_repository_visibility_id_visibility FOREIGN KEY (visibility_id) REFERENCES public.visibility(id);


--
-- Name: repositoryactioncount fk_repositoryactioncount_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositoryactioncount
    ADD CONSTRAINT fk_repositoryactioncount_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: repositoryauthorizedemail fk_repositoryauthorizedemail_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositoryauthorizedemail
    ADD CONSTRAINT fk_repositoryauthorizedemail_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: repositorybuild fk_repositorybuild_access_token_id_accesstoken; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorybuild
    ADD CONSTRAINT fk_repositorybuild_access_token_id_accesstoken FOREIGN KEY (access_token_id) REFERENCES public.accesstoken(id);


--
-- Name: repositorybuild fk_repositorybuild_pull_robot_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorybuild
    ADD CONSTRAINT fk_repositorybuild_pull_robot_id_user FOREIGN KEY (pull_robot_id) REFERENCES public."user"(id);


--
-- Name: repositorybuild fk_repositorybuild_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorybuild
    ADD CONSTRAINT fk_repositorybuild_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: repositorybuild fk_repositorybuild_trigger_id_repositorybuildtrigger; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorybuild
    ADD CONSTRAINT fk_repositorybuild_trigger_id_repositorybuildtrigger FOREIGN KEY (trigger_id) REFERENCES public.repositorybuildtrigger(id);


--
-- Name: repositorybuildtrigger fk_repositorybuildtrigger_connected_user_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorybuildtrigger
    ADD CONSTRAINT fk_repositorybuildtrigger_connected_user_id_user FOREIGN KEY (connected_user_id) REFERENCES public."user"(id);


--
-- Name: repositorybuildtrigger fk_repositorybuildtrigger_disabled_reason_id_disablereason; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorybuildtrigger
    ADD CONSTRAINT fk_repositorybuildtrigger_disabled_reason_id_disablereason FOREIGN KEY (disabled_reason_id) REFERENCES public.disablereason(id);


--
-- Name: repositorybuildtrigger fk_repositorybuildtrigger_pull_robot_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorybuildtrigger
    ADD CONSTRAINT fk_repositorybuildtrigger_pull_robot_id_user FOREIGN KEY (pull_robot_id) REFERENCES public."user"(id);


--
-- Name: repositorybuildtrigger fk_repositorybuildtrigger_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorybuildtrigger
    ADD CONSTRAINT fk_repositorybuildtrigger_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: repositorybuildtrigger fk_repositorybuildtrigger_service_id_buildtriggerservice; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorybuildtrigger
    ADD CONSTRAINT fk_repositorybuildtrigger_service_id_buildtriggerservice FOREIGN KEY (service_id) REFERENCES public.buildtriggerservice(id);


--
-- Name: repositorybuildtrigger fk_repositorybuildtrigger_write_token_id_accesstoken; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorybuildtrigger
    ADD CONSTRAINT fk_repositorybuildtrigger_write_token_id_accesstoken FOREIGN KEY (write_token_id) REFERENCES public.accesstoken(id);


--
-- Name: repositorynotification fk_repositorynotification_event_id_externalnotificationevent; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorynotification
    ADD CONSTRAINT fk_repositorynotification_event_id_externalnotificationevent FOREIGN KEY (event_id) REFERENCES public.externalnotificationevent(id);


--
-- Name: repositorynotification fk_repositorynotification_method_id_externalnotificationmethod; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorynotification
    ADD CONSTRAINT fk_repositorynotification_method_id_externalnotificationmethod FOREIGN KEY (method_id) REFERENCES public.externalnotificationmethod(id);


--
-- Name: repositorynotification fk_repositorynotification_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorynotification
    ADD CONSTRAINT fk_repositorynotification_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: repositorypermission fk_repositorypermission_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorypermission
    ADD CONSTRAINT fk_repositorypermission_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: repositorypermission fk_repositorypermission_role_id_role; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorypermission
    ADD CONSTRAINT fk_repositorypermission_role_id_role FOREIGN KEY (role_id) REFERENCES public.role(id);


--
-- Name: repositorypermission fk_repositorypermission_team_id_team; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorypermission
    ADD CONSTRAINT fk_repositorypermission_team_id_team FOREIGN KEY (team_id) REFERENCES public.team(id);


--
-- Name: repositorypermission fk_repositorypermission_user_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorypermission
    ADD CONSTRAINT fk_repositorypermission_user_id_user FOREIGN KEY (user_id) REFERENCES public."user"(id);


--
-- Name: repositorysearchscore fk_repositorysearchscore_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorysearchscore
    ADD CONSTRAINT fk_repositorysearchscore_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: repositorytag fk_repositorytag_image_id_image; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorytag
    ADD CONSTRAINT fk_repositorytag_image_id_image FOREIGN KEY (image_id) REFERENCES public.image(id);


--
-- Name: repositorytag fk_repositorytag_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.repositorytag
    ADD CONSTRAINT fk_repositorytag_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: robotaccountmetadata fk_robotaccountmetadata_robot_account_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.robotaccountmetadata
    ADD CONSTRAINT fk_robotaccountmetadata_robot_account_id_user FOREIGN KEY (robot_account_id) REFERENCES public."user"(id);


--
-- Name: robotaccounttoken fk_robotaccounttoken_robot_account_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.robotaccounttoken
    ADD CONSTRAINT fk_robotaccounttoken_robot_account_id_user FOREIGN KEY (robot_account_id) REFERENCES public."user"(id);


--
-- Name: servicekey fk_servicekey_approval_id_servicekeyapproval; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.servicekey
    ADD CONSTRAINT fk_servicekey_approval_id_servicekeyapproval FOREIGN KEY (approval_id) REFERENCES public.servicekeyapproval(id);


--
-- Name: star fk_star_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.star
    ADD CONSTRAINT fk_star_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: star fk_star_user_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.star
    ADD CONSTRAINT fk_star_user_id_user FOREIGN KEY (user_id) REFERENCES public."user"(id);


--
-- Name: tag fk_tag_linked_tag_id_tag; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tag
    ADD CONSTRAINT fk_tag_linked_tag_id_tag FOREIGN KEY (linked_tag_id) REFERENCES public.tag(id);


--
-- Name: tag fk_tag_manifest_id_manifest; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tag
    ADD CONSTRAINT fk_tag_manifest_id_manifest FOREIGN KEY (manifest_id) REFERENCES public.manifest(id);


--
-- Name: tag fk_tag_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tag
    ADD CONSTRAINT fk_tag_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: tag fk_tag_tag_kind_id_tagkind; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tag
    ADD CONSTRAINT fk_tag_tag_kind_id_tagkind FOREIGN KEY (tag_kind_id) REFERENCES public.tagkind(id);


--
-- Name: tagmanifest fk_tagmanifest_tag_id_repositorytag; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifest
    ADD CONSTRAINT fk_tagmanifest_tag_id_repositorytag FOREIGN KEY (tag_id) REFERENCES public.repositorytag(id);


--
-- Name: tagmanifestlabel fk_tagmanifestlabel_annotated_id_tagmanifest; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifestlabel
    ADD CONSTRAINT fk_tagmanifestlabel_annotated_id_tagmanifest FOREIGN KEY (annotated_id) REFERENCES public.tagmanifest(id);


--
-- Name: tagmanifestlabel fk_tagmanifestlabel_label_id_label; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifestlabel
    ADD CONSTRAINT fk_tagmanifestlabel_label_id_label FOREIGN KEY (label_id) REFERENCES public.label(id);


--
-- Name: tagmanifestlabel fk_tagmanifestlabel_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifestlabel
    ADD CONSTRAINT fk_tagmanifestlabel_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: tagmanifestlabelmap fk_tagmanifestlabelmap_label_id_label; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifestlabelmap
    ADD CONSTRAINT fk_tagmanifestlabelmap_label_id_label FOREIGN KEY (label_id) REFERENCES public.label(id);


--
-- Name: tagmanifestlabelmap fk_tagmanifestlabelmap_manifest_id_manifest; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifestlabelmap
    ADD CONSTRAINT fk_tagmanifestlabelmap_manifest_id_manifest FOREIGN KEY (manifest_id) REFERENCES public.manifest(id);


--
-- Name: tagmanifestlabelmap fk_tagmanifestlabelmap_manifest_label_id_manifestlabel; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifestlabelmap
    ADD CONSTRAINT fk_tagmanifestlabelmap_manifest_label_id_manifestlabel FOREIGN KEY (manifest_label_id) REFERENCES public.manifestlabel(id);


--
-- Name: tagmanifestlabelmap fk_tagmanifestlabelmap_tag_manifest_id_tagmanifest; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifestlabelmap
    ADD CONSTRAINT fk_tagmanifestlabelmap_tag_manifest_id_tagmanifest FOREIGN KEY (tag_manifest_id) REFERENCES public.tagmanifest(id);


--
-- Name: tagmanifestlabelmap fk_tagmanifestlabelmap_tag_manifest_label_id_tagmanifestlabel; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifestlabelmap
    ADD CONSTRAINT fk_tagmanifestlabelmap_tag_manifest_label_id_tagmanifestlabel FOREIGN KEY (tag_manifest_label_id) REFERENCES public.tagmanifestlabel(id);


--
-- Name: tagmanifesttomanifest fk_tagmanifesttomanifest_manifest_id_manifest; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifesttomanifest
    ADD CONSTRAINT fk_tagmanifesttomanifest_manifest_id_manifest FOREIGN KEY (manifest_id) REFERENCES public.manifest(id);


--
-- Name: tagmanifesttomanifest fk_tagmanifesttomanifest_tag_manifest_id_tagmanifest; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagmanifesttomanifest
    ADD CONSTRAINT fk_tagmanifesttomanifest_tag_manifest_id_tagmanifest FOREIGN KEY (tag_manifest_id) REFERENCES public.tagmanifest(id);


--
-- Name: tagtorepositorytag fk_tagtorepositorytag_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagtorepositorytag
    ADD CONSTRAINT fk_tagtorepositorytag_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: tagtorepositorytag fk_tagtorepositorytag_repository_tag_id_repositorytag; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagtorepositorytag
    ADD CONSTRAINT fk_tagtorepositorytag_repository_tag_id_repositorytag FOREIGN KEY (repository_tag_id) REFERENCES public.repositorytag(id);


--
-- Name: tagtorepositorytag fk_tagtorepositorytag_tag_id_tag; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.tagtorepositorytag
    ADD CONSTRAINT fk_tagtorepositorytag_tag_id_tag FOREIGN KEY (tag_id) REFERENCES public.tag(id);


--
-- Name: team fk_team_organization_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.team
    ADD CONSTRAINT fk_team_organization_id_user FOREIGN KEY (organization_id) REFERENCES public."user"(id);


--
-- Name: team fk_team_role_id_teamrole; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.team
    ADD CONSTRAINT fk_team_role_id_teamrole FOREIGN KEY (role_id) REFERENCES public.teamrole(id);


--
-- Name: teammember fk_teammember_team_id_team; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.teammember
    ADD CONSTRAINT fk_teammember_team_id_team FOREIGN KEY (team_id) REFERENCES public.team(id);


--
-- Name: teammember fk_teammember_user_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.teammember
    ADD CONSTRAINT fk_teammember_user_id_user FOREIGN KEY (user_id) REFERENCES public."user"(id);


--
-- Name: teammemberinvite fk_teammemberinvite_inviter_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.teammemberinvite
    ADD CONSTRAINT fk_teammemberinvite_inviter_id_user FOREIGN KEY (inviter_id) REFERENCES public."user"(id);


--
-- Name: teammemberinvite fk_teammemberinvite_team_id_team; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.teammemberinvite
    ADD CONSTRAINT fk_teammemberinvite_team_id_team FOREIGN KEY (team_id) REFERENCES public.team(id);


--
-- Name: teammemberinvite fk_teammemberinvite_user_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.teammemberinvite
    ADD CONSTRAINT fk_teammemberinvite_user_id_user FOREIGN KEY (user_id) REFERENCES public."user"(id);


--
-- Name: teamsync fk_teamsync_service_id_loginservice; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.teamsync
    ADD CONSTRAINT fk_teamsync_service_id_loginservice FOREIGN KEY (service_id) REFERENCES public.loginservice(id);


--
-- Name: teamsync fk_teamsync_team_id_team; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.teamsync
    ADD CONSTRAINT fk_teamsync_team_id_team FOREIGN KEY (team_id) REFERENCES public.team(id);


--
-- Name: torrentinfo fk_torrentinfo_storage_id_imagestorage; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.torrentinfo
    ADD CONSTRAINT fk_torrentinfo_storage_id_imagestorage FOREIGN KEY (storage_id) REFERENCES public.imagestorage(id);


--
-- Name: uploadedblob fk_uploadedblob_blob_id_imagestorage; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.uploadedblob
    ADD CONSTRAINT fk_uploadedblob_blob_id_imagestorage FOREIGN KEY (blob_id) REFERENCES public.imagestorage(id);


--
-- Name: uploadedblob fk_uploadedblob_repository_id_repository; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.uploadedblob
    ADD CONSTRAINT fk_uploadedblob_repository_id_repository FOREIGN KEY (repository_id) REFERENCES public.repository(id);


--
-- Name: userprompt fk_userprompt_kind_id_userpromptkind; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.userprompt
    ADD CONSTRAINT fk_userprompt_kind_id_userpromptkind FOREIGN KEY (kind_id) REFERENCES public.userpromptkind(id);


--
-- Name: userprompt fk_userprompt_user_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.userprompt
    ADD CONSTRAINT fk_userprompt_user_id_user FOREIGN KEY (user_id) REFERENCES public."user"(id);


--
-- Name: userregion fk_userregion_location_id_imagestoragelocation; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.userregion
    ADD CONSTRAINT fk_userregion_location_id_imagestoragelocation FOREIGN KEY (location_id) REFERENCES public.imagestoragelocation(id);


--
-- Name: userregion fk_userregion_user_id_user; Type: FK CONSTRAINT; Schema: public; Owner: quayregistry-quay-database
--

ALTER TABLE ONLY public.userregion
    ADD CONSTRAINT fk_userregion_user_id_user FOREIGN KEY (user_id) REFERENCES public."user"(id);


--
--

