--
-- PostgreSQL database dump
--

-- Dumped from database version 9.5.2
-- Dumped by pg_dump version 9.5.3

SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET row_security = off;

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

CREATE TABLE ac_user_profile (
    id integer NOT NULL,
    user_identity character varying(100),
    user_name character varying(100),
    mobile character varying(100),
    company_id integer,
    user_id integer NOT NULL
);


ALTER TABLE ac_user_profile OWNER TO postgres;

--
-- Name: accounts_userprofile_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE accounts_userprofile_id_seq OWNER TO postgres;

--
-- Name: accounts_userprofile_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE accounts_userprofile_id_seq OWNED BY ac_user_profile.id;


--
-- Name: auth_group; Type: TABLE; Schema: public; Owner: postgres
--

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


ALTER TABLE auth_group OWNER TO postgres;

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

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


ALTER TABLE auth_group_id_seq OWNER TO postgres;

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

ALTER SEQUENCE auth_group_id_seq OWNED BY auth_group.id;


--
-- Name: auth_group_permissions; Type: TABLE; Schema: public; Owner: postgres
--

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


ALTER TABLE auth_group_permissions OWNER TO postgres;

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

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


ALTER TABLE auth_group_permissions_id_seq OWNER TO postgres;

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

ALTER SEQUENCE auth_group_permissions_id_seq OWNED BY auth_group_permissions.id;


--
-- Name: auth_permission; Type: TABLE; Schema: public; Owner: postgres
--

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


ALTER TABLE auth_permission OWNER TO postgres;

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

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


ALTER TABLE auth_permission_id_seq OWNER TO postgres;

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

ALTER SEQUENCE auth_permission_id_seq OWNED BY auth_permission.id;


--
-- Name: auth_user; Type: TABLE; Schema: public; Owner: postgres
--

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


ALTER TABLE auth_user OWNER TO postgres;

--
-- Name: auth_user_groups; Type: TABLE; Schema: public; Owner: postgres
--

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


ALTER TABLE auth_user_groups OWNER TO postgres;

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

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


ALTER TABLE auth_user_groups_id_seq OWNER TO postgres;

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

ALTER SEQUENCE auth_user_groups_id_seq OWNED BY auth_user_groups.id;


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

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


ALTER TABLE auth_user_id_seq OWNER TO postgres;

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

ALTER SEQUENCE auth_user_id_seq OWNED BY auth_user.id;


--
-- Name: auth_user_user_permissions; Type: TABLE; Schema: public; Owner: postgres
--

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


ALTER TABLE auth_user_user_permissions OWNER TO postgres;

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

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


ALTER TABLE auth_user_user_permissions_id_seq OWNER TO postgres;

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

ALTER SEQUENCE auth_user_user_permissions_id_seq OWNED BY auth_user_user_permissions.id;


--
-- Name: cp_company; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE cp_company (
    id integer NOT NULL,
    create_date timestamp with time zone,
    modify_date timestamp with time zone,
    name character varying(100) NOT NULL,
    corporate_number character varying(40),
    ceo character varying(40),
    conditions character varying(40),
    type character varying(40),
    person character varying(40),
    post_code character varying(40),
    address character varying(100),
    detail_address character varying(100),
    tel character varying(80)
);


ALTER TABLE cp_company OWNER TO postgres;

--
-- Name: cp_company_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE cp_company_id_seq OWNER TO postgres;

--
-- Name: cp_company_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE cp_company_id_seq OWNED BY cp_company.id;


--
-- Name: django_admin_log; Type: TABLE; Schema: public; Owner: postgres
--

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


ALTER TABLE django_admin_log OWNER TO postgres;

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

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


ALTER TABLE django_admin_log_id_seq OWNER TO postgres;

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

ALTER SEQUENCE django_admin_log_id_seq OWNED BY django_admin_log.id;


--
-- Name: django_content_type; Type: TABLE; Schema: public; Owner: postgres
--

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


ALTER TABLE django_content_type OWNER TO postgres;

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

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


ALTER TABLE django_content_type_id_seq OWNER TO postgres;

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

ALTER SEQUENCE django_content_type_id_seq OWNED BY django_content_type.id;


--
-- Name: django_migrations; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE django_migrations (
    id integer NOT NULL,
    app character varying(255) NOT NULL,
    name character varying(255) NOT NULL,
    applied timestamp with time zone NOT NULL
);


ALTER TABLE django_migrations OWNER TO postgres;

--
-- Name: django_migrations_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE django_migrations_id_seq OWNER TO postgres;

--
-- Name: django_migrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE django_migrations_id_seq OWNED BY django_migrations.id;


--
-- Name: django_session; Type: TABLE; Schema: public; Owner: postgres
--

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 django_session OWNER TO postgres;

--
-- Name: kg_kindergarten; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE kg_kindergarten (
    id integer NOT NULL,
    create_date timestamp with time zone,
    modify_date timestamp with time zone,
    name character varying(100) NOT NULL,
    email character varying(100),
    post_code character varying(40),
    address character varying(100),
    first_address character varying(100),
    detail_address character varying(100),
    tel character varying(80),
    smart_kindergarten_id integer,
    user_profile_id integer NOT NULL
);


ALTER TABLE kg_kindergarten OWNER TO postgres;

--
-- Name: kg_kindergarten_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE kg_kindergarten_id_seq OWNER TO postgres;

--
-- Name: kg_kindergarten_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE kg_kindergarten_id_seq OWNED BY kg_kindergarten.id;


--
-- Name: kg_smart_kindergarten; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE kg_smart_kindergarten (
    id integer NOT NULL,
    name character varying(100) NOT NULL,
    address character varying(100)
);


ALTER TABLE kg_smart_kindergarten OWNER TO postgres;

--
-- Name: kg_smart_kindergarten_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE kg_smart_kindergarten_id_seq OWNER TO postgres;

--
-- Name: kg_smart_kindergarten_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE kg_smart_kindergarten_id_seq OWNED BY kg_smart_kindergarten.id;


--
-- Name: oc_order_contract; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE oc_order_contract (
    id integer NOT NULL,
    create_date timestamp with time zone,
    modify_date timestamp with time zone,
    order_status integer NOT NULL,
    sign_image character varying(100),
    delivery_text text,
    special_note text,
    key integer,
    kindergarten_id integer NOT NULL,
    CONSTRAINT oc_order_contract_key_check CHECK ((key >= 0))
);


ALTER TABLE oc_order_contract OWNER TO postgres;

--
-- Name: oc_order_contract_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE oc_order_contract_id_seq OWNER TO postgres;

--
-- Name: oc_order_contract_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE oc_order_contract_id_seq OWNED BY oc_order_contract.id;


--
-- Name: oc_product_quantity; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE oc_product_quantity (
    id integer NOT NULL,
    quantity integer NOT NULL,
    order_contract integer NOT NULL,
    product integer NOT NULL
);


ALTER TABLE oc_product_quantity OWNER TO postgres;

--
-- Name: oc_product_quantity_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE oc_product_quantity_id_seq OWNER TO postgres;

--
-- Name: oc_product_quantity_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE oc_product_quantity_id_seq OWNED BY oc_product_quantity.id;


--
-- Name: sim_couple; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_couple (
    id integer NOT NULL,
    boy_fitting_id integer NOT NULL,
    girl_fitting_id integer NOT NULL,
    back_image character varying(100) NOT NULL,
    front_image character varying(100) NOT NULL,
    popularity boolean NOT NULL
);


ALTER TABLE sim_couple OWNER TO postgres;

--
-- Name: sim_couple_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_couple_id_seq OWNER TO postgres;

--
-- Name: sim_couple_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_couple_id_seq OWNED BY sim_couple.id;


--
-- Name: sim_final_fitting_set; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_final_fitting_set (
    id integer NOT NULL,
    name character varying(30) NOT NULL
);


ALTER TABLE sim_final_fitting_set OWNER TO postgres;

--
-- Name: sim_final_fitting_set_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_final_fitting_set_id_seq OWNER TO postgres;

--
-- Name: sim_final_fitting_set_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_final_fitting_set_id_seq OWNED BY sim_final_fitting_set.id;


--
-- Name: sim_fitting; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_fitting (
    id integer NOT NULL,
    code character varying(30),
    fitting_category_id integer NOT NULL,
    back_image character varying(100) NOT NULL,
    front_image character varying(100) NOT NULL
);


ALTER TABLE sim_fitting OWNER TO postgres;

--
-- Name: sim_fitting_category; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_fitting_category (
    id integer NOT NULL,
    season character varying(10) NOT NULL,
    style character varying(10) NOT NULL,
    gender character varying(10) NOT NULL
);


ALTER TABLE sim_fitting_category OWNER TO postgres;

--
-- Name: sim_fitting_category_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_fitting_category_id_seq OWNER TO postgres;

--
-- Name: sim_fitting_category_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_fitting_category_id_seq OWNED BY sim_fitting_category.id;


--
-- Name: sim_fitting_category_product_type_set; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_fitting_category_product_type_set (
    id integer NOT NULL,
    fittingcategory_id integer NOT NULL,
    producttype_id integer NOT NULL
);


ALTER TABLE sim_fitting_category_product_type_set OWNER TO postgres;

--
-- Name: sim_fitting_category_product_type_set_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_fitting_category_product_type_set_id_seq OWNER TO postgres;

--
-- Name: sim_fitting_category_product_type_set_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_fitting_category_product_type_set_id_seq OWNED BY sim_fitting_category_product_type_set.id;


--
-- Name: sim_fitting_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_fitting_id_seq OWNER TO postgres;

--
-- Name: sim_fitting_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_fitting_id_seq OWNED BY sim_fitting.id;


--
-- Name: sim_fitting_product_set; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_fitting_product_set (
    id integer NOT NULL,
    fitting_id integer NOT NULL,
    selectedproduct_id integer NOT NULL
);


ALTER TABLE sim_fitting_product_set OWNER TO postgres;

--
-- Name: sim_fitting_product_set_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_fitting_product_set_id_seq OWNER TO postgres;

--
-- Name: sim_fitting_product_set_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_fitting_product_set_id_seq OWNED BY sim_fitting_product_set.id;


--
-- Name: sim_function; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_function (
    id integer NOT NULL,
    name character varying(30) NOT NULL,
    image character varying(100) NOT NULL
);


ALTER TABLE sim_function OWNER TO postgres;

--
-- Name: sim_function_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_function_id_seq OWNER TO postgres;

--
-- Name: sim_function_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_function_id_seq OWNED BY sim_function.id;


--
-- Name: sim_grid; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_grid (
    id integer NOT NULL,
    image character varying(100) NOT NULL,
    side character varying(10) NOT NULL,
    fabric_id integer NOT NULL
);


ALTER TABLE sim_grid OWNER TO postgres;

--
-- Name: sim_grid_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_grid_id_seq OWNER TO postgres;

--
-- Name: sim_grid_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_grid_id_seq OWNED BY sim_grid.id;


--
-- Name: sim_main_fabric; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_main_fabric (
    id integer NOT NULL,
    name character varying(20) NOT NULL,
    index character varying(2) NOT NULL,
    stock integer,
    image character varying(100),
    front_mapping_image character varying(100),
    back_mapping_image character varying(100),
    product_id integer NOT NULL,
    price integer
);


ALTER TABLE sim_main_fabric OWNER TO postgres;

--
-- Name: sim_main_fabric_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_main_fabric_id_seq OWNER TO postgres;

--
-- Name: sim_main_fabric_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_main_fabric_id_seq OWNED BY sim_main_fabric.id;


--
-- Name: sim_option; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_option (
    id integer NOT NULL,
    name character varying(30) NOT NULL,
    image character varying(100) NOT NULL,
    sub_category_id integer NOT NULL
);


ALTER TABLE sim_option OWNER TO postgres;

--
-- Name: sim_option_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_option_id_seq OWNER TO postgres;

--
-- Name: sim_option_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_option_id_seq OWNED BY sim_option.id;


--
-- Name: sim_option_main_category; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_option_main_category (
    id integer NOT NULL,
    name character varying(30) NOT NULL
);


ALTER TABLE sim_option_main_category OWNER TO postgres;

--
-- Name: sim_option_main_category_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_option_main_category_id_seq OWNER TO postgres;

--
-- Name: sim_option_main_category_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_option_main_category_id_seq OWNED BY sim_option_main_category.id;


--
-- Name: sim_option_sub_category; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_option_sub_category (
    id integer NOT NULL,
    name character varying(30) NOT NULL,
    main_category_id integer NOT NULL
);


ALTER TABLE sim_option_sub_category OWNER TO postgres;

--
-- Name: sim_option_sub_category_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_option_sub_category_id_seq OWNER TO postgres;

--
-- Name: sim_option_sub_category_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_option_sub_category_id_seq OWNED BY sim_option_sub_category.id;


--
-- Name: sim_product; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_product (
    id integer NOT NULL,
    name character varying(30) NOT NULL,
    season character varying(10),
    style character varying(10),
    code character varying(30),
    txm character varying(100),
    xml character varying(100),
    product_type_id integer,
    user_id integer
);


ALTER TABLE sim_product OWNER TO postgres;

--
-- Name: sim_product_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_product_id_seq OWNER TO postgres;

--
-- Name: sim_product_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_product_id_seq OWNED BY sim_product.id;


--
-- Name: sim_product_type; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_product_type (
    id integer NOT NULL,
    name character varying(30) NOT NULL,
    index integer NOT NULL
);


ALTER TABLE sim_product_type OWNER TO postgres;

--
-- Name: sim_product_type_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_product_type_id_seq OWNER TO postgres;

--
-- Name: sim_product_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_product_type_id_seq OWNED BY sim_product_type.id;


--
-- Name: sim_selected_couple_set; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_selected_couple_set (
    id integer NOT NULL,
    couple_id integer NOT NULL,
    final_uniform_set_id integer NOT NULL
);


ALTER TABLE sim_selected_couple_set OWNER TO postgres;

--
-- Name: sim_selected_couple_set_function_set; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_selected_couple_set_function_set (
    id integer NOT NULL,
    selectedcoupleset_id integer NOT NULL,
    function_id integer NOT NULL
);


ALTER TABLE sim_selected_couple_set_function_set OWNER TO postgres;

--
-- Name: sim_selected_couple_set_function_set_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_selected_couple_set_function_set_id_seq OWNER TO postgres;

--
-- Name: sim_selected_couple_set_function_set_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_selected_couple_set_function_set_id_seq OWNED BY sim_selected_couple_set_function_set.id;


--
-- Name: sim_selected_couple_set_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_selected_couple_set_id_seq OWNER TO postgres;

--
-- Name: sim_selected_couple_set_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_selected_couple_set_id_seq OWNED BY sim_selected_couple_set.id;


--
-- Name: sim_selected_favorite_couple_set; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_selected_favorite_couple_set (
    id integer NOT NULL,
    couple_id integer NOT NULL,
    final_uniform_set_id integer NOT NULL
);


ALTER TABLE sim_selected_favorite_couple_set OWNER TO postgres;

--
-- Name: sim_selected_favorite_couple_set_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_selected_favorite_couple_set_id_seq OWNER TO postgres;

--
-- Name: sim_selected_favorite_couple_set_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_selected_favorite_couple_set_id_seq OWNED BY sim_selected_favorite_couple_set.id;


--
-- Name: sim_selected_product; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE sim_selected_product (
    id integer NOT NULL,
    main_fabric_id integer NOT NULL,
    product_id integer NOT NULL
);


ALTER TABLE sim_selected_product OWNER TO postgres;

--
-- Name: sim_selected_product_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

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


ALTER TABLE sim_selected_product_id_seq OWNER TO postgres;

--
-- Name: sim_selected_product_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE sim_selected_product_id_seq OWNED BY sim_selected_product.id;


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

ALTER TABLE ONLY ac_user_profile ALTER COLUMN id SET DEFAULT nextval('accounts_userprofile_id_seq'::regclass);


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

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


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

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: postgres
--

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


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

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


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

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: postgres
--

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: postgres
--

ALTER TABLE ONLY cp_company ALTER COLUMN id SET DEFAULT nextval('cp_company_id_seq'::regclass);


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

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: postgres
--

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: postgres
--

ALTER TABLE ONLY django_migrations ALTER COLUMN id SET DEFAULT nextval('django_migrations_id_seq'::regclass);


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

ALTER TABLE ONLY kg_kindergarten ALTER COLUMN id SET DEFAULT nextval('kg_kindergarten_id_seq'::regclass);


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

ALTER TABLE ONLY kg_smart_kindergarten ALTER COLUMN id SET DEFAULT nextval('kg_smart_kindergarten_id_seq'::regclass);


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

ALTER TABLE ONLY oc_order_contract ALTER COLUMN id SET DEFAULT nextval('oc_order_contract_id_seq'::regclass);


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

ALTER TABLE ONLY oc_product_quantity ALTER COLUMN id SET DEFAULT nextval('oc_product_quantity_id_seq'::regclass);


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

ALTER TABLE ONLY sim_couple ALTER COLUMN id SET DEFAULT nextval('sim_couple_id_seq'::regclass);


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

