2018-03-25 17:30:42 +00:00
|
|
|
SET statement_timeout = 0;
|
|
|
|
SET lock_timeout = 0;
|
|
|
|
SET idle_in_transaction_session_timeout = 0;
|
|
|
|
SET client_encoding = 'UTF8';
|
|
|
|
SET standard_conforming_strings = on;
|
2018-07-03 17:54:00 +00:00
|
|
|
SELECT pg_catalog.set_config('search_path', '', false);
|
2018-03-25 17:30:42 +00:00
|
|
|
SET check_function_bodies = false;
|
2019-11-05 19:51:25 +00:00
|
|
|
SET xmloption = content;
|
2018-03-25 17:30:42 +00:00
|
|
|
SET client_min_messages = warning;
|
|
|
|
SET row_security = off;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pg_stat_statements; Type: EXTENSION; Schema: -; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE EXTENSION IF NOT EXISTS pg_stat_statements WITH SCHEMA public;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: EXTENSION pg_stat_statements; Type: COMMENT; Schema: -; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
COMMENT ON EXTENSION pg_stat_statements IS 'track execution statistics of all SQL statements executed';
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: uuid-ossp; Type: EXTENSION; Schema: -; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA public;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: EXTENSION "uuid-ossp"; Type: COMMENT; Schema: -; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
COMMENT ON EXTENSION "uuid-ossp" IS 'generate universally unique identifiers (UUIDs)';
|
|
|
|
|
|
|
|
|
2018-10-04 20:29:30 +00:00
|
|
|
--
|
|
|
|
-- Name: is_valid_json(text); Type: FUNCTION; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE FUNCTION public.is_valid_json(p_json text) RETURNS boolean
|
|
|
|
LANGUAGE plpgsql IMMUTABLE
|
|
|
|
AS $$
|
|
|
|
begin
|
|
|
|
return (p_json::json is not null);
|
|
|
|
exception
|
|
|
|
when others then
|
|
|
|
return false;
|
|
|
|
end;
|
|
|
|
$$;
|
|
|
|
|
|
|
|
|
2018-03-25 17:30:42 +00:00
|
|
|
--
|
|
|
|
-- Name: update_supporter_assoc_search_vectors(); Type: FUNCTION; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE FUNCTION public.update_supporter_assoc_search_vectors() RETURNS trigger
|
2018-03-25 17:30:42 +00:00
|
|
|
LANGUAGE plpgsql
|
|
|
|
AS $$ BEGIN
|
|
|
|
IF pg_trigger_depth() <> 1 THEN RETURN new; END IF;
|
|
|
|
UPDATE supporters
|
|
|
|
SET search_vectors=to_tsvector('english', data.search_blob)
|
|
|
|
FROM (
|
|
|
|
SELECT supporters.id, concat_ws(' '
|
|
|
|
, custom_field_joins.value
|
|
|
|
, supporters.name
|
|
|
|
, supporters.organization
|
|
|
|
, supporters.id
|
|
|
|
, supporters.email
|
|
|
|
, supporters.city
|
|
|
|
, supporters.state_code
|
|
|
|
, donations.designation
|
|
|
|
, donations.dedication
|
|
|
|
, payments.kind
|
|
|
|
, payments.towards
|
|
|
|
) AS search_blob
|
2018-07-03 17:54:00 +00:00
|
|
|
FROM supporters
|
2018-03-25 17:30:42 +00:00
|
|
|
LEFT OUTER JOIN payments
|
2018-07-03 17:54:00 +00:00
|
|
|
ON payments.supporter_id=supporters.id
|
2018-03-25 17:30:42 +00:00
|
|
|
LEFT OUTER JOIN donations
|
2018-07-03 17:54:00 +00:00
|
|
|
ON donations.supporter_id=supporters.id
|
2018-03-25 17:30:42 +00:00
|
|
|
LEFT OUTER JOIN (
|
|
|
|
SELECT string_agg(value::text, ' ') AS value, supporter_id
|
2018-07-03 17:54:00 +00:00
|
|
|
FROM custom_field_joins
|
2018-03-25 17:30:42 +00:00
|
|
|
GROUP BY supporter_id) AS custom_field_joins
|
|
|
|
ON custom_field_joins.supporter_id=supporters.id
|
|
|
|
WHERE (supporters.id=NEW.supporter_id)) AS data
|
|
|
|
WHERE data.id=supporters.id;
|
|
|
|
RETURN new;
|
|
|
|
END $$;
|
|
|
|
|
|
|
|
|
|
|
|
SET default_tablespace = '';
|
|
|
|
|
|
|
|
SET default_with_oids = false;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: activities; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.activities (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
supporter_id integer,
|
|
|
|
host_id integer,
|
|
|
|
host_type character varying(255),
|
|
|
|
action_type character varying(255),
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
attachment_id integer,
|
|
|
|
attachment_type character varying(255),
|
|
|
|
nonprofit_id integer,
|
|
|
|
public boolean,
|
|
|
|
user_id integer,
|
|
|
|
date timestamp without time zone,
|
|
|
|
kind character varying(255),
|
|
|
|
json_data text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: activities_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.activities_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: activities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.activities_id_seq OWNED BY public.activities.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.ar_internal_metadata (
|
2018-03-25 17:30:42 +00:00
|
|
|
key character varying NOT NULL,
|
|
|
|
value character varying,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: bank_accounts; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.bank_accounts (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
name character varying(255),
|
|
|
|
account_number character varying(255),
|
|
|
|
bank_name character varying(255),
|
|
|
|
email character varying(255),
|
|
|
|
nonprofit_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
pending_verification boolean,
|
|
|
|
confirmation_token character varying(255),
|
|
|
|
status character varying(255),
|
|
|
|
stripe_bank_account_token character varying(255),
|
|
|
|
stripe_bank_account_id character varying(255),
|
|
|
|
deleted boolean
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: bank_accounts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.bank_accounts_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: bank_accounts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.bank_accounts_id_seq OWNED BY public.bank_accounts.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: billing_plans; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.billing_plans (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
name character varying(255),
|
|
|
|
stripe_plan_id character varying(255),
|
|
|
|
amount integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
"interval" character varying(255),
|
|
|
|
percentage_fee real DEFAULT 0 NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: billing_plans_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.billing_plans_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: billing_plans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.billing_plans_id_seq OWNED BY public.billing_plans.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: billing_subscriptions; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.billing_subscriptions (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
nonprofit_id integer,
|
|
|
|
billing_plan_id integer,
|
|
|
|
stripe_subscription_id character varying(255),
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
status character varying(255)
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: billing_subscriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.billing_subscriptions_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: billing_subscriptions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.billing_subscriptions_id_seq OWNED BY public.billing_subscriptions.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: campaign_gift_options; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.campaign_gift_options (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
amount_one_time integer,
|
|
|
|
description text,
|
|
|
|
name character varying(255),
|
|
|
|
campaign_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
amount_dollars character varying(255),
|
|
|
|
amount_recurring integer,
|
|
|
|
quantity integer,
|
|
|
|
to_ship boolean,
|
|
|
|
"order" integer,
|
|
|
|
hide_contributions boolean
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: campaign_gift_options_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.campaign_gift_options_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: campaign_gift_options_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.campaign_gift_options_id_seq OWNED BY public.campaign_gift_options.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: campaign_gifts; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.campaign_gifts (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
donation_id integer,
|
|
|
|
campaign_gift_option_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
recurring_donation_id integer
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: campaign_gifts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.campaign_gifts_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: campaign_gifts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.campaign_gifts_id_seq OWNED BY public.campaign_gifts.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: campaigns; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.campaigns (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
name character varying(255),
|
|
|
|
url character varying(255),
|
|
|
|
total_raised integer,
|
|
|
|
goal_amount integer,
|
|
|
|
nonprofit_id integer,
|
|
|
|
profile_id integer,
|
|
|
|
main_image character varying(255),
|
|
|
|
vimeo_video_id character varying(255),
|
|
|
|
summary text,
|
|
|
|
body text,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
published boolean,
|
|
|
|
background_image character varying(255),
|
|
|
|
total_supporters integer,
|
|
|
|
recurring_fund boolean,
|
|
|
|
slug character varying(255),
|
|
|
|
youtube_video_id character varying(255),
|
|
|
|
tagline character varying(255),
|
|
|
|
video_url text,
|
|
|
|
show_total_raised boolean DEFAULT true,
|
|
|
|
show_total_count boolean DEFAULT true,
|
|
|
|
hide_activity_feed boolean,
|
|
|
|
deleted boolean,
|
|
|
|
hide_title boolean,
|
|
|
|
hide_thermometer boolean,
|
|
|
|
hide_goal boolean,
|
|
|
|
receipt_message text,
|
|
|
|
hide_custom_amounts boolean,
|
|
|
|
show_recurring_amount boolean DEFAULT false,
|
|
|
|
end_datetime timestamp without time zone,
|
2018-04-11 20:36:23 +00:00
|
|
|
external_identifier character varying(255),
|
2018-05-16 19:25:16 +00:00
|
|
|
parent_campaign_id integer,
|
2018-05-29 15:31:55 +00:00
|
|
|
reason_for_supporting text,
|
2018-05-30 14:49:18 +00:00
|
|
|
default_reason_for_supporting text,
|
|
|
|
banner_image character varying(255)
|
2018-03-25 17:30:42 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: campaigns_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.campaigns_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: campaigns_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.campaigns_id_seq OWNED BY public.campaigns.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cards; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.cards (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
name character varying(255),
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
status character varying(255),
|
|
|
|
profile_id integer,
|
|
|
|
email character varying(255),
|
|
|
|
expiration_month integer,
|
|
|
|
expiration_year integer,
|
|
|
|
supporter_id integer,
|
|
|
|
stripe_card_token character varying(255),
|
|
|
|
stripe_card_id character varying(255),
|
|
|
|
holder_id integer,
|
|
|
|
holder_type character varying(255),
|
|
|
|
stripe_customer_id character varying(255),
|
|
|
|
deleted boolean,
|
|
|
|
inactive boolean
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cards_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.cards_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cards_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.cards_id_seq OWNED BY public.cards.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: charges; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.charges (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
amount integer,
|
|
|
|
stripe_charge_id character varying(255),
|
|
|
|
disbursed boolean,
|
|
|
|
failure_message character varying(255),
|
|
|
|
card_id integer,
|
|
|
|
nonprofit_id integer,
|
|
|
|
supporter_id integer,
|
|
|
|
profile_id integer,
|
|
|
|
donation_id integer,
|
|
|
|
ticket_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
payment_id integer,
|
|
|
|
status character varying(255),
|
|
|
|
fee integer,
|
|
|
|
direct_debit_detail_id integer
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: charges_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.charges_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: charges_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.charges_id_seq OWNED BY public.charges.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: comments; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.comments (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
profile_id integer,
|
|
|
|
body text,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
host_id integer,
|
|
|
|
host_type character varying(255)
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.comments_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.comments_id_seq OWNED BY public.comments.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_joins; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.custom_field_joins (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
custom_field_master_id integer,
|
|
|
|
supporter_id integer,
|
|
|
|
value text,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_joins_backup; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.custom_field_joins_backup (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
custom_field_master_id integer,
|
|
|
|
supporter_id integer,
|
|
|
|
metadata text,
|
|
|
|
value text,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_joins_backup_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.custom_field_joins_backup_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_joins_backup_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.custom_field_joins_backup_id_seq OWNED BY public.custom_field_joins_backup.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_joins_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.custom_field_joins_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_joins_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.custom_field_joins_id_seq OWNED BY public.custom_field_joins.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_masters; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.custom_field_masters (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
name character varying(255),
|
|
|
|
nonprofit_id integer,
|
|
|
|
deleted boolean,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_masters_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.custom_field_masters_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_masters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.custom_field_masters_id_seq OWNED BY public.custom_field_masters.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: delayed_jobs; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.delayed_jobs (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
priority integer DEFAULT 0 NOT NULL,
|
|
|
|
attempts integer DEFAULT 0 NOT NULL,
|
|
|
|
handler text NOT NULL,
|
|
|
|
last_error text,
|
|
|
|
run_at timestamp without time zone,
|
|
|
|
locked_at timestamp without time zone,
|
|
|
|
failed_at timestamp without time zone,
|
|
|
|
locked_by character varying(255),
|
|
|
|
queue character varying(255),
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: delayed_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.delayed_jobs_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: delayed_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.delayed_jobs_id_seq OWNED BY public.delayed_jobs.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: direct_debit_details; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.direct_debit_details (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
iban character varying(255),
|
|
|
|
account_holder_name character varying(255),
|
|
|
|
bic character varying(255),
|
|
|
|
holder_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: direct_debit_details_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.direct_debit_details_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: direct_debit_details_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.direct_debit_details_id_seq OWNED BY public.direct_debit_details.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: disputes; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.disputes (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
gross_amount integer,
|
|
|
|
charge_id integer,
|
|
|
|
payment_id integer,
|
|
|
|
reason character varying(255),
|
|
|
|
status character varying(255),
|
|
|
|
stripe_dispute_id character varying(255),
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: disputes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.disputes_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: disputes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.disputes_id_seq OWNED BY public.disputes.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: donations; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.donations (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
amount integer,
|
|
|
|
profile_id integer,
|
|
|
|
nonprofit_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
card_id integer,
|
|
|
|
designation text,
|
|
|
|
offsite boolean,
|
|
|
|
anonymous boolean,
|
|
|
|
supporter_id integer,
|
|
|
|
origin_url text,
|
|
|
|
manual boolean,
|
|
|
|
campaign_id integer,
|
|
|
|
recurring_donation_id integer,
|
|
|
|
comment text,
|
|
|
|
recurring boolean,
|
|
|
|
dedication text,
|
|
|
|
event_id integer,
|
|
|
|
imported_at timestamp without time zone,
|
|
|
|
charge_id integer,
|
|
|
|
payment_id integer,
|
|
|
|
category character varying(255),
|
|
|
|
date timestamp without time zone,
|
|
|
|
queued_for_import_at timestamp without time zone,
|
|
|
|
direct_debit_detail_id integer,
|
|
|
|
payment_provider character varying(255)
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: donations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.donations_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: donations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.donations_id_seq OWNED BY public.donations.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: donations_payment_imports; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.donations_payment_imports (
|
2018-03-25 17:30:42 +00:00
|
|
|
donation_id integer,
|
|
|
|
payment_import_id integer
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_lists; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.email_lists (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
nonprofit_id integer NOT NULL,
|
|
|
|
tag_master_id integer NOT NULL,
|
|
|
|
list_name character varying(255) NOT NULL,
|
|
|
|
mailchimp_list_id character varying(255) NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_lists_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.email_lists_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_lists_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.email_lists_id_seq OWNED BY public.email_lists.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_settings; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.email_settings (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
user_id integer,
|
|
|
|
nonprofit_id integer,
|
|
|
|
notify_payments boolean,
|
|
|
|
notify_campaigns boolean,
|
|
|
|
notify_events boolean,
|
|
|
|
notify_payouts boolean,
|
|
|
|
notify_recurring_donations boolean
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.email_settings_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.email_settings_id_seq OWNED BY public.email_settings.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: event_discounts; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.event_discounts (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
name character varying(255),
|
|
|
|
code character varying(255),
|
|
|
|
event_id integer,
|
|
|
|
percent integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: event_discounts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.event_discounts_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: event_discounts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.event_discounts_id_seq OWNED BY public.event_discounts.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: events; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.events (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
name character varying(255),
|
|
|
|
tagline character varying(255),
|
|
|
|
summary text,
|
|
|
|
body text,
|
|
|
|
latitude double precision,
|
|
|
|
longitude double precision,
|
|
|
|
location character varying(255),
|
|
|
|
main_image character varying(255),
|
|
|
|
background_image character varying(255),
|
|
|
|
nonprofit_id integer,
|
|
|
|
published boolean,
|
|
|
|
slug character varying(255),
|
|
|
|
total_raised integer,
|
|
|
|
directions text,
|
|
|
|
venue_name character varying(255),
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
profile_id integer,
|
|
|
|
city character varying(255),
|
|
|
|
state_code character varying(255),
|
|
|
|
address character varying(255),
|
|
|
|
zip_code character varying(255),
|
|
|
|
show_total_raised boolean DEFAULT false,
|
|
|
|
show_total_count boolean DEFAULT false,
|
|
|
|
hide_activity_feed boolean,
|
|
|
|
hide_title boolean,
|
|
|
|
deleted boolean,
|
|
|
|
receipt_message text,
|
|
|
|
organizer_email character varying(255),
|
|
|
|
start_datetime timestamp without time zone,
|
|
|
|
end_datetime timestamp without time zone
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: events_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.events_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.events_id_seq OWNED BY public.events.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: exports; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.exports (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
user_id integer,
|
|
|
|
nonprofit_id integer,
|
|
|
|
status character varying(255),
|
|
|
|
exception character varying(255),
|
|
|
|
ended timestamp without time zone,
|
|
|
|
export_type character varying(255),
|
|
|
|
parameters character varying(255),
|
|
|
|
url character varying(255),
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: exports_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.exports_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: exports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.exports_id_seq OWNED BY public.exports.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_infos; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.full_contact_infos (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
email character varying(255),
|
|
|
|
full_name character varying(255),
|
|
|
|
gender character varying(255),
|
|
|
|
city character varying(255),
|
|
|
|
county character varying(255),
|
|
|
|
state_code character varying(255),
|
|
|
|
country character varying(255),
|
|
|
|
continent character varying(255),
|
|
|
|
age character varying(255),
|
|
|
|
age_range character varying(255),
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
supporter_id integer,
|
|
|
|
location_general character varying(255),
|
|
|
|
websites text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_infos_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.full_contact_infos_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_infos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.full_contact_infos_id_seq OWNED BY public.full_contact_infos.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_jobs; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.full_contact_jobs (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
supporter_id integer
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.full_contact_jobs_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.full_contact_jobs_id_seq OWNED BY public.full_contact_jobs.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_orgs; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.full_contact_orgs (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
is_primary boolean,
|
|
|
|
name character varying(255),
|
|
|
|
start_date date,
|
|
|
|
end_date date,
|
|
|
|
title character varying(255),
|
|
|
|
current boolean,
|
|
|
|
full_contact_info_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_orgs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.full_contact_orgs_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_orgs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.full_contact_orgs_id_seq OWNED BY public.full_contact_orgs.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_photos; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.full_contact_photos (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
full_contact_info_id integer,
|
|
|
|
type_id character varying(255),
|
|
|
|
is_primary boolean,
|
|
|
|
url text,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_photos_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.full_contact_photos_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_photos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.full_contact_photos_id_seq OWNED BY public.full_contact_photos.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_social_profiles; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.full_contact_social_profiles (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
full_contact_info_id integer,
|
|
|
|
type_id character varying(255),
|
|
|
|
username character varying(255),
|
|
|
|
uid character varying(255),
|
|
|
|
bio text,
|
|
|
|
url character varying(255),
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
followers integer,
|
|
|
|
following integer
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_social_profiles_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.full_contact_social_profiles_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_social_profiles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.full_contact_social_profiles_id_seq OWNED BY public.full_contact_social_profiles.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_topics; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.full_contact_topics (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
provider character varying(255),
|
|
|
|
value character varying(255),
|
|
|
|
full_contact_info_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_topics_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.full_contact_topics_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_topics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.full_contact_topics_id_seq OWNED BY public.full_contact_topics.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: image_attachments; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.image_attachments (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
file character varying(255),
|
|
|
|
parent_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
parent_type character varying(255)
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: image_attachments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.image_attachments_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: image_attachments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.image_attachments_id_seq OWNED BY public.image_attachments.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: imports; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.imports (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
row_count integer,
|
|
|
|
date timestamp without time zone,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
imported_count integer,
|
|
|
|
nonprofit_id integer,
|
|
|
|
user_id integer
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: imports_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.imports_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: imports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.imports_id_seq OWNED BY public.imports.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: miscellaneous_np_infos; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.miscellaneous_np_infos (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
donate_again_url character varying(255),
|
|
|
|
nonprofit_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
change_amount_message text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: miscellaneous_np_infos_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.miscellaneous_np_infos_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: miscellaneous_np_infos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.miscellaneous_np_infos_id_seq OWNED BY public.miscellaneous_np_infos.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: nonprofit_keys; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.nonprofit_keys (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
nonprofit_id integer,
|
|
|
|
mailchimp_token text,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: nonprofit_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.nonprofit_keys_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: nonprofit_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.nonprofit_keys_id_seq OWNED BY public.nonprofit_keys.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: nonprofits; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.nonprofits (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
name character varying(255),
|
|
|
|
tagline character varying(255),
|
|
|
|
phone character varying(255),
|
|
|
|
email character varying(255),
|
|
|
|
main_image character varying(255),
|
|
|
|
second_image character varying(255),
|
|
|
|
third_image character varying(255),
|
|
|
|
website character varying(255),
|
|
|
|
background_image character varying(255),
|
|
|
|
logo character varying(255),
|
|
|
|
summary text,
|
|
|
|
categories text,
|
|
|
|
ein character varying(255),
|
|
|
|
full_description text,
|
|
|
|
achievements text,
|
|
|
|
state_code character varying(255),
|
|
|
|
city character varying(255),
|
|
|
|
slug character varying(255),
|
|
|
|
published boolean,
|
|
|
|
address text,
|
|
|
|
vetted boolean,
|
|
|
|
zip_code character varying(255),
|
|
|
|
latitude double precision,
|
|
|
|
longitude double precision,
|
|
|
|
pending_balance integer,
|
|
|
|
state_code_slug character varying(255),
|
|
|
|
city_slug character varying(255),
|
|
|
|
referrer character varying(255),
|
|
|
|
thank_you_note text,
|
|
|
|
no_anon boolean,
|
|
|
|
timezone character varying(255),
|
|
|
|
statement character varying(255),
|
|
|
|
brand_color character varying(255),
|
|
|
|
brand_font character varying(255),
|
|
|
|
stripe_account_id character varying(255),
|
|
|
|
verification_status character varying(255),
|
|
|
|
hide_activity_feed boolean,
|
|
|
|
tracking_script text DEFAULT ''::text,
|
|
|
|
facebook character varying(255),
|
|
|
|
twitter character varying(255),
|
|
|
|
youtube character varying(255),
|
|
|
|
instagram character varying(255),
|
|
|
|
blog character varying(255),
|
|
|
|
card_failure_message_top text,
|
|
|
|
card_failure_message_bottom text,
|
|
|
|
fields_needed text,
|
|
|
|
autocomplete_supporter_address boolean DEFAULT false,
|
2018-07-03 17:54:00 +00:00
|
|
|
currency character varying(255) DEFAULT 'usd'::character varying
|
2018-03-25 17:30:42 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: nonprofits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.nonprofits_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: nonprofits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.nonprofits_id_seq OWNED BY public.nonprofits.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: offsite_payments; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.offsite_payments (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
gross_amount integer,
|
|
|
|
kind character varying(255),
|
|
|
|
nonprofit_id integer,
|
|
|
|
supporter_id integer,
|
|
|
|
donation_id integer,
|
|
|
|
payment_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
date timestamp without time zone,
|
|
|
|
check_number character varying(255),
|
|
|
|
user_id integer
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: offsite_payments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.offsite_payments_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: offsite_payments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.offsite_payments_id_seq OWNED BY public.offsite_payments.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payment_imports; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.payment_imports (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
user_id integer,
|
|
|
|
nonprofit_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payment_imports_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.payment_imports_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payment_imports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.payment_imports_id_seq OWNED BY public.payment_imports.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payment_payouts; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.payment_payouts (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
donation_id integer,
|
|
|
|
payout_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
total_fees integer,
|
|
|
|
charge_id integer,
|
|
|
|
payment_id integer
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payment_payouts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.payment_payouts_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payment_payouts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.payment_payouts_id_seq OWNED BY public.payment_payouts.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payments; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.payments (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
gross_amount integer,
|
|
|
|
refund_total integer,
|
|
|
|
fee_total integer,
|
|
|
|
net_amount integer,
|
|
|
|
nonprofit_id integer,
|
|
|
|
supporter_id integer,
|
|
|
|
towards character varying(255),
|
|
|
|
kind character varying(255),
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
donation_id integer,
|
|
|
|
date timestamp without time zone,
|
|
|
|
search_vectors tsvector
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.payments_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.payments_id_seq OWNED BY public.payments.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payouts; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.payouts (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
net_amount integer,
|
|
|
|
nonprofit_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
failure_message character varying(255),
|
|
|
|
status character varying(255),
|
|
|
|
fee_total integer,
|
|
|
|
gross_amount integer,
|
|
|
|
bank_name character varying(255),
|
|
|
|
email character varying(255),
|
|
|
|
count integer,
|
|
|
|
manual boolean,
|
|
|
|
scheduled boolean,
|
|
|
|
stripe_transfer_id character varying(255),
|
|
|
|
user_ip character varying(255),
|
|
|
|
ach_fee integer
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payouts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.payouts_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payouts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.payouts_id_seq OWNED BY public.payouts.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: profiles; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.profiles (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
name character varying(255),
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
user_id integer,
|
|
|
|
admin_id integer,
|
|
|
|
state_code character varying(255),
|
|
|
|
city character varying(255),
|
|
|
|
privacy_settings text,
|
|
|
|
picture character varying(255),
|
|
|
|
phone character varying(255),
|
|
|
|
address character varying(255),
|
|
|
|
anonymous boolean,
|
|
|
|
zip_code character varying(255),
|
|
|
|
total_recurring integer,
|
|
|
|
first_name character varying(255),
|
|
|
|
last_name character varying(255),
|
|
|
|
mini_bio text,
|
|
|
|
country character varying(255) DEFAULT 'US'::character varying
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: profiles_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.profiles_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: profiles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.profiles_id_seq OWNED BY public.profiles.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: recurring_donations; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.recurring_donations (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
active boolean,
|
|
|
|
paydate integer,
|
|
|
|
card_id integer,
|
|
|
|
nonprofit_id integer,
|
|
|
|
campaign_id integer,
|
|
|
|
origin_url character varying(255),
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
profile_id integer,
|
|
|
|
amount integer,
|
|
|
|
supporter_id integer,
|
|
|
|
email character varying(255),
|
|
|
|
edit_token character varying(255),
|
|
|
|
failure_message character varying(255),
|
|
|
|
"interval" integer,
|
|
|
|
time_unit character varying(255),
|
|
|
|
start_date date,
|
|
|
|
end_date date,
|
|
|
|
anonymous boolean,
|
|
|
|
donation_id integer,
|
|
|
|
n_failures integer,
|
|
|
|
cancelled_by character varying(255),
|
|
|
|
cancelled_at timestamp without time zone
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: recurring_donations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.recurring_donations_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: recurring_donations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.recurring_donations_id_seq OWNED BY public.recurring_donations.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: refunds; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.refunds (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
amount integer,
|
|
|
|
comment text,
|
|
|
|
charge_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
stripe_refund_id character varying(255),
|
|
|
|
reason character varying(255),
|
|
|
|
disbursed boolean,
|
|
|
|
user_id integer,
|
|
|
|
payment_id integer
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: refunds_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.refunds_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: refunds_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.refunds_id_seq OWNED BY public.refunds.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: roles; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.roles (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
name character varying(255),
|
|
|
|
user_id integer,
|
|
|
|
host_id integer,
|
|
|
|
host_type character varying(255),
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: roles_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.roles_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.roles_id_seq OWNED BY public.roles.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.schema_migrations (
|
2018-03-25 17:30:42 +00:00
|
|
|
version character varying(255) NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: sessions; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.sessions (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
session_id character varying(255) NOT NULL,
|
|
|
|
data text,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: sessions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.sessions_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: sessions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.sessions_id_seq OWNED BY public.sessions.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: source_tokens; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.source_tokens (
|
2018-03-25 17:30:42 +00:00
|
|
|
token uuid NOT NULL,
|
|
|
|
expiration timestamp without time zone,
|
|
|
|
tokenizable_id integer,
|
|
|
|
tokenizable_type character varying(255),
|
|
|
|
event_id integer,
|
|
|
|
max_uses integer DEFAULT 1,
|
|
|
|
total_uses integer DEFAULT 0,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporter_emails; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.supporter_emails (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
"to" text,
|
|
|
|
"from" character varying(255),
|
|
|
|
subject character varying(255),
|
|
|
|
body text,
|
|
|
|
supporter_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
nonprofit_id integer,
|
|
|
|
recipient_count integer,
|
|
|
|
user_id integer,
|
|
|
|
gmail_thread_id character varying(255)
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporter_emails_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.supporter_emails_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporter_emails_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.supporter_emails_id_seq OWNED BY public.supporter_emails.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporter_notes; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.supporter_notes (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
content text,
|
|
|
|
supporter_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
user_id integer,
|
|
|
|
deleted boolean
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporter_notes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.supporter_notes_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporter_notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.supporter_notes_id_seq OWNED BY public.supporter_notes.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporters; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.supporters (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
profile_id integer,
|
|
|
|
nonprofit_id integer,
|
|
|
|
fields text,
|
|
|
|
notes text,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
name character varying(255),
|
|
|
|
email character varying(255),
|
|
|
|
phone character varying(255),
|
|
|
|
address character varying(255),
|
|
|
|
city character varying(255),
|
|
|
|
state_code character varying(255),
|
|
|
|
anonymous boolean,
|
|
|
|
zip_code character varying(255),
|
|
|
|
latitude double precision,
|
|
|
|
longitude double precision,
|
|
|
|
full_contact_info_id integer,
|
|
|
|
deleted boolean DEFAULT false,
|
|
|
|
organization character varying(255),
|
|
|
|
imported_at timestamp without time zone,
|
|
|
|
country character varying(255) DEFAULT 'United States'::character varying,
|
|
|
|
import_id integer,
|
|
|
|
email_unsubscribe_uuid character varying(255),
|
|
|
|
is_unsubscribed_from_emails boolean,
|
|
|
|
search_vectors tsvector,
|
|
|
|
merged_into integer,
|
|
|
|
merged_at timestamp without time zone,
|
|
|
|
region character varying(255),
|
|
|
|
first_name character varying(255),
|
|
|
|
last_name character varying(255),
|
|
|
|
locale character varying(255)
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporters_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.supporters_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.supporters_id_seq OWNED BY public.supporters.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_joins; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.tag_joins (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
tag_master_id integer,
|
|
|
|
supporter_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_joins_backup; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.tag_joins_backup (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
tag_master_id integer,
|
|
|
|
supporter_id integer,
|
|
|
|
created_at timestamp without time zone,
|
|
|
|
updated_at timestamp without time zone,
|
|
|
|
metadata text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_joins_backup_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.tag_joins_backup_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_joins_backup_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.tag_joins_backup_id_seq OWNED BY public.tag_joins_backup.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_joins_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.tag_joins_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_joins_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.tag_joins_id_seq OWNED BY public.tag_joins.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_masters; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.tag_masters (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
name character varying(255),
|
|
|
|
nonprofit_id integer,
|
|
|
|
deleted boolean,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_masters_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.tag_masters_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_masters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.tag_masters_id_seq OWNED BY public.tag_masters.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: ticket_levels; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.ticket_levels (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
event_id integer,
|
|
|
|
amount integer,
|
|
|
|
quantity integer,
|
|
|
|
name character varying(255),
|
|
|
|
description text,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
deleted boolean,
|
|
|
|
"limit" integer,
|
|
|
|
event_discount_id integer,
|
|
|
|
admin_only boolean,
|
|
|
|
"order" integer
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: ticket_levels_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.ticket_levels_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: ticket_levels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.ticket_levels_id_seq OWNED BY public.ticket_levels.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tickets; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.tickets (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
ticket_level_id integer,
|
|
|
|
charge_id integer,
|
|
|
|
profile_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
supporter_id integer,
|
|
|
|
event_id integer,
|
|
|
|
quantity integer,
|
|
|
|
checked_in boolean,
|
|
|
|
bid_id integer,
|
|
|
|
card_id integer,
|
|
|
|
payment_id integer,
|
|
|
|
note text,
|
|
|
|
event_discount_id integer,
|
|
|
|
deleted boolean,
|
|
|
|
source_token_id uuid
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tickets_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.tickets_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tickets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.tickets_id_seq OWNED BY public.tickets.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: trackings; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.trackings (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
utm_campaign character varying(255),
|
|
|
|
utm_medium character varying(255),
|
|
|
|
utm_source character varying(255),
|
|
|
|
donation_id integer,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
utm_content character varying(255)
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: trackings_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.trackings_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: trackings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.trackings_id_seq OWNED BY public.trackings.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: users; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE TABLE public.users (
|
2018-03-25 17:30:42 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
email character varying(255) DEFAULT ''::character varying NOT NULL,
|
|
|
|
encrypted_password character varying(255) DEFAULT ''::character varying NOT NULL,
|
|
|
|
reset_password_token character varying(255),
|
|
|
|
reset_password_sent_at timestamp without time zone,
|
|
|
|
remember_created_at timestamp without time zone,
|
|
|
|
sign_in_count integer DEFAULT 0,
|
|
|
|
current_sign_in_at timestamp without time zone,
|
|
|
|
last_sign_in_at timestamp without time zone,
|
|
|
|
current_sign_in_ip character varying(255),
|
|
|
|
last_sign_in_ip character varying(255),
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
provider character varying(255),
|
|
|
|
uid character varying(255),
|
|
|
|
user_id integer,
|
|
|
|
token character varying(255),
|
|
|
|
secret character varying(255),
|
|
|
|
link character varying(255),
|
|
|
|
name character varying(255),
|
|
|
|
auto_generated boolean,
|
|
|
|
referer integer,
|
|
|
|
pending_password boolean,
|
|
|
|
picture character varying(255),
|
|
|
|
city character varying(255),
|
|
|
|
state_code character varying(255),
|
|
|
|
location character varying(255),
|
|
|
|
latitude double precision,
|
|
|
|
longitude double precision,
|
|
|
|
confirmation_token character varying(255),
|
|
|
|
confirmed_at timestamp without time zone,
|
|
|
|
confirmation_sent_at timestamp without time zone,
|
|
|
|
unconfirmed_email character varying(255),
|
|
|
|
phone character varying
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE SEQUENCE public.users_id_seq
|
2018-03-25 17:30:42 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: activities id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.activities ALTER COLUMN id SET DEFAULT nextval('public.activities_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: bank_accounts id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.bank_accounts ALTER COLUMN id SET DEFAULT nextval('public.bank_accounts_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: billing_plans id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.billing_plans ALTER COLUMN id SET DEFAULT nextval('public.billing_plans_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: billing_subscriptions id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.billing_subscriptions ALTER COLUMN id SET DEFAULT nextval('public.billing_subscriptions_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: campaign_gift_options id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.campaign_gift_options ALTER COLUMN id SET DEFAULT nextval('public.campaign_gift_options_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: campaign_gifts id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.campaign_gifts ALTER COLUMN id SET DEFAULT nextval('public.campaign_gifts_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: campaigns id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.campaigns ALTER COLUMN id SET DEFAULT nextval('public.campaigns_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cards id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.cards ALTER COLUMN id SET DEFAULT nextval('public.cards_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: charges id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.charges ALTER COLUMN id SET DEFAULT nextval('public.charges_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: comments id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.comments ALTER COLUMN id SET DEFAULT nextval('public.comments_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_joins id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.custom_field_joins ALTER COLUMN id SET DEFAULT nextval('public.custom_field_joins_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_joins_backup id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.custom_field_joins_backup ALTER COLUMN id SET DEFAULT nextval('public.custom_field_joins_backup_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_masters id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.custom_field_masters ALTER COLUMN id SET DEFAULT nextval('public.custom_field_masters_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: delayed_jobs id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.delayed_jobs ALTER COLUMN id SET DEFAULT nextval('public.delayed_jobs_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: direct_debit_details id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.direct_debit_details ALTER COLUMN id SET DEFAULT nextval('public.direct_debit_details_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: disputes id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.disputes ALTER COLUMN id SET DEFAULT nextval('public.disputes_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: donations id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.donations ALTER COLUMN id SET DEFAULT nextval('public.donations_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_lists id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.email_lists ALTER COLUMN id SET DEFAULT nextval('public.email_lists_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_settings id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.email_settings ALTER COLUMN id SET DEFAULT nextval('public.email_settings_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: event_discounts id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.event_discounts ALTER COLUMN id SET DEFAULT nextval('public.event_discounts_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: events id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.events ALTER COLUMN id SET DEFAULT nextval('public.events_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: exports id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.exports ALTER COLUMN id SET DEFAULT nextval('public.exports_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_infos id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.full_contact_infos ALTER COLUMN id SET DEFAULT nextval('public.full_contact_infos_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_jobs id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.full_contact_jobs ALTER COLUMN id SET DEFAULT nextval('public.full_contact_jobs_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_orgs id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.full_contact_orgs ALTER COLUMN id SET DEFAULT nextval('public.full_contact_orgs_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_photos id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.full_contact_photos ALTER COLUMN id SET DEFAULT nextval('public.full_contact_photos_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_social_profiles id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.full_contact_social_profiles ALTER COLUMN id SET DEFAULT nextval('public.full_contact_social_profiles_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_topics id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.full_contact_topics ALTER COLUMN id SET DEFAULT nextval('public.full_contact_topics_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: image_attachments id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.image_attachments ALTER COLUMN id SET DEFAULT nextval('public.image_attachments_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: imports id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.imports ALTER COLUMN id SET DEFAULT nextval('public.imports_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: miscellaneous_np_infos id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.miscellaneous_np_infos ALTER COLUMN id SET DEFAULT nextval('public.miscellaneous_np_infos_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: nonprofit_keys id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.nonprofit_keys ALTER COLUMN id SET DEFAULT nextval('public.nonprofit_keys_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: nonprofits id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.nonprofits ALTER COLUMN id SET DEFAULT nextval('public.nonprofits_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: offsite_payments id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.offsite_payments ALTER COLUMN id SET DEFAULT nextval('public.offsite_payments_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payment_imports id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.payment_imports ALTER COLUMN id SET DEFAULT nextval('public.payment_imports_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payment_payouts id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.payment_payouts ALTER COLUMN id SET DEFAULT nextval('public.payment_payouts_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payments id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.payments ALTER COLUMN id SET DEFAULT nextval('public.payments_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payouts id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.payouts ALTER COLUMN id SET DEFAULT nextval('public.payouts_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: profiles id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.profiles ALTER COLUMN id SET DEFAULT nextval('public.profiles_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: recurring_donations id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.recurring_donations ALTER COLUMN id SET DEFAULT nextval('public.recurring_donations_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: refunds id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.refunds ALTER COLUMN id SET DEFAULT nextval('public.refunds_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: roles id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.roles ALTER COLUMN id SET DEFAULT nextval('public.roles_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: sessions id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.sessions ALTER COLUMN id SET DEFAULT nextval('public.sessions_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporter_emails id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.supporter_emails ALTER COLUMN id SET DEFAULT nextval('public.supporter_emails_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporter_notes id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.supporter_notes ALTER COLUMN id SET DEFAULT nextval('public.supporter_notes_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporters id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.supporters ALTER COLUMN id SET DEFAULT nextval('public.supporters_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_joins id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.tag_joins ALTER COLUMN id SET DEFAULT nextval('public.tag_joins_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_joins_backup id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.tag_joins_backup ALTER COLUMN id SET DEFAULT nextval('public.tag_joins_backup_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_masters id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.tag_masters ALTER COLUMN id SET DEFAULT nextval('public.tag_masters_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: ticket_levels id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.ticket_levels ALTER COLUMN id SET DEFAULT nextval('public.ticket_levels_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tickets id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.tickets ALTER COLUMN id SET DEFAULT nextval('public.tickets_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: trackings id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.trackings ALTER COLUMN id SET DEFAULT nextval('public.trackings_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: users id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: ar_internal_metadata ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.ar_internal_metadata
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: billing_plans billing_plan_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.billing_plans
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT billing_plan_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: billing_subscriptions billing_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.billing_subscriptions
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT billing_subscriptions_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: activities campaign_activities_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.activities
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT campaign_activities_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: comments campaign_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.comments
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT campaign_comments_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: campaign_gift_options campaign_gift_options_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.campaign_gift_options
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT campaign_gift_options_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: campaign_gifts campaign_gifts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.campaign_gifts
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT campaign_gifts_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: campaigns campaigns_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.campaigns
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT campaigns_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: charges charges_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.charges
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT charges_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_joins_backup custom_field_joins_backup_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.custom_field_joins_backup
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT custom_field_joins_backup_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_joins custom_field_joins_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.custom_field_joins
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT custom_field_joins_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_masters custom_field_masters_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.custom_field_masters
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT custom_field_masters_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: delayed_jobs delayed_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.delayed_jobs
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT delayed_jobs_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: direct_debit_details direct_debit_details_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.direct_debit_details
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT direct_debit_details_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: disputes disputes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.disputes
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT disputes_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payment_payouts donation_disbursals_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.payment_payouts
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT donation_disbursals_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: donations donations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.donations
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT donations_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: profiles donor_profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.profiles
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT donor_profiles_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_settings email_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.email_settings
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT email_settings_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: event_discounts event_discounts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.event_discounts
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT event_discounts_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: events events_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.events
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT events_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: exports exports_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.exports
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT exports_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_infos full_contact_infos_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.full_contact_infos
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT full_contact_infos_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_jobs full_contact_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.full_contact_jobs
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT full_contact_jobs_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_orgs full_contact_orgs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.full_contact_orgs
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT full_contact_orgs_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_photos full_contact_photos_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.full_contact_photos
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT full_contact_photos_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_social_profiles full_contact_social_profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.full_contact_social_profiles
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT full_contact_social_profiles_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: full_contact_topics full_contact_topics_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.full_contact_topics
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT full_contact_topics_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: image_attachments image_attachments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.image_attachments
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT image_attachments_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: imports imports_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.imports
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT imports_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_lists mailchimp_email_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.email_lists
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT mailchimp_email_lists_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: miscellaneous_np_infos miscellaneous_np_infos_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.miscellaneous_np_infos
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT miscellaneous_np_infos_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: bank_accounts nonprofit_bank_accounts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.bank_accounts
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT nonprofit_bank_accounts_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payouts nonprofit_credits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.payouts
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT nonprofit_credits_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: nonprofit_keys nonprofit_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.nonprofit_keys
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT nonprofit_keys_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: nonprofits npos_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.nonprofits
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT npos_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: offsite_payments offsite_payments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.offsite_payments
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT offsite_payments_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payment_imports payment_imports_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.payment_imports
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT payment_imports_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cards payment_methods_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.cards
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT payment_methods_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payments payments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.payments
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT payments_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: recurring_donations recurring_donations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.recurring_donations
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT recurring_donations_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: refunds refunds_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.refunds
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT refunds_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: roles roles_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.roles
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT roles_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: sessions sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.sessions
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT sessions_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporters supporter_data_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.supporters
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT supporter_data_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporter_emails supporter_emails_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.supporter_emails
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT supporter_emails_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporter_notes supporter_notes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.supporter_notes
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT supporter_notes_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_joins_backup tag_joins_backup_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.tag_joins_backup
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT tag_joins_backup_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_joins tag_joins_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.tag_joins
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT tag_joins_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_masters tag_masters_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.tag_masters
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT tag_masters_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: ticket_levels ticket_levels_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.ticket_levels
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT ticket_levels_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tickets tickets_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.tickets
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT tickets_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: trackings trackings_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.trackings
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT trackings_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
ALTER TABLE ONLY public.users
|
2018-03-25 17:30:42 +00:00
|
|
|
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_join_supporter_unique_idx; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE UNIQUE INDEX custom_field_join_supporter_unique_idx ON public.custom_field_joins USING btree (custom_field_master_id, supporter_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_field_joins_custom_field_master_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX custom_field_joins_custom_field_master_id ON public.custom_field_joins USING btree (custom_field_master_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: delayed_jobs_priority; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX delayed_jobs_priority ON public.delayed_jobs USING btree (priority, run_at);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: donations_amount; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX donations_amount ON public.donations USING btree (amount);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: donations_campaign_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX donations_campaign_id ON public.donations USING btree (campaign_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: donations_designation; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX donations_designation ON public.donations USING btree (lower(designation));
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: donations_event_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX donations_event_id ON public.donations USING btree (event_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: donations_supporter_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX donations_supporter_id ON public.donations USING btree (supporter_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_activities_on_nonprofit_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX index_activities_on_nonprofit_id ON public.activities USING btree (nonprofit_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_activities_on_supporter_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX index_activities_on_supporter_id ON public.activities USING btree (supporter_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_campaign_gifts_on_campaign_gift_option_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX index_campaign_gifts_on_campaign_gift_option_id ON public.campaign_gifts USING btree (campaign_gift_option_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
2018-12-04 22:40:48 +00:00
|
|
|
--
|
|
|
|
-- Name: index_campaign_gifts_on_donation_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_campaign_gifts_on_donation_id ON public.campaign_gifts USING btree (donation_id);
|
|
|
|
|
|
|
|
|
2018-11-20 18:22:59 +00:00
|
|
|
--
|
|
|
|
-- Name: index_campaigns_on_parent_campaign_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_campaigns_on_parent_campaign_id ON public.campaigns USING btree (parent_campaign_id);
|
|
|
|
|
|
|
|
|
2018-03-25 17:30:42 +00:00
|
|
|
--
|
|
|
|
-- Name: index_cards_on_id_and_holder_type_and_holder_id_and_inactive; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX index_cards_on_id_and_holder_type_and_holder_id_and_inactive ON public.cards USING btree (id, holder_type, holder_id, inactive);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_charges_on_payment_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX index_charges_on_payment_id ON public.charges USING btree (payment_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
2018-06-22 20:30:39 +00:00
|
|
|
--
|
|
|
|
-- Name: index_donations_on_event_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_donations_on_event_id ON public.donations USING btree (event_id);
|
|
|
|
|
|
|
|
|
2018-03-25 17:30:42 +00:00
|
|
|
--
|
|
|
|
-- Name: index_exports_on_nonprofit_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX index_exports_on_nonprofit_id ON public.exports USING btree (nonprofit_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_exports_on_user_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX index_exports_on_user_id ON public.exports USING btree (user_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
2018-12-04 22:40:48 +00:00
|
|
|
--
|
|
|
|
-- Name: index_payments_on_created_at; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_payments_on_created_at ON public.payments USING btree (created_at);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_recurring_donations_on_donation_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_recurring_donations_on_donation_id ON public.recurring_donations USING btree (donation_id);
|
|
|
|
|
|
|
|
|
2018-07-25 18:20:05 +00:00
|
|
|
--
|
|
|
|
-- Name: index_refunds_on_charge_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_refunds_on_charge_id ON public.refunds USING btree (charge_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_refunds_on_payment_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_refunds_on_payment_id ON public.refunds USING btree (payment_id);
|
|
|
|
|
|
|
|
|
2018-03-25 17:30:42 +00:00
|
|
|
--
|
|
|
|
-- Name: index_sessions_on_session_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX index_sessions_on_session_id ON public.sessions USING btree (session_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_sessions_on_updated_at; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX index_sessions_on_updated_at ON public.sessions USING btree (updated_at);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_source_tokens_on_expiration; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX index_source_tokens_on_expiration ON public.source_tokens USING btree (expiration);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_source_tokens_on_token; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE UNIQUE INDEX index_source_tokens_on_token ON public.source_tokens USING btree (token);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_source_tokens_on_tokenizable_id_and_tokenizable_type; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX index_source_tokens_on_tokenizable_id_and_tokenizable_type ON public.source_tokens USING btree (tokenizable_id, tokenizable_type);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
2018-06-04 21:07:02 +00:00
|
|
|
--
|
|
|
|
-- Name: index_supporter_notes_on_supporter_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_supporter_notes_on_supporter_id ON public.supporter_notes USING btree (supporter_id);
|
|
|
|
|
|
|
|
|
2018-03-25 17:30:42 +00:00
|
|
|
--
|
|
|
|
-- Name: index_supporters_on_deleted; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX index_supporters_on_deleted ON public.supporters USING btree (deleted);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_supporters_on_import_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX index_supporters_on_import_id ON public.supporters USING btree (import_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_supporters_on_name; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX index_supporters_on_name ON public.supporters USING btree (name);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
2018-06-22 20:30:39 +00:00
|
|
|
--
|
|
|
|
-- Name: index_tickets_on_event_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_tickets_on_event_id ON public.tickets USING btree (event_id);
|
|
|
|
|
|
|
|
|
2018-07-25 18:20:05 +00:00
|
|
|
--
|
|
|
|
-- Name: index_tickets_on_payment_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_tickets_on_payment_id ON public.tickets USING btree (payment_id);
|
|
|
|
|
|
|
|
|
2018-06-22 20:30:39 +00:00
|
|
|
--
|
|
|
|
-- Name: index_tickets_on_supporter_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_tickets_on_supporter_id ON public.tickets USING btree (supporter_id);
|
|
|
|
|
|
|
|
|
2018-03-25 17:30:42 +00:00
|
|
|
--
|
|
|
|
-- Name: index_users_on_confirmation_token; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE UNIQUE INDEX index_users_on_confirmation_token ON public.users USING btree (confirmation_token);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_users_on_email; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE UNIQUE INDEX index_users_on_email ON public.users USING btree (email);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_users_on_reset_password_token; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE UNIQUE INDEX index_users_on_reset_password_token ON public.users USING btree (reset_password_token);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payments_date; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX payments_date ON public.payments USING btree (date);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payments_donation_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX payments_donation_id ON public.payments USING btree (donation_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payments_gross_amount; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX payments_gross_amount ON public.payments USING btree (gross_amount);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payments_kind; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX payments_kind ON public.payments USING btree (kind);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payments_nonprofit_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX payments_nonprofit_id ON public.payments USING btree (nonprofit_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payments_search_idx; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX payments_search_idx ON public.payments USING gin (search_vectors);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payments_supporter_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX payments_supporter_id ON public.payments USING btree (supporter_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: payments_towards; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX payments_towards ON public.payments USING btree (lower((towards)::text));
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporters_created_at; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX supporters_created_at ON public.supporters USING btree (created_at) WHERE (deleted <> true);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporters_email; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX supporters_email ON public.supporters USING btree (lower((email)::text)) WHERE (deleted <> true);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporters_general_idx; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX supporters_general_idx ON public.supporters USING gin (to_tsvector('english'::regconfig, (((COALESCE(name, ''::character varying))::text || ' '::text) || (COALESCE(email, ''::character varying))::text)));
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporters_lower_name; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX supporters_lower_name ON public.supporters USING btree (lower((name)::text)) WHERE (deleted <> true);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporters_nonprofit_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX supporters_nonprofit_id ON public.supporters USING btree (nonprofit_id) WHERE (deleted <> true);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: supporters_search_idx; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX supporters_search_idx ON public.supporters USING gin (search_vectors);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_join_supporter_unique_idx; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE UNIQUE INDEX tag_join_supporter_unique_idx ON public.tag_joins USING btree (tag_master_id, supporter_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_joins_supporter_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX tag_joins_supporter_id ON public.tag_joins USING btree (supporter_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_joins_tag_master_id; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE INDEX tag_joins_tag_master_id ON public.tag_joins USING btree (tag_master_id);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-07-03 17:54:00 +00:00
|
|
|
CREATE UNIQUE INDEX unique_schema_migrations ON public.schema_migrations USING btree (version);
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- PostgreSQL database dump complete
|
|
|
|
--
|
|
|
|
|
|
|
|
SET search_path TO "$user", public;
|
|
|
|
|
2019-11-05 19:51:25 +00:00
|
|
|
INSERT INTO "schema_migrations" (version) VALUES
|
|
|
|
('20121003222211'),
|
|
|
|
('20121004001526'),
|
|
|
|
('20121004001607'),
|
|
|
|
('20121015223512'),
|
|
|
|
('20121015225020'),
|
|
|
|
('20121015225910'),
|
|
|
|
('20121019213735'),
|
|
|
|
('20121022182542'),
|
|
|
|
('20121022204042'),
|
|
|
|
('20121022213432'),
|
|
|
|
('20121022221555'),
|
|
|
|
('20121022223847'),
|
|
|
|
('20121024195047'),
|
|
|
|
('20121024195915'),
|
|
|
|
('20121025034330'),
|
|
|
|
('20121025221156'),
|
|
|
|
('20121030222057'),
|
|
|
|
('20121105191635'),
|
|
|
|
('20121106221754'),
|
|
|
|
('20121108210352'),
|
|
|
|
('20121108234416'),
|
|
|
|
('20121114005715'),
|
|
|
|
('20121114043837'),
|
|
|
|
('20121115215133'),
|
|
|
|
('20121116005335'),
|
|
|
|
('20121116225531'),
|
|
|
|
('20121118225834'),
|
|
|
|
('20121118230448'),
|
|
|
|
('20121118232034'),
|
|
|
|
('20121118232459'),
|
|
|
|
('20121119000932'),
|
|
|
|
('20121119001047'),
|
|
|
|
('20121119230540'),
|
|
|
|
('20121121040733'),
|
|
|
|
('20121128232717'),
|
|
|
|
('20121129204251'),
|
|
|
|
('20121129204327'),
|
|
|
|
('20121129212056'),
|
|
|
|
('20121129214734'),
|
|
|
|
('20121204182359'),
|
|
|
|
('20121214222749'),
|
|
|
|
('20130101221516'),
|
|
|
|
('20130118185608'),
|
|
|
|
('20130118193956'),
|
|
|
|
('20130201000156'),
|
|
|
|
('20130201231912'),
|
|
|
|
('20130219181314'),
|
|
|
|
('20130219182055'),
|
|
|
|
('20130220230448'),
|
|
|
|
('20130223012349'),
|
|
|
|
('20130226063123'),
|
|
|
|
('20130227000816'),
|
|
|
|
('20130227003421'),
|
|
|
|
('20130227003553'),
|
|
|
|
('20130227004016'),
|
|
|
|
('20130228043355'),
|
|
|
|
('20130302042515'),
|
|
|
|
('20130310042813'),
|
|
|
|
('20130312001712'),
|
|
|
|
('20130312044632'),
|
|
|
|
('20130314210510'),
|
|
|
|
('20130321212034'),
|
|
|
|
('20130324021734'),
|
|
|
|
('20130325225405'),
|
|
|
|
('20130401213946'),
|
|
|
|
('20130402014034'),
|
|
|
|
('20130416220113'),
|
|
|
|
('20130417170420'),
|
|
|
|
('20130417171255'),
|
|
|
|
('20130417234751'),
|
|
|
|
('20130418032103'),
|
|
|
|
('20130422160944'),
|
|
|
|
('20130423232208'),
|
|
|
|
('20130423233612'),
|
|
|
|
('20130521054001'),
|
|
|
|
('20130523211240'),
|
|
|
|
('20130625231648'),
|
|
|
|
('20130625233230'),
|
|
|
|
('20130627020419'),
|
|
|
|
('20130627021950'),
|
|
|
|
('20130628020316'),
|
|
|
|
('20130628025232'),
|
|
|
|
('20130701053605'),
|
|
|
|
('20130701054130'),
|
|
|
|
('20130703213155'),
|
|
|
|
('20130703213855'),
|
|
|
|
('20130704025623'),
|
|
|
|
('20130707005204'),
|
|
|
|
('20130708194147'),
|
|
|
|
('20130712164932'),
|
|
|
|
('20130717063816'),
|
|
|
|
('20130723060724'),
|
|
|
|
('20130730052924'),
|
|
|
|
('20130730231739'),
|
|
|
|
('20130730234913'),
|
|
|
|
('20130731030605'),
|
|
|
|
('20130731213414'),
|
|
|
|
('20130801060524'),
|
|
|
|
('20130802144119'),
|
|
|
|
('20130803034617'),
|
|
|
|
('20130805003250'),
|
|
|
|
('20130805204823'),
|
|
|
|
('20130814223517'),
|
|
|
|
('20130814225735'),
|
|
|
|
('20130816233808'),
|
|
|
|
('20130818060137'),
|
|
|
|
('20130818190900'),
|
|
|
|
('20130818235825'),
|
|
|
|
('20130820180352'),
|
|
|
|
('20130821191332'),
|
|
|
|
('20130822022544'),
|
|
|
|
('20130826181153'),
|
|
|
|
('20130827173405'),
|
|
|
|
('20130827183432'),
|
|
|
|
('20130904042040'),
|
|
|
|
('20130921224415'),
|
|
|
|
('20130921225406'),
|
|
|
|
('20130925213523'),
|
|
|
|
('20130930184513'),
|
|
|
|
('20130930205900'),
|
|
|
|
('20131002172022'),
|
|
|
|
('20131004175052'),
|
|
|
|
('20131006161731'),
|
|
|
|
('20131006190252'),
|
|
|
|
('20131106025929'),
|
|
|
|
('20131106034344'),
|
|
|
|
('20131106035830'),
|
|
|
|
('20131106042229'),
|
|
|
|
('20131106043131'),
|
|
|
|
('20131108205446'),
|
|
|
|
('20131108224636'),
|
|
|
|
('20131112232223'),
|
|
|
|
('20131113024418'),
|
|
|
|
('20131113201402'),
|
|
|
|
('20131113202229'),
|
|
|
|
('20131119071615'),
|
|
|
|
('20131125211740'),
|
|
|
|
('20131125212800'),
|
|
|
|
('20131125221624'),
|
|
|
|
('20131125231729'),
|
|
|
|
('20131205015135'),
|
|
|
|
('20131205030406'),
|
|
|
|
('20131206002446'),
|
|
|
|
('20131206023239'),
|
|
|
|
('20131206023607'),
|
|
|
|
('20131209233307'),
|
|
|
|
('20131211042607'),
|
|
|
|
('20131212054732'),
|
|
|
|
('20131212235428'),
|
|
|
|
('20131213021924'),
|
|
|
|
('20131213041133'),
|
|
|
|
('20131213042742'),
|
|
|
|
('20131216222208'),
|
|
|
|
('20131216231047'),
|
|
|
|
('20131216231121'),
|
|
|
|
('20131218232301'),
|
|
|
|
('20131218234340'),
|
|
|
|
('20131220220200'),
|
|
|
|
('20131220220351'),
|
|
|
|
('20131220221530'),
|
|
|
|
('20131221010609'),
|
|
|
|
('20131221055220'),
|
|
|
|
('20131221055529'),
|
|
|
|
('20131222013816'),
|
|
|
|
('20131222014659'),
|
|
|
|
('20131224212832'),
|
|
|
|
('20140102004634'),
|
|
|
|
('20140108212131'),
|
|
|
|
('20140108212543'),
|
|
|
|
('20140126025953'),
|
|
|
|
('20140127185544'),
|
|
|
|
('20140127211352'),
|
|
|
|
('20140129223622'),
|
|
|
|
('20140129230126'),
|
|
|
|
('20140129230318'),
|
|
|
|
('20140216033123'),
|
|
|
|
('20140216035737'),
|
|
|
|
('20140216035828'),
|
|
|
|
('20140217225832'),
|
|
|
|
('20140217230156'),
|
|
|
|
('20140219070330'),
|
|
|
|
('20140221025628'),
|
|
|
|
('20140222031116'),
|
|
|
|
('20140223010212'),
|
|
|
|
('20140223073741'),
|
|
|
|
('20140317231021'),
|
|
|
|
('20140317231318'),
|
|
|
|
('20140328000212'),
|
|
|
|
('20140328012232'),
|
|
|
|
('20140407221310'),
|
|
|
|
('20140430210409'),
|
|
|
|
('20140430211518'),
|
|
|
|
('20140430213501'),
|
|
|
|
('20140430233349'),
|
|
|
|
('20140501175340'),
|
|
|
|
('20140503233456'),
|
|
|
|
('20140511033511'),
|
|
|
|
('20140511184653'),
|
|
|
|
('20140520205226'),
|
|
|
|
('20140528160918'),
|
|
|
|
('20140606163447'),
|
|
|
|
('20140606232123'),
|
|
|
|
('20140610175059'),
|
|
|
|
('20140611155122'),
|
|
|
|
('20140614233125'),
|
|
|
|
('20140616190340'),
|
|
|
|
('20140616192924'),
|
|
|
|
('20140630181821'),
|
|
|
|
('20140702013410'),
|
|
|
|
('20140702180325'),
|
|
|
|
('20140707155940'),
|
|
|
|
('20140708181534'),
|
|
|
|
('20140709190718'),
|
|
|
|
('20140709192318'),
|
|
|
|
('20140709204055'),
|
|
|
|
('20140709210712'),
|
|
|
|
('20140709213909'),
|
|
|
|
('20140709223253'),
|
|
|
|
('20140709230823'),
|
|
|
|
('20140710214131'),
|
|
|
|
('20140718220840'),
|
|
|
|
('20140720214847'),
|
|
|
|
('20140721195953'),
|
|
|
|
('20140721211944'),
|
|
|
|
('20140722221532'),
|
|
|
|
('20140723185451'),
|
|
|
|
('20140723222514'),
|
|
|
|
('20140724002918'),
|
|
|
|
('20140805230423'),
|
|
|
|
('20140806001210'),
|
|
|
|
('20140806172832'),
|
|
|
|
('20140806174011'),
|
|
|
|
('20140808234001'),
|
|
|
|
('20140811181505'),
|
|
|
|
('20140821192441'),
|
|
|
|
('20140821212140'),
|
|
|
|
('20140822195714'),
|
|
|
|
('20140827171815'),
|
|
|
|
('20140908191013'),
|
|
|
|
('20140908225939'),
|
|
|
|
('20140908232010'),
|
|
|
|
('20140909220940'),
|
|
|
|
('20140910010244'),
|
|
|
|
('20140911201342'),
|
|
|
|
('20140925180124'),
|
|
|
|
('20141015182304'),
|
|
|
|
('20141016002717'),
|
|
|
|
('20141016174735'),
|
|
|
|
('20141017223033'),
|
|
|
|
('20141022003044'),
|
|
|
|
('20141028171214'),
|
|
|
|
('20141030214435'),
|
|
|
|
('20141030214648'),
|
|
|
|
('20141103040303'),
|
|
|
|
('20141106182116'),
|
|
|
|
('20141106223101'),
|
|
|
|
('20141110233145'),
|
|
|
|
('20141121191153'),
|
|
|
|
('20141122012437'),
|
|
|
|
('20141212154700'),
|
|
|
|
('20141212191850'),
|
|
|
|
('20141219232322'),
|
|
|
|
('20150109200006'),
|
|
|
|
('20150121022029'),
|
|
|
|
('20150121181359'),
|
|
|
|
('20150121181360'),
|
|
|
|
('20150121234212'),
|
|
|
|
('20150129004605'),
|
|
|
|
('20150130001528'),
|
|
|
|
('20150204011831'),
|
|
|
|
('20150211223056'),
|
|
|
|
('20150212003325'),
|
|
|
|
('20150212190054'),
|
|
|
|
('20150218012144'),
|
|
|
|
('20150227190235'),
|
|
|
|
('20150307014612'),
|
|
|
|
('20150312182725'),
|
|
|
|
('20150317004955'),
|
|
|
|
('20150317171721'),
|
|
|
|
('20150326185645'),
|
|
|
|
('20150326190344'),
|
|
|
|
('20150327174356'),
|
|
|
|
('20150330204144'),
|
|
|
|
('20150402063609'),
|
|
|
|
('20150402205908'),
|
|
|
|
('20150406140810'),
|
|
|
|
('20150414000103'),
|
|
|
|
('20150424182907'),
|
|
|
|
('20150424212050'),
|
|
|
|
('20150506174510'),
|
|
|
|
('20150507213234'),
|
|
|
|
('20150519222039'),
|
|
|
|
('20150528011117'),
|
|
|
|
('20150528213325'),
|
|
|
|
('20150605001244'),
|
|
|
|
('20150605194759'),
|
|
|
|
('20150606165608'),
|
|
|
|
('20150608202135'),
|
|
|
|
('20150612063834'),
|
|
|
|
('20150616204323'),
|
|
|
|
('20150622214437'),
|
|
|
|
('20150624233212'),
|
|
|
|
('20150625224248'),
|
|
|
|
('20150626192051'),
|
|
|
|
('20150629205422'),
|
|
|
|
('20150708001411'),
|
|
|
|
('20150709000507'),
|
|
|
|
('20150713193839'),
|
|
|
|
('20150716154253'),
|
|
|
|
('20150720200146'),
|
|
|
|
('20150727000000'),
|
|
|
|
('20150727221732'),
|
|
|
|
('20150727232443'),
|
|
|
|
('20150730170540'),
|
|
|
|
('20150801001957'),
|
|
|
|
('20150803214819'),
|
|
|
|
('20150804214255'),
|
|
|
|
('20150805221334'),
|
|
|
|
('20150806184226'),
|
|
|
|
('20150901191550'),
|
|
|
|
('20150914223407'),
|
|
|
|
('20150918231034'),
|
|
|
|
('20150930000613'),
|
|
|
|
('20151001000455'),
|
|
|
|
('20151001010557'),
|
|
|
|
('20151003202625'),
|
|
|
|
('20151003202658'),
|
|
|
|
('20151003202719'),
|
|
|
|
('20151003205146'),
|
|
|
|
('20151009224532'),
|
|
|
|
('20151010211429'),
|
|
|
|
('20151010215033'),
|
|
|
|
('20151011210555'),
|
|
|
|
('20151015235805'),
|
|
|
|
('20151016195358'),
|
|
|
|
('20151016230758'),
|
|
|
|
('20151019211403'),
|
|
|
|
('20151019211658'),
|
|
|
|
('20151019212230'),
|
|
|
|
('20151019213217'),
|
|
|
|
('20151019215743'),
|
|
|
|
('20151021162446'),
|
|
|
|
('20151022175345'),
|
|
|
|
('20151026230655'),
|
|
|
|
('20151026230941'),
|
|
|
|
('20151027182344'),
|
|
|
|
('20151028234328'),
|
|
|
|
('20151102212726'),
|
|
|
|
('20151103172430'),
|
|
|
|
('20151103181526'),
|
|
|
|
('20151104180332'),
|
|
|
|
('20151106192352'),
|
|
|
|
('20151116000000'),
|
|
|
|
('20151117000001'),
|
|
|
|
('20151117191440'),
|
|
|
|
('20151118015601'),
|
|
|
|
('20151210000000'),
|
|
|
|
('20151211000000'),
|
|
|
|
('20151510000000'),
|
|
|
|
('20151511000000'),
|
|
|
|
('20160112231714'),
|
|
|
|
('20160113195445'),
|
|
|
|
('20160120191500'),
|
|
|
|
('20160120191749'),
|
|
|
|
('20160208225037'),
|
|
|
|
('20160217025856'),
|
|
|
|
('20160310013605'),
|
|
|
|
('20160310190727'),
|
|
|
|
('20160315233429'),
|
|
|
|
('20160317004443'),
|
|
|
|
('20160323195059'),
|
|
|
|
('20160407003745'),
|
|
|
|
('20160418233007'),
|
|
|
|
('20160426001622'),
|
|
|
|
('20160502191235'),
|
|
|
|
('20160503211508'),
|
|
|
|
('20160505230247'),
|
|
|
|
('20160509194616'),
|
|
|
|
('20160511154224'),
|
|
|
|
('20160511232059'),
|
|
|
|
('20160525045440'),
|
|
|
|
('20160530004848'),
|
|
|
|
('20160603001055'),
|
|
|
|
('20160606180420'),
|
|
|
|
('20160622210950'),
|
|
|
|
('20160629161438'),
|
|
|
|
('20160705192643'),
|
|
|
|
('20160707173036'),
|
|
|
|
('20160707173447'),
|
|
|
|
('20160712161901'),
|
|
|
|
('20160714232656'),
|
|
|
|
('20160714233405'),
|
|
|
|
('20160729175556'),
|
|
|
|
('20160803182417'),
|
|
|
|
('20160803185600'),
|
|
|
|
('20160804223230'),
|
|
|
|
('20160808144134'),
|
|
|
|
('20160808145939'),
|
|
|
|
('20160809000508'),
|
|
|
|
('20160809232303'),
|
|
|
|
('20160816183448'),
|
|
|
|
('20160909000556'),
|
|
|
|
('20160909001649'),
|
|
|
|
('20161017162710'),
|
|
|
|
('20161020231839'),
|
|
|
|
('20161025180615'),
|
|
|
|
('20161031225409'),
|
|
|
|
('20161219202411'),
|
|
|
|
('20161228205838'),
|
|
|
|
('20161230194731'),
|
|
|
|
('20170106001404'),
|
|
|
|
('20170214185152'),
|
|
|
|
('20170214230601'),
|
|
|
|
('20170214231056'),
|
|
|
|
('20170215233354'),
|
|
|
|
('20170307222633'),
|
|
|
|
('20170307223525'),
|
|
|
|
('20170314193744'),
|
|
|
|
('20170322203228'),
|
|
|
|
('20170805180556'),
|
|
|
|
('20170805180557'),
|
|
|
|
('20170805180558'),
|
|
|
|
('20170805180559'),
|
|
|
|
('20170808180559'),
|
|
|
|
('20170818201127'),
|
|
|
|
('20171002160808'),
|
|
|
|
('20171002164402'),
|
|
|
|
('20171004203633'),
|
|
|
|
('20171010204437'),
|
|
|
|
('20171016181942'),
|
|
|
|
('20171024133806'),
|
|
|
|
('20171026102139'),
|
|
|
|
('20171129215957'),
|
|
|
|
('20171130182254'),
|
|
|
|
('20171130193955'),
|
|
|
|
('20171206113317'),
|
|
|
|
('20171207114229'),
|
|
|
|
('20171207191435'),
|
|
|
|
('20171207191712'),
|
|
|
|
('20171207200746'),
|
|
|
|
('20171207200950'),
|
|
|
|
('20171207210431'),
|
|
|
|
('20180106024119'),
|
|
|
|
('20180119215653'),
|
|
|
|
('20180119215913'),
|
|
|
|
('20180202181929'),
|
|
|
|
('20180213191755'),
|
|
|
|
('20180214124311'),
|
|
|
|
('20180215124311'),
|
|
|
|
('20180216064311'),
|
|
|
|
('20180216124311'),
|
|
|
|
('20180217124311'),
|
|
|
|
('20180608205049'),
|
|
|
|
('20180608212658'),
|
|
|
|
('20180703165400'),
|
|
|
|
('20180703165401'),
|
|
|
|
('20180703165402'),
|
|
|
|
('20180703165403'),
|
|
|
|
('20180703165404'),
|
|
|
|
('20180703165405'),
|
|
|
|
('20180713213748'),
|
|
|
|
('20180713215825'),
|
|
|
|
('20180713220028'),
|
|
|
|
('20181002160627'),
|
|
|
|
('20181003212559'),
|
|
|
|
('20181120182105'),
|
|
|
|
('20181128221143'),
|
|
|
|
('20181129205652'),
|
|
|
|
('20181129224030'),
|
|
|
|
('20191105200033');
|
2018-12-04 22:40:48 +00:00
|
|
|
|
|
|
|
|