Skip to content

Instantly share code, notes, and snippets.

@elg0nz
Created January 5, 2012 22:23
Show Gist options
  • Save elg0nz/1567655 to your computer and use it in GitHub Desktop.
Save elg0nz/1567655 to your computer and use it in GitHub Desktop.
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: auth_group; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE auth_group (
id integer NOT NULL,
name character varying(80) NOT NULL
);
ALTER TABLE public.auth_group OWNER TO django_pwny;
--
-- Name: auth_group_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE auth_group_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.auth_group_id_seq OWNER TO django_pwny;
--
-- Name: auth_group_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE auth_group_id_seq OWNED BY auth_group.id;
--
-- Name: auth_group_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('auth_group_id_seq', 1, false);
--
-- Name: auth_group_permissions; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE auth_group_permissions (
id integer NOT NULL,
group_id integer NOT NULL,
permission_id integer NOT NULL
);
ALTER TABLE public.auth_group_permissions OWNER TO django_pwny;
--
-- Name: auth_group_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE auth_group_permissions_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.auth_group_permissions_id_seq OWNER TO django_pwny;
--
-- Name: auth_group_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE auth_group_permissions_id_seq OWNED BY auth_group_permissions.id;
--
-- Name: auth_group_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('auth_group_permissions_id_seq', 1, false);
--
-- Name: auth_message; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE auth_message (
id integer NOT NULL,
user_id integer NOT NULL,
message text NOT NULL
);
ALTER TABLE public.auth_message OWNER TO django_pwny;
--
-- Name: auth_message_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE auth_message_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.auth_message_id_seq OWNER TO django_pwny;
--
-- Name: auth_message_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE auth_message_id_seq OWNED BY auth_message.id;
--
-- Name: auth_message_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('auth_message_id_seq', 1, false);
--
-- Name: auth_permission; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE auth_permission (
id integer NOT NULL,
name character varying(50) NOT NULL,
content_type_id integer NOT NULL,
codename character varying(100) NOT NULL
);
ALTER TABLE public.auth_permission OWNER TO django_pwny;
--
-- Name: auth_permission_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE auth_permission_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.auth_permission_id_seq OWNER TO django_pwny;
--
-- Name: auth_permission_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE auth_permission_id_seq OWNED BY auth_permission.id;
--
-- Name: auth_permission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('auth_permission_id_seq', 243, true);
--
-- Name: auth_user; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE auth_user (
id integer NOT NULL,
username character varying(30) NOT NULL,
first_name character varying(30) NOT NULL,
last_name character varying(30) NOT NULL,
email character varying(75) NOT NULL,
password character varying(128) NOT NULL,
is_staff boolean NOT NULL,
is_active boolean NOT NULL,
is_superuser boolean NOT NULL,
last_login timestamp with time zone NOT NULL,
date_joined timestamp with time zone NOT NULL
);
ALTER TABLE public.auth_user OWNER TO django_pwny;
--
-- Name: auth_user_groups; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE auth_user_groups (
id integer NOT NULL,
user_id integer NOT NULL,
group_id integer NOT NULL
);
ALTER TABLE public.auth_user_groups OWNER TO django_pwny;
--
-- Name: auth_user_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE auth_user_groups_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.auth_user_groups_id_seq OWNER TO django_pwny;
--
-- Name: auth_user_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE auth_user_groups_id_seq OWNED BY auth_user_groups.id;
--
-- Name: auth_user_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('auth_user_groups_id_seq', 1, false);
--
-- Name: auth_user_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE auth_user_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.auth_user_id_seq OWNER TO django_pwny;
--
-- Name: auth_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE auth_user_id_seq OWNED BY auth_user.id;
--
-- Name: auth_user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('auth_user_id_seq', 3, true);
--
-- Name: auth_user_user_permissions; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE auth_user_user_permissions (
id integer NOT NULL,
user_id integer NOT NULL,
permission_id integer NOT NULL
);
ALTER TABLE public.auth_user_user_permissions OWNER TO django_pwny;
--
-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE auth_user_user_permissions_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.auth_user_user_permissions_id_seq OWNER TO django_pwny;
--
-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE auth_user_user_permissions_id_seq OWNED BY auth_user_user_permissions.id;
--
-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('auth_user_user_permissions_id_seq', 3843, true);
--
-- Name: celery_taskmeta; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE celery_taskmeta (
id integer NOT NULL,
task_id character varying(255) NOT NULL,
status character varying(50) DEFAULT 'PENDING'::character varying NOT NULL,
result text,
date_done timestamp with time zone NOT NULL,
traceback text
);
ALTER TABLE public.celery_taskmeta OWNER TO django_pwny;
--
-- Name: celery_taskmeta_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE celery_taskmeta_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.celery_taskmeta_id_seq OWNER TO django_pwny;
--
-- Name: celery_taskmeta_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE celery_taskmeta_id_seq OWNED BY celery_taskmeta.id;
--
-- Name: celery_taskmeta_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('celery_taskmeta_id_seq', 1, false);
--
-- Name: celery_tasksetmeta; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE celery_tasksetmeta (
id integer NOT NULL,
taskset_id character varying(255) NOT NULL,
result text NOT NULL,
date_done timestamp with time zone NOT NULL
);
ALTER TABLE public.celery_tasksetmeta OWNER TO django_pwny;
--
-- Name: celery_tasksetmeta_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE celery_tasksetmeta_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.celery_tasksetmeta_id_seq OWNER TO django_pwny;
--
-- Name: celery_tasksetmeta_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE celery_tasksetmeta_id_seq OWNED BY celery_tasksetmeta.id;
--
-- Name: celery_tasksetmeta_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('celery_tasksetmeta_id_seq', 1, false);
--
-- Name: coreApi_address; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_address" (
id integer NOT NULL,
line_1 character varying(280) NOT NULL,
line_2 character varying(280) NOT NULL,
zipcode character varying(20) NOT NULL,
active boolean DEFAULT false NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
city_name character varying(100) NOT NULL,
state character varying(2),
province character varying(120),
country character varying(2) NOT NULL
);
ALTER TABLE public."coreApi_address" OWNER TO django_pwny;
--
-- Name: coreApi_address_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_address_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_address_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_address_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_address_id_seq" OWNED BY "coreApi_address".id;
--
-- Name: coreApi_address_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_address_id_seq"', 2, true);
--
-- Name: coreApi_apiconsumer; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_apiconsumer" (
id integer NOT NULL,
secret_key uuid NOT NULL,
associated_user_id integer,
associated_company_id integer
);
ALTER TABLE public."coreApi_apiconsumer" OWNER TO django_pwny;
--
-- Name: coreApi_apiconsumer_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_apiconsumer_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_apiconsumer_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_apiconsumer_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_apiconsumer_id_seq" OWNED BY "coreApi_apiconsumer".id;
--
-- Name: coreApi_apiconsumer_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_apiconsumer_id_seq"', 1, false);
--
-- Name: coreApi_brand; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_brand" (
id integer NOT NULL,
name character varying(280) NOT NULL,
active boolean DEFAULT false NOT NULL,
company_id integer NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL
);
ALTER TABLE public."coreApi_brand" OWNER TO django_pwny;
--
-- Name: coreApi_brand_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_brand_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_brand_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_brand_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_brand_id_seq" OWNED BY "coreApi_brand".id;
--
-- Name: coreApi_brand_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_brand_id_seq"', 29, true);
--
-- Name: coreApi_company; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_company" (
id integer NOT NULL,
name character varying(280) NOT NULL,
active boolean DEFAULT false NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL
);
ALTER TABLE public."coreApi_company" OWNER TO django_pwny;
--
-- Name: coreApi_company_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_company_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_company_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_company_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_company_id_seq" OWNED BY "coreApi_company".id;
--
-- Name: coreApi_company_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_company_id_seq"', 26, true);
--
-- Name: coreApi_currency; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_currency" (
id integer NOT NULL,
symbol character varying(4) NOT NULL,
name character varying(40) NOT NULL,
active boolean DEFAULT false NOT NULL
);
ALTER TABLE public."coreApi_currency" OWNER TO django_pwny;
--
-- Name: coreApi_currency_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_currency_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_currency_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_currency_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_currency_id_seq" OWNED BY "coreApi_currency".id;
--
-- Name: coreApi_currency_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_currency_id_seq"', 1, true);
--
-- Name: coreApi_customer; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_customer" (
id integer NOT NULL,
first_name character varying(200) NOT NULL,
last_name character varying(200) NOT NULL,
email character varying(75) NOT NULL,
picture character varying(200) NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
address_id integer NOT NULL,
total_visits integer NOT NULL,
total_purchases integer NOT NULL,
phone_number character varying(200) NOT NULL,
ref_number character varying(200)
);
ALTER TABLE public."coreApi_customer" OWNER TO django_pwny;
--
-- Name: coreApi_customer_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_customer_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_customer_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_customer_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_customer_id_seq" OWNED BY "coreApi_customer".id;
--
-- Name: coreApi_customer_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_customer_id_seq"', 1, true);
--
-- Name: coreApi_device; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_device" (
id integer NOT NULL,
name character varying(280) NOT NULL,
mac character varying(280) NOT NULL,
device_type integer NOT NULL,
active boolean DEFAULT false NOT NULL,
port integer
);
ALTER TABLE public."coreApi_device" OWNER TO django_pwny;
--
-- Name: coreApi_device_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_device_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_device_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_device_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_device_id_seq" OWNED BY "coreApi_device".id;
--
-- Name: coreApi_device_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_device_id_seq"', 3, true);
--
-- Name: coreApi_deviceextraparameters; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_deviceextraparameters" (
id integer NOT NULL,
name character varying(100) NOT NULL,
value character varying(280) NOT NULL,
active boolean DEFAULT false NOT NULL,
device_id integer NOT NULL
);
ALTER TABLE public."coreApi_deviceextraparameters" OWNER TO django_pwny;
--
-- Name: coreApi_deviceextraparameters_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_deviceextraparameters_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_deviceextraparameters_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_deviceextraparameters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_deviceextraparameters_id_seq" OWNED BY "coreApi_deviceextraparameters".id;
--
-- Name: coreApi_deviceextraparameters_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_deviceextraparameters_id_seq"', 1, false);
--
-- Name: coreApi_discount; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_discount" (
id integer NOT NULL,
password_required boolean DEFAULT false NOT NULL,
discount_amount double precision NOT NULL,
discount_type integer NOT NULL,
effective_from timestamp with time zone NOT NULL,
effective_to timestamp with time zone,
establishment_id integer NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
maximum_percentage double precision,
minimum_amount double precision,
password character varying(40),
name character varying(280) NOT NULL
);
ALTER TABLE public."coreApi_discount" OWNER TO django_pwny;
--
-- Name: coreApi_discount_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_discount_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_discount_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_discount_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_discount_id_seq" OWNED BY "coreApi_discount".id;
--
-- Name: coreApi_discount_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_discount_id_seq"', 1, true);
--
-- Name: coreApi_drawercount; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_drawercount" (
id integer NOT NULL,
counted_by_id integer NOT NULL,
station_id integer NOT NULL,
establishment_id integer NOT NULL,
counted_date timestamp with time zone NOT NULL,
cash_in_drawer double precision NOT NULL,
cash_sales double precision NOT NULL,
total_refunds double precision NOT NULL,
total_payouts double precision NOT NULL,
difference double precision NOT NULL
);
ALTER TABLE public."coreApi_drawercount" OWNER TO django_pwny;
--
-- Name: coreApi_drawercount_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_drawercount_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_drawercount_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_drawercount_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_drawercount_id_seq" OWNED BY "coreApi_drawercount".id;
--
-- Name: coreApi_drawercount_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_drawercount_id_seq"', 1, false);
--
-- Name: coreApi_employee; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_employee" (
id integer NOT NULL,
first_name character varying(200) NOT NULL,
last_name character varying(200) NOT NULL,
email character varying(75),
pin character varying(4) NOT NULL,
employee_start timestamp with time zone NOT NULL,
employee_end timestamp with time zone,
employee_card character varying(200),
employee_lastlogin timestamp with time zone,
picture character varying(200),
department_id integer,
exempt boolean DEFAULT false NOT NULL,
active boolean DEFAULT false NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
address_id integer
);
ALTER TABLE public."coreApi_employee" OWNER TO django_pwny;
--
-- Name: coreApi_employee_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_employee_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_employee_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_employee_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_employee_id_seq" OWNED BY "coreApi_employee".id;
--
-- Name: coreApi_employee_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_employee_id_seq"', 2, true);
--
-- Name: coreApi_employee_roles; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_employee_roles" (
id integer NOT NULL,
employee_id integer NOT NULL,
role_id integer NOT NULL
);
ALTER TABLE public."coreApi_employee_roles" OWNER TO django_pwny;
--
-- Name: coreApi_employee_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_employee_roles_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_employee_roles_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_employee_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_employee_roles_id_seq" OWNED BY "coreApi_employee_roles".id;
--
-- Name: coreApi_employee_roles_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_employee_roles_id_seq"', 26, true);
--
-- Name: coreApi_employeedepartment; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_employeedepartment" (
id integer NOT NULL,
name character varying(200) NOT NULL,
active boolean DEFAULT false NOT NULL
);
ALTER TABLE public."coreApi_employeedepartment" OWNER TO django_pwny;
--
-- Name: coreApi_employeedepartment_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_employeedepartment_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_employeedepartment_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_employeedepartment_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_employeedepartment_id_seq" OWNED BY "coreApi_employeedepartment".id;
--
-- Name: coreApi_employeedepartment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_employeedepartment_id_seq"', 1, true);
--
-- Name: coreApi_establishment; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_establishment" (
id integer NOT NULL,
name character varying(280) NOT NULL,
sorting_id integer,
store_number integer,
manager_id integer NOT NULL,
notes text,
active boolean DEFAULT false NOT NULL,
logo_url character varying(200),
effective_from timestamp with time zone NOT NULL,
effective_to timestamp with time zone,
brand_id integer NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
currency_id integer NOT NULL,
email character varying(75) NOT NULL,
phone character varying(80) NOT NULL,
fax character varying(80),
tax_payer_num character varying(30),
time_zone character varying(100) DEFAULT 'America/Chicago'::character varying NOT NULL,
address_id integer NOT NULL,
settings_id integer NOT NULL,
surcharge_id integer,
kiosk_image_url character varying(200),
display_unit_bg_url character varying(200)
);
ALTER TABLE public."coreApi_establishment" OWNER TO django_pwny;
--
-- Name: coreApi_establishment_devices; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_establishment_devices" (
id integer NOT NULL,
establishment_id integer NOT NULL,
device_id integer NOT NULL
);
ALTER TABLE public."coreApi_establishment_devices" OWNER TO django_pwny;
--
-- Name: coreApi_establishment_devices_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_establishment_devices_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_establishment_devices_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_establishment_devices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_establishment_devices_id_seq" OWNED BY "coreApi_establishment_devices".id;
--
-- Name: coreApi_establishment_devices_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_establishment_devices_id_seq"', 951, true);
--
-- Name: coreApi_establishment_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_establishment_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_establishment_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_establishment_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_establishment_id_seq" OWNED BY "coreApi_establishment".id;
--
-- Name: coreApi_establishment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_establishment_id_seq"', 52, true);
--
-- Name: coreApi_establishment_social_networks; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_establishment_social_networks" (
id integer NOT NULL,
establishment_id integer NOT NULL,
socialnetwork_id integer NOT NULL
);
ALTER TABLE public."coreApi_establishment_social_networks" OWNER TO django_pwny;
--
-- Name: coreApi_establishment_social_networks_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_establishment_social_networks_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_establishment_social_networks_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_establishment_social_networks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_establishment_social_networks_id_seq" OWNED BY "coreApi_establishment_social_networks".id;
--
-- Name: coreApi_establishment_social_networks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_establishment_social_networks_id_seq"', 951, true);
--
-- Name: coreApi_establishment_tax; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_establishment_tax" (
id integer NOT NULL,
establishment_id integer NOT NULL,
tax_id integer NOT NULL
);
ALTER TABLE public."coreApi_establishment_tax" OWNER TO django_pwny;
--
-- Name: coreApi_establishment_tax_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_establishment_tax_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_establishment_tax_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_establishment_tax_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_establishment_tax_id_seq" OWNED BY "coreApi_establishment_tax".id;
--
-- Name: coreApi_establishment_tax_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_establishment_tax_id_seq"', 951, true);
--
-- Name: coreApi_establishmentemployee; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_establishmentemployee" (
id integer NOT NULL,
establishment_id integer NOT NULL,
employee_id integer NOT NULL
);
ALTER TABLE public."coreApi_establishmentemployee" OWNER TO django_pwny;
--
-- Name: coreApi_establishmentemployee_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_establishmentemployee_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_establishmentemployee_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_establishmentemployee_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_establishmentemployee_id_seq" OWNED BY "coreApi_establishmentemployee".id;
--
-- Name: coreApi_establishmentemployee_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_establishmentemployee_id_seq"', 2, true);
--
-- Name: coreApi_giftcard; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_giftcard" (
id integer NOT NULL,
number character varying(200) NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
address_id integer,
payment_type_id integer NOT NULL,
initial_value double precision,
remaining_balance double precision,
customer_id integer
);
ALTER TABLE public."coreApi_giftcard" OWNER TO django_pwny;
--
-- Name: coreApi_giftcard_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_giftcard_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_giftcard_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_giftcard_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_giftcard_id_seq" OWNED BY "coreApi_giftcard".id;
--
-- Name: coreApi_giftcard_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_giftcard_id_seq"', 1, true);
--
-- Name: coreApi_ingredient; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_ingredient" (
id integer NOT NULL,
name character varying(80) NOT NULL,
active boolean DEFAULT false NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
sorting integer,
brand_id integer,
establishment_id integer,
quantity integer NOT NULL,
threshold integer NOT NULL,
measurement_type integer NOT NULL,
cost double precision NOT NULL
);
ALTER TABLE public."coreApi_ingredient" OWNER TO django_pwny;
--
-- Name: coreApi_ingredient_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_ingredient_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_ingredient_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_ingredient_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_ingredient_id_seq" OWNED BY "coreApi_ingredient".id;
--
-- Name: coreApi_ingredient_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_ingredient_id_seq"', 1, true);
--
-- Name: coreApi_inventory; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_inventory" (
id integer NOT NULL,
product_id integer NOT NULL,
quantity_available integer NOT NULL,
threshold integer NOT NULL,
measurement_type integer NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL
);
ALTER TABLE public."coreApi_inventory" OWNER TO django_pwny;
--
-- Name: coreApi_inventory_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_inventory_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_inventory_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_inventory_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_inventory_id_seq" OWNED BY "coreApi_inventory".id;
--
-- Name: coreApi_inventory_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_inventory_id_seq"', 1, true);
--
-- Name: coreApi_language; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_language" (
id integer NOT NULL,
name character varying(280) NOT NULL,
code character varying(3) NOT NULL
);
ALTER TABLE public."coreApi_language" OWNER TO django_pwny;
--
-- Name: coreApi_language_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_language_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_language_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_language_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_language_id_seq" OWNED BY "coreApi_language".id;
--
-- Name: coreApi_language_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_language_id_seq"', 3, true);
--
-- Name: coreApi_languagestring; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_languagestring" (
id integer NOT NULL,
value character varying(280) NOT NULL
);
ALTER TABLE public."coreApi_languagestring" OWNER TO django_pwny;
--
-- Name: coreApi_languagestring_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_languagestring_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_languagestring_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_languagestring_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_languagestring_id_seq" OWNED BY "coreApi_languagestring".id;
--
-- Name: coreApi_languagestring_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_languagestring_id_seq"', 2, true);
--
-- Name: coreApi_modifier; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_modifier" (
id integer NOT NULL,
name character varying(80) NOT NULL,
cost double precision,
price double precision NOT NULL,
active boolean DEFAULT false NOT NULL,
"modifierClass_id" integer NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
allow_price_override boolean DEFAULT false NOT NULL,
brand_id integer,
image character varying(200),
establishment_id integer,
parent_modifier_id integer,
uuid uuid NOT NULL
);
ALTER TABLE public."coreApi_modifier" OWNER TO django_pwny;
--
-- Name: coreApi_modifier_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_modifier_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_modifier_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_modifier_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_modifier_id_seq" OWNED BY "coreApi_modifier".id;
--
-- Name: coreApi_modifier_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_modifier_id_seq"', 2, true);
--
-- Name: coreApi_modifierclass; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_modifierclass" (
id integer NOT NULL,
name character varying(80) NOT NULL,
quantity_free integer,
quantity_allowed integer,
active boolean DEFAULT false NOT NULL,
sort integer,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
brand_id integer,
establishment_id integer
);
ALTER TABLE public."coreApi_modifierclass" OWNER TO django_pwny;
--
-- Name: coreApi_modifierclass_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_modifierclass_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_modifierclass_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_modifierclass_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_modifierclass_id_seq" OWNED BY "coreApi_modifierclass".id;
--
-- Name: coreApi_modifierclass_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_modifierclass_id_seq"', 1, true);
--
-- Name: coreApi_modifieringredient; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_modifieringredient" (
id integer NOT NULL,
ingredient_id integer NOT NULL,
modifier_id integer NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL
);
ALTER TABLE public."coreApi_modifieringredient" OWNER TO django_pwny;
--
-- Name: coreApi_modifieringredient_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_modifieringredient_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_modifieringredient_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_modifieringredient_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_modifieringredient_id_seq" OWNED BY "coreApi_modifieringredient".id;
--
-- Name: coreApi_modifieringredient_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_modifieringredient_id_seq"', 1, true);
--
-- Name: coreApi_modifierinventory; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_modifierinventory" (
id integer NOT NULL,
modifier_in_establishment_id integer NOT NULL,
quantity integer NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
measurement_type integer NOT NULL
);
ALTER TABLE public."coreApi_modifierinventory" OWNER TO django_pwny;
--
-- Name: coreApi_modifierinventory_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_modifierinventory_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_modifierinventory_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_modifierinventory_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_modifierinventory_id_seq" OWNED BY "coreApi_modifierinventory".id;
--
-- Name: coreApi_modifierinventory_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_modifierinventory_id_seq"', 1, false);
--
-- Name: coreApi_modifieritem; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_modifieritem" (
id integer NOT NULL,
modifier_id integer NOT NULL,
modifier_price double precision NOT NULL,
order_item_id integer NOT NULL,
modifier_cost double precision NOT NULL,
uuid uuid NOT NULL
);
ALTER TABLE public."coreApi_modifieritem" OWNER TO django_pwny;
--
-- Name: coreApi_modifieritem_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_modifieritem_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_modifieritem_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_modifieritem_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_modifieritem_id_seq" OWNED BY "coreApi_modifieritem".id;
--
-- Name: coreApi_modifieritem_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_modifieritem_id_seq"', 1, true);
--
-- Name: coreApi_order; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_order" (
id integer NOT NULL,
uuid uuid NOT NULL,
subtotal double precision NOT NULL,
tax double precision NOT NULL,
surcharge double precision NOT NULL,
final_total double precision NOT NULL,
remaining_due double precision NOT NULL,
establishment_id integer NOT NULL,
pos_mode character varying(2) NOT NULL,
dining_option integer NOT NULL,
table_id integer,
table_owner_id integer,
discount_id integer,
discount_reason text,
discount_amount double precision,
service_charge double precision,
number_of_people integer,
customer_id integer,
call_name character varying(100),
call_number integer,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL
);
ALTER TABLE public."coreApi_order" OWNER TO django_pwny;
--
-- Name: coreApi_order_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_order_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_order_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_order_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_order_id_seq" OWNED BY "coreApi_order".id;
--
-- Name: coreApi_order_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_order_id_seq"', 4, true);
--
-- Name: coreApi_orderhistory; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_orderhistory" (
id integer NOT NULL,
order_id integer NOT NULL,
opened timestamp with time zone NOT NULL,
closed timestamp with time zone,
order_opened_by_id integer NOT NULL,
order_closed_by_id integer,
order_opened_at_id integer NOT NULL,
order_closed_at_id integer NOT NULL
);
ALTER TABLE public."coreApi_orderhistory" OWNER TO django_pwny;
--
-- Name: coreApi_orderhistory_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_orderhistory_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_orderhistory_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_orderhistory_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_orderhistory_id_seq" OWNED BY "coreApi_orderhistory".id;
--
-- Name: coreApi_orderhistory_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_orderhistory_id_seq"', 1, true);
--
-- Name: coreApi_orderitem; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_orderitem" (
id integer NOT NULL,
order_id integer NOT NULL,
product_id integer NOT NULL,
price double precision NOT NULL,
cost double precision NOT NULL,
quantity integer NOT NULL,
station_id integer NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
tax_rate double precision NOT NULL,
taxed_flag boolean DEFAULT false NOT NULL,
voided_by_id integer,
voided_date_id integer,
printed boolean DEFAULT false NOT NULL,
kitchen_completed timestamp with time zone,
expedited timestamp with time zone,
dining_option integer NOT NULL,
discount_id integer,
discount_reason text,
discount_amount double precision,
product_name_override character varying(280),
course_number integer,
seat_number integer,
on_hold boolean DEFAULT false NOT NULL,
date_paid timestamp with time zone,
temp_sort integer NOT NULL,
uuid uuid NOT NULL
);
ALTER TABLE public."coreApi_orderitem" OWNER TO django_pwny;
--
-- Name: coreApi_orderitem_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_orderitem_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_orderitem_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_orderitem_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_orderitem_id_seq" OWNED BY "coreApi_orderitem".id;
--
-- Name: coreApi_orderitem_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_orderitem_id_seq"', 1, true);
--
-- Name: coreApi_orderprinting; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_orderprinting" (
id integer NOT NULL,
printer_id integer NOT NULL,
order_item_id integer NOT NULL,
date_printed timestamp with time zone NOT NULL,
printed boolean DEFAULT false NOT NULL
);
ALTER TABLE public."coreApi_orderprinting" OWNER TO django_pwny;
--
-- Name: coreApi_orderprinting_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_orderprinting_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_orderprinting_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_orderprinting_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_orderprinting_id_seq" OWNED BY "coreApi_orderprinting".id;
--
-- Name: coreApi_orderprinting_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_orderprinting_id_seq"', 1, true);
--
-- Name: coreApi_payment; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_payment" (
id integer NOT NULL,
payment_type_id integer NOT NULL,
reverses_payment_id integer,
establishment_id integer NOT NULL,
transaction_id character varying(400) NOT NULL,
last_4_cc_digits character varying(4) NOT NULL,
order_id integer NOT NULL,
payment_date timestamp with time zone NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
amount double precision NOT NULL,
tip double precision NOT NULL,
station_id integer NOT NULL
);
ALTER TABLE public."coreApi_payment" OWNER TO django_pwny;
--
-- Name: coreApi_payment_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_payment_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_payment_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_payment_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_payment_id_seq" OWNED BY "coreApi_payment".id;
--
-- Name: coreApi_payment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_payment_id_seq"', 1, true);
--
-- Name: coreApi_paymenttype; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_paymenttype" (
id integer NOT NULL,
name character varying(200) NOT NULL,
active boolean DEFAULT false NOT NULL,
brand_id integer,
establishment_id integer,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL
);
ALTER TABLE public."coreApi_paymenttype" OWNER TO django_pwny;
--
-- Name: coreApi_paymenttype_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_paymenttype_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_paymenttype_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_paymenttype_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_paymenttype_id_seq" OWNED BY "coreApi_paymenttype".id;
--
-- Name: coreApi_paymenttype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_paymenttype_id_seq"', 4, true);
--
-- Name: coreApi_payout; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_payout" (
id integer NOT NULL,
description character varying(120) NOT NULL,
amount double precision NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL
);
ALTER TABLE public."coreApi_payout" OWNER TO django_pwny;
--
-- Name: coreApi_payout_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_payout_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_payout_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_payout_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_payout_id_seq" OWNED BY "coreApi_payout".id;
--
-- Name: coreApi_payout_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_payout_id_seq"', 1, false);
--
-- Name: coreApi_payoutclass; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_payoutclass" (
id integer NOT NULL,
name character varying(120) NOT NULL,
brand_id integer,
establishment_id integer,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL
);
ALTER TABLE public."coreApi_payoutclass" OWNER TO django_pwny;
--
-- Name: coreApi_payoutclass_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_payoutclass_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_payoutclass_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_payoutclass_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_payoutclass_id_seq" OWNED BY "coreApi_payoutclass".id;
--
-- Name: coreApi_payoutclass_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_payoutclass_id_seq"', 1, false);
--
-- Name: coreApi_payrate; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_payrate" (
id integer NOT NULL,
employee_id integer NOT NULL,
role_id integer NOT NULL,
establishment_id integer NOT NULL,
department_id integer NOT NULL,
rate double precision NOT NULL,
effective_from timestamp with time zone NOT NULL,
effective_to timestamp with time zone,
rate_type integer NOT NULL
);
ALTER TABLE public."coreApi_payrate" OWNER TO django_pwny;
--
-- Name: coreApi_payrate_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_payrate_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_payrate_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_payrate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_payrate_id_seq" OWNED BY "coreApi_payrate".id;
--
-- Name: coreApi_payrate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_payrate_id_seq"', 1, true);
--
-- Name: coreApi_permission; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_permission" (
id integer NOT NULL,
name character varying(200) NOT NULL,
active boolean DEFAULT false NOT NULL
);
ALTER TABLE public."coreApi_permission" OWNER TO django_pwny;
--
-- Name: coreApi_permission_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_permission_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_permission_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_permission_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_permission_id_seq" OWNED BY "coreApi_permission".id;
--
-- Name: coreApi_permission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_permission_id_seq"', 1, false);
--
-- Name: coreApi_posstation; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_posstation" (
id integer NOT NULL,
name character varying(280) NOT NULL,
mac character varying(280) NOT NULL,
active boolean DEFAULT false NOT NULL,
establishment_id integer NOT NULL,
uuid uuid NOT NULL,
pos_mode character varying(2) NOT NULL
);
ALTER TABLE public."coreApi_posstation" OWNER TO django_pwny;
--
-- Name: coreApi_posstation_devices; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_posstation_devices" (
id integer NOT NULL,
posstation_id integer NOT NULL,
device_id integer NOT NULL
);
ALTER TABLE public."coreApi_posstation_devices" OWNER TO django_pwny;
--
-- Name: coreApi_posstation_devices_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_posstation_devices_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_posstation_devices_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_posstation_devices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_posstation_devices_id_seq" OWNED BY "coreApi_posstation_devices".id;
--
-- Name: coreApi_posstation_devices_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_posstation_devices_id_seq"', 29, true);
--
-- Name: coreApi_posstation_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_posstation_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_posstation_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_posstation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_posstation_id_seq" OWNED BY "coreApi_posstation".id;
--
-- Name: coreApi_posstation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_posstation_id_seq"', 1, true);
--
-- Name: coreApi_product; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_product" (
id integer NOT NULL,
name character varying(100) NOT NULL,
description text NOT NULL,
cost double precision,
price double precision NOT NULL,
barcode character varying(200) NOT NULL,
active boolean DEFAULT false NOT NULL,
category_id integer NOT NULL,
sorting integer NOT NULL,
display_on_kiosk boolean DEFAULT false NOT NULL,
image character varying(200),
kitchen_print_name text,
sold_by_weight boolean DEFAULT false NOT NULL,
price_embedded boolean DEFAULT false NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
dining_option integer,
course_number integer,
point_value double precision,
point_redeem double precision,
productclass_id integer NOT NULL,
brand_id integer NOT NULL,
establishment_id integer,
parent_product_id integer,
uuid uuid NOT NULL
);
ALTER TABLE public."coreApi_product" OWNER TO django_pwny;
--
-- Name: coreApi_product_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_product_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_product_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_product_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_product_id_seq" OWNED BY "coreApi_product".id;
--
-- Name: coreApi_product_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_product_id_seq"', 24, true);
--
-- Name: coreApi_productcategory; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_productcategory" (
id integer NOT NULL,
name character varying(80) NOT NULL,
parent_id integer,
active boolean DEFAULT false NOT NULL,
product_class_id integer NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
sorting integer NOT NULL,
brand_id integer,
establishment_id integer
);
ALTER TABLE public."coreApi_productcategory" OWNER TO django_pwny;
--
-- Name: coreApi_productcategory_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_productcategory_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_productcategory_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_productcategory_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_productcategory_id_seq" OWNED BY "coreApi_productcategory".id;
--
-- Name: coreApi_productcategory_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_productcategory_id_seq"', 1, true);
--
-- Name: coreApi_productclass; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_productclass" (
id integer NOT NULL,
name character varying(80) NOT NULL,
active boolean DEFAULT false NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
sorting integer NOT NULL,
brand_id integer NOT NULL
);
ALTER TABLE public."coreApi_productclass" OWNER TO django_pwny;
--
-- Name: coreApi_productclass_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_productclass_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_productclass_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_productclass_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_productclass_id_seq" OWNED BY "coreApi_productclass".id;
--
-- Name: coreApi_productclass_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_productclass_id_seq"', 2, true);
--
-- Name: coreApi_productingredient; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_productingredient" (
id integer NOT NULL,
ingredient_id integer NOT NULL,
product_id integer NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL
);
ALTER TABLE public."coreApi_productingredient" OWNER TO django_pwny;
--
-- Name: coreApi_productingredient_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_productingredient_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_productingredient_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_productingredient_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_productingredient_id_seq" OWNED BY "coreApi_productingredient".id;
--
-- Name: coreApi_productingredient_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_productingredient_id_seq"', 1, false);
--
-- Name: coreApi_productmodifier; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_productmodifier" (
id integer NOT NULL,
product_id integer NOT NULL,
modifier_id integer NOT NULL,
brand_id integer,
establishment_id integer,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
default_modifier boolean DEFAULT false NOT NULL
);
ALTER TABLE public."coreApi_productmodifier" OWNER TO django_pwny;
--
-- Name: coreApi_productmodifier_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_productmodifier_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_productmodifier_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_productmodifier_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_productmodifier_id_seq" OWNED BY "coreApi_productmodifier".id;
--
-- Name: coreApi_productmodifier_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_productmodifier_id_seq"', 1, true);
--
-- Name: coreApi_receiptline; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_receiptline" (
id integer NOT NULL,
value character varying(280) NOT NULL,
"position" character varying(1) NOT NULL
);
ALTER TABLE public."coreApi_receiptline" OWNER TO django_pwny;
--
-- Name: coreApi_receiptline_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_receiptline_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_receiptline_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_receiptline_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_receiptline_id_seq" OWNED BY "coreApi_receiptline".id;
--
-- Name: coreApi_receiptline_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_receiptline_id_seq"', 1, true);
--
-- Name: coreApi_receiptsetting; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_receiptsetting" (
id integer NOT NULL,
establishment_id integer NOT NULL,
print_tipline boolean DEFAULT false NOT NULL,
print_cash_receipt boolean DEFAULT false NOT NULL,
print_cc_receipt boolean DEFAULT false NOT NULL,
num_slips integer NOT NULL,
cc_receipt_option integer NOT NULL,
show_order_num boolean DEFAULT false NOT NULL
);
ALTER TABLE public."coreApi_receiptsetting" OWNER TO django_pwny;
--
-- Name: coreApi_receiptsetting_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_receiptsetting_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_receiptsetting_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_receiptsetting_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_receiptsetting_id_seq" OWNED BY "coreApi_receiptsetting".id;
--
-- Name: coreApi_receiptsetting_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_receiptsetting_id_seq"', 1, true);
--
-- Name: coreApi_receiptsetting_lines; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_receiptsetting_lines" (
id integer NOT NULL,
receiptsetting_id integer NOT NULL,
receiptline_id integer NOT NULL
);
ALTER TABLE public."coreApi_receiptsetting_lines" OWNER TO django_pwny;
--
-- Name: coreApi_receiptsetting_lines_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_receiptsetting_lines_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_receiptsetting_lines_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_receiptsetting_lines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_receiptsetting_lines_id_seq" OWNED BY "coreApi_receiptsetting_lines".id;
--
-- Name: coreApi_receiptsetting_lines_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_receiptsetting_lines_id_seq"', 4, true);
--
-- Name: coreApi_rewardscard; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_rewardscard" (
id integer NOT NULL,
number character varying(200) NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
address_id integer NOT NULL,
payment_type_id integer NOT NULL,
total_points double precision NOT NULL,
total_visits integer NOT NULL,
total_purchases double precision NOT NULL,
current_points double precision NOT NULL,
customer_id integer NOT NULL
);
ALTER TABLE public."coreApi_rewardscard" OWNER TO django_pwny;
--
-- Name: coreApi_rewardscard_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_rewardscard_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_rewardscard_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_rewardscard_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_rewardscard_id_seq" OWNED BY "coreApi_rewardscard".id;
--
-- Name: coreApi_rewardscard_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_rewardscard_id_seq"', 1, false);
--
-- Name: coreApi_role; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_role" (
id integer NOT NULL,
name character varying(200) NOT NULL,
active boolean DEFAULT false NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
brand_id integer,
establishment_id integer
);
ALTER TABLE public."coreApi_role" OWNER TO django_pwny;
--
-- Name: coreApi_role_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_role_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_role_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_role_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_role_id_seq" OWNED BY "coreApi_role".id;
--
-- Name: coreApi_role_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_role_id_seq"', 1, true);
--
-- Name: coreApi_role_permissions; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_role_permissions" (
id integer NOT NULL,
role_id integer NOT NULL,
permission_id integer NOT NULL
);
ALTER TABLE public."coreApi_role_permissions" OWNER TO django_pwny;
--
-- Name: coreApi_role_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_role_permissions_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_role_permissions_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_role_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_role_permissions_id_seq" OWNED BY "coreApi_role_permissions".id;
--
-- Name: coreApi_role_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_role_permissions_id_seq"', 1, false);
--
-- Name: coreApi_serversettings; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_serversettings" (
id integer NOT NULL,
data_server character varying(280) NOT NULL,
data_server2 character varying(280) NOT NULL,
payment_server character varying(280) NOT NULL,
payment_server2 character varying(280) NOT NULL
);
ALTER TABLE public."coreApi_serversettings" OWNER TO django_pwny;
--
-- Name: coreApi_serversettings_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_serversettings_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_serversettings_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_serversettings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_serversettings_id_seq" OWNED BY "coreApi_serversettings".id;
--
-- Name: coreApi_serversettings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_serversettings_id_seq"', 1, false);
--
-- Name: coreApi_socialnetwork; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_socialnetwork" (
id integer NOT NULL,
name character varying(200) NOT NULL,
url character varying(200) NOT NULL,
active boolean DEFAULT false NOT NULL
);
ALTER TABLE public."coreApi_socialnetwork" OWNER TO django_pwny;
--
-- Name: coreApi_socialnetwork_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_socialnetwork_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_socialnetwork_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_socialnetwork_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_socialnetwork_id_seq" OWNED BY "coreApi_socialnetwork".id;
--
-- Name: coreApi_socialnetwork_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_socialnetwork_id_seq"', 1, true);
--
-- Name: coreApi_socialnetworkparameter; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_socialnetworkparameter" (
id integer NOT NULL,
name character varying(200) NOT NULL,
value character varying(200) NOT NULL,
social_network_id integer NOT NULL,
establishment_id integer NOT NULL
);
ALTER TABLE public."coreApi_socialnetworkparameter" OWNER TO django_pwny;
--
-- Name: coreApi_socialnetworkparameter_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_socialnetworkparameter_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_socialnetworkparameter_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_socialnetworkparameter_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_socialnetworkparameter_id_seq" OWNED BY "coreApi_socialnetworkparameter".id;
--
-- Name: coreApi_socialnetworkparameter_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_socialnetworkparameter_id_seq"', 1, false);
--
-- Name: coreApi_specialrequest; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_specialrequest" (
id integer NOT NULL,
name character varying(80) NOT NULL,
active boolean DEFAULT false NOT NULL,
brand_id integer,
establishment_id integer,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
sorting integer NOT NULL
);
ALTER TABLE public."coreApi_specialrequest" OWNER TO django_pwny;
--
-- Name: coreApi_specialrequest_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_specialrequest_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_specialrequest_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_specialrequest_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_specialrequest_id_seq" OWNED BY "coreApi_specialrequest".id;
--
-- Name: coreApi_specialrequest_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_specialrequest_id_seq"', 1, false);
--
-- Name: coreApi_surcharge; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_surcharge" (
id integer NOT NULL,
name character varying(280) NOT NULL,
active boolean DEFAULT false NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL
);
ALTER TABLE public."coreApi_surcharge" OWNER TO django_pwny;
--
-- Name: coreApi_surcharge_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_surcharge_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_surcharge_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_surcharge_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_surcharge_id_seq" OWNED BY "coreApi_surcharge".id;
--
-- Name: coreApi_surcharge_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_surcharge_id_seq"', 1, true);
--
-- Name: coreApi_surchargerates; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_surchargerates" (
id integer NOT NULL,
name character varying(280) NOT NULL,
rate double precision NOT NULL,
active boolean DEFAULT false NOT NULL,
effective_from timestamp with time zone NOT NULL,
effective_to timestamp with time zone NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL
);
ALTER TABLE public."coreApi_surchargerates" OWNER TO django_pwny;
--
-- Name: coreApi_surchargerates_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_surchargerates_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_surchargerates_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_surchargerates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_surchargerates_id_seq" OWNED BY "coreApi_surchargerates".id;
--
-- Name: coreApi_surchargerates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_surchargerates_id_seq"', 1, false);
--
-- Name: coreApi_systemsetting; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_systemsetting" (
id integer NOT NULL,
incoming_web_orders_printer_id integer NOT NULL
);
ALTER TABLE public."coreApi_systemsetting" OWNER TO django_pwny;
--
-- Name: coreApi_systemsetting_extra_items_printers; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_systemsetting_extra_items_printers" (
id integer NOT NULL,
systemsetting_id integer NOT NULL,
device_id integer NOT NULL
);
ALTER TABLE public."coreApi_systemsetting_extra_items_printers" OWNER TO django_pwny;
--
-- Name: coreApi_systemsetting_extra_items_printers_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_systemsetting_extra_items_printers_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_systemsetting_extra_items_printers_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_systemsetting_extra_items_printers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_systemsetting_extra_items_printers_id_seq" OWNED BY "coreApi_systemsetting_extra_items_printers".id;
--
-- Name: coreApi_systemsetting_extra_items_printers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_systemsetting_extra_items_printers_id_seq"', 1666, true);
--
-- Name: coreApi_systemsetting_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_systemsetting_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_systemsetting_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_systemsetting_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_systemsetting_id_seq" OWNED BY "coreApi_systemsetting".id;
--
-- Name: coreApi_systemsetting_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_systemsetting_id_seq"', 95, true);
--
-- Name: coreApi_systemsettingoption; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_systemsettingoption" (
id integer NOT NULL,
settings_parent_id integer NOT NULL,
setting_name character varying(100) NOT NULL,
parameter_name character varying(100),
parameter_value character varying(280),
parameter_required boolean DEFAULT false NOT NULL,
enabled boolean DEFAULT false NOT NULL,
user_friendly_name character varying(200) NOT NULL,
description character varying(200) NOT NULL
);
ALTER TABLE public."coreApi_systemsettingoption" OWNER TO django_pwny;
--
-- Name: coreApi_systemsettingoption_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_systemsettingoption_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_systemsettingoption_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_systemsettingoption_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_systemsettingoption_id_seq" OWNED BY "coreApi_systemsettingoption".id;
--
-- Name: coreApi_systemsettingoption_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_systemsettingoption_id_seq"', 1, false);
--
-- Name: coreApi_table; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_table" (
id integer NOT NULL,
name character varying(80) NOT NULL,
section_id integer NOT NULL,
active boolean DEFAULT false NOT NULL,
capacity integer,
table_type_id integer NOT NULL,
x_value double precision NOT NULL,
y_value double precision NOT NULL,
establishment_id integer NOT NULL,
rotation double precision
);
ALTER TABLE public."coreApi_table" OWNER TO django_pwny;
--
-- Name: coreApi_table_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_table_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_table_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_table_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_table_id_seq" OWNED BY "coreApi_table".id;
--
-- Name: coreApi_table_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_table_id_seq"', 1, true);
--
-- Name: coreApi_tablesection; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_tablesection" (
id integer NOT NULL,
name character varying(80) NOT NULL,
active boolean DEFAULT false NOT NULL,
establishment_id integer NOT NULL
);
ALTER TABLE public."coreApi_tablesection" OWNER TO django_pwny;
--
-- Name: coreApi_tablesection_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_tablesection_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_tablesection_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_tablesection_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_tablesection_id_seq" OWNED BY "coreApi_tablesection".id;
--
-- Name: coreApi_tablesection_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_tablesection_id_seq"', 1, true);
--
-- Name: coreApi_tabletype; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_tabletype" (
id integer NOT NULL,
name character varying(80) NOT NULL,
shape_image_url character varying(200) NOT NULL,
active boolean DEFAULT false NOT NULL,
width double precision NOT NULL,
height double precision NOT NULL
);
ALTER TABLE public."coreApi_tabletype" OWNER TO django_pwny;
--
-- Name: coreApi_tabletype_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_tabletype_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_tabletype_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_tabletype_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_tabletype_id_seq" OWNED BY "coreApi_tabletype".id;
--
-- Name: coreApi_tabletype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_tabletype_id_seq"', 1, true);
--
-- Name: coreApi_tax; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_tax" (
id integer NOT NULL,
name character varying(280) NOT NULL,
active boolean DEFAULT false NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL
);
ALTER TABLE public."coreApi_tax" OWNER TO django_pwny;
--
-- Name: coreApi_tax_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_tax_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_tax_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_tax_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_tax_id_seq" OWNED BY "coreApi_tax".id;
--
-- Name: coreApi_tax_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_tax_id_seq"', 1, true);
--
-- Name: coreApi_taxrate; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_taxrate" (
id integer NOT NULL,
tax_id integer NOT NULL,
tax_rate double precision NOT NULL,
effective_from timestamp with time zone NOT NULL,
effective_to timestamp with time zone,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL
);
ALTER TABLE public."coreApi_taxrate" OWNER TO django_pwny;
--
-- Name: coreApi_taxrate_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_taxrate_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_taxrate_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_taxrate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_taxrate_id_seq" OWNED BY "coreApi_taxrate".id;
--
-- Name: coreApi_taxrate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_taxrate_id_seq"', 1, false);
--
-- Name: coreApi_timeschedule; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_timeschedule" (
id integer NOT NULL,
shift_begin_time timestamp with time zone NOT NULL,
shift_end_time timestamp with time zone NOT NULL,
establishment_id integer NOT NULL,
department_id integer NOT NULL,
role_id integer NOT NULL,
employee_id integer NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL
);
ALTER TABLE public."coreApi_timeschedule" OWNER TO django_pwny;
--
-- Name: coreApi_timeschedule_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_timeschedule_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_timeschedule_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_timeschedule_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_timeschedule_id_seq" OWNED BY "coreApi_timeschedule".id;
--
-- Name: coreApi_timeschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_timeschedule_id_seq"', 1, false);
--
-- Name: coreApi_timeschedulerule; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_timeschedulerule" (
id integer NOT NULL,
regular_value double precision NOT NULL,
overtime_value double precision NOT NULL,
doubletime_value double precision NOT NULL,
rate_overtime double precision NOT NULL,
rate_double double precision NOT NULL,
regular_week_hours double precision NOT NULL,
establishment_id integer NOT NULL,
allow_clockin_before_shift boolean DEFAULT false NOT NULL,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL
);
ALTER TABLE public."coreApi_timeschedulerule" OWNER TO django_pwny;
--
-- Name: coreApi_timeschedulerule_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_timeschedulerule_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_timeschedulerule_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_timeschedulerule_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_timeschedulerule_id_seq" OWNED BY "coreApi_timeschedulerule".id;
--
-- Name: coreApi_timeschedulerule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_timeschedulerule_id_seq"', 1, true);
--
-- Name: coreApi_timesheetentry; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_timesheetentry" (
id integer NOT NULL,
employee_id integer NOT NULL,
clock_in timestamp with time zone NOT NULL,
clock_out timestamp with time zone NOT NULL,
role_id integer NOT NULL,
department_id integer,
establishment_id integer NOT NULL,
previous_shift_id integer,
created_by_id integer NOT NULL,
created_date timestamp with time zone NOT NULL,
updated_by_id integer NOT NULL,
updated_date timestamp with time zone NOT NULL,
image character varying(200)
);
ALTER TABLE public."coreApi_timesheetentry" OWNER TO django_pwny;
--
-- Name: coreApi_timesheetentry_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_timesheetentry_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_timesheetentry_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_timesheetentry_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_timesheetentry_id_seq" OWNED BY "coreApi_timesheetentry".id;
--
-- Name: coreApi_timesheetentry_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_timesheetentry_id_seq"', 3, true);
--
-- Name: coreApi_translationlanguage; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE "coreApi_translationlanguage" (
id integer NOT NULL,
string_id integer NOT NULL,
language_id integer NOT NULL,
default_value character varying(280) NOT NULL
);
ALTER TABLE public."coreApi_translationlanguage" OWNER TO django_pwny;
--
-- Name: coreApi_translationlanguage_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE "coreApi_translationlanguage_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."coreApi_translationlanguage_id_seq" OWNER TO django_pwny;
--
-- Name: coreApi_translationlanguage_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE "coreApi_translationlanguage_id_seq" OWNED BY "coreApi_translationlanguage".id;
--
-- Name: coreApi_translationlanguage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('"coreApi_translationlanguage_id_seq"', 1, true);
--
-- Name: dashboard_picture; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE dashboard_picture (
id integer NOT NULL,
file character varying(100) NOT NULL,
slug character varying(50) NOT NULL
);
ALTER TABLE public.dashboard_picture OWNER TO django_pwny;
--
-- Name: dashboard_picture_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE dashboard_picture_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.dashboard_picture_id_seq OWNER TO django_pwny;
--
-- Name: dashboard_picture_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE dashboard_picture_id_seq OWNED BY dashboard_picture.id;
--
-- Name: dashboard_picture_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('dashboard_picture_id_seq', 1, false);
--
-- Name: django_admin_log; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE django_admin_log (
id integer NOT NULL,
action_time timestamp with time zone NOT NULL,
user_id integer NOT NULL,
content_type_id integer,
object_id text,
object_repr character varying(200) NOT NULL,
action_flag smallint NOT NULL,
change_message text NOT NULL,
CONSTRAINT django_admin_log_action_flag_check CHECK ((action_flag >= 0))
);
ALTER TABLE public.django_admin_log OWNER TO django_pwny;
--
-- Name: django_admin_log_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE django_admin_log_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.django_admin_log_id_seq OWNER TO django_pwny;
--
-- Name: django_admin_log_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE django_admin_log_id_seq OWNED BY django_admin_log.id;
--
-- Name: django_admin_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('django_admin_log_id_seq', 127, true);
--
-- Name: django_content_type; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE django_content_type (
id integer NOT NULL,
name character varying(100) NOT NULL,
app_label character varying(100) NOT NULL,
model character varying(100) NOT NULL
);
ALTER TABLE public.django_content_type OWNER TO django_pwny;
--
-- Name: django_content_type_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE django_content_type_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.django_content_type_id_seq OWNER TO django_pwny;
--
-- Name: django_content_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE django_content_type_id_seq OWNED BY django_content_type.id;
--
-- Name: django_content_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('django_content_type_id_seq', 81, true);
--
-- Name: django_session; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE django_session (
session_key character varying(40) NOT NULL,
session_data text NOT NULL,
expire_date timestamp with time zone NOT NULL
);
ALTER TABLE public.django_session OWNER TO django_pwny;
--
-- Name: django_site; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE django_site (
id integer NOT NULL,
domain character varying(100) NOT NULL,
name character varying(50) NOT NULL
);
ALTER TABLE public.django_site OWNER TO django_pwny;
--
-- Name: django_site_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE django_site_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.django_site_id_seq OWNER TO django_pwny;
--
-- Name: django_site_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE django_site_id_seq OWNED BY django_site.id;
--
-- Name: django_site_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('django_site_id_seq', 1, true);
--
-- Name: djcelery_crontabschedule; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE djcelery_crontabschedule (
id integer NOT NULL,
minute character varying(64) DEFAULT '*'::character varying NOT NULL,
hour character varying(64) DEFAULT '*'::character varying NOT NULL,
day_of_week character varying(64) DEFAULT '*'::character varying NOT NULL
);
ALTER TABLE public.djcelery_crontabschedule OWNER TO django_pwny;
--
-- Name: djcelery_crontabschedule_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE djcelery_crontabschedule_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.djcelery_crontabschedule_id_seq OWNER TO django_pwny;
--
-- Name: djcelery_crontabschedule_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE djcelery_crontabschedule_id_seq OWNED BY djcelery_crontabschedule.id;
--
-- Name: djcelery_crontabschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('djcelery_crontabschedule_id_seq', 1, false);
--
-- Name: djcelery_intervalschedule; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE djcelery_intervalschedule (
id integer NOT NULL,
every integer NOT NULL,
period character varying(24) NOT NULL
);
ALTER TABLE public.djcelery_intervalschedule OWNER TO django_pwny;
--
-- Name: djcelery_intervalschedule_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE djcelery_intervalschedule_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.djcelery_intervalschedule_id_seq OWNER TO django_pwny;
--
-- Name: djcelery_intervalschedule_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE djcelery_intervalschedule_id_seq OWNED BY djcelery_intervalschedule.id;
--
-- Name: djcelery_intervalschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('djcelery_intervalschedule_id_seq', 1, false);
--
-- Name: djcelery_periodictask; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE djcelery_periodictask (
id integer NOT NULL,
name character varying(200) NOT NULL,
task character varying(200) NOT NULL,
interval_id integer,
crontab_id integer,
args text DEFAULT '[]'::text NOT NULL,
kwargs text DEFAULT '{}'::text NOT NULL,
queue character varying(200),
exchange character varying(200),
routing_key character varying(200),
expires timestamp with time zone,
enabled boolean DEFAULT true NOT NULL,
last_run_at timestamp with time zone,
total_run_count integer DEFAULT 0 NOT NULL,
date_changed timestamp with time zone NOT NULL,
CONSTRAINT djcelery_periodictask_total_run_count_check CHECK ((total_run_count >= 0))
);
ALTER TABLE public.djcelery_periodictask OWNER TO django_pwny;
--
-- Name: djcelery_periodictask_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE djcelery_periodictask_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.djcelery_periodictask_id_seq OWNER TO django_pwny;
--
-- Name: djcelery_periodictask_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE djcelery_periodictask_id_seq OWNED BY djcelery_periodictask.id;
--
-- Name: djcelery_periodictask_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('djcelery_periodictask_id_seq', 1, false);
--
-- Name: djcelery_periodictasks; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE djcelery_periodictasks (
ident smallint DEFAULT 1 NOT NULL,
last_update timestamp with time zone NOT NULL
);
ALTER TABLE public.djcelery_periodictasks OWNER TO django_pwny;
--
-- Name: djcelery_taskstate; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE djcelery_taskstate (
id integer NOT NULL,
state character varying(64) NOT NULL,
task_id character varying(36) NOT NULL,
name character varying(200),
tstamp timestamp with time zone NOT NULL,
args text,
kwargs text,
eta timestamp with time zone,
expires timestamp with time zone,
result text,
traceback text,
runtime double precision,
retries integer DEFAULT 0 NOT NULL,
worker_id integer,
hidden boolean DEFAULT false NOT NULL
);
ALTER TABLE public.djcelery_taskstate OWNER TO django_pwny;
--
-- Name: djcelery_taskstate_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE djcelery_taskstate_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.djcelery_taskstate_id_seq OWNER TO django_pwny;
--
-- Name: djcelery_taskstate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE djcelery_taskstate_id_seq OWNED BY djcelery_taskstate.id;
--
-- Name: djcelery_taskstate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('djcelery_taskstate_id_seq', 1, false);
--
-- Name: djcelery_workerstate; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE djcelery_workerstate (
id integer NOT NULL,
hostname character varying(255) NOT NULL,
last_heartbeat timestamp with time zone
);
ALTER TABLE public.djcelery_workerstate OWNER TO django_pwny;
--
-- Name: djcelery_workerstate_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE djcelery_workerstate_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.djcelery_workerstate_id_seq OWNER TO django_pwny;
--
-- Name: djcelery_workerstate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE djcelery_workerstate_id_seq OWNED BY djcelery_workerstate.id;
--
-- Name: djcelery_workerstate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('djcelery_workerstate_id_seq', 1, false);
--
-- Name: reports_report; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE reports_report (
id integer NOT NULL,
report_type integer NOT NULL,
"timeFrameStart" timestamp with time zone NOT NULL,
created_date timestamp with time zone,
updated_date timestamp with time zone,
data bytea NOT NULL,
status integer NOT NULL,
"timeFrameEnd" timestamp with time zone NOT NULL,
processing_time time without time zone,
extra_params text NOT NULL
);
ALTER TABLE public.reports_report OWNER TO django_pwny;
--
-- Name: reports_report_establishments; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE reports_report_establishments (
id integer NOT NULL,
report_id integer NOT NULL,
establishment_id integer NOT NULL
);
ALTER TABLE public.reports_report_establishments OWNER TO django_pwny;
--
-- Name: reports_report_establishments_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE reports_report_establishments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.reports_report_establishments_id_seq OWNER TO django_pwny;
--
-- Name: reports_report_establishments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE reports_report_establishments_id_seq OWNED BY reports_report_establishments.id;
--
-- Name: reports_report_establishments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('reports_report_establishments_id_seq', 41, true);
--
-- Name: reports_report_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE reports_report_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.reports_report_id_seq OWNER TO django_pwny;
--
-- Name: reports_report_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE reports_report_id_seq OWNED BY reports_report.id;
--
-- Name: reports_report_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('reports_report_id_seq', 1, true);
--
-- Name: south_migrationhistory; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE south_migrationhistory (
id integer NOT NULL,
app_name character varying(255) NOT NULL,
migration character varying(255) NOT NULL,
applied timestamp with time zone NOT NULL
);
ALTER TABLE public.south_migrationhistory OWNER TO django_pwny;
--
-- Name: south_migrationhistory_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE south_migrationhistory_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.south_migrationhistory_id_seq OWNER TO django_pwny;
--
-- Name: south_migrationhistory_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE south_migrationhistory_id_seq OWNED BY south_migrationhistory.id;
--
-- Name: south_migrationhistory_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('south_migrationhistory_id_seq', 20, true);
--
-- Name: tastypie_apiaccess; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE tastypie_apiaccess (
id integer NOT NULL,
identifier character varying(255) NOT NULL,
url character varying(255) DEFAULT ''::character varying NOT NULL,
request_method character varying(10) DEFAULT ''::character varying NOT NULL,
accessed integer NOT NULL,
CONSTRAINT tastypie_apiaccess_accessed_check CHECK ((accessed >= 0))
);
ALTER TABLE public.tastypie_apiaccess OWNER TO django_pwny;
--
-- Name: tastypie_apiaccess_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE tastypie_apiaccess_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.tastypie_apiaccess_id_seq OWNER TO django_pwny;
--
-- Name: tastypie_apiaccess_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE tastypie_apiaccess_id_seq OWNED BY tastypie_apiaccess.id;
--
-- Name: tastypie_apiaccess_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('tastypie_apiaccess_id_seq', 1, false);
--
-- Name: tastypie_apikey; Type: TABLE; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE TABLE tastypie_apikey (
id integer NOT NULL,
user_id integer NOT NULL,
key character varying(256) DEFAULT ''::character varying NOT NULL,
created timestamp with time zone DEFAULT '2011-12-09 11:31:17.066649-08'::timestamp with time zone NOT NULL
);
ALTER TABLE public.tastypie_apikey OWNER TO django_pwny;
--
-- Name: tastypie_apikey_id_seq; Type: SEQUENCE; Schema: public; Owner: django_pwny
--
CREATE SEQUENCE tastypie_apikey_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.tastypie_apikey_id_seq OWNER TO django_pwny;
--
-- Name: tastypie_apikey_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: django_pwny
--
ALTER SEQUENCE tastypie_apikey_id_seq OWNED BY tastypie_apikey.id;
--
-- Name: tastypie_apikey_id_seq; Type: SEQUENCE SET; Schema: public; Owner: django_pwny
--
SELECT pg_catalog.setval('tastypie_apikey_id_seq', 1, true);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE auth_group ALTER COLUMN id SET DEFAULT nextval('auth_group_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE auth_group_permissions ALTER COLUMN id SET DEFAULT nextval('auth_group_permissions_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE auth_message ALTER COLUMN id SET DEFAULT nextval('auth_message_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE auth_permission ALTER COLUMN id SET DEFAULT nextval('auth_permission_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE auth_user ALTER COLUMN id SET DEFAULT nextval('auth_user_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE auth_user_groups ALTER COLUMN id SET DEFAULT nextval('auth_user_groups_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE auth_user_user_permissions ALTER COLUMN id SET DEFAULT nextval('auth_user_user_permissions_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE celery_taskmeta ALTER COLUMN id SET DEFAULT nextval('celery_taskmeta_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE celery_tasksetmeta ALTER COLUMN id SET DEFAULT nextval('celery_tasksetmeta_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_address" ALTER COLUMN id SET DEFAULT nextval('"coreApi_address_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_apiconsumer" ALTER COLUMN id SET DEFAULT nextval('"coreApi_apiconsumer_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_brand" ALTER COLUMN id SET DEFAULT nextval('"coreApi_brand_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_company" ALTER COLUMN id SET DEFAULT nextval('"coreApi_company_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_currency" ALTER COLUMN id SET DEFAULT nextval('"coreApi_currency_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_customer" ALTER COLUMN id SET DEFAULT nextval('"coreApi_customer_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_device" ALTER COLUMN id SET DEFAULT nextval('"coreApi_device_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_deviceextraparameters" ALTER COLUMN id SET DEFAULT nextval('"coreApi_deviceextraparameters_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_discount" ALTER COLUMN id SET DEFAULT nextval('"coreApi_discount_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_drawercount" ALTER COLUMN id SET DEFAULT nextval('"coreApi_drawercount_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_employee" ALTER COLUMN id SET DEFAULT nextval('"coreApi_employee_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_employee_roles" ALTER COLUMN id SET DEFAULT nextval('"coreApi_employee_roles_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_employeedepartment" ALTER COLUMN id SET DEFAULT nextval('"coreApi_employeedepartment_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_establishment" ALTER COLUMN id SET DEFAULT nextval('"coreApi_establishment_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_establishment_devices" ALTER COLUMN id SET DEFAULT nextval('"coreApi_establishment_devices_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_establishment_social_networks" ALTER COLUMN id SET DEFAULT nextval('"coreApi_establishment_social_networks_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_establishment_tax" ALTER COLUMN id SET DEFAULT nextval('"coreApi_establishment_tax_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_establishmentemployee" ALTER COLUMN id SET DEFAULT nextval('"coreApi_establishmentemployee_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_giftcard" ALTER COLUMN id SET DEFAULT nextval('"coreApi_giftcard_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_ingredient" ALTER COLUMN id SET DEFAULT nextval('"coreApi_ingredient_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_inventory" ALTER COLUMN id SET DEFAULT nextval('"coreApi_inventory_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_language" ALTER COLUMN id SET DEFAULT nextval('"coreApi_language_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_languagestring" ALTER COLUMN id SET DEFAULT nextval('"coreApi_languagestring_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_modifier" ALTER COLUMN id SET DEFAULT nextval('"coreApi_modifier_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_modifierclass" ALTER COLUMN id SET DEFAULT nextval('"coreApi_modifierclass_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_modifieringredient" ALTER COLUMN id SET DEFAULT nextval('"coreApi_modifieringredient_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_modifierinventory" ALTER COLUMN id SET DEFAULT nextval('"coreApi_modifierinventory_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_modifieritem" ALTER COLUMN id SET DEFAULT nextval('"coreApi_modifieritem_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_order" ALTER COLUMN id SET DEFAULT nextval('"coreApi_order_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_orderhistory" ALTER COLUMN id SET DEFAULT nextval('"coreApi_orderhistory_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_orderitem" ALTER COLUMN id SET DEFAULT nextval('"coreApi_orderitem_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_orderprinting" ALTER COLUMN id SET DEFAULT nextval('"coreApi_orderprinting_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_payment" ALTER COLUMN id SET DEFAULT nextval('"coreApi_payment_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_paymenttype" ALTER COLUMN id SET DEFAULT nextval('"coreApi_paymenttype_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_payout" ALTER COLUMN id SET DEFAULT nextval('"coreApi_payout_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_payoutclass" ALTER COLUMN id SET DEFAULT nextval('"coreApi_payoutclass_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_payrate" ALTER COLUMN id SET DEFAULT nextval('"coreApi_payrate_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_permission" ALTER COLUMN id SET DEFAULT nextval('"coreApi_permission_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_posstation" ALTER COLUMN id SET DEFAULT nextval('"coreApi_posstation_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_posstation_devices" ALTER COLUMN id SET DEFAULT nextval('"coreApi_posstation_devices_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_product" ALTER COLUMN id SET DEFAULT nextval('"coreApi_product_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_productcategory" ALTER COLUMN id SET DEFAULT nextval('"coreApi_productcategory_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_productclass" ALTER COLUMN id SET DEFAULT nextval('"coreApi_productclass_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_productingredient" ALTER COLUMN id SET DEFAULT nextval('"coreApi_productingredient_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_productmodifier" ALTER COLUMN id SET DEFAULT nextval('"coreApi_productmodifier_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_receiptline" ALTER COLUMN id SET DEFAULT nextval('"coreApi_receiptline_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_receiptsetting" ALTER COLUMN id SET DEFAULT nextval('"coreApi_receiptsetting_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_receiptsetting_lines" ALTER COLUMN id SET DEFAULT nextval('"coreApi_receiptsetting_lines_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_rewardscard" ALTER COLUMN id SET DEFAULT nextval('"coreApi_rewardscard_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_role" ALTER COLUMN id SET DEFAULT nextval('"coreApi_role_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_role_permissions" ALTER COLUMN id SET DEFAULT nextval('"coreApi_role_permissions_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_serversettings" ALTER COLUMN id SET DEFAULT nextval('"coreApi_serversettings_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_socialnetwork" ALTER COLUMN id SET DEFAULT nextval('"coreApi_socialnetwork_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_socialnetworkparameter" ALTER COLUMN id SET DEFAULT nextval('"coreApi_socialnetworkparameter_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_specialrequest" ALTER COLUMN id SET DEFAULT nextval('"coreApi_specialrequest_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_surcharge" ALTER COLUMN id SET DEFAULT nextval('"coreApi_surcharge_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_surchargerates" ALTER COLUMN id SET DEFAULT nextval('"coreApi_surchargerates_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_systemsetting" ALTER COLUMN id SET DEFAULT nextval('"coreApi_systemsetting_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_systemsetting_extra_items_printers" ALTER COLUMN id SET DEFAULT nextval('"coreApi_systemsetting_extra_items_printers_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_systemsettingoption" ALTER COLUMN id SET DEFAULT nextval('"coreApi_systemsettingoption_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_table" ALTER COLUMN id SET DEFAULT nextval('"coreApi_table_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_tablesection" ALTER COLUMN id SET DEFAULT nextval('"coreApi_tablesection_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_tabletype" ALTER COLUMN id SET DEFAULT nextval('"coreApi_tabletype_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_tax" ALTER COLUMN id SET DEFAULT nextval('"coreApi_tax_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_taxrate" ALTER COLUMN id SET DEFAULT nextval('"coreApi_taxrate_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_timeschedule" ALTER COLUMN id SET DEFAULT nextval('"coreApi_timeschedule_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_timeschedulerule" ALTER COLUMN id SET DEFAULT nextval('"coreApi_timeschedulerule_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_timesheetentry" ALTER COLUMN id SET DEFAULT nextval('"coreApi_timesheetentry_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE "coreApi_translationlanguage" ALTER COLUMN id SET DEFAULT nextval('"coreApi_translationlanguage_id_seq"'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE dashboard_picture ALTER COLUMN id SET DEFAULT nextval('dashboard_picture_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE django_admin_log ALTER COLUMN id SET DEFAULT nextval('django_admin_log_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE django_content_type ALTER COLUMN id SET DEFAULT nextval('django_content_type_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE django_site ALTER COLUMN id SET DEFAULT nextval('django_site_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE djcelery_crontabschedule ALTER COLUMN id SET DEFAULT nextval('djcelery_crontabschedule_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE djcelery_intervalschedule ALTER COLUMN id SET DEFAULT nextval('djcelery_intervalschedule_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE djcelery_periodictask ALTER COLUMN id SET DEFAULT nextval('djcelery_periodictask_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE djcelery_taskstate ALTER COLUMN id SET DEFAULT nextval('djcelery_taskstate_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE djcelery_workerstate ALTER COLUMN id SET DEFAULT nextval('djcelery_workerstate_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE reports_report ALTER COLUMN id SET DEFAULT nextval('reports_report_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE reports_report_establishments ALTER COLUMN id SET DEFAULT nextval('reports_report_establishments_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE south_migrationhistory ALTER COLUMN id SET DEFAULT nextval('south_migrationhistory_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE tastypie_apiaccess ALTER COLUMN id SET DEFAULT nextval('tastypie_apiaccess_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: django_pwny
--
ALTER TABLE tastypie_apikey ALTER COLUMN id SET DEFAULT nextval('tastypie_apikey_id_seq'::regclass);
--
-- Data for Name: auth_group; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY auth_group (id, name) FROM stdin;
\.
--
-- Data for Name: auth_group_permissions; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY auth_group_permissions (id, group_id, permission_id) FROM stdin;
\.
--
-- Data for Name: auth_message; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY auth_message (id, user_id, message) FROM stdin;
\.
--
-- Data for Name: auth_permission; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY auth_permission (id, name, content_type_id, codename) FROM stdin;
22 Can add log entry 8 add_logentry
23 Can change log entry 8 change_logentry
24 Can delete log entry 8 delete_logentry
4 Can add group 2 add_group
5 Can change group 2 change_group
6 Can delete group 2 delete_group
10 Can add message 4 add_message
11 Can change message 4 change_message
12 Can delete message 4 delete_message
1 Can add permission 1 add_permission
2 Can change permission 1 change_permission
3 Can delete permission 1 delete_permission
7 Can add user 3 add_user
8 Can change user 3 change_user
9 Can delete user 3 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
25 Can add address 9 add_address
26 Can change address 9 change_address
27 Can delete address 9 delete_address
193 Can add api consumer 65 add_apiconsumer
194 Can change api consumer 65 change_apiconsumer
195 Can delete api consumer 65 delete_apiconsumer
31 Can add brand 11 add_brand
32 Can change brand 11 change_brand
33 Can delete brand 11 delete_brand
28 Can add company 10 add_company
29 Can change company 10 change_company
68 Can change discount 23 change_discount
69 Can delete discount 23 delete_discount
202 Can add drawercount 68 add_drawercount
203 Can change drawercount 68 change_drawercount
90 Can delete product category 30 delete_productcategory
85 Can add product class 29 add_productclass
86 Can change product class 29 change_productclass
87 Can delete product class 29 delete_productclass
157 Can add product ingredient 53 add_productingredient
158 Can change product ingredient 53 change_productingredient
159 Can delete product ingredient 53 delete_productingredient
166 Can add product modifier 56 add_productmodifier
167 Can change product modifier 56 change_productmodifier
168 Can delete product modifier 56 delete_productmodifier
106 Can add receipt line 36 add_receiptline
107 Can change receipt line 36 change_receiptline
108 Can delete receipt line 36 delete_receiptline
109 Can add receipt setting 37 add_receiptsetting
133 Can add role 45 add_role
240 Can delete worker 80 delete_workerstate
212 Can change report 71 change_report
213 Can delete report 71 delete_report
16 Can add session 6 add_session
204 Can delete drawercount 68 delete_drawercount
136 Can add employee 46 add_employee
137 Can change employee 46 change_employee
138 Can delete employee 46 delete_employee
127 Can add employee department 43 add_employeedepartment
128 Can change employee department 43 change_employeedepartment
129 Can delete employee department 43 delete_employeedepartment
64 Can add establishment 22 add_establishment
65 Can change establishment 22 change_establishment
66 Can delete establishment 22 delete_establishment
205 Can add establishment employee 69 add_establishmentemployee
206 Can change establishment employee 69 change_establishmentemployee
207 Can delete establishment employee 69 delete_establishmentemployee
121 Can add gift card 41 add_giftcard
122 Can change gift card 41 change_giftcard
123 Can delete gift card 41 delete_giftcard
154 Can add ingredient 52 add_ingredient
155 Can change ingredient 52 change_ingredient
156 Can delete ingredient 52 delete_ingredient
169 Can add inventory 57 add_inventory
170 Can change inventory 57 change_inventory
171 Can delete inventory 57 delete_inventory
184 Can add language 62 add_language
185 Can change language 62 change_language
186 Can delete language 62 delete_language
187 Can add language string 63 add_languagestring
188 Can change language string 63 change_languagestring
189 Can delete language string 63 delete_languagestring
163 Can add modifier 55 add_modifier
164 Can change modifier 55 change_modifier
165 Can delete modifier 55 delete_modifier
113 Can change order history 38 change_orderhistory
114 Can delete order history 38 delete_orderhistory
100 Can add order item 34 add_orderitem
101 Can change order item 34 change_orderitem
102 Can delete order item 34 delete_orderitem
103 Can add order printing 35 add_orderprinting
104 Can change order printing 35 change_orderprinting
105 Can delete order printing 35 delete_orderprinting
142 Can add payment 48 add_payment
143 Can change payment 48 change_payment
144 Can delete payment 48 delete_payment
118 Can add payment type 40 add_paymenttype
119 Can change payment type 40 change_paymenttype
120 Can delete payment type 40 delete_paymenttype
196 Can add payout 66 add_payout
197 Can change payout 66 change_payout
198 Can delete payout 66 delete_payout
30 Can delete company 10 delete_company
40 Can add currency 14 add_currency
41 Can change currency 14 change_currency
160 Can add modifier class 54 add_modifierclass
161 Can change modifier class 54 change_modifierclass
162 Can delete modifier class 54 delete_modifierclass
175 Can add modifier ingredient 59 add_modifieringredient
176 Can change modifier ingredient 59 change_modifieringredient
177 Can delete modifier ingredient 59 delete_modifieringredient
172 Can add modifier inventory 58 add_modifierinventory
173 Can change modifier inventory 58 change_modifierinventory
174 Can delete modifier inventory 58 delete_modifierinventory
178 Can add modifier item 60 add_modifieritem
179 Can change modifier item 60 change_modifieritem
180 Can delete modifier item 60 delete_modifieritem
82 Can add order 28 add_order
83 Can change order 28 change_order
84 Can delete order 28 delete_order
112 Can add order history 38 add_orderhistory
199 Can add payout class 67 add_payoutclass
200 Can change payout class 67 change_payoutclass
201 Can delete payout class 67 delete_payoutclass
139 Can add pay rate 47 add_payrate
140 Can change pay rate 47 change_payrate
141 Can delete pay rate 47 delete_payrate
130 Can add permission 44 add_permission
131 Can change permission 44 change_permission
132 Can delete permission 44 delete_permission
94 Can add pos station 32 add_posstation
95 Can change pos station 32 change_posstation
96 Can delete pos station 32 delete_posstation
91 Can add product 31 add_product
92 Can change product 31 change_product
93 Can delete product 31 delete_product
88 Can add product category 30 add_productcategory
89 Can change product category 30 change_productcategory
110 Can change receipt setting 37 change_receiptsetting
111 Can delete receipt setting 37 delete_receiptsetting
124 Can add rewards card 42 add_rewardscard
125 Can change rewards card 42 change_rewardscard
126 Can delete rewards card 42 delete_rewardscard
134 Can change role 45 change_role
135 Can delete role 45 delete_role
181 Can add server settings 61 add_serversettings
182 Can change server settings 61 change_serversettings
183 Can delete server settings 61 delete_serversettings
61 Can add social network 21 add_socialnetwork
62 Can change social network 21 change_socialnetwork
63 Can delete social network 21 delete_socialnetwork
42 Can delete currency 14 delete_currency
79 Can add customer 27 add_customer
80 Can change customer 27 change_customer
81 Can delete customer 27 delete_customer
115 Can add social network parameter 39 add_socialnetworkparameter
116 Can change social network parameter 39 change_socialnetworkparameter
117 Can delete social network parameter 39 delete_socialnetworkparameter
97 Can add special request 33 add_specialrequest
98 Can change special request 33 change_specialrequest
99 Can delete special request 33 delete_specialrequest
55 Can add surcharge 19 add_surcharge
56 Can change surcharge 19 change_surcharge
57 Can delete surcharge 19 delete_surcharge
58 Can add surcharge rates 20 add_surchargerates
59 Can change surcharge rates 20 change_surchargerates
60 Can delete surcharge rates 20 delete_surchargerates
49 Can add system setting 17 add_systemsetting
50 Can change system setting 17 change_systemsetting
51 Can delete system setting 17 delete_systemsetting
52 Can add system setting option 18 add_systemsettingoption
53 Can change system setting option 18 change_systemsettingoption
54 Can delete system setting option 18 delete_systemsettingoption
76 Can add table 26 add_table
77 Can change table 26 change_table
78 Can delete table 26 delete_table
70 Can add table section 24 add_tablesection
71 Can change table section 24 change_tablesection
34 Can add tax 12 add_tax
227 Can change interval 76 change_intervalschedule
228 Can delete interval 76 delete_intervalschedule
235 Can add periodic task 79 add_periodictask
236 Can change periodic task 79 change_periodictask
237 Can delete periodic task 79 delete_periodictask
232 Can add periodic tasks 78 add_periodictasks
233 Can change periodic tasks 78 change_periodictasks
234 Can delete periodic tasks 78 delete_periodictasks
220 Can add task meta 74 add_taskmeta
221 Can change task meta 74 change_taskmeta
222 Can delete task meta 74 delete_taskmeta
223 Can add taskset meta 75 add_tasksetmeta
224 Can change taskset meta 75 change_tasksetmeta
225 Can delete taskset meta 75 delete_tasksetmeta
241 Can add task 81 add_taskstate
242 Can change task 81 change_taskstate
243 Can delete task 81 delete_taskstate
238 Can add worker 80 add_workerstate
239 Can change worker 80 change_workerstate
211 Can add report 71 add_report
43 Can add device 15 add_device
44 Can change device 15 change_device
45 Can delete device 15 delete_device
46 Can add device extra parameters 16 add_deviceextraparameters
47 Can change device extra parameters 16 change_deviceextraparameters
48 Can delete device extra parameters 16 delete_deviceextraparameters
67 Can add discount 23 add_discount
72 Can delete table section 24 delete_tablesection
73 Can add table type 25 add_tabletype
74 Can change table type 25 change_tabletype
75 Can delete table type 25 delete_tabletype
35 Can change tax 12 change_tax
36 Can delete tax 12 delete_tax
37 Can add tax rate 13 add_taxrate
38 Can change tax rate 13 change_taxrate
39 Can delete tax rate 13 delete_taxrate
145 Can add time schedule 49 add_timeschedule
146 Can change time schedule 49 change_timeschedule
147 Can delete time schedule 49 delete_timeschedule
148 Can add time schedule rule 50 add_timeschedulerule
149 Can change time schedule rule 50 change_timeschedulerule
150 Can delete time schedule rule 50 delete_timeschedulerule
151 Can add time sheet entry 51 add_timesheetentry
152 Can change time sheet entry 51 change_timesheetentry
153 Can delete time sheet entry 51 delete_timesheetentry
190 Can add translation language 64 add_translationlanguage
191 Can change translation language 64 change_translationlanguage
192 Can delete translation language 64 delete_translationlanguage
229 Can add crontab 77 add_crontabschedule
230 Can change crontab 77 change_crontabschedule
231 Can delete crontab 77 delete_crontabschedule
226 Can add interval 76 add_intervalschedule
17 Can change session 6 change_session
18 Can delete session 6 delete_session
19 Can add site 7 add_site
20 Can change site 7 change_site
21 Can delete site 7 delete_site
208 Can add migration history 70 add_migrationhistory
209 Can change migration history 70 change_migrationhistory
210 Can delete migration history 70 delete_migrationhistory
214 Can add api access 72 add_apiaccess
215 Can change api access 72 change_apiaccess
216 Can delete api access 72 delete_apiaccess
217 Can add api key 73 add_apikey
218 Can change api key 73 change_apikey
219 Can delete api key 73 delete_apikey
\.
--
-- Data for Name: auth_user; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY auth_user (id, username, first_name, last_name, email, password, is_staff, is_active, is_superuser, last_login, date_joined) FROM stdin;
2 bobby bobby@revelsystems.com sha1$c52d1$a038c62511631903036d243ca57783bc1d8a2b8d t t t 2011-11-21 18:16:05-08 2011-11-21 18:04:06-08
3 testCapture sha1$d91a3$4a7a7f1ee06ac3ed53da3e07ee23d5b9b0db4f5f t t f 2011-11-29 15:09:07-08 2011-11-29 15:08:25-08
1 elg0nz elg0nz@gmail.com sha1$ce9c1$c627f1bcddc222e7e83699df9010ae9191782523 t t t 2011-11-29 15:08:06-08 2011-11-11 09:59:50-08
\.
--
-- Data for Name: auth_user_groups; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY auth_user_groups (id, user_id, group_id) FROM stdin;
\.
--
-- Data for Name: auth_user_user_permissions; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY auth_user_user_permissions (id, user_id, permission_id) FROM stdin;
3661 3 25
3662 3 26
3663 3 27
3664 3 28
3665 3 29
3666 3 30
3667 3 31
3668 3 32
3669 3 33
3670 3 34
3671 3 35
3672 3 36
3673 3 37
3674 3 38
3675 3 39
3676 3 40
3677 3 41
3678 3 42
3679 3 43
3680 3 44
3681 3 45
3682 3 46
3683 3 47
3684 3 48
3685 3 49
3686 3 50
3687 3 51
3688 3 52
3689 3 53
3690 3 54
3691 3 55
3692 3 56
3693 3 57
3694 3 58
3695 3 59
3696 3 60
3697 3 61
3698 3 62
3699 3 63
3700 3 64
3701 3 65
3702 3 66
3703 3 67
3704 3 68
3705 3 69
3706 3 70
3707 3 71
3708 3 72
3709 3 73
3710 3 74
3711 3 75
3712 3 76
3713 3 77
3714 3 78
3715 3 79
3716 3 80
3717 3 81
3718 3 82
3719 3 83
3720 3 84
3721 3 85
3722 3 86
3723 3 87
3724 3 88
3725 3 89
3726 3 90
3727 3 91
3728 3 92
3729 3 93
3730 3 94
3731 3 95
3732 3 96
3733 3 97
3734 3 98
3735 3 99
3736 3 100
3737 3 101
3738 3 102
3739 3 103
3740 3 104
3741 3 105
3742 3 106
3743 3 107
3744 3 108
3745 3 109
3746 3 110
3747 3 111
3748 3 112
3749 3 113
3750 3 114
3751 3 115
3752 3 116
3753 3 117
3754 3 118
3755 3 119
3756 3 120
3757 3 121
3758 3 122
3759 3 123
3760 3 124
3761 3 125
3762 3 126
3763 3 127
3764 3 128
3765 3 129
3766 3 130
3767 3 131
3768 3 132
3769 3 133
3770 3 134
3771 3 135
3772 3 136
3773 3 137
3774 3 138
3775 3 139
3776 3 140
3777 3 141
3778 3 142
3779 3 143
3780 3 144
3781 3 145
3782 3 146
3783 3 147
3784 3 148
3785 3 149
3786 3 150
3787 3 151
3788 3 152
3789 3 153
3790 3 154
3791 3 155
3792 3 156
3793 3 157
3794 3 158
3795 3 159
3796 3 160
3797 3 161
3798 3 162
3799 3 163
3800 3 164
3801 3 165
3802 3 166
3803 3 167
3804 3 168
3805 3 169
3806 3 170
3807 3 171
3808 3 172
3809 3 173
3810 3 174
3811 3 175
3812 3 176
3813 3 177
3814 3 178
3815 3 179
3816 3 180
3817 3 181
3818 3 182
3819 3 183
3820 3 184
3821 3 185
3822 3 186
3823 3 187
3824 3 188
3825 3 189
3826 3 190
3827 3 191
3828 3 192
3829 3 193
3830 3 194
3831 3 195
3832 3 196
3833 3 197
3834 3 198
3835 3 199
3836 3 200
3837 3 201
3838 3 202
3839 3 203
3840 3 204
3841 3 205
3842 3 206
3843 3 207
\.
--
-- Data for Name: celery_taskmeta; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY celery_taskmeta (id, task_id, status, result, date_done, traceback) FROM stdin;
\.
--
-- Data for Name: celery_tasksetmeta; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY celery_tasksetmeta (id, taskset_id, result, date_done) FROM stdin;
\.
--
-- Data for Name: coreApi_address; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_address" (id, line_1, line_2, zipcode, active, created_by_id, created_date, updated_by_id, updated_date, city_name, state, province, country) FROM stdin;
1 123 Some Street Revel City, CA 12345 t 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 Revel City CA A province US
2 88 1st Street 2nd Floor 94105 t 3 2011-11-29 13:14:00-08 3 2011-11-29 13:14:00-08 San Francisco CA Bay Area US
\.
--
-- Data for Name: coreApi_apiconsumer; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_apiconsumer" (id, secret_key, associated_user_id, associated_company_id) FROM stdin;
\.
--
-- Data for Name: coreApi_brand; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_brand" (id, name, active, company_id, created_by_id, created_date, updated_by_id, updated_date) FROM stdin;
3 Test Brand A t 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
5 Test Brand A t 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
1 Applebees t 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
20 Applebees t 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
22 Applebees t 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
7 Applebees t 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
9 Applebees t 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
24 Applebees t 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
11 Applebees t 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
28 another name t 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
29 Applebees t 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
12 another name t 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
13 Applebees t 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
27 another name t 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
\.
--
-- Data for Name: coreApi_company; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_company" (id, name, active, created_by_id, created_date, updated_by_id, updated_date) FROM stdin;
22 Applebees HeadQuarters f 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
24 Applebees HeadQuarters f 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
7 Applebees HeadQuarters f 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
9 Applebees HeadQuarters f 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
11 Applebees HeadQuarters f 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
13 Applebees HeadQuarters f 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
20 Applebees HeadQuarters f 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
3 Test Company 1 f 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
5 Test Company 1 f 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
1 Applebees HeadQuarters t 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
26 Applebees HeadQuarters f 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
\.
--
-- Data for Name: coreApi_currency; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_currency" (id, symbol, name, active) FROM stdin;
1 USD US Dollars t
\.
--
-- Data for Name: coreApi_customer; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_customer" (id, first_name, last_name, email, picture, created_by_id, created_date, updated_by_id, updated_date, address_id, total_visits, total_purchases, phone_number, ref_number) FROM stdin;
1 Matt Saricicek mehmet@saricicek.com 3 2011-11-29 13:13:00-08 3 2011-11-29 13:13:00-08 2 1 1 9732204472 23456
\.
--
-- Data for Name: coreApi_device; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_device" (id, name, mac, device_type, active, port) FROM stdin;
2 Card Swipe 00:08:C7:1B:8C:03 5 t 10001
3 Scale 00:08:C7:1B:8C:04 4 t 9003
1 Some device some mac address 1 t 0
\.
--
-- Data for Name: coreApi_deviceextraparameters; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_deviceextraparameters" (id, name, value, active, device_id) FROM stdin;
\.
--
-- Data for Name: coreApi_discount; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_discount" (id, password_required, discount_amount, discount_type, effective_from, effective_to, establishment_id, created_by_id, created_date, updated_by_id, updated_date, maximum_percentage, minimum_amount, password, name) FROM stdin;
1 f 10 1 2011-11-29 13:22:00-08 2011-11-29 13:22:00-08 1 3 2011-11-29 13:22:00-08 3 2011-11-29 13:23:00-08 0 0 1234 BLAH
\.
--
-- Data for Name: coreApi_drawercount; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_drawercount" (id, counted_by_id, station_id, establishment_id, counted_date, cash_in_drawer, cash_sales, total_refunds, total_payouts, difference) FROM stdin;
\.
--
-- Data for Name: coreApi_employee; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_employee" (id, first_name, last_name, email, pin, employee_start, employee_end, employee_card, employee_lastlogin, picture, department_id, exempt, active, created_by_id, created_date, updated_by_id, updated_date, address_id) FROM stdin;
1 Squidward Tentacles squidward@tentacles.com 1234 2011-11-22 14:47:00-08 \N 1234 \N \N t f 1 2011-11-22 14:47:00-08 1 2011-11-22 14:48:00-08 \N
2 Bugs Bunny bobby@revelsystems.com 7890 2011-10-31 22:00:00-07 \N 123 2011-11-09 15:00:00-08 \N f t 2 2011-11-30 08:55:00-08 2 2011-11-30 08:55:00-08 \N
\.
--
-- Data for Name: coreApi_employee_roles; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_employee_roles" (id, employee_id, role_id) FROM stdin;
26 2 1
\.
--
-- Data for Name: coreApi_employeedepartment; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_employeedepartment" (id, name, active) FROM stdin;
1 Service Crew t
\.
--
-- Data for Name: coreApi_establishment; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_establishment" (id, name, sorting_id, store_number, manager_id, notes, active, logo_url, effective_from, effective_to, brand_id, created_by_id, created_date, updated_by_id, updated_date, currency_id, email, phone, fax, tax_payer_num, time_zone, address_id, settings_id, surcharge_id, kiosk_image_url, display_unit_bg_url) FROM stdin;
52 Establishment 0 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 29 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 81 1 http://www.google.com http://www.google.com
48 Establishment 0 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 24 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 61 1 http://www.google.com http://www.google.com
49 Establishment 1 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 24 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 62 1 http://www.google.com http://www.google.com
21 Establishment 1 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 11 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 29 1 http://www.google.com http://www.google.com
3 Establishment 0 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 3 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 3 1 http://www.google.com http://www.google.com
4 Establishment 1 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 3 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 4 1 http://www.google.com http://www.google.com
17 Establishment 1 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 9 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 24 1 http://www.google.com http://www.google.com
18 Establishment 2 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 9 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 25 1 http://www.google.com http://www.google.com
19 Establishment 3 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 9 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 26 1 http://www.google.com http://www.google.com
20 Establishment 0 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 11 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 28 1 http://www.google.com http://www.google.com
45 Establishment 1 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 22 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 57 1 http://www.google.com http://www.google.com
46 Establishment 2 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 22 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 58 1 http://www.google.com http://www.google.com
47 Establishment 3 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 22 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 59 1 http://www.google.com http://www.google.com
50 Establishment 2 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 24 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 63 1 http://www.google.com http://www.google.com
1 Some Establishment 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 1 1 http://www.google.com http://www.google.com
12 Establishment 0 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 7 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 18 1 http://www.google.com http://www.google.com
13 Establishment 1 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 7 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 19 1 http://www.google.com http://www.google.com
14 Establishment 2 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 7 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 20 1 http://www.google.com http://www.google.com
15 Establishment 3 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 7 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 21 1 http://www.google.com http://www.google.com
16 Establishment 0 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 9 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 23 1 http://www.google.com http://www.google.com
5 Establishment 2 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 3 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 5 1 http://www.google.com http://www.google.com
6 Establishment 3 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 3 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 6 1 http://www.google.com http://www.google.com
8 Establishment 0 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 5 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 8 1 http://www.google.com http://www.google.com
9 Establishment 1 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 5 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 9 1 http://www.google.com http://www.google.com
10 Establishment 2 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 5 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 10 1 http://www.google.com http://www.google.com
11 Establishment 3 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 5 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 11 1 http://www.google.com http://www.google.com
22 Establishment 2 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 11 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 30 1 http://www.google.com http://www.google.com
23 Establishment 3 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 11 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 31 1 http://www.google.com http://www.google.com
24 Establishment 0 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 13 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 32 1 http://www.google.com http://www.google.com
25 Establishment 1 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 13 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 33 1 http://www.google.com http://www.google.com
26 Establishment 2 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 13 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 34 1 http://www.google.com http://www.google.com
51 Establishment 3 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 24 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 64 1 http://www.google.com http://www.google.com
42 Establishment 2 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 20 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 53 1 http://www.google.com http://www.google.com
27 Establishment 3 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 13 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 35 1 http://www.google.com http://www.google.com
40 Establishment 0 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 20 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 51 1 http://www.google.com http://www.google.com
41 Establishment 1 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 20 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 52 1 http://www.google.com http://www.google.com
43 Establishment 3 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 20 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 54 1 http://www.google.com http://www.google.com
44 Establishment 0 1 1 1 some notes… t http://www.google.com 2011-10-24 18:02:47-07 2011-10-24 18:02:47-07 22 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 bobby@revelsystems.com 1234567890 1234567890 1234567890 America/New_York 1 56 1 http://www.google.com http://www.google.com
\.
--
-- Data for Name: coreApi_establishment_devices; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_establishment_devices" (id, establishment_id, device_id) FROM stdin;
915 48 1
916 49 1
917 21 1
918 3 1
919 4 1
920 17 1
921 18 1
922 19 1
923 20 1
924 45 1
925 46 1
926 47 1
927 50 1
928 10 1
929 11 1
930 1 1
931 12 1
932 13 1
933 14 1
934 15 1
935 16 1
936 5 1
937 6 1
938 8 1
939 9 1
940 43 1
941 44 1
942 22 1
943 23 1
944 24 1
945 25 1
946 26 1
947 51 1
948 42 1
949 27 1
950 40 1
951 41 1
\.
--
-- Data for Name: coreApi_establishment_social_networks; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_establishment_social_networks" (id, establishment_id, socialnetwork_id) FROM stdin;
915 48 1
916 49 1
917 21 1
918 3 1
919 4 1
920 17 1
921 18 1
922 19 1
923 20 1
924 45 1
925 46 1
926 47 1
927 50 1
928 10 1
929 11 1
930 1 1
931 12 1
932 13 1
933 14 1
934 15 1
935 16 1
936 5 1
937 6 1
938 8 1
939 9 1
940 43 1
941 44 1
942 22 1
943 23 1
944 24 1
945 25 1
946 26 1
947 51 1
948 42 1
949 27 1
950 40 1
951 41 1
\.
--
-- Data for Name: coreApi_establishment_tax; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_establishment_tax" (id, establishment_id, tax_id) FROM stdin;
915 48 1
916 49 1
917 21 1
918 3 1
919 4 1
920 17 1
921 18 1
922 19 1
923 20 1
924 45 1
925 46 1
926 47 1
927 50 1
928 10 1
929 11 1
930 1 1
931 12 1
932 13 1
933 14 1
934 15 1
935 16 1
936 5 1
937 6 1
938 8 1
939 9 1
940 43 1
941 44 1
942 22 1
943 23 1
944 24 1
945 25 1
946 26 1
947 51 1
948 42 1
949 27 1
950 40 1
951 41 1
\.
--
-- Data for Name: coreApi_establishmentemployee; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_establishmentemployee" (id, establishment_id, employee_id) FROM stdin;
2 1 1
1 1 2
\.
--
-- Data for Name: coreApi_giftcard; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_giftcard" (id, number, created_by_id, created_date, updated_by_id, updated_date, address_id, payment_type_id, initial_value, remaining_balance, customer_id) FROM stdin;
1 34567898765434567890 3 2011-11-29 14:54:00-08 3 2011-11-29 14:54:00-08 1 4 100 100 1
\.
--
-- Data for Name: coreApi_ingredient; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_ingredient" (id, name, active, created_by_id, created_date, updated_by_id, updated_date, sorting, brand_id, establishment_id, quantity, threshold, measurement_type, cost) FROM stdin;
1 Lettuce t 3 2011-11-29 14:55:00-08 3 2011-11-29 14:55:00-08 1 1 1 1 1 0 0
\.
--
-- Data for Name: coreApi_inventory; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_inventory" (id, product_id, quantity_available, threshold, measurement_type, created_by_id, created_date, updated_by_id, updated_date) FROM stdin;
1 10 100 10 0 3 2011-11-29 14:35:00-08 3 2011-11-29 14:35:00-08
\.
--
-- Data for Name: coreApi_language; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_language" (id, name, code) FROM stdin;
2 Turkce TR
3 Espanol ES
1 English EN
\.
--
-- Data for Name: coreApi_languagestring; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_languagestring" (id, value) FROM stdin;
1 Pay
2 Odeme
\.
--
-- Data for Name: coreApi_modifier; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_modifier" (id, name, cost, price, active, "modifierClass_id", created_by_id, created_date, updated_by_id, updated_date, allow_price_override, brand_id, image, establishment_id, parent_modifier_id, uuid) FROM stdin;
2 Chipotle Sauce 0.100000000000000006 0.989999999999999991 t 1 2 2011-11-22 10:19:00-08 2 2011-11-22 10:19:00-08 f \N 1 \N e35d9a6d-b79c-4600-a675-7b54583973e5
1 Ranch Sauce 0.0500000000000000028 0.149999999999999994 t 1 2 2011-11-22 10:17:00-08 2 2011-11-22 10:17:00-08 f \N 1 \N 16b9f5fe-d3f6-4a08-a8eb-be817daf49b7
\.
--
-- Data for Name: coreApi_modifierclass; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_modifierclass" (id, name, quantity_free, quantity_allowed, active, sort, created_by_id, created_date, updated_by_id, updated_date, brand_id, establishment_id) FROM stdin;
1 Dressing 10 10 t 1 2 2011-11-22 10:17:00-08 2 2011-11-22 10:17:00-08 \N 1
\.
--
-- Data for Name: coreApi_modifieringredient; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_modifieringredient" (id, ingredient_id, modifier_id, created_by_id, created_date, updated_by_id, updated_date) FROM stdin;
1 1 2 3 2011-11-29 14:57:00-08 3 2011-11-29 14:57:00-08
\.
--
-- Data for Name: coreApi_modifierinventory; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_modifierinventory" (id, modifier_in_establishment_id, quantity, created_by_id, created_date, updated_by_id, updated_date, measurement_type) FROM stdin;
\.
--
-- Data for Name: coreApi_modifieritem; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_modifieritem" (id, modifier_id, modifier_price, order_item_id, modifier_cost, uuid) FROM stdin;
1 2 0 1 0 a60a755b-4a64-42a7-9236-57d4d85c3440
\.
--
-- Data for Name: coreApi_order; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_order" (id, uuid, subtotal, tax, surcharge, final_total, remaining_due, establishment_id, pos_mode, dining_option, table_id, table_owner_id, discount_id, discount_reason, discount_amount, service_charge, number_of_people, customer_id, call_name, call_number, created_by_id, created_date, updated_by_id, updated_date) FROM stdin;
1 fbd39f98-9ccd-4fbe-bc93-25342cd9d800 0 0 0 0 0 1 Q 0 \N \N \N \N 0 1 \N bobby 123 2 2011-11-15 15:00:00-08 2 2011-11-15 15:00:00-08
2 3030b9ae-996c-40a7-9819-3255cf7345ae 0 0 0 0 0 1 Q 0 \N \N \N \N 0 1 \N murphy 102 2 2011-11-22 07:49:00-08 2 2011-11-22 07:49:00-08
3 9cf33c3d-3efc-4f6c-b1b0-0c6d8d91cd6d 10 0.949999999999999956 0 10.9499999999999993 0 1 Q 0 \N \N \N \N 0 1 1 Matt S. 1234 3 2011-11-29 13:32:00-08 3 2011-11-29 13:32:00-08
4 11f4d39d-24d2-49e6-9941-9098f4bd6166 0 0 0 0 0 21 Q 0 1 2 \N \N \N \N \N \N 1 2011-11-30 00:00:00-08 1 2011-12-22 16:39:00-08
\.
--
-- Data for Name: coreApi_orderhistory; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_orderhistory" (id, order_id, opened, closed, order_opened_by_id, order_closed_by_id, order_opened_at_id, order_closed_at_id) FROM stdin;
1 3 2011-11-29 13:00:00-08 2011-11-29 13:33:00-08 3 3 1 1
\.
--
-- Data for Name: coreApi_orderitem; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_orderitem" (id, order_id, product_id, price, cost, quantity, station_id, created_by_id, created_date, updated_by_id, updated_date, tax_rate, taxed_flag, voided_by_id, voided_date_id, printed, kitchen_completed, expedited, dining_option, discount_id, discount_reason, discount_amount, product_name_override, course_number, seat_number, on_hold, date_paid, temp_sort, uuid) FROM stdin;
1 3 10 10 5 1 1 3 2011-11-29 13:33:00-08 3 2011-11-29 13:34:00-08 1 t \N \N f \N \N 0 \N \N 1 \N f 2011-11-29 13:34:00-08 1 6173f89c-ea85-4719-a287-094214fed2c3
\.
--
-- Data for Name: coreApi_orderprinting; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_orderprinting" (id, printer_id, order_item_id, date_printed, printed) FROM stdin;
1 1 1 2011-11-29 13:38:00-08 t
\.
--
-- Data for Name: coreApi_payment; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_payment" (id, payment_type_id, reverses_payment_id, establishment_id, transaction_id, last_4_cc_digits, order_id, payment_date, created_by_id, created_date, updated_by_id, updated_date, amount, tip, station_id) FROM stdin;
1 1 \N 1 45677654 3322 3 2011-11-29 13:35:00-08 3 2011-11-29 13:35:00-08 3 2011-11-29 13:35:00-08 0 0 1
\.
--
-- Data for Name: coreApi_paymenttype; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_paymenttype" (id, name, active, brand_id, establishment_id, created_by_id, created_date, updated_by_id, updated_date) FROM stdin;
2 Credit Card t 1 1 3 2011-11-29 14:33:00-08 3 2011-11-29 14:33:00-08
3 Check t 1 1 3 2011-11-29 14:33:00-08 3 2011-11-29 14:33:00-08
4 Seamless Web t 1 1 3 2011-11-29 14:34:00-08 3 2011-11-29 14:34:00-08
1 Cash t 1 1 3 2011-11-29 13:34:00-08 3 2011-11-29 13:34:00-08
\.
--
-- Data for Name: coreApi_payout; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_payout" (id, description, amount, created_by_id, created_date, updated_by_id, updated_date) FROM stdin;
\.
--
-- Data for Name: coreApi_payoutclass; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_payoutclass" (id, name, brand_id, establishment_id, created_by_id, created_date, updated_by_id, updated_date) FROM stdin;
\.
--
-- Data for Name: coreApi_payrate; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_payrate" (id, employee_id, role_id, establishment_id, department_id, rate, effective_from, effective_to, rate_type) FROM stdin;
1 1 1 1 1 10 2011-11-29 13:40:00-08 2012-08-30 22:00:00-07 0
\.
--
-- Data for Name: coreApi_permission; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_permission" (id, name, active) FROM stdin;
\.
--
-- Data for Name: coreApi_posstation; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_posstation" (id, name, mac, active, establishment_id, uuid, pos_mode) FROM stdin;
1 station 123 t 1 17bf66c3-ec7b-4200-b18f-18858f23d35f Q
\.
--
-- Data for Name: coreApi_posstation_devices; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_posstation_devices" (id, posstation_id, device_id) FROM stdin;
29 1 1
\.
--
-- Data for Name: coreApi_product; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_product" (id, name, description, cost, price, barcode, active, category_id, sorting, display_on_kiosk, image, kitchen_print_name, sold_by_weight, price_embedded, created_by_id, created_date, updated_by_id, updated_date, dining_option, course_number, point_value, point_redeem, productclass_id, brand_id, establishment_id, parent_product_id, uuid) FROM stdin;
24 Ji 0.5 1 1234567 t 1 1 f \N \N f f 1 2011-11-28 14:24:00-08 1 2011-11-28 14:24:00-08 \N \N \N \N 1 1 \N \N 1fc53a64-16f6-4e2a-954d-376fdf9b29b9
4 Brand Product 0 some description 2 4.95000000000000018 123 t 1 1 t http://www.google.com some kitchen name t t 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 1 \N \N 1 3 \N \N 22df2880-1891-4ae9-97dd-97a16e5e044e
21 t 2 3 1234567 t 1 1 f \N \N f f 1 2011-11-28 14:24:00-08 1 2011-11-28 14:24:00-08 \N \N \N \N 1 1 \N \N 02a60672-c513-453e-956d-6808708d2e41
22 Wa2 2 3 1234567 t 1 1 f \N \N f f 1 2011-11-28 14:24:00-08 1 2011-11-28 14:24:00-08 \N \N \N \N 1 1 \N \N b0b38592-08bf-42fd-99f0-120b5317f1dc
23 hjkhkjhj 2 3 1234567 t 1 1 f \N \N f f 1 2011-11-28 14:24:00-08 1 2011-11-28 14:24:00-08 \N \N \N \N 1 1 \N \N e7b2124a-3d85-4103-8036-7d272d5bdd62
5 Brand Product 1 some description 2 4.95000000000000018 123 t 1 1 t http://www.google.com some kitchen name t t 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 1 \N \N 1 3 \N \N a6c8567f-7885-4aa2-a7cd-5e654806fdbd
8 Brand Product 0 some description 2 4.95000000000000018 123 t 1 1 t http://www.google.com some kitchen name t t 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 1 \N \N 1 5 \N \N ebd72201-f019-4850-b3d0-d2d9209cf1f1
9 Brand Product 1 some description 2 4.95000000000000018 123 t 1 1 t http://www.google.com some kitchen name t t 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 1 1 \N \N 1 5 \N \N 7be0df39-3468-405f-808a-28e24cc0f58c
10 Oriental Chicken Salad Chicken and Asian greens tossed with almonds in Oriental vinaigrette. 5 10 1234 t 1 1 f http://applebees.com/menu/~/media/Optimized/Thumbnails%202/Saladsoriental_salad.ashx?h=144&w=144 Oriental Chicken Salad f f 3 2011-11-29 13:27:00-08 3 2011-11-29 13:27:00-08 0 1 10 30 2 1 1 \N 00513e41-55e9-4a0a-a6a6-a469446dd32c
\.
--
-- Data for Name: coreApi_productcategory; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_productcategory" (id, name, parent_id, active, product_class_id, created_by_id, created_date, updated_by_id, updated_date, sorting, brand_id, establishment_id) FROM stdin;
1 Salads \N t 1 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 0 1 \N
\.
--
-- Data for Name: coreApi_productclass; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_productclass" (id, name, active, created_by_id, created_date, updated_by_id, updated_date, sorting, brand_id) FROM stdin;
1 Test ProductClass A t 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07 0 1
2 Cold Foods t 3 2011-11-29 13:27:00-08 3 2011-11-29 13:27:00-08 1 1
\.
--
-- Data for Name: coreApi_productingredient; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_productingredient" (id, ingredient_id, product_id, created_by_id, created_date, updated_by_id, updated_date) FROM stdin;
\.
--
-- Data for Name: coreApi_productmodifier; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_productmodifier" (id, product_id, modifier_id, brand_id, establishment_id, created_by_id, created_date, updated_by_id, updated_date, default_modifier) FROM stdin;
1 10 2 1 1 3 2011-11-29 15:27:00-08 3 2011-11-29 15:27:00-08 t
\.
--
-- Data for Name: coreApi_receiptline; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_receiptline" (id, value, "position") FROM stdin;
1 32212 T
\.
--
-- Data for Name: coreApi_receiptsetting; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_receiptsetting" (id, establishment_id, print_tipline, print_cash_receipt, print_cc_receipt, num_slips, cc_receipt_option, show_order_num) FROM stdin;
1 48 t t t 0 0 f
\.
--
-- Data for Name: coreApi_receiptsetting_lines; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_receiptsetting_lines" (id, receiptsetting_id, receiptline_id) FROM stdin;
4 1 1
\.
--
-- Data for Name: coreApi_rewardscard; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_rewardscard" (id, number, created_by_id, created_date, updated_by_id, updated_date, address_id, payment_type_id, total_points, total_visits, total_purchases, current_points, customer_id) FROM stdin;
\.
--
-- Data for Name: coreApi_role; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_role" (id, name, active, created_by_id, created_date, updated_by_id, updated_date, brand_id, establishment_id) FROM stdin;
1 Waiter t 3 2011-11-29 13:24:00-08 3 2011-11-29 13:24:00-08 1 1
\.
--
-- Data for Name: coreApi_role_permissions; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_role_permissions" (id, role_id, permission_id) FROM stdin;
\.
--
-- Data for Name: coreApi_serversettings; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_serversettings" (id, data_server, data_server2, payment_server, payment_server2) FROM stdin;
\.
--
-- Data for Name: coreApi_socialnetwork; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_socialnetwork" (id, name, url, active) FROM stdin;
1 Twitter twitter.com/something t
\.
--
-- Data for Name: coreApi_socialnetworkparameter; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_socialnetworkparameter" (id, name, value, social_network_id, establishment_id) FROM stdin;
\.
--
-- Data for Name: coreApi_specialrequest; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_specialrequest" (id, name, active, brand_id, establishment_id, created_by_id, created_date, updated_by_id, updated_date, sorting) FROM stdin;
\.
--
-- Data for Name: coreApi_surcharge; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_surcharge" (id, name, active, created_by_id, created_date, updated_by_id, updated_date) FROM stdin;
1 Some surcharge t 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
\.
--
-- Data for Name: coreApi_surchargerates; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_surchargerates" (id, name, rate, active, effective_from, effective_to, created_by_id, created_date, updated_by_id, updated_date) FROM stdin;
\.
--
-- Data for Name: coreApi_systemsetting; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_systemsetting" (id, incoming_web_orders_printer_id) FROM stdin;
82 1
83 1
84 1
85 1
87 1
4 1
5 1
81 1
6 1
1 1
8 1
9 1
10 1
11 1
13 1
14 1
15 1
16 1
88 1
89 1
90 1
92 1
93 1
94 1
95 1
18 1
19 1
20 1
21 1
71 1
23 1
24 1
25 1
26 1
72 1
28 1
29 1
30 1
31 1
32 1
33 1
34 1
35 1
36 1
37 1
38 1
39 1
73 1
41 1
42 1
43 1
44 1
74 1
46 1
47 1
48 1
49 1
51 1
52 1
53 1
54 1
76 1
56 1
57 1
58 1
59 1
77 1
61 1
62 1
63 1
64 1
78 1
66 1
67 1
68 1
69 1
79 1
3 1
\.
--
-- Data for Name: coreApi_systemsetting_extra_items_printers; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_systemsetting_extra_items_printers" (id, systemsetting_id, device_id) FROM stdin;
1589 82 1
1590 83 1
1591 84 1
1592 85 1
1593 87 1
1594 4 1
1595 5 1
1596 81 1
1597 6 1
1598 1 1
1599 8 1
1600 9 1
1601 10 1
1602 11 1
1603 13 1
1604 14 1
1605 15 1
1606 16 1
1607 88 1
1608 89 1
1609 90 1
1610 92 1
1611 93 1
1612 94 1
1613 95 1
1614 18 1
1615 19 1
1616 20 1
1617 21 1
1618 71 1
1619 23 1
1620 24 1
1621 25 1
1622 26 1
1623 72 1
1624 28 1
1625 29 1
1626 30 1
1627 31 1
1628 32 1
1629 33 1
1630 34 1
1631 35 1
1632 36 1
1633 37 1
1634 38 1
1635 39 1
1636 73 1
1637 41 1
1638 42 1
1639 43 1
1640 44 1
1641 74 1
1642 46 1
1643 47 1
1644 48 1
1645 49 1
1646 51 1
1647 52 1
1648 53 1
1649 54 1
1650 76 1
1651 56 1
1652 57 1
1653 58 1
1654 59 1
1655 77 1
1656 61 1
1657 62 1
1658 63 1
1659 64 1
1660 78 1
1661 66 1
1662 67 1
1663 68 1
1664 69 1
1665 79 1
1666 3 1
\.
--
-- Data for Name: coreApi_systemsettingoption; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_systemsettingoption" (id, settings_parent_id, setting_name, parameter_name, parameter_value, parameter_required, enabled, user_friendly_name, description) FROM stdin;
\.
--
-- Data for Name: coreApi_table; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_table" (id, name, section_id, active, capacity, table_type_id, x_value, y_value, establishment_id, rotation) FROM stdin;
1 The Revel Round Table 1 t 5 1 2 2 1 \N
\.
--
-- Data for Name: coreApi_tablesection; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_tablesection" (id, name, active, establishment_id) FROM stdin;
1 VIP t 1
\.
--
-- Data for Name: coreApi_tabletype; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_tabletype" (id, name, shape_image_url, active, width, height) FROM stdin;
1 Rectangle http://rectangulartables.com/ t 5 5
\.
--
-- Data for Name: coreApi_tax; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_tax" (id, name, active, created_by_id, created_date, updated_by_id, updated_date) FROM stdin;
1 Income t 1 2011-10-24 18:02:47-07 1 2011-10-24 18:02:47-07
\.
--
-- Data for Name: coreApi_taxrate; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_taxrate" (id, tax_id, tax_rate, effective_from, effective_to, created_by_id, created_date, updated_by_id, updated_date) FROM stdin;
\.
--
-- Data for Name: coreApi_timeschedule; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_timeschedule" (id, shift_begin_time, shift_end_time, establishment_id, department_id, role_id, employee_id, created_by_id, created_date, updated_by_id, updated_date) FROM stdin;
\.
--
-- Data for Name: coreApi_timeschedulerule; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_timeschedulerule" (id, regular_value, overtime_value, doubletime_value, rate_overtime, rate_double, regular_week_hours, establishment_id, allow_clockin_before_shift, created_by_id, created_date, updated_by_id, updated_date) FROM stdin;
1 8 4 5 1.5 2 40 1 t 3 2011-11-29 15:33:00-08 3 2011-11-29 15:34:00-08
\.
--
-- Data for Name: coreApi_timesheetentry; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_timesheetentry" (id, employee_id, clock_in, clock_out, role_id, department_id, establishment_id, previous_shift_id, created_by_id, created_date, updated_by_id, updated_date, image) FROM stdin;
3 1 2011-12-15 10:52:00-08 2011-12-15 14:00:00-08 1 \N 1 \N 1 2011-12-15 10:53:00-08 1 2011-12-15 10:53:00-08
1 1 2011-11-29 06:00:00-08 2011-11-29 19:00:00-08 1 1 1 \N 3 2011-11-29 13:39:00-08 3 2011-11-29 13:39:00-08 \N
2 1 2011-11-28 07:00:00-08 2011-11-28 15:00:00-08 1 1 1 \N 3 2011-11-29 13:40:00-08 3 2011-11-29 13:40:00-08 \N
\.
--
-- Data for Name: coreApi_translationlanguage; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY "coreApi_translationlanguage" (id, string_id, language_id, default_value) FROM stdin;
\.
--
-- Data for Name: dashboard_picture; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY dashboard_picture (id, file, slug) FROM stdin;
\.
--
-- Data for Name: django_admin_log; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY django_admin_log (id, action_time, user_id, content_type_id, object_id, object_repr, action_flag, change_message) FROM stdin;
100 2011-12-15 12:40:34.187902-08 1 51 3 TimeSheetEntry object 1
102 2011-12-15 12:48:25.297344-08 1 51 3 TimeSheetEntry object 2 Changed establishment.
116 2011-12-19 16:40:39.584721-08 1 64 1 TranslationLanguage object 1
119 2011-12-22 10:42:57.507719-08 1 22 21 Applebees - Establishment 21!! 2 Changed name.
99 2011-12-08 17:33:32-08 1 51 1 TimeSheetEntry object 2 Changed clock_out.
97 2011-12-08 17:31:41-08 1 51 1 TimeSheetEntry object 2 Changed clock_in and clock_out.
96 2011-12-02 15:17:25-08 3 63 2 pay 1
95 2011-12-02 15:17:13-08 3 63 1 pay 1
94 2011-12-02 15:15:13-08 3 62 3 Espanol 1
104 2011-12-15 12:48:38.446166-08 1 51 1 TimeSheetEntry object 2 No fields changed.
106 2011-12-15 12:52:48.709807-08 1 51 1 Employee:1, 2011-12-15 08:00:00 to 2011-12-15 21:00:00 2 Changed clock_in and clock_out.
93 2011-12-02 15:14:10-08 3 62 2 Turkce 1
92 2011-11-30 10:56:48-08 2 46 2 Employee object 2 Changed first_name and last_name.
91 2011-11-30 10:56:13-08 2 69 1 EstablishmentEmployee object 2 Changed employee.
90 2011-11-30 10:56:03-08 2 69 2 EstablishmentEmployee object 1
89 2011-11-30 10:55:43-08 2 46 2 Employee object 1
88 2011-11-30 10:54:13-08 2 69 1 EstablishmentEmployee object 1
87 2011-11-29 17:33:38-08 3 50 1 TimeScheduleRule object 1
86 2011-11-29 17:31:46-08 3 12 1 State Tax 2 Changed name.
108 2011-12-15 12:56:12.486542-08 1 51 3 Employee:1, 2011-12-15 12:52:00 to 2011-12-15 04:00:00 2 Changed clock_out.
110 2011-12-15 12:59:33.723118-08 1 51 1 Employee:1, 2011-12-15 16:00:00 to 2011-12-15 21:00:00 2 Changed clock_in and clock_out.
112 2011-12-15 14:02:52.424522-08 1 36 1 ReceiptLine object 1
114 2011-12-15 14:33:32.33951-08 1 38 2 OrderHistory object 1
122 2011-12-22 11:48:23.68109-08 1 71 1 Report object 2 Changed timeFrameStart, timeFrameEnd, status and extra_params.
124 2012-01-03 14:48:50.480257-08 1 3 4 wa 3
125 2012-01-04 03:27:20.021132-08 1 31 23 hjkhkjhj 3
126 2012-01-04 03:27:20.041736-08 1 31 22 Wa2 3
127 2012-01-04 03:27:20.044964-08 1 31 21 t 3
85 2011-11-29 17:27:22-08 3 56 1 ProductModifier object 1
84 2011-11-29 17:23:58-08 3 48 1 Payment object 2 No fields changed.
83 2011-11-29 17:14:34-08 3 28 3 3 2 No fields changed.
82 2011-11-29 17:01:03-08 3 60 1 ModifierItem object 1
81 2011-11-29 16:56:59-08 3 59 1 ModifierIngredient object 1
80 2011-11-29 16:55:52-08 3 52 1 Lettuce 1
79 2011-11-29 16:55:00-08 3 41 1 GiftCard object 1
78 2011-11-29 16:46:27-08 3 46 1 Employee object 2 Changed department, active, address and roles.
77 2011-11-29 16:40:46-08 3 14 1 US Dollars 2 Changed symbol.
76 2011-11-29 16:34:56-08 3 57 1 Inventory object 1
40 2011-11-29 15:25:25-08 3 31 8 Brand Product 0 3
38 2011-11-29 15:24:30-08 3 45 1 Waiter 1
37 2011-11-29 15:23:38-08 3 43 1 Service Crew 1
36 2011-11-29 15:23:12-08 3 22 3 Establishment 0 3
29 2011-11-29 15:23:12-08 3 22 11 Establishment 3 3
31 2011-11-29 15:23:12-08 3 22 9 Establishment 1 3
32 2011-11-29 15:23:12-08 3 22 8 Establishment 0 3
33 2011-11-29 15:23:12-08 3 22 6 Establishment 3 3
34 2011-11-29 15:23:12-08 3 22 5 Establishment 2 3
30 2011-11-29 15:23:12-08 3 22 10 Establishment 2 3
35 2011-11-29 15:23:12-08 3 22 4 Establishment 1 3
28 2011-11-29 15:22:44-08 3 23 1 Employee Discount 1
27 2011-11-29 15:21:55-08 3 27 1 Matt Saricicek 1
26 2011-11-29 15:14:44-08 3 9 2 Address object 1
25 2011-11-29 15:11:10-08 3 11 5 Test Brand C 2 Changed name.
24 2011-11-29 15:10:58-08 3 11 3 Test Brand B 2 Changed name.
23 2011-11-29 15:10:38-08 3 10 1 Test Company 3 2 Changed name.
22 2011-11-29 15:10:31-08 3 10 3 Test Company 2 2 Changed active.
101 2011-12-15 12:46:41.922884-08 1 51 3 TimeSheetEntry object 2 Changed establishment.
103 2011-12-15 12:48:33.193838-08 1 51 2 TimeSheetEntry object 2 No fields changed.
105 2011-12-15 12:52:39.921257-08 1 51 2 Employee:1, 2011-12-15 09:00:00 to 2011-12-15 17:00:00 2 Changed clock_in and clock_out.
107 2011-12-15 12:53:26.716182-08 1 51 2 Employee:2, 2011-12-15 09:00:00 to 2011-12-15 17:00:00 2 Changed employee.
109 2011-12-15 12:56:40.120269-08 1 51 1 Employee:1, 2011-12-15 08:00:00 to 2011-12-15 05:00:00 2 Changed clock_out.
111 2011-12-15 12:59:52.236275-08 1 51 3 Employee:1, 2011-12-15 12:52:00 to 2011-12-15 16:00:00 2 Changed clock_out.
113 2011-12-15 14:03:03.74923-08 1 37 1 ReceiptSetting object 1
115 2011-12-15 14:33:40.620027-08 1 38 2 OrderHistory object 3
117 2011-12-19 16:40:46.953182-08 1 64 1 TranslationLanguage object 3
120 2011-12-22 10:43:06.440277-08 1 28 4 4 2 Changed establishment.
123 2011-12-22 11:49:04.459638-08 1 71 1 Report object 2 Changed status, extra_params and establishments.
98 2011-12-08 17:32:39-08 1 51 2 TimeSheetEntry object 2 Changed clock_out.
75 2011-11-29 16:33:58-08 3 40 4 Seamless Web 1
74 2011-11-29 16:33:18-08 3 40 3 Check 1
73 2011-11-29 16:32:57-08 3 40 2 Credit Card 1
72 2011-11-29 16:31:47-08 3 32 1 Front Station 2 Changed mac.
71 2011-11-29 16:31:38-08 3 32 1 Front Station 2 Changed devices.
70 2011-11-29 16:31:25-08 3 15 3 Scale 1
69 2011-11-29 16:30:41-08 3 32 1 Front Station 2 Changed name and devices.
68 2011-11-29 16:30:16-08 3 15 2 Card Swipe 1
67 2011-11-29 16:29:46-08 3 15 1 Front Printer 2 Changed name, mac and port.
66 2011-11-29 16:27:25-08 3 62 1 English 1
65 2011-11-29 15:41:17-08 3 30 1 Salads 2 Changed name.
64 2011-11-29 15:40:46-08 3 47 1 PayRate object 1
63 2011-11-29 15:40:06-08 3 51 2 TimeSheetEntry object 1
62 2011-11-29 15:39:31-08 3 51 1 TimeSheetEntry object 1
61 2011-11-29 15:38:37-08 3 35 1 OrderPrinting object 1
60 2011-11-29 15:35:32-08 3 48 1 Payment object 1
59 2011-11-29 15:34:31-08 3 40 1 Cash 1
58 2011-11-29 15:34:04-08 3 34 1 OrderItem object 1
57 2011-11-29 15:33:07-08 3 38 1 OrderHistory object 1
56 2011-11-29 15:32:38-08 3 28 1 1 3
55 2011-11-29 15:32:38-08 3 28 2 2 3
54 2011-11-29 15:32:23-08 3 28 3 3 1
53 2011-11-29 15:30:46-08 3 55 1 Ranch Sauce 2 Changed name.
52 2011-11-29 15:30:27-08 3 55 2 Chipotle Sauce 2 Changed name.
51 2011-11-29 15:30:14-08 3 54 1 Dressing 2 Changed name.
50 2011-11-29 15:29:18-08 3 10 1 Applebees HeadQuarters 2 Changed name.
48 2011-11-29 15:29:05-08 3 10 5 Test Company 1 3
49 2011-11-29 15:29:05-08 3 10 3 Test Company 2 3
47 2011-11-29 15:28:36-08 3 11 1 Applebees 2 Changed name.
46 2011-11-29 15:28:23-08 3 11 3 Test Brand B 3
45 2011-11-29 15:28:23-08 3 11 5 Test Brand C 3
44 2011-11-29 15:27:52-08 3 31 10 Oriental Chicken Salad 1
43 2011-11-29 15:27:32-08 3 29 2 Cold Foods 1
42 2011-11-29 15:25:25-08 3 31 4 Brand Product 0 3
39 2011-11-29 15:25:25-08 3 31 9 Brand Product 1 3
41 2011-11-29 15:25:25-08 3 31 5 Brand Product 1 3
21 2011-11-29 15:10:26-08 3 10 5 Test Company 1 2 Changed active.
20 2011-11-29 15:10:19-08 3 10 3 Test Company 2 2 Changed name.
19 2011-11-29 15:08:50-08 1 3 3 testCapture 2 Changed is_staff and user_permissions.
18 2011-11-29 15:08:25-08 1 3 3 testCapture 1
17 2011-11-22 16:48:09-08 1 46 1 Employee object 1
16 2011-11-22 12:19:49-08 2 56 2 ProductModifier object 1
15 2011-11-22 12:19:28-08 2 55 2 Cheese 1
14 2011-11-22 12:18:45-08 2 56 1 ProductModifier object 1
13 2011-11-22 12:17:57-08 2 55 1 Dressing 1
12 2011-11-22 12:17:34-08 2 54 1 modifier class 1
11 2011-11-22 09:54:28-08 2 34 3 OrderItem object 1
10 2011-11-22 09:53:47-08 2 34 2 OrderItem object 1
9 2011-11-22 09:52:43-08 2 31 1 Hamburger 2 Changed name and establishment.
118 2011-12-22 10:38:09.285706-08 1 28 4 4 1
121 2011-12-22 10:44:28.797424-08 1 28 4 4 2 Changed created_date.
8 2011-11-22 09:52:28-08 2 31 2 Cobb Salad 2 Changed establishment.
7 2011-11-22 09:51:29-08 2 34 1 OrderItem object 1
6 2011-11-22 09:50:35-08 2 32 1 station 1
5 2011-11-22 09:49:45-08 2 28 2 2 1
4 2011-11-22 09:48:22-08 2 28 1 1 1
3 2011-11-11 15:06:04-08 1 26 1 The Revel Round Table 1
2 2011-11-11 15:05:56-08 1 25 1 Rectangle 1
1 2011-11-11 14:57:06-08 1 24 1 TableSection object 1
\.
--
-- Data for Name: django_content_type; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY django_content_type (id, name, app_label, model) FROM stdin;
9 address coreApi address
65 api consumer coreApi apiconsumer
11 brand coreApi brand
10 company coreApi company
5 content type contenttypes contenttype
77 crontab djcelery crontabschedule
14 currency coreApi currency
27 customer coreApi customer
15 device coreApi device
16 device extra parameters coreApi deviceextraparameters
23 discount coreApi discount
68 drawercount coreApi drawercount
46 employee coreApi employee
43 employee department coreApi employeedepartment
22 establishment coreApi establishment
69 establishment employee coreApi establishmentemployee
41 gift card coreApi giftcard
2 group auth group
52 ingredient coreApi ingredient
76 interval djcelery intervalschedule
57 inventory coreApi inventory
62 language coreApi language
63 language string coreApi languagestring
8 log entry admin logentry
4 message auth message
70 migration history south migrationhistory
55 modifier coreApi modifier
54 modifier class coreApi modifierclass
59 modifier ingredient coreApi modifieringredient
58 modifier inventory coreApi modifierinventory
60 modifier item coreApi modifieritem
28 order coreApi order
38 order history coreApi orderhistory
34 order item coreApi orderitem
35 order printing coreApi orderprinting
48 payment coreApi payment
40 payment type coreApi paymenttype
66 payout coreApi payout
67 payout class coreApi payoutclass
47 pay rate coreApi payrate
79 periodic task djcelery periodictask
78 periodic tasks djcelery periodictasks
1 permission auth permission
44 permission coreApi permission
32 pos station coreApi posstation
31 product coreApi product
30 product category coreApi productcategory
29 product class coreApi productclass
53 product ingredient coreApi productingredient
56 product modifier coreApi productmodifier
36 receipt line coreApi receiptline
37 receipt setting coreApi receiptsetting
71 report reports report
42 rewards card coreApi rewardscard
45 role coreApi role
72 api access tastypie apiaccess
73 api key tastypie apikey
61 server settings coreApi serversettings
6 session sessions session
7 site sites site
21 social network coreApi socialnetwork
39 social network parameter coreApi socialnetworkparameter
33 special request coreApi specialrequest
19 surcharge coreApi surcharge
20 surcharge rates coreApi surchargerates
17 system setting coreApi systemsetting
18 system setting option coreApi systemsettingoption
26 table coreApi table
24 table section coreApi tablesection
25 table type coreApi tabletype
81 task djcelery taskstate
74 task meta djcelery taskmeta
75 taskset meta djcelery tasksetmeta
12 tax coreApi tax
13 tax rate coreApi taxrate
49 time schedule coreApi timeschedule
50 time schedule rule coreApi timeschedulerule
51 time sheet entry coreApi timesheetentry
64 translation language coreApi translationlanguage
3 user auth user
80 worker djcelery workerstate
\.
--
-- Data for Name: django_session; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY django_session (session_key, session_data, expire_date) FROM stdin;
daad392d8a62038390e6f0de14fb431a YzRkNTU3ZjdiN2FlNWM4M2JhYjQ2NGZmYjFmMGRhNTIyNWYyNzhhMTqAAn1xAShVEl9hdXRoX3Vz\nZXJfYmFja2VuZHECVSlkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZHED\nVQ1fYXV0aF91c2VyX2lkcQRLA3Uu\n 2011-12-13 21:46:19-08
294d843c3a3dc7d666c347ba011f964f MDVhMjkxODgxMzU0NTVmNmJkMzE4ZGU0OGZmMGJjY2RkMWUyYzlkNzqAAn1xAShVEl9hdXRoX3Vz\nZXJfYmFja2VuZHECVSlkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZHED\nVQ1fYXV0aF91c2VyX2lkcQRLAXUu\n 2011-12-06 16:47:34-08
4dbce420ee91da3a48d5e5b9edaf42b6 YzRkNTU3ZjdiN2FlNWM4M2JhYjQ2NGZmYjFmMGRhNTIyNWYyNzhhMTqAAn1xAShVEl9hdXRoX3Vz\nZXJfYmFja2VuZHECVSlkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZHED\nVQ1fYXV0aF91c2VyX2lkcQRLA3Uu\n 2011-12-13 15:09:07-08
5d0bc0f59c9ed872efbedc36014daa13 OTJkMjFmMmE0ZTA5MWFmN2U1ZDIwOTExMGNmNjU1Y2U2OTRkNzZmMjqAAn1xAS4=\n 2011-12-13 15:09:11-08
fa0ce8748f01824dba7587ab350d0f3e YWEzOGZiZTA5MjE0YWRlYWRjMjAzNjJkMTdiZGMzNzA2YTg1ZGY5MTqAAn1xAVUKdGVzdGNvb2tp\nZXECVQZ3b3JrZWRxA3Mu\n 2011-12-16 15:58:59-08
fcd97612d94d52e261acaf97cd00ba9f ZDdhMTMxYzJjNDg3ODhkMDI2OTk1MjhiZWJjNDVlMzExY2JiMTU0NTqAAn1xAShVEl9hdXRoX3Vz\nZXJfYmFja2VuZHECVSlkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZHED\nVQ1fYXV0aF91c2VyX2lkcQRLAnUu\n 2011-12-14 10:49:53-08
1b2254b41cc7c11cfdde0c921ccc7921 MDVhMjkxODgxMzU0NTVmNmJkMzE4ZGU0OGZmMGJjY2RkMWUyYzlkNzqAAn1xAShVEl9hdXRoX3Vz\nZXJfYmFja2VuZHECVSlkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZHED\nVQ1fYXV0aF91c2VyX2lkcQRLAXUu\n 2011-11-25 14:56:38-08
65f0710fdac87e19c619a0bd53bd76fe MDdmNjk5NzYxYTY3NjJjOTAwZDcyNzI2ZTM3NzhiOGVhNWE2ODA1NjqAAn1xAShVEl9hdXRoX3Vz\nZXJfYmFja2VuZHECVSdyZXZlbFYyLmRhc2hib2FyZC5iYWNrZW5kcy5FbWFpbEJhY2tlbmRxA1UN\nX2F1dGhfdXNlcl9pZHEESwF1Lg==\n 2012-01-09 10:10:16.276696-08
67842ea9fcb4ec6dd32a1529ff70f83c ZDdhMTMxYzJjNDg3ODhkMDI2OTk1MjhiZWJjNDVlMzExY2JiMTU0NTqAAn1xAShVEl9hdXRoX3Vz\nZXJfYmFja2VuZHECVSlkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZHED\nVQ1fYXV0aF91c2VyX2lkcQRLAnUu\n 2011-12-05 18:16:05-08
9ecc50d41c47c580c93a60086d90dd1d MDdmNjk5NzYxYTY3NjJjOTAwZDcyNzI2ZTM3NzhiOGVhNWE2ODA1NjqAAn1xAShVEl9hdXRoX3Vz\nZXJfYmFja2VuZHECVSdyZXZlbFYyLmRhc2hib2FyZC5iYWNrZW5kcy5FbWFpbEJhY2tlbmRxA1UN\nX2F1dGhfdXNlcl9pZHEESwF1Lg==\n 2012-01-12 17:17:06.360192-08
684aa4b6998583bf05227e3fe9f80206 MDVhMjkxODgxMzU0NTVmNmJkMzE4ZGU0OGZmMGJjY2RkMWUyYzlkNzqAAn1xAShVEl9hdXRoX3Vz\nZXJfYmFja2VuZHECVSlkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZHED\nVQ1fYXV0aF91c2VyX2lkcQRLAXUu\n 2011-12-20 13:58:15-08
82cee50d755bd5c64e5720b4cdfee73e YWEzOGZiZTA5MjE0YWRlYWRjMjAzNjJkMTdiZGMzNzA2YTg1ZGY5MTqAAn1xAVUKdGVzdGNvb2tp\nZXECVQZ3b3JrZWRxA3Mu\n 2011-12-19 15:44:42-08
08ef01c5822917877287ae7b6fee097f MDVhMjkxODgxMzU0NTVmNmJkMzE4ZGU0OGZmMGJjY2RkMWUyYzlkNzqAAn1xAShVEl9hdXRoX3Vz\nZXJfYmFja2VuZHECVSlkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZHED\nVQ1fYXV0aF91c2VyX2lkcQRLAXUu\n 2011-12-14 15:01:07-08
b143dc839571d7ea0165a5a290318dca YzRkNTU3ZjdiN2FlNWM4M2JhYjQ2NGZmYjFmMGRhNTIyNWYyNzhhMTqAAn1xAShVEl9hdXRoX3Vz\nZXJfYmFja2VuZHECVSlkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZHED\nVQ1fYXV0aF91c2VyX2lkcQRLA3Uu\n 2011-12-16 15:11:58-08
cec6eb54bb38d35336bde23d34a1ba71 MDVhMjkxODgxMzU0NTVmNmJkMzE4ZGU0OGZmMGJjY2RkMWUyYzlkNzqAAn1xAShVEl9hdXRoX3Vz\nZXJfYmFja2VuZHECVSlkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZHED\nVQ1fYXV0aF91c2VyX2lkcQRLAXUu\n 2011-12-12 14:28:30-08
8720ece1cd6554da9ad59d65fb69ddd7 MDdmNjk5NzYxYTY3NjJjOTAwZDcyNzI2ZTM3NzhiOGVhNWE2ODA1NjqAAn1xAShVEl9hdXRoX3Vz\nZXJfYmFja2VuZHECVSdyZXZlbFYyLmRhc2hib2FyZC5iYWNrZW5kcy5FbWFpbEJhY2tlbmRxA1UN\nX2F1dGhfdXNlcl9pZHEESwF1Lg==\n 2012-01-17 20:44:32.625279-08
3ae0bdfdaeddbdc297f0695d9a40c76a OTJkMjFmMmE0ZTA5MWFmN2U1ZDIwOTExMGNmNjU1Y2U2OTRkNzZmMjqAAn1xAS4=\n 2012-01-02 13:51:12.317307-08
3cea796d84893c6928b66ffac505f7dd OTJkMjFmMmE0ZTA5MWFmN2U1ZDIwOTExMGNmNjU1Y2U2OTRkNzZmMjqAAn1xAS4=\n 2012-01-02 13:57:14.31193-08
\.
--
-- Data for Name: django_site; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY django_site (id, domain, name) FROM stdin;
1 example.com example.com
\.
--
-- Data for Name: djcelery_crontabschedule; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY djcelery_crontabschedule (id, minute, hour, day_of_week) FROM stdin;
\.
--
-- Data for Name: djcelery_intervalschedule; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY djcelery_intervalschedule (id, every, period) FROM stdin;
\.
--
-- Data for Name: djcelery_periodictask; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY djcelery_periodictask (id, name, task, interval_id, crontab_id, args, kwargs, queue, exchange, routing_key, expires, enabled, last_run_at, total_run_count, date_changed) FROM stdin;
\.
--
-- Data for Name: djcelery_periodictasks; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY djcelery_periodictasks (ident, last_update) FROM stdin;
\.
--
-- Data for Name: djcelery_taskstate; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY djcelery_taskstate (id, state, task_id, name, tstamp, args, kwargs, eta, expires, result, traceback, runtime, retries, worker_id, hidden) FROM stdin;
\.
--
-- Data for Name: djcelery_workerstate; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY djcelery_workerstate (id, hostname, last_heartbeat) FROM stdin;
\.
--
-- Data for Name: reports_report; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY reports_report (id, report_type, "timeFrameStart", created_date, updated_date, data, status, "timeFrameEnd", processing_time, extra_params) FROM stdin;
1 2 2011-11-14 15:02:08-08 \N \N \\x5b7b2265737461626c6973686d656e74223a2035322c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2032312c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a20332c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a20342c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2031372c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2031382c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2031392c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2032302c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2034352c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2034362c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2034372c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2034382c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2034392c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2035302c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a20392c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2031302c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2031312c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a20312c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20312c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2031322c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2031332c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2031342c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2031352c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2031362c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a20352c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a20362c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a20382c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2034312c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2034322c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2034332c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2034342c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2032322c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2032332c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2032342c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2032352c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2035312c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2032362c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2032372c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d2c207b2265737461626c6973686d656e74223a2034302c202231312d31342d32303131223a20302c202231312d31352d32303131223a20302c202231312d31362d32303131223a20302c202231312d31372d32303131223a20302c202231312d31382d32303131223a20302c202231312d31392d32303131223a20302c202231312d32302d32303131223a20302c202231312d32312d32303131223a20307d5d 2 2011-11-22 15:02:08-08 \N [{"12-01-2011": 1, "11-30-2011": 0, "12-03-2011": 0, "12-04-2011": 0, "12-06-2011": 0, "12-02-2011": 0, "establishment": 21, "12-05-2011": 0}]
\.
--
-- Data for Name: reports_report_establishments; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY reports_report_establishments (id, report_id, establishment_id) FROM stdin;
4 1 1
5 1 3
6 1 4
7 1 5
8 1 6
9 1 8
10 1 9
11 1 10
12 1 11
13 1 12
14 1 13
15 1 14
16 1 15
17 1 16
18 1 17
19 1 18
20 1 19
21 1 20
22 1 21
23 1 22
24 1 23
25 1 24
26 1 25
27 1 26
28 1 27
29 1 40
30 1 41
31 1 42
32 1 43
33 1 44
34 1 45
35 1 46
36 1 47
37 1 48
38 1 49
39 1 50
40 1 51
41 1 52
\.
--
-- Data for Name: south_migrationhistory; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY south_migrationhistory (id, app_name, migration, applied) FROM stdin;
1 coreApi 0001_initial 2012-01-04 08:34:47.978236-08
2 coreApi 0002_load_fixtures 2012-01-04 08:40:38.633609-08
3 coreApi 0002_auto__add_field_establishmentemployee_comment 2012-01-04 08:59:30.245207-08
4 coreApi 0003_auto__del_field_establishmentemployee_comment 2012-01-04 08:59:30.593803-08
5 coreApi 0004_auto__add_field_timesheetentry_image__chg_field_timesheetentry_departm 2012-01-04 08:59:45.512626-08
6 coreApi 0005_auto__chg_field_modifierclass_sort__chg_field_modifierclass_quantity_a 2012-01-04 08:59:45.523774-08
7 coreApi 0006_auto__add_field_systemsettingoption_user_friendly_name__add_field_syst 2012-01-04 08:59:45.528386-08
8 coreApi 0006_auto__add_field_tabletype_width__add_field_tabletype_height 2012-01-04 08:59:45.536658-08
9 coreApi 0007_auto 2012-01-04 08:59:45.542268-08
10 coreApi 0007_auto__add_field_translationlanguage_default_value__del_field_languages 2012-01-04 08:59:45.560046-08
11 coreApi 0008_auto__add_field_productcategory_establishment 2012-01-04 08:59:45.567765-08
12 coreApi 0008_auto__chg_field_systemsettingoption_parameter_value__chg_field_systems 2012-01-04 08:59:45.572936-08
13 coreApi 0009_auto__add_field_tabletype_width__add_field_tabletype_height__add_field 2012-01-04 08:59:45.582518-08
14 coreApi 0009_auto__chg_field_productcategory_brand__chg_field_productcategory_estab 2012-01-04 08:59:45.590612-08
15 coreApi 0010_auto__del_field_productcategory_establishment 2012-01-04 08:59:45.607663-08
16 coreApi 0011_auto__add_field_productcategory_establishment 2012-01-04 08:59:45.616038-08
17 coreApi 0012_auto__del_field_tabletype_height__del_field_tabletype_width 2012-01-04 08:59:45.62145-08
18 coreApi 0013_auto__add_field_tabletype_width__add_field_tabletype_height 2012-01-04 08:59:45.639515-08
19 coreApi 0014_auto__del_field_tabletype_height__del_field_tabletype_width 2012-01-04 08:59:45.644384-08
20 coreApi 0015_auto__add_field_tabletype_width__add_field_tabletype_height__add_field 2012-01-04 08:59:45.650339-08
\.
--
-- Data for Name: tastypie_apiaccess; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY tastypie_apiaccess (id, identifier, url, request_method, accessed) FROM stdin;
\.
--
-- Data for Name: tastypie_apikey; Type: TABLE DATA; Schema: public; Owner: django_pwny
--
COPY tastypie_apikey (id, user_id, key, created) FROM stdin;
\.
--
-- Name: auth_group_name_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY auth_group
ADD CONSTRAINT auth_group_name_key UNIQUE (name);
--
-- Name: auth_group_permissions_group_id_permission_id_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY auth_group_permissions
ADD CONSTRAINT auth_group_permissions_group_id_permission_id_key UNIQUE (group_id, permission_id);
--
-- Name: auth_group_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY auth_group_permissions
ADD CONSTRAINT auth_group_permissions_pkey PRIMARY KEY (id);
--
-- Name: auth_group_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY auth_group
ADD CONSTRAINT auth_group_pkey PRIMARY KEY (id);
--
-- Name: auth_message_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY auth_message
ADD CONSTRAINT auth_message_pkey PRIMARY KEY (id);
--
-- Name: auth_permission_content_type_id_codename_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY auth_permission
ADD CONSTRAINT auth_permission_content_type_id_codename_key UNIQUE (content_type_id, codename);
--
-- Name: auth_permission_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY auth_permission
ADD CONSTRAINT auth_permission_pkey PRIMARY KEY (id);
--
-- Name: auth_user_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY auth_user_groups
ADD CONSTRAINT auth_user_groups_pkey PRIMARY KEY (id);
--
-- Name: auth_user_groups_user_id_group_id_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY auth_user_groups
ADD CONSTRAINT auth_user_groups_user_id_group_id_key UNIQUE (user_id, group_id);
--
-- Name: auth_user_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY auth_user
ADD CONSTRAINT auth_user_pkey PRIMARY KEY (id);
--
-- Name: auth_user_user_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY auth_user_user_permissions
ADD CONSTRAINT auth_user_user_permissions_pkey PRIMARY KEY (id);
--
-- Name: auth_user_user_permissions_user_id_permission_id_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY auth_user_user_permissions
ADD CONSTRAINT auth_user_user_permissions_user_id_permission_id_key UNIQUE (user_id, permission_id);
--
-- Name: auth_user_username_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY auth_user
ADD CONSTRAINT auth_user_username_key UNIQUE (username);
--
-- Name: celery_taskmeta_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY celery_taskmeta
ADD CONSTRAINT celery_taskmeta_pkey PRIMARY KEY (id);
--
-- Name: celery_taskmeta_task_id_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY celery_taskmeta
ADD CONSTRAINT celery_taskmeta_task_id_key UNIQUE (task_id);
--
-- Name: celery_tasksetmeta_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY celery_tasksetmeta
ADD CONSTRAINT celery_tasksetmeta_pkey PRIMARY KEY (id);
--
-- Name: celery_tasksetmeta_taskset_id_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY celery_tasksetmeta
ADD CONSTRAINT celery_tasksetmeta_taskset_id_key UNIQUE (taskset_id);
--
-- Name: coreApi_address_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_address"
ADD CONSTRAINT "coreApi_address_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_apiconsumer_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_apiconsumer"
ADD CONSTRAINT "coreApi_apiconsumer_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_brand_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_brand"
ADD CONSTRAINT "coreApi_brand_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_company_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_company"
ADD CONSTRAINT "coreApi_company_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_currency_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_currency"
ADD CONSTRAINT "coreApi_currency_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_customer_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_customer"
ADD CONSTRAINT "coreApi_customer_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_device_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_device"
ADD CONSTRAINT "coreApi_device_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_deviceextraparameters_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_deviceextraparameters"
ADD CONSTRAINT "coreApi_deviceextraparameters_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_discount_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_discount"
ADD CONSTRAINT "coreApi_discount_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_drawercount_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_drawercount"
ADD CONSTRAINT "coreApi_drawercount_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_employee_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_employee"
ADD CONSTRAINT "coreApi_employee_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_employee_roles_employee_id_9f8bdfc_uniq; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_employee_roles"
ADD CONSTRAINT "coreApi_employee_roles_employee_id_9f8bdfc_uniq" UNIQUE (employee_id, role_id);
--
-- Name: coreApi_employee_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_employee_roles"
ADD CONSTRAINT "coreApi_employee_roles_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_employeedepartment_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_employeedepartment"
ADD CONSTRAINT "coreApi_employeedepartment_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_establishment_devices_establishment_id_692a7608_uniq; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_establishment_devices"
ADD CONSTRAINT "coreApi_establishment_devices_establishment_id_692a7608_uniq" UNIQUE (establishment_id, device_id);
--
-- Name: coreApi_establishment_devices_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_establishment_devices"
ADD CONSTRAINT "coreApi_establishment_devices_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_establishment_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_establishment"
ADD CONSTRAINT "coreApi_establishment_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_establishment_settings_id_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_establishment"
ADD CONSTRAINT "coreApi_establishment_settings_id_key" UNIQUE (settings_id);
--
-- Name: coreApi_establishment_social_net_establishment_id_14220ae4_uniq; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_establishment_social_networks"
ADD CONSTRAINT "coreApi_establishment_social_net_establishment_id_14220ae4_uniq" UNIQUE (establishment_id, socialnetwork_id);
--
-- Name: coreApi_establishment_social_networks_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_establishment_social_networks"
ADD CONSTRAINT "coreApi_establishment_social_networks_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_establishment_tax_establishment_id_4add8a22_uniq; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_establishment_tax"
ADD CONSTRAINT "coreApi_establishment_tax_establishment_id_4add8a22_uniq" UNIQUE (establishment_id, tax_id);
--
-- Name: coreApi_establishment_tax_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_establishment_tax"
ADD CONSTRAINT "coreApi_establishment_tax_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_establishmentemployee_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_establishmentemployee"
ADD CONSTRAINT "coreApi_establishmentemployee_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_giftcard_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_giftcard"
ADD CONSTRAINT "coreApi_giftcard_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_ingredient_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_ingredient"
ADD CONSTRAINT "coreApi_ingredient_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_inventory_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_inventory"
ADD CONSTRAINT "coreApi_inventory_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_language_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_language"
ADD CONSTRAINT "coreApi_language_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_languagestring_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_languagestring"
ADD CONSTRAINT "coreApi_languagestring_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_modifier_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_modifier"
ADD CONSTRAINT "coreApi_modifier_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_modifier_uuid_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_modifier"
ADD CONSTRAINT "coreApi_modifier_uuid_key" UNIQUE (uuid);
--
-- Name: coreApi_modifierclass_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_modifierclass"
ADD CONSTRAINT "coreApi_modifierclass_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_modifieringredient_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_modifieringredient"
ADD CONSTRAINT "coreApi_modifieringredient_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_modifierinventory_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_modifierinventory"
ADD CONSTRAINT "coreApi_modifierinventory_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_modifieritem_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_modifieritem"
ADD CONSTRAINT "coreApi_modifieritem_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_modifieritem_uuid_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_modifieritem"
ADD CONSTRAINT "coreApi_modifieritem_uuid_key" UNIQUE (uuid);
--
-- Name: coreApi_order_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_order"
ADD CONSTRAINT "coreApi_order_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_order_uuid_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_order"
ADD CONSTRAINT "coreApi_order_uuid_key" UNIQUE (uuid);
--
-- Name: coreApi_orderhistory_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_orderhistory"
ADD CONSTRAINT "coreApi_orderhistory_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_orderitem_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_orderitem"
ADD CONSTRAINT "coreApi_orderitem_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_orderitem_uuid_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_orderitem"
ADD CONSTRAINT "coreApi_orderitem_uuid_key" UNIQUE (uuid);
--
-- Name: coreApi_orderprinting_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_orderprinting"
ADD CONSTRAINT "coreApi_orderprinting_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_payment_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_payment"
ADD CONSTRAINT "coreApi_payment_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_paymenttype_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_paymenttype"
ADD CONSTRAINT "coreApi_paymenttype_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_payout_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_payout"
ADD CONSTRAINT "coreApi_payout_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_payoutclass_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_payoutclass"
ADD CONSTRAINT "coreApi_payoutclass_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_payrate_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_payrate"
ADD CONSTRAINT "coreApi_payrate_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_permission_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_permission"
ADD CONSTRAINT "coreApi_permission_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_posstation_devices_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_posstation_devices"
ADD CONSTRAINT "coreApi_posstation_devices_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_posstation_devices_posstation_id_37981e90_uniq; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_posstation_devices"
ADD CONSTRAINT "coreApi_posstation_devices_posstation_id_37981e90_uniq" UNIQUE (posstation_id, device_id);
--
-- Name: coreApi_posstation_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_posstation"
ADD CONSTRAINT "coreApi_posstation_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_posstation_uuid_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_posstation"
ADD CONSTRAINT "coreApi_posstation_uuid_key" UNIQUE (uuid);
--
-- Name: coreApi_product_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_product"
ADD CONSTRAINT "coreApi_product_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_product_uuid_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_product"
ADD CONSTRAINT "coreApi_product_uuid_key" UNIQUE (uuid);
--
-- Name: coreApi_productcategory_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_productcategory"
ADD CONSTRAINT "coreApi_productcategory_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_productclass_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_productclass"
ADD CONSTRAINT "coreApi_productclass_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_productingredient_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_productingredient"
ADD CONSTRAINT "coreApi_productingredient_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_productmodifier_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_productmodifier"
ADD CONSTRAINT "coreApi_productmodifier_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_receiptline_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_receiptline"
ADD CONSTRAINT "coreApi_receiptline_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_receiptsetting_lines_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_receiptsetting_lines"
ADD CONSTRAINT "coreApi_receiptsetting_lines_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_receiptsetting_lines_receiptsetting_id_3e99528b_uniq; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_receiptsetting_lines"
ADD CONSTRAINT "coreApi_receiptsetting_lines_receiptsetting_id_3e99528b_uniq" UNIQUE (receiptsetting_id, receiptline_id);
--
-- Name: coreApi_receiptsetting_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_receiptsetting"
ADD CONSTRAINT "coreApi_receiptsetting_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_rewardscard_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_rewardscard"
ADD CONSTRAINT "coreApi_rewardscard_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_role_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_role_permissions"
ADD CONSTRAINT "coreApi_role_permissions_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_role_permissions_role_id_1d4cc07a_uniq; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_role_permissions"
ADD CONSTRAINT "coreApi_role_permissions_role_id_1d4cc07a_uniq" UNIQUE (role_id, permission_id);
--
-- Name: coreApi_role_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_role"
ADD CONSTRAINT "coreApi_role_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_serversettings_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_serversettings"
ADD CONSTRAINT "coreApi_serversettings_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_socialnetwork_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_socialnetwork"
ADD CONSTRAINT "coreApi_socialnetwork_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_socialnetworkparameter_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_socialnetworkparameter"
ADD CONSTRAINT "coreApi_socialnetworkparameter_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_specialrequest_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_specialrequest"
ADD CONSTRAINT "coreApi_specialrequest_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_surcharge_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_surcharge"
ADD CONSTRAINT "coreApi_surcharge_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_surchargerates_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_surchargerates"
ADD CONSTRAINT "coreApi_surchargerates_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_systemsetting_extra_item_systemsetting_id_3b3d6e39_uniq; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_systemsetting_extra_items_printers"
ADD CONSTRAINT "coreApi_systemsetting_extra_item_systemsetting_id_3b3d6e39_uniq" UNIQUE (systemsetting_id, device_id);
--
-- Name: coreApi_systemsetting_extra_items_printers_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_systemsetting_extra_items_printers"
ADD CONSTRAINT "coreApi_systemsetting_extra_items_printers_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_systemsetting_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_systemsetting"
ADD CONSTRAINT "coreApi_systemsetting_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_systemsettingoption_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_systemsettingoption"
ADD CONSTRAINT "coreApi_systemsettingoption_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_table_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_table"
ADD CONSTRAINT "coreApi_table_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_tablesection_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_tablesection"
ADD CONSTRAINT "coreApi_tablesection_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_tabletype_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_tabletype"
ADD CONSTRAINT "coreApi_tabletype_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_tax_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_tax"
ADD CONSTRAINT "coreApi_tax_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_taxrate_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_taxrate"
ADD CONSTRAINT "coreApi_taxrate_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_timeschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_timeschedule"
ADD CONSTRAINT "coreApi_timeschedule_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_timeschedulerule_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_timeschedulerule"
ADD CONSTRAINT "coreApi_timeschedulerule_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_timesheetentry_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_timesheetentry"
ADD CONSTRAINT "coreApi_timesheetentry_pkey" PRIMARY KEY (id);
--
-- Name: coreApi_translationlanguage_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY "coreApi_translationlanguage"
ADD CONSTRAINT "coreApi_translationlanguage_pkey" PRIMARY KEY (id);
--
-- Name: dashboard_picture_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY dashboard_picture
ADD CONSTRAINT dashboard_picture_pkey PRIMARY KEY (id);
--
-- Name: django_admin_log_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY django_admin_log
ADD CONSTRAINT django_admin_log_pkey PRIMARY KEY (id);
--
-- Name: django_content_type_app_label_model_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY django_content_type
ADD CONSTRAINT django_content_type_app_label_model_key UNIQUE (app_label, model);
--
-- Name: django_content_type_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY django_content_type
ADD CONSTRAINT django_content_type_pkey PRIMARY KEY (id);
--
-- Name: django_session_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY django_session
ADD CONSTRAINT django_session_pkey PRIMARY KEY (session_key);
--
-- Name: django_site_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY django_site
ADD CONSTRAINT django_site_pkey PRIMARY KEY (id);
--
-- Name: djcelery_crontabschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY djcelery_crontabschedule
ADD CONSTRAINT djcelery_crontabschedule_pkey PRIMARY KEY (id);
--
-- Name: djcelery_intervalschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY djcelery_intervalschedule
ADD CONSTRAINT djcelery_intervalschedule_pkey PRIMARY KEY (id);
--
-- Name: djcelery_periodictask_name_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY djcelery_periodictask
ADD CONSTRAINT djcelery_periodictask_name_key UNIQUE (name);
--
-- Name: djcelery_periodictask_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY djcelery_periodictask
ADD CONSTRAINT djcelery_periodictask_pkey PRIMARY KEY (id);
--
-- Name: djcelery_periodictasks_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY djcelery_periodictasks
ADD CONSTRAINT djcelery_periodictasks_pkey PRIMARY KEY (ident);
--
-- Name: djcelery_taskstate_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY djcelery_taskstate
ADD CONSTRAINT djcelery_taskstate_pkey PRIMARY KEY (id);
--
-- Name: djcelery_taskstate_task_id_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY djcelery_taskstate
ADD CONSTRAINT djcelery_taskstate_task_id_key UNIQUE (task_id);
--
-- Name: djcelery_workerstate_hostname_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY djcelery_workerstate
ADD CONSTRAINT djcelery_workerstate_hostname_key UNIQUE (hostname);
--
-- Name: djcelery_workerstate_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY djcelery_workerstate
ADD CONSTRAINT djcelery_workerstate_pkey PRIMARY KEY (id);
--
-- Name: reports_report_establishments_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY reports_report_establishments
ADD CONSTRAINT reports_report_establishments_pkey PRIMARY KEY (id);
--
-- Name: reports_report_establishments_report_id_4b226ad6_uniq; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY reports_report_establishments
ADD CONSTRAINT reports_report_establishments_report_id_4b226ad6_uniq UNIQUE (report_id, establishment_id);
--
-- Name: reports_report_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY reports_report
ADD CONSTRAINT reports_report_pkey PRIMARY KEY (id);
--
-- Name: south_migrationhistory_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY south_migrationhistory
ADD CONSTRAINT south_migrationhistory_pkey PRIMARY KEY (id);
--
-- Name: tastypie_apiaccess_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY tastypie_apiaccess
ADD CONSTRAINT tastypie_apiaccess_pkey PRIMARY KEY (id);
--
-- Name: tastypie_apikey_pkey; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY tastypie_apikey
ADD CONSTRAINT tastypie_apikey_pkey PRIMARY KEY (id);
--
-- Name: tastypie_apikey_user_id_key; Type: CONSTRAINT; Schema: public; Owner: django_pwny; Tablespace:
--
ALTER TABLE ONLY tastypie_apikey
ADD CONSTRAINT tastypie_apikey_user_id_key UNIQUE (user_id);
--
-- Name: auth_group_permissions_group_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX auth_group_permissions_group_id ON auth_group_permissions USING btree (group_id);
--
-- Name: auth_group_permissions_permission_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX auth_group_permissions_permission_id ON auth_group_permissions USING btree (permission_id);
--
-- Name: auth_message_user_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX auth_message_user_id ON auth_message USING btree (user_id);
--
-- Name: auth_permission_content_type_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX auth_permission_content_type_id ON auth_permission USING btree (content_type_id);
--
-- Name: auth_user_groups_group_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX auth_user_groups_group_id ON auth_user_groups USING btree (group_id);
--
-- Name: auth_user_groups_user_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX auth_user_groups_user_id ON auth_user_groups USING btree (user_id);
--
-- Name: auth_user_user_permissions_permission_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX auth_user_user_permissions_permission_id ON auth_user_user_permissions USING btree (permission_id);
--
-- Name: auth_user_user_permissions_user_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX auth_user_user_permissions_user_id ON auth_user_user_permissions USING btree (user_id);
--
-- Name: coreApi_address_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_address_created_by_id" ON "coreApi_address" USING btree (created_by_id);
--
-- Name: coreApi_address_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_address_updated_by_id" ON "coreApi_address" USING btree (updated_by_id);
--
-- Name: coreApi_apiconsumer_associated_company_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_apiconsumer_associated_company_id" ON "coreApi_apiconsumer" USING btree (associated_company_id);
--
-- Name: coreApi_apiconsumer_associated_user_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_apiconsumer_associated_user_id" ON "coreApi_apiconsumer" USING btree (associated_user_id);
--
-- Name: coreApi_brand_company_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_brand_company_id" ON "coreApi_brand" USING btree (company_id);
--
-- Name: coreApi_brand_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_brand_created_by_id" ON "coreApi_brand" USING btree (created_by_id);
--
-- Name: coreApi_brand_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_brand_updated_by_id" ON "coreApi_brand" USING btree (updated_by_id);
--
-- Name: coreApi_company_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_company_created_by_id" ON "coreApi_company" USING btree (created_by_id);
--
-- Name: coreApi_company_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_company_updated_by_id" ON "coreApi_company" USING btree (updated_by_id);
--
-- Name: coreApi_customer_address_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_customer_address_id" ON "coreApi_customer" USING btree (address_id);
--
-- Name: coreApi_customer_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_customer_created_by_id" ON "coreApi_customer" USING btree (created_by_id);
--
-- Name: coreApi_customer_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_customer_updated_by_id" ON "coreApi_customer" USING btree (updated_by_id);
--
-- Name: coreApi_deviceextraparameters_device_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_deviceextraparameters_device_id" ON "coreApi_deviceextraparameters" USING btree (device_id);
--
-- Name: coreApi_discount_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_discount_created_by_id" ON "coreApi_discount" USING btree (created_by_id);
--
-- Name: coreApi_discount_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_discount_establishment_id" ON "coreApi_discount" USING btree (establishment_id);
--
-- Name: coreApi_discount_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_discount_updated_by_id" ON "coreApi_discount" USING btree (updated_by_id);
--
-- Name: coreApi_drawercount_counted_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_drawercount_counted_by_id" ON "coreApi_drawercount" USING btree (counted_by_id);
--
-- Name: coreApi_drawercount_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_drawercount_establishment_id" ON "coreApi_drawercount" USING btree (establishment_id);
--
-- Name: coreApi_drawercount_station_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_drawercount_station_id" ON "coreApi_drawercount" USING btree (station_id);
--
-- Name: coreApi_employee_address_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_employee_address_id" ON "coreApi_employee" USING btree (address_id);
--
-- Name: coreApi_employee_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_employee_created_by_id" ON "coreApi_employee" USING btree (created_by_id);
--
-- Name: coreApi_employee_department_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_employee_department_id" ON "coreApi_employee" USING btree (department_id);
--
-- Name: coreApi_employee_roles_employee_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_employee_roles_employee_id" ON "coreApi_employee_roles" USING btree (employee_id);
--
-- Name: coreApi_employee_roles_role_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_employee_roles_role_id" ON "coreApi_employee_roles" USING btree (role_id);
--
-- Name: coreApi_employee_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_employee_updated_by_id" ON "coreApi_employee" USING btree (updated_by_id);
--
-- Name: coreApi_establishment_address_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_establishment_address_id" ON "coreApi_establishment" USING btree (address_id);
--
-- Name: coreApi_establishment_brand_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_establishment_brand_id" ON "coreApi_establishment" USING btree (brand_id);
--
-- Name: coreApi_establishment_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_establishment_created_by_id" ON "coreApi_establishment" USING btree (created_by_id);
--
-- Name: coreApi_establishment_currency_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_establishment_currency_id" ON "coreApi_establishment" USING btree (currency_id);
--
-- Name: coreApi_establishment_devices_device_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_establishment_devices_device_id" ON "coreApi_establishment_devices" USING btree (device_id);
--
-- Name: coreApi_establishment_devices_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_establishment_devices_establishment_id" ON "coreApi_establishment_devices" USING btree (establishment_id);
--
-- Name: coreApi_establishment_manager_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_establishment_manager_id" ON "coreApi_establishment" USING btree (manager_id);
--
-- Name: coreApi_establishment_social_networks_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_establishment_social_networks_establishment_id" ON "coreApi_establishment_social_networks" USING btree (establishment_id);
--
-- Name: coreApi_establishment_social_networks_socialnetwork_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_establishment_social_networks_socialnetwork_id" ON "coreApi_establishment_social_networks" USING btree (socialnetwork_id);
--
-- Name: coreApi_establishment_surcharge_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_establishment_surcharge_id" ON "coreApi_establishment" USING btree (surcharge_id);
--
-- Name: coreApi_establishment_tax_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_establishment_tax_establishment_id" ON "coreApi_establishment_tax" USING btree (establishment_id);
--
-- Name: coreApi_establishment_tax_tax_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_establishment_tax_tax_id" ON "coreApi_establishment_tax" USING btree (tax_id);
--
-- Name: coreApi_establishment_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_establishment_updated_by_id" ON "coreApi_establishment" USING btree (updated_by_id);
--
-- Name: coreApi_establishmentemployee_employee_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_establishmentemployee_employee_id" ON "coreApi_establishmentemployee" USING btree (employee_id);
--
-- Name: coreApi_establishmentemployee_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_establishmentemployee_establishment_id" ON "coreApi_establishmentemployee" USING btree (establishment_id);
--
-- Name: coreApi_giftcard_address_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_giftcard_address_id" ON "coreApi_giftcard" USING btree (address_id);
--
-- Name: coreApi_giftcard_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_giftcard_created_by_id" ON "coreApi_giftcard" USING btree (created_by_id);
--
-- Name: coreApi_giftcard_customer_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_giftcard_customer_id" ON "coreApi_giftcard" USING btree (customer_id);
--
-- Name: coreApi_giftcard_payment_type_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_giftcard_payment_type_id" ON "coreApi_giftcard" USING btree (payment_type_id);
--
-- Name: coreApi_giftcard_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_giftcard_updated_by_id" ON "coreApi_giftcard" USING btree (updated_by_id);
--
-- Name: coreApi_ingredient_brand_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_ingredient_brand_id" ON "coreApi_ingredient" USING btree (brand_id);
--
-- Name: coreApi_ingredient_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_ingredient_created_by_id" ON "coreApi_ingredient" USING btree (created_by_id);
--
-- Name: coreApi_ingredient_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_ingredient_establishment_id" ON "coreApi_ingredient" USING btree (establishment_id);
--
-- Name: coreApi_ingredient_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_ingredient_updated_by_id" ON "coreApi_ingredient" USING btree (updated_by_id);
--
-- Name: coreApi_inventory_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_inventory_created_by_id" ON "coreApi_inventory" USING btree (created_by_id);
--
-- Name: coreApi_inventory_product_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_inventory_product_id" ON "coreApi_inventory" USING btree (product_id);
--
-- Name: coreApi_inventory_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_inventory_updated_by_id" ON "coreApi_inventory" USING btree (updated_by_id);
--
-- Name: coreApi_modifier_brand_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifier_brand_id" ON "coreApi_modifier" USING btree (brand_id);
--
-- Name: coreApi_modifier_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifier_created_by_id" ON "coreApi_modifier" USING btree (created_by_id);
--
-- Name: coreApi_modifier_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifier_establishment_id" ON "coreApi_modifier" USING btree (establishment_id);
--
-- Name: coreApi_modifier_modifierClass_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifier_modifierClass_id" ON "coreApi_modifier" USING btree ("modifierClass_id");
--
-- Name: coreApi_modifier_parent_modifier_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifier_parent_modifier_id" ON "coreApi_modifier" USING btree (parent_modifier_id);
--
-- Name: coreApi_modifier_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifier_updated_by_id" ON "coreApi_modifier" USING btree (updated_by_id);
--
-- Name: coreApi_modifierclass_brand_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifierclass_brand_id" ON "coreApi_modifierclass" USING btree (brand_id);
--
-- Name: coreApi_modifierclass_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifierclass_created_by_id" ON "coreApi_modifierclass" USING btree (created_by_id);
--
-- Name: coreApi_modifierclass_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifierclass_establishment_id" ON "coreApi_modifierclass" USING btree (establishment_id);
--
-- Name: coreApi_modifierclass_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifierclass_updated_by_id" ON "coreApi_modifierclass" USING btree (updated_by_id);
--
-- Name: coreApi_modifieringredient_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifieringredient_created_by_id" ON "coreApi_modifieringredient" USING btree (created_by_id);
--
-- Name: coreApi_modifieringredient_ingredient_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifieringredient_ingredient_id" ON "coreApi_modifieringredient" USING btree (ingredient_id);
--
-- Name: coreApi_modifieringredient_modifier_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifieringredient_modifier_id" ON "coreApi_modifieringredient" USING btree (modifier_id);
--
-- Name: coreApi_modifieringredient_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifieringredient_updated_by_id" ON "coreApi_modifieringredient" USING btree (updated_by_id);
--
-- Name: coreApi_modifierinventory_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifierinventory_created_by_id" ON "coreApi_modifierinventory" USING btree (created_by_id);
--
-- Name: coreApi_modifierinventory_modifier_in_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifierinventory_modifier_in_establishment_id" ON "coreApi_modifierinventory" USING btree (modifier_in_establishment_id);
--
-- Name: coreApi_modifierinventory_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifierinventory_updated_by_id" ON "coreApi_modifierinventory" USING btree (updated_by_id);
--
-- Name: coreApi_modifieritem_modifier_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifieritem_modifier_id" ON "coreApi_modifieritem" USING btree (modifier_id);
--
-- Name: coreApi_modifieritem_order_item_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_modifieritem_order_item_id" ON "coreApi_modifieritem" USING btree (order_item_id);
--
-- Name: coreApi_order_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_order_created_by_id" ON "coreApi_order" USING btree (created_by_id);
--
-- Name: coreApi_order_customer_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_order_customer_id" ON "coreApi_order" USING btree (customer_id);
--
-- Name: coreApi_order_discount_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_order_discount_id" ON "coreApi_order" USING btree (discount_id);
--
-- Name: coreApi_order_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_order_establishment_id" ON "coreApi_order" USING btree (establishment_id);
--
-- Name: coreApi_order_table_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_order_table_id" ON "coreApi_order" USING btree (table_id);
--
-- Name: coreApi_order_table_owner_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_order_table_owner_id" ON "coreApi_order" USING btree (table_owner_id);
--
-- Name: coreApi_order_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_order_updated_by_id" ON "coreApi_order" USING btree (updated_by_id);
--
-- Name: coreApi_orderhistory_order_closed_at_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_orderhistory_order_closed_at_id" ON "coreApi_orderhistory" USING btree (order_closed_at_id);
--
-- Name: coreApi_orderhistory_order_closed_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_orderhistory_order_closed_by_id" ON "coreApi_orderhistory" USING btree (order_closed_by_id);
--
-- Name: coreApi_orderhistory_order_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_orderhistory_order_id" ON "coreApi_orderhistory" USING btree (order_id);
--
-- Name: coreApi_orderhistory_order_opened_at_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_orderhistory_order_opened_at_id" ON "coreApi_orderhistory" USING btree (order_opened_at_id);
--
-- Name: coreApi_orderhistory_order_opened_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_orderhistory_order_opened_by_id" ON "coreApi_orderhistory" USING btree (order_opened_by_id);
--
-- Name: coreApi_orderitem_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_orderitem_created_by_id" ON "coreApi_orderitem" USING btree (created_by_id);
--
-- Name: coreApi_orderitem_discount_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_orderitem_discount_id" ON "coreApi_orderitem" USING btree (discount_id);
--
-- Name: coreApi_orderitem_order_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_orderitem_order_id" ON "coreApi_orderitem" USING btree (order_id);
--
-- Name: coreApi_orderitem_product_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_orderitem_product_id" ON "coreApi_orderitem" USING btree (product_id);
--
-- Name: coreApi_orderitem_station_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_orderitem_station_id" ON "coreApi_orderitem" USING btree (station_id);
--
-- Name: coreApi_orderitem_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_orderitem_updated_by_id" ON "coreApi_orderitem" USING btree (updated_by_id);
--
-- Name: coreApi_orderitem_voided_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_orderitem_voided_by_id" ON "coreApi_orderitem" USING btree (voided_by_id);
--
-- Name: coreApi_orderitem_voided_date_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_orderitem_voided_date_id" ON "coreApi_orderitem" USING btree (voided_date_id);
--
-- Name: coreApi_orderprinting_order_item_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_orderprinting_order_item_id" ON "coreApi_orderprinting" USING btree (order_item_id);
--
-- Name: coreApi_orderprinting_printer_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_orderprinting_printer_id" ON "coreApi_orderprinting" USING btree (printer_id);
--
-- Name: coreApi_payment_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payment_created_by_id" ON "coreApi_payment" USING btree (created_by_id);
--
-- Name: coreApi_payment_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payment_establishment_id" ON "coreApi_payment" USING btree (establishment_id);
--
-- Name: coreApi_payment_order_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payment_order_id" ON "coreApi_payment" USING btree (order_id);
--
-- Name: coreApi_payment_payment_type_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payment_payment_type_id" ON "coreApi_payment" USING btree (payment_type_id);
--
-- Name: coreApi_payment_reverses_payment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payment_reverses_payment_id" ON "coreApi_payment" USING btree (reverses_payment_id);
--
-- Name: coreApi_payment_station_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payment_station_id" ON "coreApi_payment" USING btree (station_id);
--
-- Name: coreApi_payment_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payment_updated_by_id" ON "coreApi_payment" USING btree (updated_by_id);
--
-- Name: coreApi_paymenttype_brand_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_paymenttype_brand_id" ON "coreApi_paymenttype" USING btree (brand_id);
--
-- Name: coreApi_paymenttype_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_paymenttype_created_by_id" ON "coreApi_paymenttype" USING btree (created_by_id);
--
-- Name: coreApi_paymenttype_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_paymenttype_establishment_id" ON "coreApi_paymenttype" USING btree (establishment_id);
--
-- Name: coreApi_paymenttype_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_paymenttype_updated_by_id" ON "coreApi_paymenttype" USING btree (updated_by_id);
--
-- Name: coreApi_payout_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payout_created_by_id" ON "coreApi_payout" USING btree (created_by_id);
--
-- Name: coreApi_payout_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payout_updated_by_id" ON "coreApi_payout" USING btree (updated_by_id);
--
-- Name: coreApi_payoutclass_brand_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payoutclass_brand_id" ON "coreApi_payoutclass" USING btree (brand_id);
--
-- Name: coreApi_payoutclass_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payoutclass_created_by_id" ON "coreApi_payoutclass" USING btree (created_by_id);
--
-- Name: coreApi_payoutclass_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payoutclass_establishment_id" ON "coreApi_payoutclass" USING btree (establishment_id);
--
-- Name: coreApi_payoutclass_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payoutclass_updated_by_id" ON "coreApi_payoutclass" USING btree (updated_by_id);
--
-- Name: coreApi_payrate_department_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payrate_department_id" ON "coreApi_payrate" USING btree (department_id);
--
-- Name: coreApi_payrate_employee_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payrate_employee_id" ON "coreApi_payrate" USING btree (employee_id);
--
-- Name: coreApi_payrate_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payrate_establishment_id" ON "coreApi_payrate" USING btree (establishment_id);
--
-- Name: coreApi_payrate_role_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_payrate_role_id" ON "coreApi_payrate" USING btree (role_id);
--
-- Name: coreApi_posstation_devices_device_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_posstation_devices_device_id" ON "coreApi_posstation_devices" USING btree (device_id);
--
-- Name: coreApi_posstation_devices_posstation_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_posstation_devices_posstation_id" ON "coreApi_posstation_devices" USING btree (posstation_id);
--
-- Name: coreApi_posstation_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_posstation_establishment_id" ON "coreApi_posstation" USING btree (establishment_id);
--
-- Name: coreApi_product_brand_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_product_brand_id" ON "coreApi_product" USING btree (brand_id);
--
-- Name: coreApi_product_category_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_product_category_id" ON "coreApi_product" USING btree (category_id);
--
-- Name: coreApi_product_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_product_created_by_id" ON "coreApi_product" USING btree (created_by_id);
--
-- Name: coreApi_product_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_product_establishment_id" ON "coreApi_product" USING btree (establishment_id);
--
-- Name: coreApi_product_parent_product_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_product_parent_product_id" ON "coreApi_product" USING btree (parent_product_id);
--
-- Name: coreApi_product_productclass_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_product_productclass_id" ON "coreApi_product" USING btree (productclass_id);
--
-- Name: coreApi_product_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_product_updated_by_id" ON "coreApi_product" USING btree (updated_by_id);
--
-- Name: coreApi_productcategory_brand_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productcategory_brand_id" ON "coreApi_productcategory" USING btree (brand_id);
--
-- Name: coreApi_productcategory_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productcategory_created_by_id" ON "coreApi_productcategory" USING btree (created_by_id);
--
-- Name: coreApi_productcategory_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productcategory_establishment_id" ON "coreApi_productcategory" USING btree (establishment_id);
--
-- Name: coreApi_productcategory_parent_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productcategory_parent_id" ON "coreApi_productcategory" USING btree (parent_id);
--
-- Name: coreApi_productcategory_product_class_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productcategory_product_class_id" ON "coreApi_productcategory" USING btree (product_class_id);
--
-- Name: coreApi_productcategory_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productcategory_updated_by_id" ON "coreApi_productcategory" USING btree (updated_by_id);
--
-- Name: coreApi_productclass_brand_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productclass_brand_id" ON "coreApi_productclass" USING btree (brand_id);
--
-- Name: coreApi_productclass_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productclass_created_by_id" ON "coreApi_productclass" USING btree (created_by_id);
--
-- Name: coreApi_productclass_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productclass_updated_by_id" ON "coreApi_productclass" USING btree (updated_by_id);
--
-- Name: coreApi_productingredient_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productingredient_created_by_id" ON "coreApi_productingredient" USING btree (created_by_id);
--
-- Name: coreApi_productingredient_ingredient_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productingredient_ingredient_id" ON "coreApi_productingredient" USING btree (ingredient_id);
--
-- Name: coreApi_productingredient_product_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productingredient_product_id" ON "coreApi_productingredient" USING btree (product_id);
--
-- Name: coreApi_productingredient_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productingredient_updated_by_id" ON "coreApi_productingredient" USING btree (updated_by_id);
--
-- Name: coreApi_productmodifier_brand_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productmodifier_brand_id" ON "coreApi_productmodifier" USING btree (brand_id);
--
-- Name: coreApi_productmodifier_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productmodifier_created_by_id" ON "coreApi_productmodifier" USING btree (created_by_id);
--
-- Name: coreApi_productmodifier_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productmodifier_establishment_id" ON "coreApi_productmodifier" USING btree (establishment_id);
--
-- Name: coreApi_productmodifier_modifier_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productmodifier_modifier_id" ON "coreApi_productmodifier" USING btree (modifier_id);
--
-- Name: coreApi_productmodifier_product_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productmodifier_product_id" ON "coreApi_productmodifier" USING btree (product_id);
--
-- Name: coreApi_productmodifier_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_productmodifier_updated_by_id" ON "coreApi_productmodifier" USING btree (updated_by_id);
--
-- Name: coreApi_receiptsetting_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_receiptsetting_establishment_id" ON "coreApi_receiptsetting" USING btree (establishment_id);
--
-- Name: coreApi_receiptsetting_lines_receiptline_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_receiptsetting_lines_receiptline_id" ON "coreApi_receiptsetting_lines" USING btree (receiptline_id);
--
-- Name: coreApi_receiptsetting_lines_receiptsetting_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_receiptsetting_lines_receiptsetting_id" ON "coreApi_receiptsetting_lines" USING btree (receiptsetting_id);
--
-- Name: coreApi_rewardscard_address_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_rewardscard_address_id" ON "coreApi_rewardscard" USING btree (address_id);
--
-- Name: coreApi_rewardscard_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_rewardscard_created_by_id" ON "coreApi_rewardscard" USING btree (created_by_id);
--
-- Name: coreApi_rewardscard_customer_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_rewardscard_customer_id" ON "coreApi_rewardscard" USING btree (customer_id);
--
-- Name: coreApi_rewardscard_payment_type_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_rewardscard_payment_type_id" ON "coreApi_rewardscard" USING btree (payment_type_id);
--
-- Name: coreApi_rewardscard_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_rewardscard_updated_by_id" ON "coreApi_rewardscard" USING btree (updated_by_id);
--
-- Name: coreApi_role_brand_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_role_brand_id" ON "coreApi_role" USING btree (brand_id);
--
-- Name: coreApi_role_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_role_created_by_id" ON "coreApi_role" USING btree (created_by_id);
--
-- Name: coreApi_role_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_role_establishment_id" ON "coreApi_role" USING btree (establishment_id);
--
-- Name: coreApi_role_permissions_permission_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_role_permissions_permission_id" ON "coreApi_role_permissions" USING btree (permission_id);
--
-- Name: coreApi_role_permissions_role_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_role_permissions_role_id" ON "coreApi_role_permissions" USING btree (role_id);
--
-- Name: coreApi_role_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_role_updated_by_id" ON "coreApi_role" USING btree (updated_by_id);
--
-- Name: coreApi_socialnetworkparameter_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_socialnetworkparameter_establishment_id" ON "coreApi_socialnetworkparameter" USING btree (establishment_id);
--
-- Name: coreApi_socialnetworkparameter_social_network_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_socialnetworkparameter_social_network_id" ON "coreApi_socialnetworkparameter" USING btree (social_network_id);
--
-- Name: coreApi_specialrequest_brand_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_specialrequest_brand_id" ON "coreApi_specialrequest" USING btree (brand_id);
--
-- Name: coreApi_specialrequest_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_specialrequest_created_by_id" ON "coreApi_specialrequest" USING btree (created_by_id);
--
-- Name: coreApi_specialrequest_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_specialrequest_establishment_id" ON "coreApi_specialrequest" USING btree (establishment_id);
--
-- Name: coreApi_specialrequest_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_specialrequest_updated_by_id" ON "coreApi_specialrequest" USING btree (updated_by_id);
--
-- Name: coreApi_surcharge_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_surcharge_created_by_id" ON "coreApi_surcharge" USING btree (created_by_id);
--
-- Name: coreApi_surcharge_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_surcharge_updated_by_id" ON "coreApi_surcharge" USING btree (updated_by_id);
--
-- Name: coreApi_surchargerates_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_surchargerates_created_by_id" ON "coreApi_surchargerates" USING btree (created_by_id);
--
-- Name: coreApi_surchargerates_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_surchargerates_updated_by_id" ON "coreApi_surchargerates" USING btree (updated_by_id);
--
-- Name: coreApi_systemsetting_extra_items_printers_device_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_systemsetting_extra_items_printers_device_id" ON "coreApi_systemsetting_extra_items_printers" USING btree (device_id);
--
-- Name: coreApi_systemsetting_extra_items_printers_systemsetting_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_systemsetting_extra_items_printers_systemsetting_id" ON "coreApi_systemsetting_extra_items_printers" USING btree (systemsetting_id);
--
-- Name: coreApi_systemsetting_incoming_web_orders_printer_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_systemsetting_incoming_web_orders_printer_id" ON "coreApi_systemsetting" USING btree (incoming_web_orders_printer_id);
--
-- Name: coreApi_systemsettingoption_settings_parent_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_systemsettingoption_settings_parent_id" ON "coreApi_systemsettingoption" USING btree (settings_parent_id);
--
-- Name: coreApi_table_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_table_establishment_id" ON "coreApi_table" USING btree (establishment_id);
--
-- Name: coreApi_table_section_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_table_section_id" ON "coreApi_table" USING btree (section_id);
--
-- Name: coreApi_table_table_type_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_table_table_type_id" ON "coreApi_table" USING btree (table_type_id);
--
-- Name: coreApi_tablesection_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_tablesection_establishment_id" ON "coreApi_tablesection" USING btree (establishment_id);
--
-- Name: coreApi_tax_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_tax_created_by_id" ON "coreApi_tax" USING btree (created_by_id);
--
-- Name: coreApi_tax_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_tax_updated_by_id" ON "coreApi_tax" USING btree (updated_by_id);
--
-- Name: coreApi_taxrate_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_taxrate_created_by_id" ON "coreApi_taxrate" USING btree (created_by_id);
--
-- Name: coreApi_taxrate_tax_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_taxrate_tax_id" ON "coreApi_taxrate" USING btree (tax_id);
--
-- Name: coreApi_taxrate_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_taxrate_updated_by_id" ON "coreApi_taxrate" USING btree (updated_by_id);
--
-- Name: coreApi_timeschedule_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timeschedule_created_by_id" ON "coreApi_timeschedule" USING btree (created_by_id);
--
-- Name: coreApi_timeschedule_department_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timeschedule_department_id" ON "coreApi_timeschedule" USING btree (department_id);
--
-- Name: coreApi_timeschedule_employee_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timeschedule_employee_id" ON "coreApi_timeschedule" USING btree (employee_id);
--
-- Name: coreApi_timeschedule_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timeschedule_establishment_id" ON "coreApi_timeschedule" USING btree (establishment_id);
--
-- Name: coreApi_timeschedule_role_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timeschedule_role_id" ON "coreApi_timeschedule" USING btree (role_id);
--
-- Name: coreApi_timeschedule_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timeschedule_updated_by_id" ON "coreApi_timeschedule" USING btree (updated_by_id);
--
-- Name: coreApi_timeschedulerule_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timeschedulerule_created_by_id" ON "coreApi_timeschedulerule" USING btree (created_by_id);
--
-- Name: coreApi_timeschedulerule_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timeschedulerule_establishment_id" ON "coreApi_timeschedulerule" USING btree (establishment_id);
--
-- Name: coreApi_timeschedulerule_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timeschedulerule_updated_by_id" ON "coreApi_timeschedulerule" USING btree (updated_by_id);
--
-- Name: coreApi_timesheetentry_created_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timesheetentry_created_by_id" ON "coreApi_timesheetentry" USING btree (created_by_id);
--
-- Name: coreApi_timesheetentry_department_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timesheetentry_department_id" ON "coreApi_timesheetentry" USING btree (department_id);
--
-- Name: coreApi_timesheetentry_employee_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timesheetentry_employee_id" ON "coreApi_timesheetentry" USING btree (employee_id);
--
-- Name: coreApi_timesheetentry_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timesheetentry_establishment_id" ON "coreApi_timesheetentry" USING btree (establishment_id);
--
-- Name: coreApi_timesheetentry_previous_shift_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timesheetentry_previous_shift_id" ON "coreApi_timesheetentry" USING btree (previous_shift_id);
--
-- Name: coreApi_timesheetentry_role_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timesheetentry_role_id" ON "coreApi_timesheetentry" USING btree (role_id);
--
-- Name: coreApi_timesheetentry_updated_by_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_timesheetentry_updated_by_id" ON "coreApi_timesheetentry" USING btree (updated_by_id);
--
-- Name: coreApi_translationlanguage_language_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_translationlanguage_language_id" ON "coreApi_translationlanguage" USING btree (language_id);
--
-- Name: coreApi_translationlanguage_string_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX "coreApi_translationlanguage_string_id" ON "coreApi_translationlanguage" USING btree (string_id);
--
-- Name: dashboard_picture_slug; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX dashboard_picture_slug ON dashboard_picture USING btree (slug);
--
-- Name: dashboard_picture_slug_like; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX dashboard_picture_slug_like ON dashboard_picture USING btree (slug varchar_pattern_ops);
--
-- Name: django_admin_log_content_type_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX django_admin_log_content_type_id ON django_admin_log USING btree (content_type_id);
--
-- Name: django_admin_log_user_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX django_admin_log_user_id ON django_admin_log USING btree (user_id);
--
-- Name: django_session_expire_date; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX django_session_expire_date ON django_session USING btree (expire_date);
--
-- Name: djcelery_periodictask_crontab_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX djcelery_periodictask_crontab_id ON djcelery_periodictask USING btree (crontab_id);
--
-- Name: djcelery_periodictask_interval_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX djcelery_periodictask_interval_id ON djcelery_periodictask USING btree (interval_id);
--
-- Name: djcelery_taskstate_hidden; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX djcelery_taskstate_hidden ON djcelery_taskstate USING btree (hidden);
--
-- Name: djcelery_taskstate_name; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX djcelery_taskstate_name ON djcelery_taskstate USING btree (name);
--
-- Name: djcelery_taskstate_name_like; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX djcelery_taskstate_name_like ON djcelery_taskstate USING btree (name varchar_pattern_ops);
--
-- Name: djcelery_taskstate_state; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX djcelery_taskstate_state ON djcelery_taskstate USING btree (state);
--
-- Name: djcelery_taskstate_state_like; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX djcelery_taskstate_state_like ON djcelery_taskstate USING btree (state varchar_pattern_ops);
--
-- Name: djcelery_taskstate_tstamp; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX djcelery_taskstate_tstamp ON djcelery_taskstate USING btree (tstamp);
--
-- Name: djcelery_taskstate_worker_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX djcelery_taskstate_worker_id ON djcelery_taskstate USING btree (worker_id);
--
-- Name: djcelery_workerstate_last_heartbeat; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX djcelery_workerstate_last_heartbeat ON djcelery_workerstate USING btree (last_heartbeat);
--
-- Name: reports_report_establishments_establishment_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX reports_report_establishments_establishment_id ON reports_report_establishments USING btree (establishment_id);
--
-- Name: reports_report_establishments_report_id; Type: INDEX; Schema: public; Owner: django_pwny; Tablespace:
--
CREATE INDEX reports_report_establishments_report_id ON reports_report_establishments USING btree (report_id);
--
-- Name: address_id_refs_id_2052761e; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_employee"
ADD CONSTRAINT address_id_refs_id_2052761e FOREIGN KEY (address_id) REFERENCES "coreApi_address"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: address_id_refs_id_2f18c8c2; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_customer"
ADD CONSTRAINT address_id_refs_id_2f18c8c2 FOREIGN KEY (address_id) REFERENCES "coreApi_address"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: address_id_refs_id_559bc17d; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_rewardscard"
ADD CONSTRAINT address_id_refs_id_559bc17d FOREIGN KEY (address_id) REFERENCES "coreApi_address"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: address_id_refs_id_6c5013ea; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_giftcard"
ADD CONSTRAINT address_id_refs_id_6c5013ea FOREIGN KEY (address_id) REFERENCES "coreApi_address"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: address_id_refs_id_78cd7ed6; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishment"
ADD CONSTRAINT address_id_refs_id_78cd7ed6 FOREIGN KEY (address_id) REFERENCES "coreApi_address"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: associated_company_id_refs_id_bba65ee; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_apiconsumer"
ADD CONSTRAINT associated_company_id_refs_id_bba65ee FOREIGN KEY (associated_company_id) REFERENCES "coreApi_company"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: associated_user_id_refs_id_3f552db1; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_apiconsumer"
ADD CONSTRAINT associated_user_id_refs_id_3f552db1 FOREIGN KEY (associated_user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: auth_group_permissions_permission_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY auth_group_permissions
ADD CONSTRAINT auth_group_permissions_permission_id_fkey FOREIGN KEY (permission_id) REFERENCES auth_permission(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: auth_message_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY auth_message
ADD CONSTRAINT auth_message_user_id_fkey FOREIGN KEY (user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: auth_user_groups_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY auth_user_groups
ADD CONSTRAINT auth_user_groups_group_id_fkey FOREIGN KEY (group_id) REFERENCES auth_group(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: auth_user_user_permissions_permission_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY auth_user_user_permissions
ADD CONSTRAINT auth_user_user_permissions_permission_id_fkey FOREIGN KEY (permission_id) REFERENCES auth_permission(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: brand_id_refs_id_1ccebcb9; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_specialrequest"
ADD CONSTRAINT brand_id_refs_id_1ccebcb9 FOREIGN KEY (brand_id) REFERENCES "coreApi_brand"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: brand_id_refs_id_1f9d6e1a; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifier"
ADD CONSTRAINT brand_id_refs_id_1f9d6e1a FOREIGN KEY (brand_id) REFERENCES "coreApi_brand"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: brand_id_refs_id_23fa7710; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_paymenttype"
ADD CONSTRAINT brand_id_refs_id_23fa7710 FOREIGN KEY (brand_id) REFERENCES "coreApi_brand"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: brand_id_refs_id_3589090b; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifierclass"
ADD CONSTRAINT brand_id_refs_id_3589090b FOREIGN KEY (brand_id) REFERENCES "coreApi_brand"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: brand_id_refs_id_4edd1eb8; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productmodifier"
ADD CONSTRAINT brand_id_refs_id_4edd1eb8 FOREIGN KEY (brand_id) REFERENCES "coreApi_brand"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: brand_id_refs_id_536510a5; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productcategory"
ADD CONSTRAINT brand_id_refs_id_536510a5 FOREIGN KEY (brand_id) REFERENCES "coreApi_brand"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: brand_id_refs_id_573847f6; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productclass"
ADD CONSTRAINT brand_id_refs_id_573847f6 FOREIGN KEY (brand_id) REFERENCES "coreApi_brand"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: brand_id_refs_id_5741c733; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishment"
ADD CONSTRAINT brand_id_refs_id_5741c733 FOREIGN KEY (brand_id) REFERENCES "coreApi_brand"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: brand_id_refs_id_682299e0; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payoutclass"
ADD CONSTRAINT brand_id_refs_id_682299e0 FOREIGN KEY (brand_id) REFERENCES "coreApi_brand"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: brand_id_refs_id_68774c22; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_ingredient"
ADD CONSTRAINT brand_id_refs_id_68774c22 FOREIGN KEY (brand_id) REFERENCES "coreApi_brand"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: brand_id_refs_id_77dfe02f; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_role"
ADD CONSTRAINT brand_id_refs_id_77dfe02f FOREIGN KEY (brand_id) REFERENCES "coreApi_brand"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: brand_id_refs_id_e2e3e7; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_product"
ADD CONSTRAINT brand_id_refs_id_e2e3e7 FOREIGN KEY (brand_id) REFERENCES "coreApi_brand"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: category_id_refs_id_7695ac17; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_product"
ADD CONSTRAINT category_id_refs_id_7695ac17 FOREIGN KEY (category_id) REFERENCES "coreApi_productcategory"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: company_id_refs_id_98b264f; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_brand"
ADD CONSTRAINT company_id_refs_id_98b264f FOREIGN KEY (company_id) REFERENCES "coreApi_company"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: content_type_id_refs_id_728de91f; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY auth_permission
ADD CONSTRAINT content_type_id_refs_id_728de91f FOREIGN KEY (content_type_id) REFERENCES django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: counted_by_id_refs_id_204b07eb; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_drawercount"
ADD CONSTRAINT counted_by_id_refs_id_204b07eb FOREIGN KEY (counted_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_1059b852; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_giftcard"
ADD CONSTRAINT created_by_id_refs_id_1059b852 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_1885d1c8; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timesheetentry"
ADD CONSTRAINT created_by_id_refs_id_1885d1c8 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_1a1cc627; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_inventory"
ADD CONSTRAINT created_by_id_refs_id_1a1cc627 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_1e45d00c; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_brand"
ADD CONSTRAINT created_by_id_refs_id_1e45d00c FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_233add0d; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_surcharge"
ADD CONSTRAINT created_by_id_refs_id_233add0d FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_2428a60a; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_tax"
ADD CONSTRAINT created_by_id_refs_id_2428a60a FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_289316c7; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payoutclass"
ADD CONSTRAINT created_by_id_refs_id_289316c7 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_2b08d11d; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productingredient"
ADD CONSTRAINT created_by_id_refs_id_2b08d11d FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_2ec25a80; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_product"
ADD CONSTRAINT created_by_id_refs_id_2ec25a80 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_2eef5470; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_company"
ADD CONSTRAINT created_by_id_refs_id_2eef5470 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_332d1280; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timeschedulerule"
ADD CONSTRAINT created_by_id_refs_id_332d1280 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_3723e6ab; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productclass"
ADD CONSTRAINT created_by_id_refs_id_3723e6ab FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_43eb6d8f; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productmodifier"
ADD CONSTRAINT created_by_id_refs_id_43eb6d8f FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_46c8a084; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productcategory"
ADD CONSTRAINT created_by_id_refs_id_46c8a084 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_480f3629; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_address"
ADD CONSTRAINT created_by_id_refs_id_480f3629 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_48821afe; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifierinventory"
ADD CONSTRAINT created_by_id_refs_id_48821afe FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_4c052e0; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_taxrate"
ADD CONSTRAINT created_by_id_refs_id_4c052e0 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_4e72a296; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifieringredient"
ADD CONSTRAINT created_by_id_refs_id_4e72a296 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_4fe2aaa0; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_specialrequest"
ADD CONSTRAINT created_by_id_refs_id_4fe2aaa0 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_55689bf6; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_role"
ADD CONSTRAINT created_by_id_refs_id_55689bf6 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_569b1817; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_surchargerates"
ADD CONSTRAINT created_by_id_refs_id_569b1817 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_5a158db2; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishment"
ADD CONSTRAINT created_by_id_refs_id_5a158db2 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_5afc4316; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifierclass"
ADD CONSTRAINT created_by_id_refs_id_5afc4316 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_66139aa6; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_employee"
ADD CONSTRAINT created_by_id_refs_id_66139aa6 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_6828c0fe; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_orderitem"
ADD CONSTRAINT created_by_id_refs_id_6828c0fe FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_68d9ab83; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_discount"
ADD CONSTRAINT created_by_id_refs_id_68d9ab83 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_6f50dffb; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payment"
ADD CONSTRAINT created_by_id_refs_id_6f50dffb FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_70ce309b; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifier"
ADD CONSTRAINT created_by_id_refs_id_70ce309b FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_717bc062; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payout"
ADD CONSTRAINT created_by_id_refs_id_717bc062 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_7721752e; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timeschedule"
ADD CONSTRAINT created_by_id_refs_id_7721752e FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_78841217; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_ingredient"
ADD CONSTRAINT created_by_id_refs_id_78841217 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_7c8d3cb9; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_rewardscard"
ADD CONSTRAINT created_by_id_refs_id_7c8d3cb9 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_83c0fa7; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_order"
ADD CONSTRAINT created_by_id_refs_id_83c0fa7 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_9eb971a; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_customer"
ADD CONSTRAINT created_by_id_refs_id_9eb971a FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: created_by_id_refs_id_b32fa57; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_paymenttype"
ADD CONSTRAINT created_by_id_refs_id_b32fa57 FOREIGN KEY (created_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: crontab_id_refs_id_1400a18c; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY djcelery_periodictask
ADD CONSTRAINT crontab_id_refs_id_1400a18c FOREIGN KEY (crontab_id) REFERENCES djcelery_crontabschedule(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: currency_id_refs_id_4c4cd6a8; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishment"
ADD CONSTRAINT currency_id_refs_id_4c4cd6a8 FOREIGN KEY (currency_id) REFERENCES "coreApi_currency"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: customer_id_refs_id_17f498a3; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_giftcard"
ADD CONSTRAINT customer_id_refs_id_17f498a3 FOREIGN KEY (customer_id) REFERENCES "coreApi_customer"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: customer_id_refs_id_4e50128a; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_rewardscard"
ADD CONSTRAINT customer_id_refs_id_4e50128a FOREIGN KEY (customer_id) REFERENCES "coreApi_customer"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: customer_id_refs_id_59c739d6; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_order"
ADD CONSTRAINT customer_id_refs_id_59c739d6 FOREIGN KEY (customer_id) REFERENCES "coreApi_customer"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: department_id_refs_id_1a5a3385; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timeschedule"
ADD CONSTRAINT department_id_refs_id_1a5a3385 FOREIGN KEY (department_id) REFERENCES "coreApi_employeedepartment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: department_id_refs_id_4b733988; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payrate"
ADD CONSTRAINT department_id_refs_id_4b733988 FOREIGN KEY (department_id) REFERENCES "coreApi_employeedepartment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: department_id_refs_id_5e0a0ee5; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timesheetentry"
ADD CONSTRAINT department_id_refs_id_5e0a0ee5 FOREIGN KEY (department_id) REFERENCES "coreApi_employeedepartment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: department_id_refs_id_6b1c58fd; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_employee"
ADD CONSTRAINT department_id_refs_id_6b1c58fd FOREIGN KEY (department_id) REFERENCES "coreApi_employeedepartment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: device_id_refs_id_289be3d; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_posstation_devices"
ADD CONSTRAINT device_id_refs_id_289be3d FOREIGN KEY (device_id) REFERENCES "coreApi_device"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: device_id_refs_id_6a0f2511; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishment_devices"
ADD CONSTRAINT device_id_refs_id_6a0f2511 FOREIGN KEY (device_id) REFERENCES "coreApi_device"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: device_id_refs_id_6c4c9794; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_systemsetting_extra_items_printers"
ADD CONSTRAINT device_id_refs_id_6c4c9794 FOREIGN KEY (device_id) REFERENCES "coreApi_device"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: device_id_refs_id_7dcce6b6; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_deviceextraparameters"
ADD CONSTRAINT device_id_refs_id_7dcce6b6 FOREIGN KEY (device_id) REFERENCES "coreApi_device"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: discount_id_refs_id_280e220; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_orderitem"
ADD CONSTRAINT discount_id_refs_id_280e220 FOREIGN KEY (discount_id) REFERENCES "coreApi_discount"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: discount_id_refs_id_636979e9; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_order"
ADD CONSTRAINT discount_id_refs_id_636979e9 FOREIGN KEY (discount_id) REFERENCES "coreApi_discount"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: django_admin_log_content_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY django_admin_log
ADD CONSTRAINT django_admin_log_content_type_id_fkey FOREIGN KEY (content_type_id) REFERENCES django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: django_admin_log_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY django_admin_log
ADD CONSTRAINT django_admin_log_user_id_fkey FOREIGN KEY (user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: employee_id_refs_id_15284e51; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timeschedule"
ADD CONSTRAINT employee_id_refs_id_15284e51 FOREIGN KEY (employee_id) REFERENCES "coreApi_employee"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: employee_id_refs_id_21026144; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payrate"
ADD CONSTRAINT employee_id_refs_id_21026144 FOREIGN KEY (employee_id) REFERENCES "coreApi_employee"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: employee_id_refs_id_21cfd8d7; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishmentemployee"
ADD CONSTRAINT employee_id_refs_id_21cfd8d7 FOREIGN KEY (employee_id) REFERENCES "coreApi_employee"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: employee_id_refs_id_35a93d67; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timesheetentry"
ADD CONSTRAINT employee_id_refs_id_35a93d67 FOREIGN KEY (employee_id) REFERENCES "coreApi_employee"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: employee_id_refs_id_5c0c4da7; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_employee_roles"
ADD CONSTRAINT employee_id_refs_id_5c0c4da7 FOREIGN KEY (employee_id) REFERENCES "coreApi_employee"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_10554695; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishment_devices"
ADD CONSTRAINT establishment_id_refs_id_10554695 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_11e99092; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payoutclass"
ADD CONSTRAINT establishment_id_refs_id_11e99092 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_136b8ce9; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productcategory"
ADD CONSTRAINT establishment_id_refs_id_136b8ce9 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_1666b01b; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_receiptsetting"
ADD CONSTRAINT establishment_id_refs_id_1666b01b FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_16de06b1; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifierclass"
ADD CONSTRAINT establishment_id_refs_id_16de06b1 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_1adb6518; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifier"
ADD CONSTRAINT establishment_id_refs_id_1adb6518 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_20476d4b; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timesheetentry"
ADD CONSTRAINT establishment_id_refs_id_20476d4b FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_218c1a6e; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_tablesection"
ADD CONSTRAINT establishment_id_refs_id_218c1a6e FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_249c3f81; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishment_tax"
ADD CONSTRAINT establishment_id_refs_id_249c3f81 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_2cb4c433; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_product"
ADD CONSTRAINT establishment_id_refs_id_2cb4c433 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_357b3098; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_drawercount"
ADD CONSTRAINT establishment_id_refs_id_357b3098 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_371235ca; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_discount"
ADD CONSTRAINT establishment_id_refs_id_371235ca FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_3d81e3d3; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishmentemployee"
ADD CONSTRAINT establishment_id_refs_id_3d81e3d3 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_3fd0487e; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payment"
ADD CONSTRAINT establishment_id_refs_id_3fd0487e FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_413ba712; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_table"
ADD CONSTRAINT establishment_id_refs_id_413ba712 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_51243133; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timeschedulerule"
ADD CONSTRAINT establishment_id_refs_id_51243133 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_52d942a; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productmodifier"
ADD CONSTRAINT establishment_id_refs_id_52d942a FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_54594381; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY reports_report_establishments
ADD CONSTRAINT establishment_id_refs_id_54594381 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_59c50bde; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_paymenttype"
ADD CONSTRAINT establishment_id_refs_id_59c50bde FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_5adf6ed8; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payrate"
ADD CONSTRAINT establishment_id_refs_id_5adf6ed8 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_5c09bcab; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timeschedule"
ADD CONSTRAINT establishment_id_refs_id_5c09bcab FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_5ed5938e; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_order"
ADD CONSTRAINT establishment_id_refs_id_5ed5938e FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_69be3bed; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_specialrequest"
ADD CONSTRAINT establishment_id_refs_id_69be3bed FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_6bb66a0d; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_socialnetworkparameter"
ADD CONSTRAINT establishment_id_refs_id_6bb66a0d FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_7498ec59; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_posstation"
ADD CONSTRAINT establishment_id_refs_id_7498ec59 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_75878184; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_ingredient"
ADD CONSTRAINT establishment_id_refs_id_75878184 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_7a26e5bd; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_role"
ADD CONSTRAINT establishment_id_refs_id_7a26e5bd FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: establishment_id_refs_id_bc382c1; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishment_social_networks"
ADD CONSTRAINT establishment_id_refs_id_bc382c1 FOREIGN KEY (establishment_id) REFERENCES "coreApi_establishment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: group_id_refs_id_3cea63fe; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY auth_group_permissions
ADD CONSTRAINT group_id_refs_id_3cea63fe FOREIGN KEY (group_id) REFERENCES auth_group(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: incoming_web_orders_printer_id_refs_id_287bfedb; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_systemsetting"
ADD CONSTRAINT incoming_web_orders_printer_id_refs_id_287bfedb FOREIGN KEY (incoming_web_orders_printer_id) REFERENCES "coreApi_device"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: ingredient_id_refs_id_2058f299; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productingredient"
ADD CONSTRAINT ingredient_id_refs_id_2058f299 FOREIGN KEY (ingredient_id) REFERENCES "coreApi_ingredient"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: ingredient_id_refs_id_6adf7632; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifieringredient"
ADD CONSTRAINT ingredient_id_refs_id_6adf7632 FOREIGN KEY (ingredient_id) REFERENCES "coreApi_ingredient"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: interval_id_refs_id_dfabcb7; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY djcelery_periodictask
ADD CONSTRAINT interval_id_refs_id_dfabcb7 FOREIGN KEY (interval_id) REFERENCES djcelery_intervalschedule(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: language_id_refs_id_252db341; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_translationlanguage"
ADD CONSTRAINT language_id_refs_id_252db341 FOREIGN KEY (language_id) REFERENCES "coreApi_language"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: manager_id_refs_id_5a158db2; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishment"
ADD CONSTRAINT manager_id_refs_id_5a158db2 FOREIGN KEY (manager_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: modifierClass_id_refs_id_4f5d580; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifier"
ADD CONSTRAINT "modifierClass_id_refs_id_4f5d580" FOREIGN KEY ("modifierClass_id") REFERENCES "coreApi_modifierclass"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: modifier_id_refs_id_2a98a9b9; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productmodifier"
ADD CONSTRAINT modifier_id_refs_id_2a98a9b9 FOREIGN KEY (modifier_id) REFERENCES "coreApi_modifier"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: modifier_id_refs_id_4f24174e; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifieringredient"
ADD CONSTRAINT modifier_id_refs_id_4f24174e FOREIGN KEY (modifier_id) REFERENCES "coreApi_modifier"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: modifier_id_refs_id_7323f3c8; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifieritem"
ADD CONSTRAINT modifier_id_refs_id_7323f3c8 FOREIGN KEY (modifier_id) REFERENCES "coreApi_modifier"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: modifier_in_establishment_id_refs_id_1fbbb9e6; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifierinventory"
ADD CONSTRAINT modifier_in_establishment_id_refs_id_1fbbb9e6 FOREIGN KEY (modifier_in_establishment_id) REFERENCES "coreApi_modifier"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: order_closed_at_id_refs_id_3ed798f3; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_orderhistory"
ADD CONSTRAINT order_closed_at_id_refs_id_3ed798f3 FOREIGN KEY (order_closed_at_id) REFERENCES "coreApi_posstation"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: order_closed_by_id_refs_id_700811e6; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_orderhistory"
ADD CONSTRAINT order_closed_by_id_refs_id_700811e6 FOREIGN KEY (order_closed_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: order_id_refs_id_2ee47ab4; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_orderitem"
ADD CONSTRAINT order_id_refs_id_2ee47ab4 FOREIGN KEY (order_id) REFERENCES "coreApi_order"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: order_id_refs_id_37eecffc; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_orderhistory"
ADD CONSTRAINT order_id_refs_id_37eecffc FOREIGN KEY (order_id) REFERENCES "coreApi_order"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: order_id_refs_id_8d36367; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payment"
ADD CONSTRAINT order_id_refs_id_8d36367 FOREIGN KEY (order_id) REFERENCES "coreApi_order"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: order_item_id_refs_id_55ac8f07; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifieritem"
ADD CONSTRAINT order_item_id_refs_id_55ac8f07 FOREIGN KEY (order_item_id) REFERENCES "coreApi_orderitem"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: order_item_id_refs_id_68da91f; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_orderprinting"
ADD CONSTRAINT order_item_id_refs_id_68da91f FOREIGN KEY (order_item_id) REFERENCES "coreApi_orderitem"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: order_opened_at_id_refs_id_3ed798f3; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_orderhistory"
ADD CONSTRAINT order_opened_at_id_refs_id_3ed798f3 FOREIGN KEY (order_opened_at_id) REFERENCES "coreApi_posstation"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: order_opened_by_id_refs_id_700811e6; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_orderhistory"
ADD CONSTRAINT order_opened_by_id_refs_id_700811e6 FOREIGN KEY (order_opened_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: parent_id_refs_id_70d384d5; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productcategory"
ADD CONSTRAINT parent_id_refs_id_70d384d5 FOREIGN KEY (parent_id) REFERENCES "coreApi_productcategory"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: parent_modifier_id_refs_id_2ebe307d; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifier"
ADD CONSTRAINT parent_modifier_id_refs_id_2ebe307d FOREIGN KEY (parent_modifier_id) REFERENCES "coreApi_modifier"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: parent_product_id_refs_id_11a3be8d; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_product"
ADD CONSTRAINT parent_product_id_refs_id_11a3be8d FOREIGN KEY (parent_product_id) REFERENCES "coreApi_product"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: payment_type_id_refs_id_234adef7; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payment"
ADD CONSTRAINT payment_type_id_refs_id_234adef7 FOREIGN KEY (payment_type_id) REFERENCES "coreApi_paymenttype"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: payment_type_id_refs_id_5ff1b2d; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_rewardscard"
ADD CONSTRAINT payment_type_id_refs_id_5ff1b2d FOREIGN KEY (payment_type_id) REFERENCES "coreApi_paymenttype"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: payment_type_id_refs_id_dfe2e14; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_giftcard"
ADD CONSTRAINT payment_type_id_refs_id_dfe2e14 FOREIGN KEY (payment_type_id) REFERENCES "coreApi_paymenttype"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: permission_id_refs_id_3c1576d1; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_role_permissions"
ADD CONSTRAINT permission_id_refs_id_3c1576d1 FOREIGN KEY (permission_id) REFERENCES "coreApi_permission"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: posstation_id_refs_id_3ed91ad9; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_posstation_devices"
ADD CONSTRAINT posstation_id_refs_id_3ed91ad9 FOREIGN KEY (posstation_id) REFERENCES "coreApi_posstation"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: previous_shift_id_refs_id_65d9ca83; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timesheetentry"
ADD CONSTRAINT previous_shift_id_refs_id_65d9ca83 FOREIGN KEY (previous_shift_id) REFERENCES "coreApi_timesheetentry"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: printer_id_refs_id_4e80af27; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_orderprinting"
ADD CONSTRAINT printer_id_refs_id_4e80af27 FOREIGN KEY (printer_id) REFERENCES "coreApi_device"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: product_class_id_refs_id_6d608c1c; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productcategory"
ADD CONSTRAINT product_class_id_refs_id_6d608c1c FOREIGN KEY (product_class_id) REFERENCES "coreApi_productclass"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: product_id_refs_id_163027f0; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productingredient"
ADD CONSTRAINT product_id_refs_id_163027f0 FOREIGN KEY (product_id) REFERENCES "coreApi_product"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: product_id_refs_id_2b8145b4; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_inventory"
ADD CONSTRAINT product_id_refs_id_2b8145b4 FOREIGN KEY (product_id) REFERENCES "coreApi_product"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: product_id_refs_id_66a1e3bc; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productmodifier"
ADD CONSTRAINT product_id_refs_id_66a1e3bc FOREIGN KEY (product_id) REFERENCES "coreApi_product"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: product_id_refs_id_70f8602b; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_orderitem"
ADD CONSTRAINT product_id_refs_id_70f8602b FOREIGN KEY (product_id) REFERENCES "coreApi_product"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: productclass_id_refs_id_506f4e18; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_product"
ADD CONSTRAINT productclass_id_refs_id_506f4e18 FOREIGN KEY (productclass_id) REFERENCES "coreApi_productclass"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: receiptline_id_refs_id_7c1c4b68; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_receiptsetting_lines"
ADD CONSTRAINT receiptline_id_refs_id_7c1c4b68 FOREIGN KEY (receiptline_id) REFERENCES "coreApi_receiptline"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: receiptsetting_id_refs_id_4e7ec9f9; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_receiptsetting_lines"
ADD CONSTRAINT receiptsetting_id_refs_id_4e7ec9f9 FOREIGN KEY (receiptsetting_id) REFERENCES "coreApi_receiptsetting"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: report_id_refs_id_73820bd5; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY reports_report_establishments
ADD CONSTRAINT report_id_refs_id_73820bd5 FOREIGN KEY (report_id) REFERENCES reports_report(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: reverses_payment_id_refs_id_208ac85; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payment"
ADD CONSTRAINT reverses_payment_id_refs_id_208ac85 FOREIGN KEY (reverses_payment_id) REFERENCES "coreApi_payment"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: role_id_refs_id_10d8ca77; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_employee_roles"
ADD CONSTRAINT role_id_refs_id_10d8ca77 FOREIGN KEY (role_id) REFERENCES "coreApi_role"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: role_id_refs_id_11db91ae; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_role_permissions"
ADD CONSTRAINT role_id_refs_id_11db91ae FOREIGN KEY (role_id) REFERENCES "coreApi_role"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: role_id_refs_id_14856dd7; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timesheetentry"
ADD CONSTRAINT role_id_refs_id_14856dd7 FOREIGN KEY (role_id) REFERENCES "coreApi_role"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: role_id_refs_id_5085d1b4; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payrate"
ADD CONSTRAINT role_id_refs_id_5085d1b4 FOREIGN KEY (role_id) REFERENCES "coreApi_role"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: role_id_refs_id_55c7bde1; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timeschedule"
ADD CONSTRAINT role_id_refs_id_55c7bde1 FOREIGN KEY (role_id) REFERENCES "coreApi_role"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: section_id_refs_id_866d5a5; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_table"
ADD CONSTRAINT section_id_refs_id_866d5a5 FOREIGN KEY (section_id) REFERENCES "coreApi_tablesection"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: settings_id_refs_id_34b334b1; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishment"
ADD CONSTRAINT settings_id_refs_id_34b334b1 FOREIGN KEY (settings_id) REFERENCES "coreApi_systemsetting"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: settings_parent_id_refs_id_19d21ee; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_systemsettingoption"
ADD CONSTRAINT settings_parent_id_refs_id_19d21ee FOREIGN KEY (settings_parent_id) REFERENCES "coreApi_systemsetting"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: social_network_id_refs_id_2e4131a5; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_socialnetworkparameter"
ADD CONSTRAINT social_network_id_refs_id_2e4131a5 FOREIGN KEY (social_network_id) REFERENCES "coreApi_socialnetwork"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: socialnetwork_id_refs_id_37bc1289; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishment_social_networks"
ADD CONSTRAINT socialnetwork_id_refs_id_37bc1289 FOREIGN KEY (socialnetwork_id) REFERENCES "coreApi_socialnetwork"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: station_id_refs_id_2de20ec2; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payment"
ADD CONSTRAINT station_id_refs_id_2de20ec2 FOREIGN KEY (station_id) REFERENCES "coreApi_posstation"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: station_id_refs_id_447011c5; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_orderitem"
ADD CONSTRAINT station_id_refs_id_447011c5 FOREIGN KEY (station_id) REFERENCES "coreApi_posstation"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: station_id_refs_id_7f682ad8; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_drawercount"
ADD CONSTRAINT station_id_refs_id_7f682ad8 FOREIGN KEY (station_id) REFERENCES "coreApi_posstation"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: string_id_refs_id_62039e3e; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_translationlanguage"
ADD CONSTRAINT string_id_refs_id_62039e3e FOREIGN KEY (string_id) REFERENCES "coreApi_languagestring"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: surcharge_id_refs_id_667e2e32; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishment"
ADD CONSTRAINT surcharge_id_refs_id_667e2e32 FOREIGN KEY (surcharge_id) REFERENCES "coreApi_surcharge"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: systemsetting_id_refs_id_276c14e0; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_systemsetting_extra_items_printers"
ADD CONSTRAINT systemsetting_id_refs_id_276c14e0 FOREIGN KEY (systemsetting_id) REFERENCES "coreApi_systemsetting"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: table_id_refs_id_61598b9f; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_order"
ADD CONSTRAINT table_id_refs_id_61598b9f FOREIGN KEY (table_id) REFERENCES "coreApi_table"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: table_owner_id_refs_id_83c0fa7; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_order"
ADD CONSTRAINT table_owner_id_refs_id_83c0fa7 FOREIGN KEY (table_owner_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: table_type_id_refs_id_6a0846c1; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_table"
ADD CONSTRAINT table_type_id_refs_id_6a0846c1 FOREIGN KEY (table_type_id) REFERENCES "coreApi_tabletype"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: tax_id_refs_id_354bc71f; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_taxrate"
ADD CONSTRAINT tax_id_refs_id_354bc71f FOREIGN KEY (tax_id) REFERENCES "coreApi_tax"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: tax_id_refs_id_7b833f3; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishment_tax"
ADD CONSTRAINT tax_id_refs_id_7b833f3 FOREIGN KEY (tax_id) REFERENCES "coreApi_tax"(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_1059b852; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_giftcard"
ADD CONSTRAINT updated_by_id_refs_id_1059b852 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_1885d1c8; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timesheetentry"
ADD CONSTRAINT updated_by_id_refs_id_1885d1c8 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_1a1cc627; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_inventory"
ADD CONSTRAINT updated_by_id_refs_id_1a1cc627 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_1e45d00c; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_brand"
ADD CONSTRAINT updated_by_id_refs_id_1e45d00c FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_233add0d; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_surcharge"
ADD CONSTRAINT updated_by_id_refs_id_233add0d FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_2428a60a; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_tax"
ADD CONSTRAINT updated_by_id_refs_id_2428a60a FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_289316c7; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payoutclass"
ADD CONSTRAINT updated_by_id_refs_id_289316c7 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_2b08d11d; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productingredient"
ADD CONSTRAINT updated_by_id_refs_id_2b08d11d FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_2ec25a80; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_product"
ADD CONSTRAINT updated_by_id_refs_id_2ec25a80 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_2eef5470; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_company"
ADD CONSTRAINT updated_by_id_refs_id_2eef5470 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_332d1280; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timeschedulerule"
ADD CONSTRAINT updated_by_id_refs_id_332d1280 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_3723e6ab; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productclass"
ADD CONSTRAINT updated_by_id_refs_id_3723e6ab FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_43eb6d8f; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productmodifier"
ADD CONSTRAINT updated_by_id_refs_id_43eb6d8f FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_46c8a084; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_productcategory"
ADD CONSTRAINT updated_by_id_refs_id_46c8a084 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_480f3629; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_address"
ADD CONSTRAINT updated_by_id_refs_id_480f3629 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_48821afe; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifierinventory"
ADD CONSTRAINT updated_by_id_refs_id_48821afe FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_4c052e0; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_taxrate"
ADD CONSTRAINT updated_by_id_refs_id_4c052e0 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_4e72a296; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifieringredient"
ADD CONSTRAINT updated_by_id_refs_id_4e72a296 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_4fe2aaa0; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_specialrequest"
ADD CONSTRAINT updated_by_id_refs_id_4fe2aaa0 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_55689bf6; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_role"
ADD CONSTRAINT updated_by_id_refs_id_55689bf6 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_569b1817; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_surchargerates"
ADD CONSTRAINT updated_by_id_refs_id_569b1817 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_5a158db2; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_establishment"
ADD CONSTRAINT updated_by_id_refs_id_5a158db2 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_5afc4316; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifierclass"
ADD CONSTRAINT updated_by_id_refs_id_5afc4316 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_66139aa6; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_employee"
ADD CONSTRAINT updated_by_id_refs_id_66139aa6 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_6828c0fe; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_orderitem"
ADD CONSTRAINT updated_by_id_refs_id_6828c0fe FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_68d9ab83; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_discount"
ADD CONSTRAINT updated_by_id_refs_id_68d9ab83 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_6f50dffb; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payment"
ADD CONSTRAINT updated_by_id_refs_id_6f50dffb FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_70ce309b; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_modifier"
ADD CONSTRAINT updated_by_id_refs_id_70ce309b FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_717bc062; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_payout"
ADD CONSTRAINT updated_by_id_refs_id_717bc062 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_7721752e; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_timeschedule"
ADD CONSTRAINT updated_by_id_refs_id_7721752e FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_78841217; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_ingredient"
ADD CONSTRAINT updated_by_id_refs_id_78841217 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_7c8d3cb9; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_rewardscard"
ADD CONSTRAINT updated_by_id_refs_id_7c8d3cb9 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_83c0fa7; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_order"
ADD CONSTRAINT updated_by_id_refs_id_83c0fa7 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_9eb971a; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_customer"
ADD CONSTRAINT updated_by_id_refs_id_9eb971a FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: updated_by_id_refs_id_b32fa57; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_paymenttype"
ADD CONSTRAINT updated_by_id_refs_id_b32fa57 FOREIGN KEY (updated_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: user_id_refs_id_56bfdb62; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY tastypie_apikey
ADD CONSTRAINT user_id_refs_id_56bfdb62 FOREIGN KEY (user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: user_id_refs_id_7ceef80f; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY auth_user_groups
ADD CONSTRAINT user_id_refs_id_7ceef80f FOREIGN KEY (user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: user_id_refs_id_dfbab7d; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY auth_user_user_permissions
ADD CONSTRAINT user_id_refs_id_dfbab7d FOREIGN KEY (user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: voided_by_id_refs_id_6828c0fe; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_orderitem"
ADD CONSTRAINT voided_by_id_refs_id_6828c0fe FOREIGN KEY (voided_by_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: voided_date_id_refs_id_6828c0fe; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY "coreApi_orderitem"
ADD CONSTRAINT voided_date_id_refs_id_6828c0fe FOREIGN KEY (voided_date_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: worker_id_refs_id_4e3453a; Type: FK CONSTRAINT; Schema: public; Owner: django_pwny
--
ALTER TABLE ONLY djcelery_taskstate
ADD CONSTRAINT worker_id_refs_id_4e3453a FOREIGN KEY (worker_id) REFERENCES djcelery_workerstate(id) DEFERRABLE INITIALLY DEFERRED;
--
-- Name: public; Type: ACL; Schema: -; Owner: django_pwny
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM django_pwny;
GRANT ALL ON SCHEMA public TO django_pwny;
--
-- PostgreSQL database dump complete
--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment