--
-- PostgreSQL database cluster dump
--

SET default_transaction_read_only = off;

SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = on;

--
-- Roles
--

CREATE ROLE glab;
ALTER ROLE glab WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB LOGIN NOREPLICATION PASSWORD 'md52874c20c29e0b77958abded1053c11e9';
CREATE ROLE postgres;
ALTER ROLE postgres WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN REPLICATION;
ALTER ROLE glab SET client_encoding TO 'utf8';
ALTER ROLE glab SET default_transaction_isolation TO 'read committed';
ALTER ROLE glab SET "TimeZone" TO 'UTC';






--
-- Database creation
--

CREATE DATABASE gstudio_psql WITH TEMPLATE = template0 OWNER = postgres;
REVOKE ALL ON DATABASE gstudio_psql FROM PUBLIC;
REVOKE ALL ON DATABASE gstudio_psql FROM postgres;
GRANT ALL ON DATABASE gstudio_psql TO postgres;
GRANT CONNECT,TEMPORARY ON DATABASE gstudio_psql TO PUBLIC;
GRANT ALL ON DATABASE gstudio_psql TO glab;
REVOKE ALL ON DATABASE template1 FROM PUBLIC;
REVOKE ALL ON DATABASE template1 FROM postgres;
GRANT ALL ON DATABASE template1 TO postgres;
GRANT CONNECT ON DATABASE template1 TO PUBLIC;


\connect gstudio_psql

SET default_transaction_read_only = off;

--
-- PostgreSQL database dump
--

SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;

--
-- 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';


SET search_path = public, pg_catalog;

SET default_tablespace = '';

SET default_with_oids = false;

--
-- Name: auth_group; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE auth_group (
    id integer NOT NULL,
    name character varying(80) NOT NULL
);


ALTER TABLE public.auth_group OWNER TO glab;

--
-- Name: auth_group_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE auth_group_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.auth_group_id_seq OWNER TO glab;

--
-- Name: auth_group_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE auth_group_id_seq OWNED BY auth_group.id;


--
-- Name: auth_group_permissions; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE auth_group_permissions (
    id integer NOT NULL,
    group_id integer NOT NULL,
    permission_id integer NOT NULL
);


ALTER TABLE public.auth_group_permissions OWNER TO glab;

--
-- Name: auth_group_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE auth_group_permissions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.auth_group_permissions_id_seq OWNER TO glab;

--
-- Name: auth_group_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE auth_group_permissions_id_seq OWNED BY auth_group_permissions.id;


--
-- Name: auth_permission; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE auth_permission (
    id integer NOT NULL,
    name character varying(50) NOT NULL,
    content_type_id integer NOT NULL,
    codename character varying(100) NOT NULL
);


ALTER TABLE public.auth_permission OWNER TO glab;

--
-- Name: auth_permission_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE auth_permission_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.auth_permission_id_seq OWNER TO glab;

--
-- Name: auth_permission_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE auth_permission_id_seq OWNED BY auth_permission.id;


--
-- Name: auth_user; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE auth_user (
    id integer NOT NULL,
    password character varying(128) NOT NULL,
    last_login timestamp with time zone NOT NULL,
    is_superuser boolean NOT NULL,
    username character varying(30) NOT NULL,
    first_name character varying(30) NOT NULL,
    last_name character varying(30) NOT NULL,
    email character varying(75) NOT NULL,
    is_staff boolean NOT NULL,
    is_active boolean NOT NULL,
    date_joined timestamp with time zone NOT NULL
);


ALTER TABLE public.auth_user OWNER TO glab;

--
-- Name: auth_user_groups; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE auth_user_groups (
    id integer NOT NULL,
    user_id integer NOT NULL,
    group_id integer NOT NULL
);


ALTER TABLE public.auth_user_groups OWNER TO glab;

--
-- Name: auth_user_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE auth_user_groups_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.auth_user_groups_id_seq OWNER TO glab;

--
-- Name: auth_user_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE auth_user_groups_id_seq OWNED BY auth_user_groups.id;


--
-- Name: auth_user_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE auth_user_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.auth_user_id_seq OWNER TO glab;

--
-- Name: auth_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE auth_user_id_seq OWNED BY auth_user.id;


--
-- Name: auth_user_user_permissions; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE auth_user_user_permissions (
    id integer NOT NULL,
    user_id integer NOT NULL,
    permission_id integer NOT NULL
);


ALTER TABLE public.auth_user_user_permissions OWNER TO glab;

--
-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE auth_user_user_permissions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.auth_user_user_permissions_id_seq OWNER TO glab;

--
-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE auth_user_user_permissions_id_seq OWNED BY auth_user_user_permissions.id;


--
-- Name: captcha_captchastore; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE captcha_captchastore (
    id integer NOT NULL,
    challenge character varying(32) NOT NULL,
    response character varying(32) NOT NULL,
    hashkey character varying(40) NOT NULL,
    expiration timestamp with time zone NOT NULL
);


ALTER TABLE public.captcha_captchastore OWNER TO glab;

--
-- Name: captcha_captchastore_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE captcha_captchastore_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.captcha_captchastore_id_seq OWNER TO glab;

--
-- Name: captcha_captchastore_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE captcha_captchastore_id_seq OWNED BY captcha_captchastore.id;


--
-- Name: celery_taskmeta; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE celery_taskmeta (
    id integer NOT NULL,
    task_id character varying(255) NOT NULL,
    status character varying(50) NOT NULL,
    result text,
    date_done timestamp with time zone NOT NULL,
    traceback text,
    hidden boolean NOT NULL,
    meta text
);


ALTER TABLE public.celery_taskmeta OWNER TO glab;

--
-- Name: celery_taskmeta_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE celery_taskmeta_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.celery_taskmeta_id_seq OWNER TO glab;

--
-- Name: celery_taskmeta_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE celery_taskmeta_id_seq OWNED BY celery_taskmeta.id;


--
-- Name: celery_tasksetmeta; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE celery_tasksetmeta (
    id integer NOT NULL,
    taskset_id character varying(255) NOT NULL,
    result text NOT NULL,
    date_done timestamp with time zone NOT NULL,
    hidden boolean NOT NULL
);


ALTER TABLE public.celery_tasksetmeta OWNER TO glab;

--
-- Name: celery_tasksetmeta_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE celery_tasksetmeta_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.celery_tasksetmeta_id_seq OWNER TO glab;

--
-- Name: celery_tasksetmeta_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE celery_tasksetmeta_id_seq OWNED BY celery_tasksetmeta.id;


--
-- Name: django_admin_log; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE django_admin_log (
    id integer NOT NULL,
    action_time timestamp with time zone NOT NULL,
    user_id integer NOT NULL,
    content_type_id integer,
    object_id text,
    object_repr character varying(200) NOT NULL,
    action_flag smallint NOT NULL,
    change_message text NOT NULL,
    CONSTRAINT django_admin_log_action_flag_check CHECK ((action_flag >= 0))
);


ALTER TABLE public.django_admin_log OWNER TO glab;

--
-- Name: django_admin_log_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE django_admin_log_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.django_admin_log_id_seq OWNER TO glab;

--
-- Name: django_admin_log_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE django_admin_log_id_seq OWNED BY django_admin_log.id;


--
-- Name: django_content_type; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE django_content_type (
    id integer NOT NULL,
    name character varying(100) NOT NULL,
    app_label character varying(100) NOT NULL,
    model character varying(100) NOT NULL
);


ALTER TABLE public.django_content_type OWNER TO glab;

--
-- Name: django_content_type_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE django_content_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.django_content_type_id_seq OWNER TO glab;

--
-- Name: django_content_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE django_content_type_id_seq OWNED BY django_content_type.id;


--
-- Name: django_mailbox_mailbox; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE django_mailbox_mailbox (
    id integer NOT NULL,
    name character varying(255) NOT NULL,
    uri character varying(255),
    from_email character varying(255),
    active boolean NOT NULL
);


ALTER TABLE public.django_mailbox_mailbox OWNER TO glab;

--
-- Name: django_mailbox_mailbox_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE django_mailbox_mailbox_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.django_mailbox_mailbox_id_seq OWNER TO glab;

--
-- Name: django_mailbox_mailbox_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE django_mailbox_mailbox_id_seq OWNED BY django_mailbox_mailbox.id;


--
-- Name: django_mailbox_message; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE django_mailbox_message (
    id integer NOT NULL,
    mailbox_id integer NOT NULL,
    subject character varying(255) NOT NULL,
    message_id character varying(255) NOT NULL,
    in_reply_to_id integer,
    from_header character varying(255) NOT NULL,
    to_header text NOT NULL,
    outgoing boolean NOT NULL,
    body text NOT NULL,
    encoded boolean NOT NULL,
    processed timestamp with time zone NOT NULL,
    read timestamp with time zone,
    eml character varying(100)
);


ALTER TABLE public.django_mailbox_message OWNER TO glab;

--
-- Name: django_mailbox_message_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE django_mailbox_message_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.django_mailbox_message_id_seq OWNER TO glab;

--
-- Name: django_mailbox_message_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE django_mailbox_message_id_seq OWNED BY django_mailbox_message.id;


--
-- Name: django_mailbox_messageattachment; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE django_mailbox_messageattachment (
    id integer NOT NULL,
    message_id integer,
    headers text,
    document character varying(100) NOT NULL
);


ALTER TABLE public.django_mailbox_messageattachment OWNER TO glab;

--
-- Name: django_mailbox_messageattachment_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE django_mailbox_messageattachment_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.django_mailbox_messageattachment_id_seq OWNER TO glab;

--
-- Name: django_mailbox_messageattachment_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE django_mailbox_messageattachment_id_seq OWNED BY django_mailbox_messageattachment.id;


--
-- Name: django_session; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE django_session (
    session_key character varying(40) NOT NULL,
    session_data text NOT NULL,
    expire_date timestamp with time zone NOT NULL
);


ALTER TABLE public.django_session OWNER TO glab;

--
-- Name: django_site; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE django_site (
    id integer NOT NULL,
    domain character varying(100) NOT NULL,
    name character varying(50) NOT NULL
);


ALTER TABLE public.django_site OWNER TO glab;

--
-- Name: django_site_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE django_site_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.django_site_id_seq OWNER TO glab;

--
-- Name: django_site_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE django_site_id_seq OWNED BY django_site.id;


--
-- Name: djangoratings_ignoredobject; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE djangoratings_ignoredobject (
    id integer NOT NULL,
    user_id integer NOT NULL,
    content_type_id integer NOT NULL,
    object_id integer NOT NULL,
    CONSTRAINT djangoratings_ignoredobject_object_id_check CHECK ((object_id >= 0))
);


ALTER TABLE public.djangoratings_ignoredobject OWNER TO glab;

--
-- Name: djangoratings_ignoredobject_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE djangoratings_ignoredobject_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.djangoratings_ignoredobject_id_seq OWNER TO glab;

--
-- Name: djangoratings_ignoredobject_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE djangoratings_ignoredobject_id_seq OWNED BY djangoratings_ignoredobject.id;


--
-- Name: djangoratings_score; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE djangoratings_score (
    id integer NOT NULL,
    content_type_id integer NOT NULL,
    object_id integer NOT NULL,
    key character varying(32) NOT NULL,
    score integer NOT NULL,
    votes integer NOT NULL,
    CONSTRAINT djangoratings_score_object_id_check CHECK ((object_id >= 0)),
    CONSTRAINT djangoratings_score_votes_check CHECK ((votes >= 0))
);


ALTER TABLE public.djangoratings_score OWNER TO glab;

--
-- Name: djangoratings_score_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE djangoratings_score_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.djangoratings_score_id_seq OWNER TO glab;

--
-- Name: djangoratings_score_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE djangoratings_score_id_seq OWNED BY djangoratings_score.id;


--
-- Name: djangoratings_similaruser; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE djangoratings_similaruser (
    id integer NOT NULL,
    from_user_id integer NOT NULL,
    to_user_id integer NOT NULL,
    agrees integer NOT NULL,
    disagrees integer NOT NULL,
    exclude boolean NOT NULL,
    CONSTRAINT djangoratings_similaruser_agrees_check CHECK ((agrees >= 0)),
    CONSTRAINT djangoratings_similaruser_disagrees_check CHECK ((disagrees >= 0))
);


ALTER TABLE public.djangoratings_similaruser OWNER TO glab;

--
-- Name: djangoratings_similaruser_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE djangoratings_similaruser_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.djangoratings_similaruser_id_seq OWNER TO glab;

--
-- Name: djangoratings_similaruser_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE djangoratings_similaruser_id_seq OWNED BY djangoratings_similaruser.id;


--
-- Name: djangoratings_vote; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE djangoratings_vote (
    id integer NOT NULL,
    content_type_id integer NOT NULL,
    object_id integer NOT NULL,
    key character varying(32) NOT NULL,
    score integer NOT NULL,
    user_id integer,
    ip_address inet NOT NULL,
    cookie character varying(32),
    date_added timestamp with time zone NOT NULL,
    date_changed timestamp with time zone NOT NULL,
    CONSTRAINT djangoratings_vote_object_id_check CHECK ((object_id >= 0))
);


ALTER TABLE public.djangoratings_vote OWNER TO glab;

--
-- Name: djangoratings_vote_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE djangoratings_vote_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.djangoratings_vote_id_seq OWNER TO glab;

--
-- Name: djangoratings_vote_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE djangoratings_vote_id_seq OWNED BY djangoratings_vote.id;


--
-- Name: djcelery_crontabschedule; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE djcelery_crontabschedule (
    id integer NOT NULL,
    minute character varying(64) NOT NULL,
    hour character varying(64) NOT NULL,
    day_of_week character varying(64) NOT NULL,
    day_of_month character varying(64) NOT NULL,
    month_of_year character varying(64) NOT NULL
);


ALTER TABLE public.djcelery_crontabschedule OWNER TO glab;

--
-- Name: djcelery_crontabschedule_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE djcelery_crontabschedule_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.djcelery_crontabschedule_id_seq OWNER TO glab;

--
-- Name: djcelery_crontabschedule_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE djcelery_crontabschedule_id_seq OWNED BY djcelery_crontabschedule.id;


--
-- Name: djcelery_intervalschedule; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE djcelery_intervalschedule (
    id integer NOT NULL,
    every integer NOT NULL,
    period character varying(24) NOT NULL
);