ALTER TABLE ONLY sim_final_fitting_set ALTER COLUMN id SET DEFAULT nextval('sim_final_fitting_set_id_seq'::regclass);


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

ALTER TABLE ONLY sim_fitting ALTER COLUMN id SET DEFAULT nextval('sim_fitting_id_seq'::regclass);


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

ALTER TABLE ONLY sim_fitting_category ALTER COLUMN id SET DEFAULT nextval('sim_fitting_category_id_seq'::regclass);


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

ALTER TABLE ONLY sim_fitting_category_product_type_set ALTER COLUMN id SET DEFAULT nextval('sim_fitting_category_product_type_set_id_seq'::regclass);


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

ALTER TABLE ONLY sim_fitting_product_set ALTER COLUMN id SET DEFAULT nextval('sim_fitting_product_set_id_seq'::regclass);


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

ALTER TABLE ONLY sim_function ALTER COLUMN id SET DEFAULT nextval('sim_function_id_seq'::regclass);


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

ALTER TABLE ONLY sim_grid ALTER COLUMN id SET DEFAULT nextval('sim_grid_id_seq'::regclass);


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

ALTER TABLE ONLY sim_main_fabric ALTER COLUMN id SET DEFAULT nextval('sim_main_fabric_id_seq'::regclass);


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

ALTER TABLE ONLY sim_option ALTER COLUMN id SET DEFAULT nextval('sim_option_id_seq'::regclass);


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

ALTER TABLE ONLY sim_option_main_category ALTER COLUMN id SET DEFAULT nextval('sim_option_main_category_id_seq'::regclass);


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

ALTER TABLE ONLY sim_option_sub_category ALTER COLUMN id SET DEFAULT nextval('sim_option_sub_category_id_seq'::regclass);


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

ALTER TABLE ONLY sim_product ALTER COLUMN id SET DEFAULT nextval('sim_product_id_seq'::regclass);


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

ALTER TABLE ONLY sim_product_type ALTER COLUMN id SET DEFAULT nextval('sim_product_type_id_seq'::regclass);


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

ALTER TABLE ONLY sim_selected_couple_set ALTER COLUMN id SET DEFAULT nextval('sim_selected_couple_set_id_seq'::regclass);


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

ALTER TABLE ONLY sim_selected_couple_set_function_set ALTER COLUMN id SET DEFAULT nextval('sim_selected_couple_set_function_set_id_seq'::regclass);


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

ALTER TABLE ONLY sim_selected_favorite_couple_set ALTER COLUMN id SET DEFAULT nextval('sim_selected_favorite_couple_set_id_seq'::regclass);


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

ALTER TABLE ONLY sim_selected_product ALTER COLUMN id SET DEFAULT nextval('sim_selected_product_id_seq'::regclass);


--
-- Data for Name: ac_user_profile; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY ac_user_profile (id, user_identity, user_name, mobile, company_id, user_id) FROM stdin;
\.


--
-- Name: accounts_userprofile_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


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

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


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

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


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

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


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

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


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

COPY auth_permission (id, name, content_type_id, codename) FROM stdin;
1	Can add log entry	1	add_logentry
2	Can change log entry	1	change_logentry
3	Can delete log entry	1	delete_logentry
4	Can add permission	2	add_permission
5	Can change permission	2	change_permission
6	Can delete permission	2	delete_permission
7	Can add group	3	add_group
8	Can change group	3	change_group
9	Can delete group	3	delete_group
10	Can add user	4	add_user
11	Can change user	4	change_user
12	Can delete user	4	delete_user
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
22	Can add user profile	8	add_userprofile
23	Can change user profile	8	change_userprofile
24	Can delete user profile	8	delete_userprofile
28	Can add product type	10	add_producttype
29	Can change product type	10	change_producttype
30	Can delete product type	10	delete_producttype
31	Can add function	11	add_function
32	Can change function	11	change_function
33	Can delete function	11	delete_function
34	Can add product	12	add_product
35	Can change product	12	change_product
36	Can delete product	12	delete_product
37	Can add main fabric	13	add_mainfabric
38	Can change main fabric	13	change_mainfabric
39	Can delete main fabric	13	delete_mainfabric
40	Can add grid	14	add_grid
41	Can change grid	14	change_grid
42	Can delete grid	14	delete_grid
43	Can add selected product	15	add_selectedproduct
44	Can change selected product	15	change_selectedproduct
45	Can delete selected product	15	delete_selectedproduct
46	Can add fitting category	16	add_fittingcategory
47	Can change fitting category	16	change_fittingcategory
48	Can delete fitting category	16	delete_fittingcategory
49	Can add fitting	17	add_fitting
50	Can change fitting	17	change_fitting
51	Can delete fitting	17	delete_fitting
52	Can add couple	18	add_couple
53	Can change couple	18	change_couple
54	Can delete couple	18	delete_couple
55	Can add final fitting set	19	add_finalfittingset
56	Can change final fitting set	19	change_finalfittingset
57	Can delete final fitting set	19	delete_finalfittingset
58	Can add selected couple set	20	add_selectedcoupleset
59	Can change selected couple set	20	change_selectedcoupleset
60	Can delete selected couple set	20	delete_selectedcoupleset
61	Can add selected favorite couple set	21	add_selectedfavoritecoupleset
62	Can change selected favorite couple set	21	change_selectedfavoritecoupleset
63	Can delete selected favorite couple set	21	delete_selectedfavoritecoupleset
64	Can add option main category	22	add_optionmaincategory
65	Can change option main category	22	change_optionmaincategory
66	Can delete option main category	22	delete_optionmaincategory
67	Can add option sub category	23	add_optionsubcategory
68	Can change option sub category	23	change_optionsubcategory
69	Can delete option sub category	23	delete_optionsubcategory
70	Can add option	24	add_option
71	Can change option	24	change_option
72	Can delete option	24	delete_option
73	Can add order contract	25	add_ordercontract
74	Can change order contract	25	change_ordercontract
75	Can delete order contract	25	delete_ordercontract
76	Can add product quantity	26	add_productquantity
77	Can change product quantity	26	change_productquantity
78	Can delete product quantity	26	delete_productquantity
79	Can add smart kindergarten	27	add_smartkindergarten
80	Can change smart kindergarten	27	change_smartkindergarten
81	Can delete smart kindergarten	27	delete_smartkindergarten
82	Can add kindergarten	28	add_kindergarten
83	Can change kindergarten	28	change_kindergarten
84	Can delete kindergarten	28	delete_kindergarten
85	Can add company	29	add_company
86	Can change company	29	change_company
87	Can delete company	29	delete_company
\.


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

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


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

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$24000$1bt9CvQunlPw$QpN1GjjrJ43ircwSighAFIKANopCVx0qszcGZ1UqMDY=	2017-07-12 19:43:15.810116+09	t	admin			webmaster@texclub.com	t	t	2017-07-10 11:00:13.685971+09
\.


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

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


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

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


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

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


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

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: postgres
--

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


--
-- Data for Name: cp_company; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY cp_company (id, create_date, modify_date, name, corporate_number, ceo, conditions, type, person, post_code, address, detail_address, tel) FROM stdin;
\.


--
-- Name: cp_company_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


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

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


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

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


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

COPY django_content_type (id, app_label, model) FROM stdin;
1	admin	logentry
2	auth	permission
3	auth	group
4	auth	user
5	contenttypes	contenttype
6	sessions	session
8	accounts	userprofile
10	simulation	producttype
11	simulation	function
12	simulation	product
13	simulation	mainfabric
14	simulation	grid
15	simulation	selectedproduct
16	simulation	fittingcategory
17	simulation	fitting
18	simulation	couple
19	simulation	finalfittingset
20	simulation	selectedcoupleset
21	simulation	selectedfavoritecoupleset
22	simulation	optionmaincategory
23	simulation	optionsubcategory
24	simulation	option
25	order_contract	ordercontract
26	order_contract	productquantity
27	kindergarten	smartkindergarten
28	kindergarten	kindergarten
29	company	company
\.


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

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


--
-- Data for Name: django_migrations; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY django_migrations (id, app, name, applied) FROM stdin;
1	contenttypes	0001_initial	2017-07-10 10:58:17.257192+09
2	auth	0001_initial	2017-07-10 10:58:17.669248+09
3	accounts	0001_initial	2017-07-10 10:58:18.318064+09
4	admin	0001_initial	2017-07-10 10:58:18.486473+09
5	admin	0002_logentry_remove_auto_add	2017-07-10 10:58:18.517091+09
6	contenttypes	0002_remove_content_type_name	2017-07-10 10:58:18.556653+09
7	auth	0002_alter_permission_name_max_length	2017-07-10 10:58:18.571677+09
8	auth	0003_alter_user_email_max_length	2017-07-10 10:58:18.586691+09
9	auth	0004_alter_user_username_opts	2017-07-10 10:58:18.601868+09
10	auth	0005_alter_user_last_login_null	2017-07-10 10:58:18.628861+09
11	auth	0006_require_contenttypes_0002	2017-07-10 10:58:18.630935+09
12	auth	0007_alter_validators_add_error_messages	2017-07-10 10:58:18.643678+09
13	sessions	0001_initial	2017-07-10 10:58:18.654513+09
14	simulation	0001_initial	2017-07-10 10:58:19.305968+09
15	simulation	0002_auto_20170710_1108	2017-07-10 11:08:10.280023+09
16	simulation	0003_auto_20170710_1333	2017-07-10 13:33:39.444321+09
17	simulation	0004_auto_20170710_1424	2017-07-10 14:24:35.910744+09
18	simulation	0005_auto_20170711_1333	2017-07-11 13:33:46.340616+09
19	simulation	0006_auto_20170711_1703	2017-07-11 17:04:04.254672+09
20	simulation	0007_mainfabric_price	2017-07-12 10:58:43.664268+09
21	simulation	0008_auto_20170712_1139	2017-07-12 11:39:44.232066+09
22	simulation	0009_auto_20170712_1141	2017-07-12 11:42:01.439857+09
23	accounts	0002_auto_20170717_1449	2017-07-17 14:49:59.100567+09
24	company	0001_initial	2017-07-17 14:49:59.42375+09
25	kindergarten	0001_initial	2017-07-17 14:49:59.479256+09
26	order_contract	0001_initial	2017-07-17 14:50:00.350581+09
\.


--
-- Name: django_migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('django_migrations_id_seq', 26, true);


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

COPY django_session (session_key, session_data, expire_date) FROM stdin;
h523z0u2hy18166bp8ifhi6fmknq1lzj	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-24 11:00:26.82609+09
ve4t085v5ca1lyelazjo35v0iibt7s0r	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-24 11:07:43.603717+09
00smfnl71boh9fpnm1yq66mqyhzdgd9h	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-24 11:10:55.110036+09
5cojp10pun4o19zkba69wdm0fdipepih	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-24 11:32:41.168679+09
q8exkqt6qxbji6t15lpwln4mj8901h58	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-24 13:41:45.048838+09
r1ui5h5xchejh0y8duq1ho1pb7b65t9h	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-24 13:56:11.003917+09
pk9go1jog5dwc5v47jfc3wel04v8ligx	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-24 14:32:36.843616+09
v3x8125og23pqd9l41ugykn2jq1eexbf	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-24 16:28:21.561333+09
84yvh4dfesz8sblmqqigltgu8r0ypwdq	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-24 16:37:03.565906+09
4tfr231rergaozn4prfjqtw0sq0in6ey	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-24 18:19:54.119392+09
k63domua8ugkewp6lh0lp09uhudy27u3	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-26 10:16:30.132861+09
i0hiky37f8iiqao2f0zk27f9i58ilf6e	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-26 12:13:53.804188+09
pc7cn60ia18di8anx03n1dyh9620dor9	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-26 12:24:08.605062+09
qmzns5pk2xwhbzc5g9jzhoe0y3w4po1j	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-26 13:19:18.363373+09
86fgzfhtc03fzltqw9t88kkqe0eflqbs	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-26 13:21:11.233112+09
aln34khgx40dyw7ydy798sulsjj2gj18	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-26 13:25:02.628974+09
3mgah2r4q65pfi2g94cndrm93bcwh16q	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-26 17:10:22.064168+09
rbzp1wgl7gfrcafdofi6hsp2a0z8jgxv	ZDIwMDJjZTRhYjNjYmNhMDQ4M2RiMGM1NWFjMmFiMjE3YmYzZTJiMjp7Il9hdXRoX3VzZXJfaGFzaCI6IjU1YTU5NTZhMDhiMWZhMDQwMTQxMDI1YzUwOTBjZWJlODExNmY0NDMiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=	2017-07-26 19:43:15.825379+09
\.


--
-- Data for Name: kg_kindergarten; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY kg_kindergarten (id, create_date, modify_date, name, email, post_code, address, first_address, detail_address, tel, smart_kindergarten_id, user_profile_id) FROM stdin;
\.


--
-- Name: kg_kindergarten_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Data for Name: kg_smart_kindergarten; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY kg_smart_kindergarten (id, name, address) FROM stdin;
\.


--
-- Name: kg_smart_kindergarten_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Data for Name: oc_order_contract; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY oc_order_contract (id, create_date, modify_date, order_status, sign_image, delivery_text, special_note, key, kindergarten_id) FROM stdin;
\.


--
-- Name: oc_order_contract_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Data for Name: oc_product_quantity; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY oc_product_quantity (id, quantity, order_contract, product) FROM stdin;
\.


--
-- Name: oc_product_quantity_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Data for Name: sim_couple; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_couple (id, boy_fitting_id, girl_fitting_id, back_image, front_image, popularity) FROM stdin;
3	3	2	product/48/mapping/back/119.png	product/48/mapping/front/119.png	f
1	1	2	product/42/mapping/back/102.png	product/42/mapping/front/102.png	t
2	1	4	product/42/mapping/back/103.png	product/42/mapping/front/103.png	t
4	5	6	product/44/mapping/back/109.png	product/44/mapping/front/109.png	t
\.


--
-- Name: sim_couple_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Data for Name: sim_final_fitting_set; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_final_fitting_set (id, name) FROM stdin;
\.


--
-- Name: sim_final_fitting_set_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Data for Name: sim_fitting; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_fitting (id, code, fitting_category_id, back_image, front_image) FROM stdin;
2	fitting-girl	4	/	/
1	fitting-boy	3	1	1
3	win-t-boy	3	/	/
4	win-t-girl	4	/	/
5	sum-t-boy	7	/	/
6	sum-t-girl	8	/	/
\.


--
-- Data for Name: sim_fitting_category; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_fitting_category (id, season, style, gender) FROM stdin;
1	winter	formal	boy
2	winter	formal	girl
3	winter	training	boy
4	winter	training	girl
5	summer	formal	boy
6	summer	formal	girl
7	summer	training	boy
8	summer	training	girl
\.


--
-- Name: sim_fitting_category_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('sim_fitting_category_id_seq', 8, true);


--
-- Data for Name: sim_fitting_category_product_type_set; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_fitting_category_product_type_set (id, fittingcategory_id, producttype_id) FROM stdin;
1	1	1
2	1	2
3	1	3
4	1	4
5	1	7
6	2	1
7	2	2
8	2	3
9	2	4
10	2	5
11	2	6
12	2	7
13	3	3
14	3	4
15	4	3
16	4	4
17	5	3
18	5	4
19	5	7
20	6	3
21	6	4
22	6	5
23	6	7
24	7	3
25	7	4
26	8	3
27	8	4
\.


--
-- Name: sim_fitting_category_product_type_set_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('sim_fitting_category_product_type_set_id_seq', 27, true);


--
-- Name: sim_fitting_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Data for Name: sim_fitting_product_set; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_fitting_product_set (id, fitting_id, selectedproduct_id) FROM stdin;
1	1	45
2	1	46
3	2	45
4	2	46
\.


--
-- Name: sim_fitting_product_set_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Data for Name: sim_function; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_function (id, name, image) FROM stdin;
\.