ALTER TABLE public.djcelery_intervalschedule OWNER TO glab;

--
-- Name: djcelery_intervalschedule_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE djcelery_intervalschedule_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.djcelery_intervalschedule_id_seq OWNER TO glab;

--
-- Name: djcelery_intervalschedule_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE djcelery_intervalschedule_id_seq OWNED BY djcelery_intervalschedule.id;


--
-- Name: djcelery_periodictask; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE djcelery_periodictask (
    id integer NOT NULL,
    name character varying(200) NOT NULL,
    task character varying(200) NOT NULL,
    interval_id integer,
    crontab_id integer,
    args text NOT NULL,
    kwargs text NOT NULL,
    queue character varying(200),
    exchange character varying(200),
    routing_key character varying(200),
    expires timestamp with time zone,
    enabled boolean NOT NULL,
    last_run_at timestamp with time zone,
    total_run_count integer NOT NULL,
    date_changed timestamp with time zone NOT NULL,
    description text NOT NULL,
    CONSTRAINT djcelery_periodictask_total_run_count_check CHECK ((total_run_count >= 0))
);


ALTER TABLE public.djcelery_periodictask OWNER TO glab;

--
-- Name: djcelery_periodictask_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE djcelery_periodictask_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.djcelery_periodictask_id_seq OWNER TO glab;

--
-- Name: djcelery_periodictask_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE djcelery_periodictask_id_seq OWNED BY djcelery_periodictask.id;


--
-- Name: djcelery_periodictasks; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE djcelery_periodictasks (
    ident smallint NOT NULL,
    last_update timestamp with time zone NOT NULL
);


ALTER TABLE public.djcelery_periodictasks OWNER TO glab;

--
-- Name: djcelery_taskstate; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE djcelery_taskstate (
    id integer NOT NULL,
    state character varying(64) NOT NULL,
    task_id character varying(36) NOT NULL,
    name character varying(200),
    tstamp timestamp with time zone NOT NULL,
    args text,
    kwargs text,
    eta timestamp with time zone,
    expires timestamp with time zone,
    result text,
    traceback text,
    runtime double precision,
    retries integer NOT NULL,
    worker_id integer,
    hidden boolean NOT NULL
);


ALTER TABLE public.djcelery_taskstate OWNER TO glab;

--
-- Name: djcelery_taskstate_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE djcelery_taskstate_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.djcelery_taskstate_id_seq OWNER TO glab;

--
-- Name: djcelery_taskstate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE djcelery_taskstate_id_seq OWNED BY djcelery_taskstate.id;


--
-- Name: djcelery_workerstate; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE djcelery_workerstate (
    id integer NOT NULL,
    hostname character varying(255) NOT NULL,
    last_heartbeat timestamp with time zone
);


ALTER TABLE public.djcelery_workerstate OWNER TO glab;

--
-- Name: djcelery_workerstate_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE djcelery_workerstate_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.djcelery_workerstate_id_seq OWNER TO glab;

--
-- Name: djcelery_workerstate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE djcelery_workerstate_id_seq OWNED BY djcelery_workerstate.id;


--
-- Name: notification_noticequeuebatch; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE notification_noticequeuebatch (
    id integer NOT NULL,
    pickled_data text NOT NULL
);


ALTER TABLE public.notification_noticequeuebatch OWNER TO glab;

--
-- Name: notification_noticequeuebatch_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE notification_noticequeuebatch_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.notification_noticequeuebatch_id_seq OWNER TO glab;

--
-- Name: notification_noticequeuebatch_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE notification_noticequeuebatch_id_seq OWNED BY notification_noticequeuebatch.id;


--
-- Name: notification_noticesetting; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE notification_noticesetting (
    id integer NOT NULL,
    user_id integer NOT NULL,
    notice_type_id integer NOT NULL,
    medium character varying(1) NOT NULL,
    send boolean NOT NULL
);


ALTER TABLE public.notification_noticesetting OWNER TO glab;

--
-- Name: notification_noticesetting_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE notification_noticesetting_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.notification_noticesetting_id_seq OWNER TO glab;

--
-- Name: notification_noticesetting_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE notification_noticesetting_id_seq OWNED BY notification_noticesetting.id;


--
-- Name: notification_noticetype; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE notification_noticetype (
    id integer NOT NULL,
    label character varying(40) NOT NULL,
    display character varying(50) NOT NULL,
    description character varying(100) NOT NULL,
    "default" integer NOT NULL
);


ALTER TABLE public.notification_noticetype OWNER TO glab;

--
-- Name: notification_noticetype_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE notification_noticetype_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.notification_noticetype_id_seq OWNER TO glab;

--
-- Name: notification_noticetype_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE notification_noticetype_id_seq OWNED BY notification_noticetype.id;


--
-- Name: registration_registrationprofile; Type: TABLE; Schema: public; Owner: glab; Tablespace: 
--

CREATE TABLE registration_registrationprofile (
    id integer NOT NULL,
    user_id integer NOT NULL,
    activation_key character varying(40) NOT NULL
);


ALTER TABLE public.registration_registrationprofile OWNER TO glab;

--
-- Name: registration_registrationprofile_id_seq; Type: SEQUENCE; Schema: public; Owner: glab
--

CREATE SEQUENCE registration_registrationprofile_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.registration_registrationprofile_id_seq OWNER TO glab;

--
-- Name: registration_registrationprofile_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: glab
--