--
-- Name: sim_function_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Data for Name: sim_grid; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_grid (id, image, side, fabric_id) FROM stdin;
650	product/44/grid/0100000.png	front	108
613	product/42/grid/0000000.png	front	102
614	product/42/grid/0000010.png	back	102
672	product/46/grid/0200010.png	back	112
615	product/42/grid/0001000.png	front	103
651	product/44/grid/0100010.png	back	108
616	product/42/grid/0001010.png	back	103
617	product/42/grid/0002000.png	front	104
618	product/42/grid/0002010.png	back	104
652	product/44/grid/0101000.png	front	109
619	product/42/grid/0100000.png	front	102
620	product/42/grid/0100010.png	back	102
685	product/47/grid/0201000.png	front	115
621	product/42/grid/0101000.png	front	103
653	product/44/grid/0101010.png	back	109
622	product/42/grid/0101010.png	back	103
623	product/42/grid/0102000.png	front	104
673	product/46/grid/0201010.png	back	113
624	product/42/grid/0102010.png	back	104
654	product/44/grid/0200000.png	front	108
625	product/42/grid/0200000.png	front	102
626	product/42/grid/0200010.png	back	102
627	product/42/grid/0201000.png	front	103
655	product/44/grid/0200010.png	back	108
628	product/42/grid/0201010.png	back	103
629	product/42/grid/0202000.png	front	104
630	product/42/grid/0202010.png	back	104
656	product/44/grid/0201000.png	front	109
631	product/42/grid/0300000.png	front	102
632	product/42/grid/0300010.png	back	102
674	product/46/grid/0300010.png	back	112
633	product/42/grid/0301000.png	front	103
657	product/44/grid/0201010.png	back	109
634	product/42/grid/0301010.png	back	103
635	product/42/grid/0302000.png	front	104
636	product/42/grid/0302010.png	back	104
658	product/44/grid/0300000.png	front	108
637	product/43/grid/0000000.png	front	105
638	product/43/grid/0000010.png	back	105
693	product/48/grid/0100010.png	back	118
639	product/43/grid/0001000.png	front	106
659	product/44/grid/0300010.png	back	108
640	product/43/grid/0001010.png	back	106
641	product/43/grid/0002000.png	front	107
675	product/46/grid/0301010.png	back	113
642	product/43/grid/0002010.png	back	107
660	product/44/grid/0301000.png	front	109
643	product/43/grid/0100000.png	front	105
644	product/43/grid/0101000.png	front	106
645	product/43/grid/0102000.png	front	107
661	product/44/grid/0301010.png	back	109
646	product/44/grid/0000000.png	front	108
647	product/44/grid/0000010.png	back	108
686	product/47/grid/0202000.png	front	116
648	product/44/grid/0001000.png	front	109
662	product/45/grid/0000000.png	front	110
649	product/44/grid/0001010.png	back	109
676	product/47/grid/0000010.png	back	114
663	product/45/grid/0000010.png	back	110
664	product/45/grid/0001000.png	front	111
677	product/47/grid/0001010.png	back	115
665	product/45/grid/0001010.png	back	111
666	product/45/grid/0100000.png	front	110
667	product/45/grid/0101000.png	front	111
678	product/47/grid/0002010.png	back	116
668	product/46/grid/0000000.png	front	112
669	product/46/grid/0001000.png	front	113
687	product/47/grid/0203000.png	front	117
670	product/46/grid/0100000.png	front	112
679	product/47/grid/0003010.png	back	117
671	product/46/grid/0101000.png	front	113
702	product/49/grid/0000000.png	front	120
680	product/47/grid/0100010.png	back	114
688	product/48/grid/0000000.png	front	118
681	product/47/grid/0101010.png	back	115
682	product/47/grid/0102010.png	back	116
694	product/48/grid/0101000.png	front	119
683	product/47/grid/0103010.png	back	117
689	product/48/grid/0000010.png	back	118
684	product/47/grid/0200000.png	front	114
698	product/48/grid/0201000.png	front	119
690	product/48/grid/0001000.png	front	119
695	product/48/grid/0101010.png	back	119
691	product/48/grid/0001010.png	back	119
692	product/48/grid/0100000.png	front	118
701	product/48/grid/0301000.png	front	119
696	product/48/grid/0200000.png	front	118
699	product/48/grid/0201010.png	back	119
697	product/48/grid/0200010.png	back	118
700	product/48/grid/0300000.png	front	118
703	product/49/grid/0000010.png	back	120
704	product/49/grid/0001000.png	front	121
705	product/49/grid/0001010.png	back	121
706	product/49/grid/0100000.png	front	120
707	product/49/grid/0100010.png	back	120
708	product/49/grid/0101000.png	front	121
709	product/49/grid/0101010.png	back	121
710	product/50/grid/0000000.png	front	122
711	product/50/grid/0000010.png	back	122
712	product/50/grid/0001000.png	front	123
713	product/50/grid/0001010.png	back	123
751	product/51/grid/0202010.png	back	127
714	product/50/grid/0002000.png	front	124
715	product/50/grid/0002010.png	back	124
773	product/52/grid/0201010.png	back	129
716	product/50/grid/0100000.png	front	122
752	product/51/grid/0300000.png	front	125
717	product/50/grid/0100010.png	back	122
718	product/50/grid/0101000.png	front	123
719	product/50/grid/0101010.png	back	123
753	product/51/grid/0300010.png	back	125
720	product/50/grid/0102000.png	front	124
721	product/50/grid/0102010.png	back	124
722	product/50/grid/0200000.png	front	122
754	product/51/grid/0301000.png	front	126
723	product/50/grid/0200010.png	back	122
724	product/50/grid/0201000.png	front	123
774	product/52/grid/0202000.png	front	130
725	product/50/grid/0201010.png	back	123
755	product/51/grid/0301010.png	back	126
726	product/50/grid/0202000.png	front	124
727	product/50/grid/0202010.png	back	124
728	product/50/grid/0300000.png	front	122
756	product/51/grid/0302000.png	front	127
729	product/50/grid/0300010.png	back	122
730	product/50/grid/0301000.png	front	123
731	product/50/grid/0301010.png	back	123
757	product/51/grid/0302010.png	back	127
732	product/50/grid/0302000.png	front	124
733	product/50/grid/0302010.png	back	124
775	product/52/grid/0202010.png	back	130
734	product/51/grid/0000000.png	front	125
758	product/52/grid/0000000.png	front	128
735	product/51/grid/0000010.png	back	125
736	product/51/grid/0001000.png	front	126
737	product/51/grid/0001010.png	back	126
759	product/52/grid/0000010.png	back	128
738	product/51/grid/0002000.png	front	127
739	product/51/grid/0002010.png	back	127
740	product/51/grid/0100000.png	front	125
760	product/52/grid/0001000.png	front	129
741	product/51/grid/0100010.png	back	125
742	product/51/grid/0101000.png	front	126
776	product/52/grid/0300000.png	front	128
743	product/51/grid/0101010.png	back	126
761	product/52/grid/0001010.png	back	129
744	product/51/grid/0102000.png	front	127
745	product/51/grid/0102010.png	back	127
746	product/51/grid/0200000.png	front	125
762	product/52/grid/0002000.png	front	130
747	product/51/grid/0200010.png	back	125
748	product/51/grid/0201000.png	front	126
749	product/51/grid/0201010.png	back	126
763	product/52/grid/0002010.png	back	130
750	product/51/grid/0202000.png	front	127
777	product/52/grid/0300010.png	back	128
764	product/52/grid/0100000.png	front	128
765	product/52/grid/0100010.png	back	128
778	product/52/grid/0301000.png	front	129
766	product/52/grid/0101000.png	front	129
767	product/52/grid/0101010.png	back	129
768	product/52/grid/0102000.png	front	130
779	product/52/grid/0301010.png	back	129
769	product/52/grid/0102010.png	back	130
770	product/52/grid/0200000.png	front	128
771	product/52/grid/0200010.png	back	128
780	product/52/grid/0302000.png	front	130
772	product/52/grid/0201000.png	front	129
781	product/52/grid/0302010.png	back	130
\.


--
-- Name: sim_grid_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('sim_grid_id_seq', 781, true);


--
-- Data for Name: sim_main_fabric; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_main_fabric (id, name, index, stock, image, front_mapping_image, back_mapping_image, product_id, price) FROM stdin;
118	RTBA70,jpg.jpg	00	\N	product/48/main_fabric/0000.png	product/48/mapping/front/118.png	product/48/mapping/back/118.png	48	0
119	STCA200.JPG.jpg	01	\N	product/48/main_fabric/0001.png	product/48/mapping/front/119.png	product/48/mapping/back/119.png	48	0
104	S8CA01-1.jpg	02	\N	product/42/main_fabric/0002.png	product/42/mapping/front/104.png	product/42/mapping/back/104.png	42	0
103	MMDB03-1.jpg	01	\N	product/42/main_fabric/0001.png	product/42/mapping/front/103.png	product/42/mapping/back/103.png	42	0
102	RTNA23S-1.jpg	00	\N	product/42/main_fabric/0000.png	product/42/mapping/front/102.png	product/42/mapping/back/102.png	42	0
120	STNA04.jpg	00	\N	product/49/main_fabric/0000.png	product/49/mapping/front/120.png	product/49/mapping/back/120.png	49	0
107	S8CA01-1.jpg	02	\N	product/43/main_fabric/0002.png	product/43/mapping/front/107.png	product/43/mapping/back/107.png	43	0
106	MMDB03-1.jpg	01	\N	product/43/main_fabric/0001.png	product/43/mapping/front/106.png	product/43/mapping/back/106.png	43	0
121	WTCA14.jpg	01	\N	product/49/main_fabric/0001.png	product/49/mapping/front/121.png	product/49/mapping/back/121.png	49	0
105	RTNA23S-1.jpg	00	\N	product/43/main_fabric/0000.png	product/43/mapping/front/105.png	product/43/mapping/back/105.png	43	0
109	RTRI12-1.jpg	01	\N	product/44/main_fabric/0001.png	product/44/mapping/front/109.png	product/44/mapping/back/109.png	44	0
108	HPK820-1.jpg	00	\N	product/44/main_fabric/0000.png	product/44/mapping/front/108.png	product/44/mapping/back/108.png	44	0
111	RTRI12-1.jpg	01	\N	product/45/main_fabric/0001.png	product/45/mapping/front/111.png	product/45/mapping/back/111.png	45	0
122	RTNA23S-1.jpg	00	\N	product/50/main_fabric/0000.png	product/50/mapping/front/122.png	product/50/mapping/back/122.png	50	0
110	HPK820-1.jpg	00	\N	product/45/main_fabric/0000.png	product/45/mapping/front/110.png	product/45/mapping/back/110.png	45	0
123	MMDB03-1.jpg	01	\N	product/50/main_fabric/0001.png	product/50/mapping/front/123.png	product/50/mapping/back/123.png	50	0
113	20170705_162530.jpg	01	\N	product/46/main_fabric/0001.png	product/46/mapping/front/113.png	product/46/mapping/back/113.png	46	0
124	S8CA01-1.jpg	02	\N	product/50/main_fabric/0002.png	product/50/mapping/front/124.png	product/50/mapping/back/124.png	50	0
112	20170705_162047.jpg	00	\N	product/46/main_fabric/0000.png	product/46/mapping/front/112.png	product/46/mapping/back/112.png	46	0
117	20170705_162530.jpg	03	\N	product/47/main_fabric/0003.png	product/47/mapping/front/117.png	product/47/mapping/back/117.png	47	0
116	20170705_162523.jpg	02	\N	product/47/main_fabric/0002.png	product/47/mapping/front/116.png	product/47/mapping/back/116.png	47	0
115	20170705_162150.jpg	01	\N	product/47/main_fabric/0001.png	product/47/mapping/front/115.png	product/47/mapping/back/115.png	47	0
114	20170705_162047.jpg	00	\N	product/47/main_fabric/0000.png	product/47/mapping/front/114.png	product/47/mapping/back/114.png	47	0
125	RTNA23S-1.jpg	00	\N	product/51/main_fabric/0000.png	product/51/mapping/front/125.png	product/51/mapping/back/125.png	51	0
126	MMDB03-1.jpg	01	\N	product/51/main_fabric/0001.png	product/51/mapping/front/126.png	product/51/mapping/back/126.png	51	0
127	S8CA01-1.jpg	02	\N	product/51/main_fabric/0002.png	product/51/mapping/front/127.png	product/51/mapping/back/127.png	51	0
128	RTNA23S-1.jpg	00	\N	product/52/main_fabric/0000.png	product/52/mapping/front/128.png	product/52/mapping/back/128.png	52	0
129	MMDB03-1.jpg	01	\N	product/52/main_fabric/0001.png	product/52/mapping/front/129.png	product/52/mapping/back/129.png	52	0
130	S8CA01-1.jpg	02	\N	product/52/main_fabric/0002.png	product/52/mapping/front/130.png	product/52/mapping/back/130.png	52	0
\.


--
-- Name: sim_main_fabric_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('sim_main_fabric_id_seq', 130, true);


--
-- Data for Name: sim_option; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_option (id, name, image, sub_category_id) FROM stdin;
\.


--
-- Name: sim_option_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Data for Name: sim_option_main_category; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_option_main_category (id, name) FROM stdin;
\.


--
-- Name: sim_option_main_category_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Data for Name: sim_option_sub_category; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_option_sub_category (id, name, main_category_id) FROM stdin;
\.


--
-- Name: sim_option_sub_category_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Data for Name: sim_product; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_product (id, name, season, style, code, txm, xml, product_type_id, user_id) FROM stdin;
42	동복 트레이닝_상의.txm	winter	training	TEST01	product/42/txm/_Ʈ_.txm	product/42/XmlData.xml	3	1
43	동복 트레이닝_하의.txm	winter	training	TEST01	product/43/txm/_Ʈ_.txm	product/43/XmlData.xml	4	1
44	하복_트레이닝복_상의.txm	summer	training	TEST01	product/44/txm/Ϻ_Ʈ_.txm	product/44/XmlData.xml	3	1
45	하복_트레이닝복_하의.txm	summer	training	TEST01	product/45/txm/Ϻ_Ʈ_.txm	product/45/XmlData.xml	4	1
46	하복생활복 상의.txm	summer	training	TEST01	product/46/txm/ϺȰ_.txm	product/46/XmlData.xml	3	1
47	하복생활복 하의.txm	summer	training	TEST01	product/47/txm/ϺȰ_.txm	product/47/XmlData.xml	4	1
48	동복체육복_상의.txm	winter	training	TEST01	product/48/txm/ü_.txm	product/48/XmlData.xml	3	1
49	동복체육복_하의.txm	winter	training	TEST01	product/49/txm/ü_.txm	product/49/XmlData.xml	4	1
50	jmj22342.txm	winter	training	TEST01	product/50/txm/jmj22342.txm	product/50/XmlData.xml	3	1
51	T01.txm	winter	training	TEST01	product/51/txm/T01.txm	product/51/XmlData.xml	3	1
52	T01.txm	winter	training	TEST01	product/52/txm/T01.txm	product/52/XmlData.xml	3	1
\.


--
-- Name: sim_product_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('sim_product_id_seq', 52, true);


--
-- Data for Name: sim_product_type; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_product_type (id, name, index) FROM stdin;
1	jacket	0
2	vest	0
4	pants	0
5	skirt	0
6	one-piece	0
7	acc	0
3	shirts	0
\.


--
-- Name: sim_product_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('sim_product_type_id_seq', 7, true);


--
-- Data for Name: sim_selected_couple_set; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_selected_couple_set (id, couple_id, final_uniform_set_id) FROM stdin;
\.


--
-- Data for Name: sim_selected_couple_set_function_set; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_selected_couple_set_function_set (id, selectedcoupleset_id, function_id) FROM stdin;
\.


--
-- Name: sim_selected_couple_set_function_set_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: sim_selected_couple_set_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Data for Name: sim_selected_favorite_couple_set; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_selected_favorite_couple_set (id, couple_id, final_uniform_set_id) FROM stdin;
\.


--
-- Name: sim_selected_favorite_couple_set_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Data for Name: sim_selected_product; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY sim_selected_product (id, main_fabric_id, product_id) FROM stdin;
39	102	42
40	105	43
41	108	44
42	110	45
43	112	46
44	114	47
45	118	48
46	120	49
47	122	50
48	125	51
49	128	52
\.


--
-- Name: sim_selected_product_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('sim_selected_product_id_seq', 49, true);


--
-- Name: accounts_userprofile_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY ac_user_profile
    ADD CONSTRAINT accounts_userprofile_pkey PRIMARY KEY (id);


--
-- Name: accounts_userprofile_user_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY ac_user_profile
    ADD CONSTRAINT accounts_userprofile_user_id_key UNIQUE (user_id);


--
-- Name: auth_group_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_group_permissions_group_id_0cd325b0_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_group_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_group_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_permission_content_type_id_01ab375a_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_permission_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_user_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_user_groups_user_id_94350c0c_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_user_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_user_user_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_user_user_permissions_user_id_14a6b632_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_user_username_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: cp_company_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY cp_company
    ADD CONSTRAINT cp_company_pkey PRIMARY KEY (id);


--
-- Name: django_admin_log_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: django_content_type_app_label_76bd3d3b_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: django_content_type_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: django_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY django_migrations
    ADD CONSTRAINT django_migrations_pkey PRIMARY KEY (id);


--
-- Name: django_session_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: kg_kindergarten_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY kg_kindergarten
    ADD CONSTRAINT kg_kindergarten_pkey PRIMARY KEY (id);


--
-- Name: kg_smart_kindergarten_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY kg_smart_kindergarten
    ADD CONSTRAINT kg_smart_kindergarten_pkey PRIMARY KEY (id);


--
-- Name: oc_order_contract_key_89363dd0_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY oc_order_contract
    ADD CONSTRAINT oc_order_contract_key_89363dd0_uniq UNIQUE (key, kindergarten_id);


--
-- Name: oc_order_contract_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY oc_order_contract
    ADD CONSTRAINT oc_order_contract_pkey PRIMARY KEY (id);


--
-- Name: oc_product_quantity_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY oc_product_quantity
    ADD CONSTRAINT oc_product_quantity_pkey PRIMARY KEY (id);