ALTER SEQUENCE registration_registrationprofile_id_seq OWNED BY registration_registrationprofile.id;


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY auth_group ALTER COLUMN id SET DEFAULT nextval('auth_group_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY auth_group_permissions ALTER COLUMN id SET DEFAULT nextval('auth_group_permissions_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY auth_permission ALTER COLUMN id SET DEFAULT nextval('auth_permission_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY auth_user ALTER COLUMN id SET DEFAULT nextval('auth_user_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY auth_user_groups ALTER COLUMN id SET DEFAULT nextval('auth_user_groups_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY auth_user_user_permissions ALTER COLUMN id SET DEFAULT nextval('auth_user_user_permissions_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY captcha_captchastore ALTER COLUMN id SET DEFAULT nextval('captcha_captchastore_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY celery_taskmeta ALTER COLUMN id SET DEFAULT nextval('celery_taskmeta_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY celery_tasksetmeta ALTER COLUMN id SET DEFAULT nextval('celery_tasksetmeta_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY django_admin_log ALTER COLUMN id SET DEFAULT nextval('django_admin_log_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY django_content_type ALTER COLUMN id SET DEFAULT nextval('django_content_type_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY django_mailbox_mailbox ALTER COLUMN id SET DEFAULT nextval('django_mailbox_mailbox_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY django_mailbox_message ALTER COLUMN id SET DEFAULT nextval('django_mailbox_message_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY django_mailbox_messageattachment ALTER COLUMN id SET DEFAULT nextval('django_mailbox_messageattachment_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY django_site ALTER COLUMN id SET DEFAULT nextval('django_site_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djangoratings_ignoredobject ALTER COLUMN id SET DEFAULT nextval('djangoratings_ignoredobject_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djangoratings_score ALTER COLUMN id SET DEFAULT nextval('djangoratings_score_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djangoratings_similaruser ALTER COLUMN id SET DEFAULT nextval('djangoratings_similaruser_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djangoratings_vote ALTER COLUMN id SET DEFAULT nextval('djangoratings_vote_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djcelery_crontabschedule ALTER COLUMN id SET DEFAULT nextval('djcelery_crontabschedule_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djcelery_intervalschedule ALTER COLUMN id SET DEFAULT nextval('djcelery_intervalschedule_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djcelery_periodictask ALTER COLUMN id SET DEFAULT nextval('djcelery_periodictask_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djcelery_taskstate ALTER COLUMN id SET DEFAULT nextval('djcelery_taskstate_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djcelery_workerstate ALTER COLUMN id SET DEFAULT nextval('djcelery_workerstate_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY notification_noticequeuebatch ALTER COLUMN id SET DEFAULT nextval('notification_noticequeuebatch_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY notification_noticesetting ALTER COLUMN id SET DEFAULT nextval('notification_noticesetting_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY notification_noticetype ALTER COLUMN id SET DEFAULT nextval('notification_noticetype_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: glab
--

ALTER TABLE ONLY registration_registrationprofile ALTER COLUMN id SET DEFAULT nextval('registration_registrationprofile_id_seq'::regclass);


--
-- Data for Name: auth_group; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY auth_group (id, name) FROM stdin;
1	active_loggedin_and_buddy_users
\.


--
-- Name: auth_group_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('auth_group_id_seq', 1, true);


--
-- Data for Name: auth_group_permissions; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY auth_group_permissions (id, group_id, permission_id) FROM stdin;
\.


--
-- Name: auth_group_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('auth_group_permissions_id_seq', 1, false);


--
-- Data for Name: auth_permission; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY auth_permission (id, name, content_type_id, codename) FROM stdin;
1	Can add permission	1	add_permission
2	Can change permission	1	change_permission
3	Can delete permission	1	delete_permission
4	Can add group	2	add_group
5	Can change group	2	change_group
6	Can delete group	2	delete_group
7	Can add user	3	add_user
8	Can change user	3	change_user
9	Can delete user	3	delete_user
10	Can add log entry	4	add_logentry
11	Can change log entry	4	change_logentry
12	Can delete log entry	4	delete_logentry
13	Can add content type	5	add_contenttype
14	Can change content type	5	change_contenttype
15	Can delete content type	5	delete_contenttype
16	Can add session	6	add_session
17	Can change session	6	change_session
18	Can delete session	6	delete_session
19	Can add site	7	add_site
20	Can change site	7	change_site
21	Can delete site	7	delete_site
22	Can add vote	8	add_vote
23	Can change vote	8	change_vote
24	Can delete vote	8	delete_vote
25	Can add score	9	add_score
26	Can change score	9	change_score
27	Can delete score	9	delete_score
28	Can add similar user	10	add_similaruser
29	Can change similar user	10	change_similaruser
30	Can delete similar user	10	delete_similaruser
31	Can add ignored object	11	add_ignoredobject
32	Can change ignored object	11	change_ignoredobject
33	Can delete ignored object	11	delete_ignoredobject
34	Can add notice type	12	add_noticetype
35	Can change notice type	12	change_noticetype
36	Can delete notice type	12	delete_noticetype
37	Can add notice setting	13	add_noticesetting
38	Can change notice setting	13	change_noticesetting
39	Can delete notice setting	13	delete_noticesetting
40	Can add notice queue batch	14	add_noticequeuebatch
41	Can change notice queue batch	14	change_noticequeuebatch
42	Can delete notice queue batch	14	delete_noticequeuebatch
43	Can add captcha store	15	add_captchastore
44	Can change captcha store	15	change_captchastore
45	Can delete captcha store	15	delete_captchastore
46	Can add Memcache Dashboard	16	add_dashboard
47	Can change Memcache Dashboard	16	change_dashboard
48	Can delete Memcache Dashboard	16	delete_dashboard
49	Can add mailbox	17	add_mailbox
50	Can change mailbox	17	change_mailbox
51	Can delete mailbox	17	delete_mailbox
52	Can add message	18	add_message
53	Can change message	18	change_message
54	Can delete message	18	delete_message
55	Can add message attachment	19	add_messageattachment
56	Can change message attachment	19	change_messageattachment
57	Can delete message attachment	19	delete_messageattachment
58	Can add task state	20	add_taskmeta
59	Can change task state	20	change_taskmeta
60	Can delete task state	20	delete_taskmeta
61	Can add saved group result	21	add_tasksetmeta
62	Can change saved group result	21	change_tasksetmeta
63	Can delete saved group result	21	delete_tasksetmeta
64	Can add interval	22	add_intervalschedule
65	Can change interval	22	change_intervalschedule
66	Can delete interval	22	delete_intervalschedule
67	Can add crontab	23	add_crontabschedule
68	Can change crontab	23	change_crontabschedule
69	Can delete crontab	23	delete_crontabschedule
70	Can add periodic tasks	24	add_periodictasks
71	Can change periodic tasks	24	change_periodictasks
72	Can delete periodic tasks	24	delete_periodictasks
73	Can add periodic task	25	add_periodictask
74	Can change periodic task	25	change_periodictask
75	Can delete periodic task	25	delete_periodictask
76	Can add worker	26	add_workerstate
77	Can change worker	26	change_workerstate
78	Can delete worker	26	delete_workerstate
79	Can add task	27	add_taskstate
80	Can change task	27	change_taskstate
81	Can delete task	27	delete_taskstate
82	Can add registration profile	28	add_registrationprofile
83	Can change registration profile	28	change_registrationprofile
84	Can delete registration profile	28	delete_registrationprofile
\.


--
-- Name: auth_permission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('auth_permission_id_seq', 84, true);


--
-- Data for Name: auth_user; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY auth_user (id, password, last_login, is_superuser, username, first_name, last_name, email, is_staff, is_active, date_joined) FROM stdin;
1	pbkdf2_sha256$12000$OwDHfHf07Wrf$cFoEeStY6OwiovECmYXxR8qNtanyCTXxtMv5wM1v0o4=	2016-06-04 20:09:33.218132+00	t	administrator			admin@example.com	t	t	2016-06-04 16:58:37.912449+00
\.


--
-- Data for Name: auth_user_groups; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY auth_user_groups (id, user_id, group_id) FROM stdin;
1	1	1
\.


--
-- Name: auth_user_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('auth_user_groups_id_seq', 33, true);


--
-- Name: auth_user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('auth_user_id_seq', 1, true);


--
-- Data for Name: auth_user_user_permissions; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY auth_user_user_permissions (id, user_id, permission_id) FROM stdin;
\.


--
-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('auth_user_user_permissions_id_seq', 1, false);


--
-- Data for Name: captcha_captchastore; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY captcha_captchastore (id, challenge, response, hashkey, expiration) FROM stdin;
\.


--
-- Name: captcha_captchastore_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('captcha_captchastore_id_seq', 1, false);


--
-- Data for Name: celery_taskmeta; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY celery_taskmeta (id, task_id, status, result, date_done, traceback, hidden, meta) FROM stdin;
\.


--
-- Name: celery_taskmeta_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('celery_taskmeta_id_seq', 1, false);


--
-- Data for Name: celery_tasksetmeta; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY celery_tasksetmeta (id, taskset_id, result, date_done, hidden) FROM stdin;
\.


--
-- Name: celery_tasksetmeta_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('celery_tasksetmeta_id_seq', 1, false);


--
-- Data for Name: django_admin_log; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY django_admin_log (id, action_time, user_id, content_type_id, object_id, object_repr, action_flag, change_message) FROM stdin;
\.


--
-- Name: django_admin_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('django_admin_log_id_seq', 1, false);


--
-- Data for Name: django_content_type; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY django_content_type (id, name, app_label, model) FROM stdin;
1	permission	auth	permission
2	group	auth	group
3	user	auth	user
4	log entry	admin	logentry
5	content type	contenttypes	contenttype
6	session	sessions	session
7	site	sites	site
8	vote	djangoratings	vote
9	score	djangoratings	score
10	similar user	djangoratings	similaruser
11	ignored object	djangoratings	ignoredobject
12	notice type	notification	noticetype
13	notice setting	notification	noticesetting
14	notice queue batch	notification	noticequeuebatch
15	captcha store	captcha	captchastore
16	Memcache Dashboard	memcache_admin	dashboard
17	mailbox	django_mailbox	mailbox
18	message	django_mailbox	message
19	message attachment	django_mailbox	messageattachment
20	task state	djcelery	taskmeta
21	saved group result	djcelery	tasksetmeta
22	interval	djcelery	intervalschedule
23	crontab	djcelery	crontabschedule
24	periodic tasks	djcelery	periodictasks
25	periodic task	djcelery	periodictask
26	worker	djcelery	workerstate
27	task	djcelery	taskstate
28	registration profile	registration	registrationprofile
\.


--
-- Name: django_content_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('django_content_type_id_seq', 28, true);


--
-- Data for Name: django_mailbox_mailbox; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY django_mailbox_mailbox (id, name, uri, from_email, active) FROM stdin;
\.


--
-- Name: django_mailbox_mailbox_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('django_mailbox_mailbox_id_seq', 1, false);


--
-- Data for Name: django_mailbox_message; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY django_mailbox_message (id, mailbox_id, subject, message_id, in_reply_to_id, from_header, to_header, outgoing, body, encoded, processed, read, eml) FROM stdin;
\.


--
-- Name: django_mailbox_message_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('django_mailbox_message_id_seq', 1, false);


--
-- Data for Name: django_mailbox_messageattachment; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY django_mailbox_messageattachment (id, message_id, headers, document) FROM stdin;
\.


--
-- Name: django_mailbox_messageattachment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('django_mailbox_messageattachment_id_seq', 1, false);


--
-- Data for Name: django_session; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY django_session (session_key, session_data, expire_date) FROM stdin;
i3kiov35bhfx2bvehoqgn4lwsq4x7qy2	ODJkOTc5NzNjNzJiYjljNzY2Njc3ZjU5NDk5NTJkNTdmMzhjZTg5ODp7fQ==	2016-06-18 19:04:09.255018+00
qhu8e2iorjcayycoxsc3yoivcyhq0z75	MjIxZThhMTM1MGE1Nzc5ZTA3NjgyZGIzNWQzMDAyNjQxODVhZjE2Mzp7Il9hdXRoX3VzZXJfYmFja2VuZCI6InJlZ2lzdHJhdGlvbl9lbWFpbC5hdXRoLkVtYWlsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOjF9	2016-06-18 19:04:26.929902+00
tsjltapo75akwz6fz8yj953zdyt12drf	MjIxZThhMTM1MGE1Nzc5ZTA3NjgyZGIzNWQzMDAyNjQxODVhZjE2Mzp7Il9hdXRoX3VzZXJfYmFja2VuZCI6InJlZ2lzdHJhdGlvbl9lbWFpbC5hdXRoLkVtYWlsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOjF9	2016-06-18 20:09:33.221498+00
\.


--
-- Data for Name: django_site; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY django_site (id, domain, name) FROM stdin;
1	example.com	example.com
\.


--
-- Name: django_site_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('django_site_id_seq', 1, true);


--
-- Data for Name: djangoratings_ignoredobject; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY djangoratings_ignoredobject (id, user_id, content_type_id, object_id) FROM stdin;
\.


--
-- Name: djangoratings_ignoredobject_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('djangoratings_ignoredobject_id_seq', 1, false);


--
-- Data for Name: djangoratings_score; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY djangoratings_score (id, content_type_id, object_id, key, score, votes) FROM stdin;
\.


--
-- Name: djangoratings_score_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('djangoratings_score_id_seq', 1, false);


--
-- Data for Name: djangoratings_similaruser; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY djangoratings_similaruser (id, from_user_id, to_user_id, agrees, disagrees, exclude) FROM stdin;
\.


--
-- Name: djangoratings_similaruser_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('djangoratings_similaruser_id_seq', 1, false);


--
-- Data for Name: djangoratings_vote; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY djangoratings_vote (id, content_type_id, object_id, key, score, user_id, ip_address, cookie, date_added, date_changed) FROM stdin;
\.


--
-- Name: djangoratings_vote_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('djangoratings_vote_id_seq', 1, false);


--
-- Data for Name: djcelery_crontabschedule; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY djcelery_crontabschedule (id, minute, hour, day_of_week, day_of_month, month_of_year) FROM stdin;
\.


--
-- Name: djcelery_crontabschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('djcelery_crontabschedule_id_seq', 1, false);


--
-- Data for Name: djcelery_intervalschedule; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY djcelery_intervalschedule (id, every, period) FROM stdin;
\.


--
-- Name: djcelery_intervalschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('djcelery_intervalschedule_id_seq', 1, false);


--
-- Data for Name: djcelery_periodictask; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY djcelery_periodictask (id, name, task, interval_id, crontab_id, args, kwargs, queue, exchange, routing_key, expires, enabled, last_run_at, total_run_count, date_changed, description) FROM stdin;
\.


--
-- Name: djcelery_periodictask_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('djcelery_periodictask_id_seq', 1, false);


--
-- Data for Name: djcelery_periodictasks; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY djcelery_periodictasks (ident, last_update) FROM stdin;
\.


--
-- Data for Name: djcelery_taskstate; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY djcelery_taskstate (id, state, task_id, name, tstamp, args, kwargs, eta, expires, result, traceback, runtime, retries, worker_id, hidden) FROM stdin;
\.


--
-- Name: djcelery_taskstate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('djcelery_taskstate_id_seq', 1, false);


--
-- Data for Name: djcelery_workerstate; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY djcelery_workerstate (id, hostname, last_heartbeat) FROM stdin;
\.


--
-- Name: djcelery_workerstate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('djcelery_workerstate_id_seq', 1, false);


--
-- Data for Name: notification_noticequeuebatch; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY notification_noticequeuebatch (id, pickled_data) FROM stdin;
\.


--
-- Name: notification_noticequeuebatch_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('notification_noticequeuebatch_id_seq', 1, false);


--
-- Data for Name: notification_noticesetting; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY notification_noticesetting (id, user_id, notice_type_id, medium, send) FROM stdin;
\.


--
-- Name: notification_noticesetting_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('notification_noticesetting_id_seq', 1, false);


--
-- Data for Name: notification_noticetype; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY notification_noticetype (id, label, display, description, "default") FROM stdin;
\.


--
-- Name: notification_noticetype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('notification_noticetype_id_seq', 1, false);


--
-- Data for Name: registration_registrationprofile; Type: TABLE DATA; Schema: public; Owner: glab
--

COPY registration_registrationprofile (id, user_id, activation_key) FROM stdin;
\.


--
-- Name: registration_registrationprofile_id_seq; Type: SEQUENCE SET; Schema: public; Owner: glab
--

SELECT pg_catalog.setval('registration_registrationprofile_id_seq', 1, false);


--
-- Name: auth_group_name_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY auth_group
    ADD CONSTRAINT auth_group_name_key UNIQUE (name);


--
-- Name: auth_group_permissions_group_id_permission_id_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY auth_group_permissions
    ADD CONSTRAINT auth_group_permissions_group_id_permission_id_key UNIQUE (group_id, permission_id);


--
-- Name: auth_group_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY auth_group_permissions
    ADD CONSTRAINT auth_group_permissions_pkey PRIMARY KEY (id);


--
-- Name: auth_group_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY auth_group
    ADD CONSTRAINT auth_group_pkey PRIMARY KEY (id);


--
-- Name: auth_permission_content_type_id_codename_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY auth_permission
    ADD CONSTRAINT auth_permission_content_type_id_codename_key UNIQUE (content_type_id, codename);


--
-- Name: auth_permission_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY auth_permission
    ADD CONSTRAINT auth_permission_pkey PRIMARY KEY (id);


--
-- Name: auth_user_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY auth_user_groups
    ADD CONSTRAINT auth_user_groups_pkey PRIMARY KEY (id);


--
-- Name: auth_user_groups_user_id_group_id_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY auth_user_groups
    ADD CONSTRAINT auth_user_groups_user_id_group_id_key UNIQUE (user_id, group_id);


--
-- Name: auth_user_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY auth_user
    ADD CONSTRAINT auth_user_pkey PRIMARY KEY (id);


--
-- Name: auth_user_user_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY auth_user_user_permissions
    ADD CONSTRAINT auth_user_user_permissions_pkey PRIMARY KEY (id);


--
-- Name: auth_user_user_permissions_user_id_permission_id_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY auth_user_user_permissions
    ADD CONSTRAINT auth_user_user_permissions_user_id_permission_id_key UNIQUE (user_id, permission_id);


--
-- Name: auth_user_username_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY auth_user
    ADD CONSTRAINT auth_user_username_key UNIQUE (username);


--
-- Name: captcha_captchastore_hashkey_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY captcha_captchastore
    ADD CONSTRAINT captcha_captchastore_hashkey_key UNIQUE (hashkey);


--
-- Name: captcha_captchastore_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY captcha_captchastore
    ADD CONSTRAINT captcha_captchastore_pkey PRIMARY KEY (id);


--
-- Name: celery_taskmeta_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY celery_taskmeta
    ADD CONSTRAINT celery_taskmeta_pkey PRIMARY KEY (id);


--
-- Name: celery_taskmeta_task_id_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY celery_taskmeta
    ADD CONSTRAINT celery_taskmeta_task_id_key UNIQUE (task_id);


--
-- Name: celery_tasksetmeta_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY celery_tasksetmeta
    ADD CONSTRAINT celery_tasksetmeta_pkey PRIMARY KEY (id);


--
-- Name: celery_tasksetmeta_taskset_id_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY celery_tasksetmeta
    ADD CONSTRAINT celery_tasksetmeta_taskset_id_key UNIQUE (taskset_id);


--
-- Name: django_admin_log_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY django_admin_log
    ADD CONSTRAINT django_admin_log_pkey PRIMARY KEY (id);


--
-- Name: django_content_type_app_label_model_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY django_content_type
    ADD CONSTRAINT django_content_type_app_label_model_key UNIQUE (app_label, model);


--
-- Name: django_content_type_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY django_content_type
    ADD CONSTRAINT django_content_type_pkey PRIMARY KEY (id);


--
-- Name: django_mailbox_mailbox_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY django_mailbox_mailbox
    ADD CONSTRAINT django_mailbox_mailbox_pkey PRIMARY KEY (id);


--
-- Name: django_mailbox_message_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY django_mailbox_message
    ADD CONSTRAINT django_mailbox_message_pkey PRIMARY KEY (id);


--
-- Name: django_mailbox_messageattachment_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY django_mailbox_messageattachment
    ADD CONSTRAINT django_mailbox_messageattachment_pkey PRIMARY KEY (id);


--
-- Name: django_session_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY django_session
    ADD CONSTRAINT django_session_pkey PRIMARY KEY (session_key);


--
-- Name: django_site_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY django_site
    ADD CONSTRAINT django_site_pkey PRIMARY KEY (id);


--
-- Name: djangoratings_ignoredobject_content_type_id_object_id_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djangoratings_ignoredobject
    ADD CONSTRAINT djangoratings_ignoredobject_content_type_id_object_id_key UNIQUE (content_type_id, object_id);


--
-- Name: djangoratings_ignoredobject_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djangoratings_ignoredobject
    ADD CONSTRAINT djangoratings_ignoredobject_pkey PRIMARY KEY (id);


--
-- Name: djangoratings_score_content_type_id_object_id_key_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djangoratings_score
    ADD CONSTRAINT djangoratings_score_content_type_id_object_id_key_key UNIQUE (content_type_id, object_id, key);


--
-- Name: djangoratings_score_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djangoratings_score
    ADD CONSTRAINT djangoratings_score_pkey PRIMARY KEY (id);


--
-- Name: djangoratings_similaruser_from_user_id_to_user_id_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djangoratings_similaruser
    ADD CONSTRAINT djangoratings_similaruser_from_user_id_to_user_id_key UNIQUE (from_user_id, to_user_id);


--
-- Name: djangoratings_similaruser_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djangoratings_similaruser
    ADD CONSTRAINT djangoratings_similaruser_pkey PRIMARY KEY (id);


--
-- Name: djangoratings_vote_content_type_id_object_id_key_user_id_ip_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djangoratings_vote
    ADD CONSTRAINT djangoratings_vote_content_type_id_object_id_key_user_id_ip_key UNIQUE (content_type_id, object_id, key, user_id, ip_address, cookie);


--
-- Name: djangoratings_vote_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djangoratings_vote
    ADD CONSTRAINT djangoratings_vote_pkey PRIMARY KEY (id);


--
-- Name: djcelery_crontabschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djcelery_crontabschedule
    ADD CONSTRAINT djcelery_crontabschedule_pkey PRIMARY KEY (id);


--
-- Name: djcelery_intervalschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djcelery_intervalschedule
    ADD CONSTRAINT djcelery_intervalschedule_pkey PRIMARY KEY (id);


--
-- Name: djcelery_periodictask_name_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djcelery_periodictask
    ADD CONSTRAINT djcelery_periodictask_name_key UNIQUE (name);


--
-- Name: djcelery_periodictask_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djcelery_periodictask
    ADD CONSTRAINT djcelery_periodictask_pkey PRIMARY KEY (id);


--
-- Name: djcelery_periodictasks_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djcelery_periodictasks
    ADD CONSTRAINT djcelery_periodictasks_pkey PRIMARY KEY (ident);


--
-- Name: djcelery_taskstate_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djcelery_taskstate
    ADD CONSTRAINT djcelery_taskstate_pkey PRIMARY KEY (id);


--
-- Name: djcelery_taskstate_task_id_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djcelery_taskstate
    ADD CONSTRAINT djcelery_taskstate_task_id_key UNIQUE (task_id);


--
-- Name: djcelery_workerstate_hostname_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djcelery_workerstate
    ADD CONSTRAINT djcelery_workerstate_hostname_key UNIQUE (hostname);


--
-- Name: djcelery_workerstate_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY djcelery_workerstate
    ADD CONSTRAINT djcelery_workerstate_pkey PRIMARY KEY (id);


--
-- Name: notification_noticequeuebatch_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY notification_noticequeuebatch
    ADD CONSTRAINT notification_noticequeuebatch_pkey PRIMARY KEY (id);


--
-- Name: notification_noticesetting_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY notification_noticesetting
    ADD CONSTRAINT notification_noticesetting_pkey PRIMARY KEY (id);


--
-- Name: notification_noticesetting_user_id_notice_type_id_medium_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY notification_noticesetting
    ADD CONSTRAINT notification_noticesetting_user_id_notice_type_id_medium_key UNIQUE (user_id, notice_type_id, medium);


--
-- Name: notification_noticetype_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY notification_noticetype
    ADD CONSTRAINT notification_noticetype_pkey PRIMARY KEY (id);


--
-- Name: registration_registrationprofile_pkey; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY registration_registrationprofile
    ADD CONSTRAINT registration_registrationprofile_pkey PRIMARY KEY (id);


--
-- Name: registration_registrationprofile_user_id_key; Type: CONSTRAINT; Schema: public; Owner: glab; Tablespace: 
--

ALTER TABLE ONLY registration_registrationprofile
    ADD CONSTRAINT registration_registrationprofile_user_id_key UNIQUE (user_id);


--
-- Name: auth_group_name_like; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX auth_group_name_like ON auth_group USING btree (name varchar_pattern_ops);


--
-- Name: auth_group_permissions_group_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX auth_group_permissions_group_id ON auth_group_permissions USING btree (group_id);


--
-- Name: auth_group_permissions_permission_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX auth_group_permissions_permission_id ON auth_group_permissions USING btree (permission_id);


--
-- Name: auth_permission_content_type_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX auth_permission_content_type_id ON auth_permission USING btree (content_type_id);


--
-- Name: auth_user_groups_group_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX auth_user_groups_group_id ON auth_user_groups USING btree (group_id);


--
-- Name: auth_user_groups_user_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX auth_user_groups_user_id ON auth_user_groups USING btree (user_id);


--
-- Name: auth_user_user_permissions_permission_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX auth_user_user_permissions_permission_id ON auth_user_user_permissions USING btree (permission_id);


--
-- Name: auth_user_user_permissions_user_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX auth_user_user_permissions_user_id ON auth_user_user_permissions USING btree (user_id);


--
-- Name: auth_user_username_like; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX auth_user_username_like ON auth_user USING btree (username varchar_pattern_ops);


--
-- Name: captcha_captchastore_hashkey_like; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX captcha_captchastore_hashkey_like ON captcha_captchastore USING btree (hashkey varchar_pattern_ops);


--
-- Name: celery_taskmeta_hidden; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX celery_taskmeta_hidden ON celery_taskmeta USING btree (hidden);


--
-- Name: celery_taskmeta_task_id_like; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX celery_taskmeta_task_id_like ON celery_taskmeta USING btree (task_id varchar_pattern_ops);


--
-- Name: celery_tasksetmeta_hidden; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX celery_tasksetmeta_hidden ON celery_tasksetmeta USING btree (hidden);


--
-- Name: celery_tasksetmeta_taskset_id_like; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX celery_tasksetmeta_taskset_id_like ON celery_tasksetmeta USING btree (taskset_id varchar_pattern_ops);


--
-- Name: django_admin_log_content_type_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX django_admin_log_content_type_id ON django_admin_log USING btree (content_type_id);


--
-- Name: django_admin_log_user_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX django_admin_log_user_id ON django_admin_log USING btree (user_id);


--
-- Name: django_mailbox_message_in_reply_to_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX django_mailbox_message_in_reply_to_id ON django_mailbox_message USING btree (in_reply_to_id);


--
-- Name: django_mailbox_message_mailbox_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX django_mailbox_message_mailbox_id ON django_mailbox_message USING btree (mailbox_id);


--
-- Name: django_mailbox_messageattachment_message_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX django_mailbox_messageattachment_message_id ON django_mailbox_messageattachment USING btree (message_id);


--
-- Name: django_session_expire_date; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX django_session_expire_date ON django_session USING btree (expire_date);


--
-- Name: django_session_session_key_like; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX django_session_session_key_like ON django_session USING btree (session_key varchar_pattern_ops);


--
-- Name: djangoratings_ignoredobject_content_type_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djangoratings_ignoredobject_content_type_id ON djangoratings_ignoredobject USING btree (content_type_id);


--
-- Name: djangoratings_ignoredobject_user_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djangoratings_ignoredobject_user_id ON djangoratings_ignoredobject USING btree (user_id);


--
-- Name: djangoratings_score_content_type_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djangoratings_score_content_type_id ON djangoratings_score USING btree (content_type_id);


--
-- Name: djangoratings_similaruser_from_user_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djangoratings_similaruser_from_user_id ON djangoratings_similaruser USING btree (from_user_id);


--
-- Name: djangoratings_similaruser_to_user_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djangoratings_similaruser_to_user_id ON djangoratings_similaruser USING btree (to_user_id);


--
-- Name: djangoratings_vote_content_type_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djangoratings_vote_content_type_id ON djangoratings_vote USING btree (content_type_id);


--
-- Name: djangoratings_vote_user_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djangoratings_vote_user_id ON djangoratings_vote USING btree (user_id);


--
-- Name: djcelery_periodictask_crontab_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djcelery_periodictask_crontab_id ON djcelery_periodictask USING btree (crontab_id);


--
-- Name: djcelery_periodictask_interval_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djcelery_periodictask_interval_id ON djcelery_periodictask USING btree (interval_id);


--
-- Name: djcelery_periodictask_name_like; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djcelery_periodictask_name_like ON djcelery_periodictask USING btree (name varchar_pattern_ops);


--
-- Name: djcelery_taskstate_hidden; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djcelery_taskstate_hidden ON djcelery_taskstate USING btree (hidden);


--
-- Name: djcelery_taskstate_name; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djcelery_taskstate_name ON djcelery_taskstate USING btree (name);


--
-- Name: djcelery_taskstate_name_like; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djcelery_taskstate_name_like ON djcelery_taskstate USING btree (name varchar_pattern_ops);


--
-- Name: djcelery_taskstate_state; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djcelery_taskstate_state ON djcelery_taskstate USING btree (state);


--
-- Name: djcelery_taskstate_state_like; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djcelery_taskstate_state_like ON djcelery_taskstate USING btree (state varchar_pattern_ops);


--
-- Name: djcelery_taskstate_task_id_like; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djcelery_taskstate_task_id_like ON djcelery_taskstate USING btree (task_id varchar_pattern_ops);


--
-- Name: djcelery_taskstate_tstamp; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djcelery_taskstate_tstamp ON djcelery_taskstate USING btree (tstamp);


--
-- Name: djcelery_taskstate_worker_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djcelery_taskstate_worker_id ON djcelery_taskstate USING btree (worker_id);


--
-- Name: djcelery_workerstate_hostname_like; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djcelery_workerstate_hostname_like ON djcelery_workerstate USING btree (hostname varchar_pattern_ops);


--
-- Name: djcelery_workerstate_last_heartbeat; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX djcelery_workerstate_last_heartbeat ON djcelery_workerstate USING btree (last_heartbeat);


--
-- Name: notification_noticesetting_notice_type_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX notification_noticesetting_notice_type_id ON notification_noticesetting USING btree (notice_type_id);


--
-- Name: notification_noticesetting_user_id; Type: INDEX; Schema: public; Owner: glab; Tablespace: 
--

CREATE INDEX notification_noticesetting_user_id ON notification_noticesetting USING btree (user_id);


--
-- Name: auth_group_permissions_permission_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY auth_group_permissions
    ADD CONSTRAINT auth_group_permissions_permission_id_fkey FOREIGN KEY (permission_id) REFERENCES auth_permission(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_user_groups_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY auth_user_groups
    ADD CONSTRAINT auth_user_groups_group_id_fkey FOREIGN KEY (group_id) REFERENCES auth_group(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_user_user_permissions_permission_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY auth_user_user_permissions
    ADD CONSTRAINT auth_user_user_permissions_permission_id_fkey FOREIGN KEY (permission_id) REFERENCES auth_permission(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: content_type_id_refs_id_93d2d1f8; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY django_admin_log
    ADD CONSTRAINT content_type_id_refs_id_93d2d1f8 FOREIGN KEY (content_type_id) REFERENCES django_content_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: content_type_id_refs_id_d043b34a; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY auth_permission
    ADD CONSTRAINT content_type_id_refs_id_d043b34a FOREIGN KEY (content_type_id) REFERENCES django_content_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: django_admin_log_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY django_admin_log
    ADD CONSTRAINT django_admin_log_user_id_fkey FOREIGN KEY (user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: django_mailbox_message_in_reply_to_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY django_mailbox_message
    ADD CONSTRAINT django_mailbox_message_in_reply_to_id_fkey FOREIGN KEY (in_reply_to_id) REFERENCES django_mailbox_message(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: django_mailbox_message_mailbox_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY django_mailbox_message
    ADD CONSTRAINT django_mailbox_message_mailbox_id_fkey FOREIGN KEY (mailbox_id) REFERENCES django_mailbox_mailbox(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: django_mailbox_messageattachment_message_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY django_mailbox_messageattachment
    ADD CONSTRAINT django_mailbox_messageattachment_message_id_fkey FOREIGN KEY (message_id) REFERENCES django_mailbox_message(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: djangoratings_ignoredobject_content_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djangoratings_ignoredobject
    ADD CONSTRAINT djangoratings_ignoredobject_content_type_id_fkey FOREIGN KEY (content_type_id) REFERENCES django_content_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: djangoratings_ignoredobject_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djangoratings_ignoredobject
    ADD CONSTRAINT djangoratings_ignoredobject_user_id_fkey FOREIGN KEY (user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: djangoratings_score_content_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djangoratings_score
    ADD CONSTRAINT djangoratings_score_content_type_id_fkey FOREIGN KEY (content_type_id) REFERENCES django_content_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: djangoratings_similaruser_from_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djangoratings_similaruser
    ADD CONSTRAINT djangoratings_similaruser_from_user_id_fkey FOREIGN KEY (from_user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: djangoratings_similaruser_to_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djangoratings_similaruser
    ADD CONSTRAINT djangoratings_similaruser_to_user_id_fkey FOREIGN KEY (to_user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: djangoratings_vote_content_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djangoratings_vote
    ADD CONSTRAINT djangoratings_vote_content_type_id_fkey FOREIGN KEY (content_type_id) REFERENCES django_content_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: djangoratings_vote_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djangoratings_vote
    ADD CONSTRAINT djangoratings_vote_user_id_fkey FOREIGN KEY (user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: djcelery_periodictask_crontab_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djcelery_periodictask
    ADD CONSTRAINT djcelery_periodictask_crontab_id_fkey FOREIGN KEY (crontab_id) REFERENCES djcelery_crontabschedule(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: djcelery_periodictask_interval_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djcelery_periodictask
    ADD CONSTRAINT djcelery_periodictask_interval_id_fkey FOREIGN KEY (interval_id) REFERENCES djcelery_intervalschedule(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: djcelery_taskstate_worker_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY djcelery_taskstate
    ADD CONSTRAINT djcelery_taskstate_worker_id_fkey FOREIGN KEY (worker_id) REFERENCES djcelery_workerstate(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: group_id_refs_id_f4b32aac; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY auth_group_permissions
    ADD CONSTRAINT group_id_refs_id_f4b32aac FOREIGN KEY (group_id) REFERENCES auth_group(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: notification_noticesetting_notice_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY notification_noticesetting
    ADD CONSTRAINT notification_noticesetting_notice_type_id_fkey FOREIGN KEY (notice_type_id) REFERENCES notification_noticetype(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: notification_noticesetting_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY notification_noticesetting
    ADD CONSTRAINT notification_noticesetting_user_id_fkey FOREIGN KEY (user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: registration_registrationprofile_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY registration_registrationprofile
    ADD CONSTRAINT registration_registrationprofile_user_id_fkey FOREIGN KEY (user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: user_id_refs_id_40c41112; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY auth_user_groups
    ADD CONSTRAINT user_id_refs_id_40c41112 FOREIGN KEY (user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: user_id_refs_id_4dc23c39; Type: FK CONSTRAINT; Schema: public; Owner: glab
--

ALTER TABLE ONLY auth_user_user_permissions
    ADD CONSTRAINT user_id_refs_id_4dc23c39 FOREIGN KEY (user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: public; Type: ACL; Schema: -; Owner: postgres
--

REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM postgres;
GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO PUBLIC;


--
-- PostgreSQL database dump complete
--

\connect postgres

SET default_transaction_read_only = off;

--
-- PostgreSQL database dump
--

SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;

--
-- Name: postgres; Type: COMMENT; Schema: -; Owner: postgres
--

COMMENT ON DATABASE postgres IS 'default administrative connection database';


--
-- 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: public; Type: ACL; Schema: -; Owner: postgres
--

REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM postgres;
GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO PUBLIC;


--
-- PostgreSQL database dump complete
--

\connect template1

SET default_transaction_read_only = off;

--
-- PostgreSQL database dump
--

SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;

--
-- Name: template1; Type: COMMENT; Schema: -; Owner: postgres
--

COMMENT ON DATABASE template1 IS 'default template for new databases';


--
-- 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: public; Type: ACL; Schema: -; Owner: postgres
--

REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM postgres;
GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO PUBLIC;


--
-- PostgreSQL database dump complete
--

--
-- PostgreSQL database cluster dump complete
--