--
-- Name: sim_couple_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_couple
    ADD CONSTRAINT sim_couple_pkey PRIMARY KEY (id);


--
-- Name: sim_final_fitting_set_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_final_fitting_set
    ADD CONSTRAINT sim_final_fitting_set_pkey PRIMARY KEY (id);


--
-- Name: sim_fitting_category_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_fitting_category
    ADD CONSTRAINT sim_fitting_category_pkey PRIMARY KEY (id);


--
-- Name: sim_fitting_category_product_t_fittingcategory_id_c627a576_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_fitting_category_product_type_set
    ADD CONSTRAINT sim_fitting_category_product_t_fittingcategory_id_c627a576_uniq UNIQUE (fittingcategory_id, producttype_id);


--
-- Name: sim_fitting_category_product_type_set_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_fitting_category_product_type_set
    ADD CONSTRAINT sim_fitting_category_product_type_set_pkey PRIMARY KEY (id);


--
-- Name: sim_fitting_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_fitting
    ADD CONSTRAINT sim_fitting_pkey PRIMARY KEY (id);


--
-- Name: sim_fitting_product_set_fitting_id_a9b82eb6_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_fitting_product_set
    ADD CONSTRAINT sim_fitting_product_set_fitting_id_a9b82eb6_uniq UNIQUE (fitting_id, selectedproduct_id);


--
-- Name: sim_fitting_product_set_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_fitting_product_set
    ADD CONSTRAINT sim_fitting_product_set_pkey PRIMARY KEY (id);


--
-- Name: sim_function_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_function
    ADD CONSTRAINT sim_function_pkey PRIMARY KEY (id);


--
-- Name: sim_grid_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_grid
    ADD CONSTRAINT sim_grid_pkey PRIMARY KEY (id);


--
-- Name: sim_main_fabric_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_main_fabric
    ADD CONSTRAINT sim_main_fabric_pkey PRIMARY KEY (id);


--
-- Name: sim_option_main_category_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_option_main_category
    ADD CONSTRAINT sim_option_main_category_pkey PRIMARY KEY (id);


--
-- Name: sim_option_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_option
    ADD CONSTRAINT sim_option_pkey PRIMARY KEY (id);


--
-- Name: sim_option_sub_category_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_option_sub_category
    ADD CONSTRAINT sim_option_sub_category_pkey PRIMARY KEY (id);


--
-- Name: sim_product_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_product
    ADD CONSTRAINT sim_product_pkey PRIMARY KEY (id);


--
-- Name: sim_product_type_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_product_type
    ADD CONSTRAINT sim_product_type_pkey PRIMARY KEY (id);


--
-- Name: sim_selected_couple_set_func_selectedcoupleset_id_65022ce2_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_selected_couple_set_function_set
    ADD CONSTRAINT sim_selected_couple_set_func_selectedcoupleset_id_65022ce2_uniq UNIQUE (selectedcoupleset_id, function_id);


--
-- Name: sim_selected_couple_set_function_set_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_selected_couple_set_function_set
    ADD CONSTRAINT sim_selected_couple_set_function_set_pkey PRIMARY KEY (id);


--
-- Name: sim_selected_couple_set_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_selected_couple_set
    ADD CONSTRAINT sim_selected_couple_set_pkey PRIMARY KEY (id);


--
-- Name: sim_selected_favorite_couple_set_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_selected_favorite_couple_set
    ADD CONSTRAINT sim_selected_favorite_couple_set_pkey PRIMARY KEY (id);


--
-- Name: sim_selected_product_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_selected_product
    ADD CONSTRAINT sim_selected_product_pkey PRIMARY KEY (id);


--
-- Name: accounts_userprofile_447d3092; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX accounts_userprofile_447d3092 ON ac_user_profile USING btree (company_id);


--
-- Name: auth_group_name_a6ea08ec_like; Type: INDEX; Schema: public; Owner: postgres
--

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


--
-- Name: auth_group_permissions_0e939a4f; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_group_permissions_0e939a4f ON auth_group_permissions USING btree (group_id);


--
-- Name: auth_group_permissions_8373b171; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_group_permissions_8373b171 ON auth_group_permissions USING btree (permission_id);


--
-- Name: auth_permission_417f1b1c; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_permission_417f1b1c ON auth_permission USING btree (content_type_id);


--
-- Name: auth_user_groups_0e939a4f; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_groups_0e939a4f ON auth_user_groups USING btree (group_id);


--
-- Name: auth_user_groups_e8701ad4; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_groups_e8701ad4 ON auth_user_groups USING btree (user_id);


--
-- Name: auth_user_user_permissions_8373b171; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_user_permissions_8373b171 ON auth_user_user_permissions USING btree (permission_id);


--
-- Name: auth_user_user_permissions_e8701ad4; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_user_permissions_e8701ad4 ON auth_user_user_permissions USING btree (user_id);


--
-- Name: auth_user_username_6821ab7c_like; Type: INDEX; Schema: public; Owner: postgres
--

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


--
-- Name: django_admin_log_417f1b1c; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_admin_log_417f1b1c ON django_admin_log USING btree (content_type_id);


--
-- Name: django_admin_log_e8701ad4; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_admin_log_e8701ad4 ON django_admin_log USING btree (user_id);


--
-- Name: django_session_de54fa62; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_session_de54fa62 ON django_session USING btree (expire_date);


--
-- Name: django_session_session_key_c0390e0f_like; Type: INDEX; Schema: public; Owner: postgres
--

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


--
-- Name: kg_kindergarten_06037614; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX kg_kindergarten_06037614 ON kg_kindergarten USING btree (user_profile_id);


--
-- Name: kg_kindergarten_6a7645d6; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX kg_kindergarten_6a7645d6 ON kg_kindergarten USING btree (smart_kindergarten_id);


--
-- Name: oc_order_contract_fc0633fc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX oc_order_contract_fc0633fc ON oc_order_contract USING btree (kindergarten_id);


--
-- Name: oc_product_quantity_b175be17; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX oc_product_quantity_b175be17 ON oc_product_quantity USING btree (order_contract);


--
-- Name: oc_product_quantity_f5bf48aa; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX oc_product_quantity_f5bf48aa ON oc_product_quantity USING btree (product);


--
-- Name: sim_couple_6356cb18; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_couple_6356cb18 ON sim_couple USING btree (girl_fitting_id);


--
-- Name: sim_couple_ca14d00e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_couple_ca14d00e ON sim_couple USING btree (boy_fitting_id);


--
-- Name: sim_fitting_b5fd75cc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_fitting_b5fd75cc ON sim_fitting USING btree (fitting_category_id);


--
-- Name: sim_fitting_category_product_type_set_b58716a8; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_fitting_category_product_type_set_b58716a8 ON sim_fitting_category_product_type_set USING btree (fittingcategory_id);


--
-- Name: sim_fitting_category_product_type_set_f5092b03; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_fitting_category_product_type_set_f5092b03 ON sim_fitting_category_product_type_set USING btree (producttype_id);


--
-- Name: sim_fitting_product_set_e4735dfc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_fitting_product_set_e4735dfc ON sim_fitting_product_set USING btree (selectedproduct_id);


--
-- Name: sim_fitting_product_set_f02fa166; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_fitting_product_set_f02fa166 ON sim_fitting_product_set USING btree (fitting_id);


--
-- Name: sim_grid_0c4809fb; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_grid_0c4809fb ON sim_grid USING btree (fabric_id);


--
-- Name: sim_main_fabric_9bea82de; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_main_fabric_9bea82de ON sim_main_fabric USING btree (product_id);


--
-- Name: sim_option_fa50d5d8; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_option_fa50d5d8 ON sim_option USING btree (sub_category_id);


--
-- Name: sim_option_sub_category_5ef91e23; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_option_sub_category_5ef91e23 ON sim_option_sub_category USING btree (main_category_id);


--
-- Name: sim_product_d9862cd8; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_product_d9862cd8 ON sim_product USING btree (product_type_id);


--
-- Name: sim_product_e8701ad4; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_product_e8701ad4 ON sim_product USING btree (user_id);


--
-- Name: sim_selected_couple_set_20abf7e9; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_selected_couple_set_20abf7e9 ON sim_selected_couple_set USING btree (couple_id);


--
-- Name: sim_selected_couple_set_98fcce28; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_selected_couple_set_98fcce28 ON sim_selected_couple_set USING btree (final_uniform_set_id);


--
-- Name: sim_selected_couple_set_function_set_5c26c957; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_selected_couple_set_function_set_5c26c957 ON sim_selected_couple_set_function_set USING btree (selectedcoupleset_id);


--
-- Name: sim_selected_couple_set_function_set_d60961ca; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_selected_couple_set_function_set_d60961ca ON sim_selected_couple_set_function_set USING btree (function_id);


--
-- Name: sim_selected_favorite_couple_set_20abf7e9; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_selected_favorite_couple_set_20abf7e9 ON sim_selected_favorite_couple_set USING btree (couple_id);


--
-- Name: sim_selected_favorite_couple_set_98fcce28; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_selected_favorite_couple_set_98fcce28 ON sim_selected_favorite_couple_set USING btree (final_uniform_set_id);


--
-- Name: sim_selected_product_2a1e2153; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_selected_product_2a1e2153 ON sim_selected_product USING btree (main_fabric_id);


--
-- Name: sim_selected_product_9bea82de; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX sim_selected_product_9bea82de ON sim_selected_product USING btree (product_id);


--
-- Name: accounts_userprofile_user_id_92240672_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_group_permiss_permission_id_84c5c92e_fk_auth_permission_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_group_permissions_group_id_b120cbf9_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_permiss_content_type_id_2f476e4b_fk_django_content_type_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_user_groups_group_id_97559544_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_user_groups_user_id_6a12ed8b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_user_user_per_permission_id_1fbb5f2c_fk_auth_permission_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: django_admin_content_type_id_c4bce8eb_fk_django_content_type_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: django_admin_log_user_id_c564eba6_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: kg_k_smart_kindergarten_id_e56ded8d_fk_kg_smart_kindergarten_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY kg_kindergarten
    ADD CONSTRAINT kg_k_smart_kindergarten_id_e56ded8d_fk_kg_smart_kindergarten_id FOREIGN KEY (smart_kindergarten_id) REFERENCES kg_smart_kindergarten(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: kg_kindergarten_user_profile_id_b9cc7b2f_fk_ac_user_profile_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY kg_kindergarten
    ADD CONSTRAINT kg_kindergarten_user_profile_id_b9cc7b2f_fk_ac_user_profile_id FOREIGN KEY (user_profile_id) REFERENCES ac_user_profile(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: oc_order_contrac_kindergarten_id_accc6216_fk_kg_kindergarten_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY oc_order_contract
    ADD CONSTRAINT oc_order_contrac_kindergarten_id_accc6216_fk_kg_kindergarten_id FOREIGN KEY (kindergarten_id) REFERENCES kg_kindergarten(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: oc_product_quan_order_contract_5b93cd3e_fk_oc_order_contract_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY oc_product_quantity
    ADD CONSTRAINT oc_product_quan_order_contract_5b93cd3e_fk_oc_order_contract_id FOREIGN KEY (order_contract) REFERENCES oc_order_contract(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: oc_product_quantity_product_d9958c64_fk_sim_product_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY oc_product_quantity
    ADD CONSTRAINT oc_product_quantity_product_d9958c64_fk_sim_product_id FOREIGN KEY (product) REFERENCES sim_product(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_couple_boy_fitting_id_e8b60b10_fk_sim_fitting_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_couple
    ADD CONSTRAINT sim_couple_boy_fitting_id_e8b60b10_fk_sim_fitting_id FOREIGN KEY (boy_fitting_id) REFERENCES sim_fitting(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_couple_girl_fitting_id_8430e9c5_fk_sim_fitting_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_couple
    ADD CONSTRAINT sim_couple_girl_fitting_id_8430e9c5_fk_sim_fitting_id FOREIGN KEY (girl_fitting_id) REFERENCES sim_fitting(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_fit_fitting_category_id_4fa6831a_fk_sim_fitting_category_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_fitting
    ADD CONSTRAINT sim_fit_fitting_category_id_4fa6831a_fk_sim_fitting_category_id FOREIGN KEY (fitting_category_id) REFERENCES sim_fitting_category(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_fitt_fittingcategory_id_49bc8a43_fk_sim_fitting_category_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_fitting_category_product_type_set
    ADD CONSTRAINT sim_fitt_fittingcategory_id_49bc8a43_fk_sim_fitting_category_id FOREIGN KEY (fittingcategory_id) REFERENCES sim_fitting_category(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_fitt_selectedproduct_id_3830ac68_fk_sim_selected_product_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_fitting_product_set
    ADD CONSTRAINT sim_fitt_selectedproduct_id_3830ac68_fk_sim_selected_product_id FOREIGN KEY (selectedproduct_id) REFERENCES sim_selected_product(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_fitting_cate_producttype_id_cc6a13e6_fk_sim_product_type_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_fitting_category_product_type_set
    ADD CONSTRAINT sim_fitting_cate_producttype_id_cc6a13e6_fk_sim_product_type_id FOREIGN KEY (producttype_id) REFERENCES sim_product_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_fitting_product_set_fitting_id_bef3d60d_fk_sim_fitting_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_fitting_product_set
    ADD CONSTRAINT sim_fitting_product_set_fitting_id_bef3d60d_fk_sim_fitting_id FOREIGN KEY (fitting_id) REFERENCES sim_fitting(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_grid_fabric_id_60925c1b_fk_sim_main_fabric_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_grid
    ADD CONSTRAINT sim_grid_fabric_id_60925c1b_fk_sim_main_fabric_id FOREIGN KEY (fabric_id) REFERENCES sim_main_fabric(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_main_fabric_product_id_43c8a05e_fk_sim_product_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_main_fabric
    ADD CONSTRAINT sim_main_fabric_product_id_43c8a05e_fk_sim_product_id FOREIGN KEY (product_id) REFERENCES sim_product(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_op_main_category_id_b35993e4_fk_sim_option_main_category_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_option_sub_category
    ADD CONSTRAINT sim_op_main_category_id_b35993e4_fk_sim_option_main_category_id FOREIGN KEY (main_category_id) REFERENCES sim_option_main_category(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_opti_sub_category_id_00e61d7b_fk_sim_option_sub_category_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_option
    ADD CONSTRAINT sim_opti_sub_category_id_00e61d7b_fk_sim_option_sub_category_id FOREIGN KEY (sub_category_id) REFERENCES sim_option_sub_category(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_product_product_type_id_b11be931_fk_sim_product_type_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_product
    ADD CONSTRAINT sim_product_product_type_id_b11be931_fk_sim_product_type_id FOREIGN KEY (product_type_id) REFERENCES sim_product_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_product_user_id_e9c23afb_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: sim_s_final_uniform_set_id_a6519bb6_fk_sim_final_fitting_set_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_selected_favorite_couple_set
    ADD CONSTRAINT sim_s_final_uniform_set_id_a6519bb6_fk_sim_final_fitting_set_id FOREIGN KEY (final_uniform_set_id) REFERENCES sim_final_fitting_set(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_s_final_uniform_set_id_e1fc5652_fk_sim_final_fitting_set_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_selected_couple_set
    ADD CONSTRAINT sim_s_final_uniform_set_id_e1fc5652_fk_sim_final_fitting_set_id FOREIGN KEY (final_uniform_set_id) REFERENCES sim_final_fitting_set(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_selected_couple_set_couple_id_efe48b45_fk_sim_couple_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_selected_couple_set
    ADD CONSTRAINT sim_selected_couple_set_couple_id_efe48b45_fk_sim_couple_id FOREIGN KEY (couple_id) REFERENCES sim_couple(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_selected_couple_set_function_id_dc75d4ed_fk_sim_function_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_selected_couple_set_function_set
    ADD CONSTRAINT sim_selected_couple_set_function_id_dc75d4ed_fk_sim_function_id FOREIGN KEY (function_id) REFERENCES sim_function(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_selected_favorite_coupl_couple_id_4fc7ac3f_fk_sim_couple_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_selected_favorite_couple_set
    ADD CONSTRAINT sim_selected_favorite_coupl_couple_id_4fc7ac3f_fk_sim_couple_id FOREIGN KEY (couple_id) REFERENCES sim_couple(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_selected_prod_main_fabric_id_31fd7194_fk_sim_main_fabric_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_selected_product
    ADD CONSTRAINT sim_selected_prod_main_fabric_id_31fd7194_fk_sim_main_fabric_id FOREIGN KEY (main_fabric_id) REFERENCES sim_main_fabric(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_selected_product_product_id_d05fac55_fk_sim_product_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_selected_product
    ADD CONSTRAINT sim_selected_product_product_id_d05fac55_fk_sim_product_id FOREIGN KEY (product_id) REFERENCES sim_product(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: sim_selectedcoupleset_id_f8fa83fa_fk_sim_selected_couple_set_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY sim_selected_couple_set_function_set
    ADD CONSTRAINT sim_selectedcoupleset_id_f8fa83fa_fk_sim_selected_couple_set_id FOREIGN KEY (selectedcoupleset_id) REFERENCES sim_selected_couple_set(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
--

