2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- PostgreSQL database dump
|
|
|
|
--
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
-- Dumped from database version 10.22 (Ubuntu 10.22-0ubuntu0.18.04.1)
|
|
|
|
-- Dumped by pg_dump version 10.22 (Ubuntu 10.22-0ubuntu0.18.04.1)
|
2018-04-11 01:39:56 +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;
|
|
|
|
SELECT pg_catalog.set_config('search_path', '', false);
|
|
|
|
SET check_function_bodies = false;
|
2019-06-22 20:21:06 +00:00
|
|
|
SET xmloption = content;
|
2018-04-11 01:39:56 +00:00
|
|
|
SET client_min_messages = warning;
|
|
|
|
SET row_security = off;
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- 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';
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: timestamp_id(text); Type: FUNCTION; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE FUNCTION public.timestamp_id(table_name text) RETURNS bigint
|
2018-02-18 19:53:50 +00:00
|
|
|
LANGUAGE plpgsql
|
|
|
|
AS $$
|
|
|
|
DECLARE
|
|
|
|
time_part bigint;
|
|
|
|
sequence_base bigint;
|
|
|
|
tail bigint;
|
|
|
|
BEGIN
|
|
|
|
time_part := (
|
|
|
|
-- Get the time in milliseconds
|
|
|
|
((date_part('epoch', now()) * 1000))::bigint
|
|
|
|
-- And shift it over two bytes
|
|
|
|
<< 16);
|
|
|
|
|
|
|
|
sequence_base := (
|
|
|
|
'x' ||
|
|
|
|
-- Take the first two bytes (four hex characters)
|
|
|
|
substr(
|
|
|
|
-- Of the MD5 hash of the data we documented
|
|
|
|
md5(table_name ||
|
2018-03-06 04:29:49 +00:00
|
|
|
'41569431c71b583685001be129fe54b0' ||
|
2018-02-18 19:53:50 +00:00
|
|
|
time_part::text
|
|
|
|
),
|
|
|
|
1, 4
|
|
|
|
)
|
|
|
|
-- And turn it into a bigint
|
|
|
|
)::bit(16)::bigint;
|
|
|
|
|
|
|
|
-- Finally, add our sequence number to our base, and chop
|
|
|
|
-- it to the last two bytes
|
|
|
|
tail := (
|
|
|
|
(sequence_base + nextval(table_name || '_id_seq'))
|
|
|
|
& 65535);
|
|
|
|
|
|
|
|
-- Return the time part and the sequence part. OR appears
|
|
|
|
-- faster here than addition, but they're equivalent:
|
|
|
|
-- time_part has no trailing two bytes, and tail is only
|
|
|
|
-- the last two bytes.
|
|
|
|
RETURN time_part | tail;
|
|
|
|
END
|
|
|
|
$$;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER FUNCTION public.timestamp_id(table_name text) OWNER TO pinafore;
|
|
|
|
|
|
|
|
SET default_tablespace = '';
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
SET default_with_oids = false;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: account_aliases; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.account_aliases (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint,
|
|
|
|
acct character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
uri character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_aliases OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_aliases_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.account_aliases_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_aliases_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_aliases_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.account_aliases_id_seq OWNED BY public.account_aliases.id;
|
|
|
|
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
-- Name: account_conversations; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.account_conversations (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint,
|
|
|
|
conversation_id bigint,
|
|
|
|
participant_account_ids bigint[] DEFAULT '{}'::bigint[] NOT NULL,
|
|
|
|
status_ids bigint[] DEFAULT '{}'::bigint[] NOT NULL,
|
|
|
|
last_status_id bigint,
|
|
|
|
lock_version integer DEFAULT 0 NOT NULL,
|
|
|
|
unread boolean DEFAULT false NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_conversations OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_conversations_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.account_conversations_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_conversations_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_conversations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.account_conversations_id_seq OWNED BY public.account_conversations.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_deletion_requests; Type: TABLE; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE TABLE public.account_deletion_requests (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
account_id bigint,
|
2018-02-18 19:53:50 +00:00
|
|
|
created_at timestamp without time zone NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
updated_at timestamp without time zone NOT NULL
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE public.account_deletion_requests OWNER TO pinafore;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_deletion_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE SEQUENCE public.account_deletion_requests_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE public.account_deletion_requests_id_seq OWNER TO pinafore;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_deletion_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER SEQUENCE public.account_deletion_requests_id_seq OWNED BY public.account_deletion_requests.id;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_domain_blocks; Type: TABLE; Schema: public; Owner: pinafore
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE TABLE public.account_domain_blocks (
|
2019-05-05 22:02:14 +00:00
|
|
|
id bigint NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
domain character varying,
|
2019-05-05 22:02:14 +00:00
|
|
|
created_at timestamp without time zone NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
account_id bigint
|
2019-05-05 22:02:14 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE public.account_domain_blocks OWNER TO pinafore;
|
2019-05-05 22:02:14 +00:00
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_domain_blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE SEQUENCE public.account_domain_blocks_id_seq
|
2019-05-05 22:02:14 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE public.account_domain_blocks_id_seq OWNER TO pinafore;
|
2019-05-05 22:02:14 +00:00
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_domain_blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER SEQUENCE public.account_domain_blocks_id_seq OWNED BY public.account_domain_blocks.id;
|
2019-05-05 22:02:14 +00:00
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: account_migrations; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.account_migrations (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint,
|
|
|
|
acct character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
followers_count bigint DEFAULT 0 NOT NULL,
|
|
|
|
target_account_id bigint,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_migrations OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_migrations_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.account_migrations_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_migrations_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_migrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.account_migrations_id_seq OWNED BY public.account_migrations.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: account_moderation_notes; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.account_moderation_notes (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
content text NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
target_account_id bigint NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_moderation_notes OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_moderation_notes_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.account_moderation_notes_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_moderation_notes_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_moderation_notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.account_moderation_notes_id_seq OWNED BY public.account_moderation_notes.id;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: account_notes; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.account_notes (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint,
|
|
|
|
target_account_id bigint,
|
|
|
|
comment text NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_notes OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_notes_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.account_notes_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_notes_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.account_notes_id_seq OWNED BY public.account_notes.id;
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: account_pins; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.account_pins (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint,
|
|
|
|
target_account_id bigint,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_pins OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_pins_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.account_pins_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_pins_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_pins_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.account_pins_id_seq OWNED BY public.account_pins.id;
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: account_stats; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.account_stats (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
statuses_count bigint DEFAULT 0 NOT NULL,
|
|
|
|
following_count bigint DEFAULT 0 NOT NULL,
|
|
|
|
followers_count bigint DEFAULT 0 NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
last_status_at timestamp without time zone
|
2019-01-20 21:44:06 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_stats OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_stats_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.account_stats_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_stats_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_stats_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.account_stats_id_seq OWNED BY public.account_stats.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_statuses_cleanup_policies; Type: TABLE; Schema: public; Owner: pinafore
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE TABLE public.account_statuses_cleanup_policies (
|
2019-01-20 21:44:06 +00:00
|
|
|
id bigint NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
account_id bigint NOT NULL,
|
|
|
|
enabled boolean DEFAULT true NOT NULL,
|
|
|
|
min_status_age integer DEFAULT 1209600 NOT NULL,
|
|
|
|
keep_direct boolean DEFAULT true NOT NULL,
|
|
|
|
keep_pinned boolean DEFAULT true NOT NULL,
|
|
|
|
keep_polls boolean DEFAULT false NOT NULL,
|
|
|
|
keep_media boolean DEFAULT false NOT NULL,
|
|
|
|
keep_self_fav boolean DEFAULT true NOT NULL,
|
|
|
|
keep_self_bookmark boolean DEFAULT true NOT NULL,
|
|
|
|
min_favs integer,
|
|
|
|
min_reblogs integer,
|
|
|
|
created_at timestamp(6) without time zone NOT NULL,
|
|
|
|
updated_at timestamp(6) without time zone NOT NULL
|
2019-01-20 21:44:06 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE public.account_statuses_cleanup_policies OWNER TO pinafore;
|
2019-01-20 21:44:06 +00:00
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_statuses_cleanup_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE SEQUENCE public.account_statuses_cleanup_policies_id_seq
|
2019-01-20 21:44:06 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE public.account_statuses_cleanup_policies_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_statuses_cleanup_policies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.account_statuses_cleanup_policies_id_seq OWNED BY public.account_statuses_cleanup_policies.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: accounts; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.accounts (
|
|
|
|
id bigint DEFAULT public.timestamp_id('accounts'::text) NOT NULL,
|
|
|
|
username character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
domain character varying,
|
|
|
|
private_key text,
|
|
|
|
public_key text DEFAULT ''::text NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
note text DEFAULT ''::text NOT NULL,
|
|
|
|
display_name character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
uri character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
url character varying,
|
|
|
|
avatar_file_name character varying,
|
|
|
|
avatar_content_type character varying,
|
|
|
|
avatar_file_size integer,
|
|
|
|
avatar_updated_at timestamp without time zone,
|
|
|
|
header_file_name character varying,
|
|
|
|
header_content_type character varying,
|
|
|
|
header_file_size integer,
|
|
|
|
header_updated_at timestamp without time zone,
|
|
|
|
avatar_remote_url character varying,
|
|
|
|
locked boolean DEFAULT false NOT NULL,
|
|
|
|
header_remote_url character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
last_webfingered_at timestamp without time zone,
|
|
|
|
inbox_url character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
outbox_url character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
shared_inbox_url character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
followers_url character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
protocol integer DEFAULT 0 NOT NULL,
|
|
|
|
memorial boolean DEFAULT false NOT NULL,
|
|
|
|
moved_to_account_id bigint,
|
|
|
|
featured_collection_url character varying,
|
|
|
|
fields jsonb,
|
|
|
|
actor_type character varying,
|
|
|
|
discoverable boolean,
|
|
|
|
also_known_as character varying[],
|
|
|
|
silenced_at timestamp without time zone,
|
|
|
|
suspended_at timestamp without time zone,
|
|
|
|
hide_collections boolean,
|
|
|
|
avatar_storage_schema_version integer,
|
|
|
|
header_storage_schema_version integer,
|
|
|
|
devices_url character varying,
|
|
|
|
sensitized_at timestamp without time zone,
|
|
|
|
suspension_origin integer,
|
|
|
|
trendable boolean,
|
|
|
|
reviewed_at timestamp without time zone,
|
|
|
|
requested_review_at timestamp without time zone
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.accounts OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: statuses; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.statuses (
|
|
|
|
id bigint DEFAULT public.timestamp_id('statuses'::text) NOT NULL,
|
|
|
|
uri character varying,
|
|
|
|
text text DEFAULT ''::text NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
in_reply_to_id bigint,
|
|
|
|
reblog_of_id bigint,
|
|
|
|
url character varying,
|
|
|
|
sensitive boolean DEFAULT false NOT NULL,
|
|
|
|
visibility integer DEFAULT 0 NOT NULL,
|
|
|
|
spoiler_text text DEFAULT ''::text NOT NULL,
|
|
|
|
reply boolean DEFAULT false NOT NULL,
|
|
|
|
language character varying,
|
|
|
|
conversation_id bigint,
|
|
|
|
local boolean,
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
application_id bigint,
|
|
|
|
in_reply_to_account_id bigint,
|
|
|
|
poll_id bigint,
|
|
|
|
deleted_at timestamp without time zone,
|
|
|
|
edited_at timestamp without time zone,
|
|
|
|
trendable boolean,
|
|
|
|
ordered_media_attachment_ids bigint[]
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.statuses OWNER TO pinafore;
|
2019-01-20 21:44:06 +00:00
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_summaries; Type: MATERIALIZED VIEW; Schema: public; Owner: pinafore
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE MATERIALIZED VIEW public.account_summaries AS
|
|
|
|
SELECT accounts.id AS account_id,
|
|
|
|
mode() WITHIN GROUP (ORDER BY t0.language) AS language,
|
|
|
|
mode() WITHIN GROUP (ORDER BY t0.sensitive) AS sensitive
|
|
|
|
FROM (public.accounts
|
|
|
|
CROSS JOIN LATERAL ( SELECT statuses.account_id,
|
|
|
|
statuses.language,
|
|
|
|
statuses.sensitive
|
|
|
|
FROM public.statuses
|
|
|
|
WHERE ((statuses.account_id = accounts.id) AND (statuses.deleted_at IS NULL) AND (statuses.reblog_of_id IS NULL))
|
|
|
|
ORDER BY statuses.id DESC
|
|
|
|
LIMIT 20) t0)
|
|
|
|
WHERE ((accounts.suspended_at IS NULL) AND (accounts.silenced_at IS NULL) AND (accounts.moved_to_account_id IS NULL) AND (accounts.discoverable = true) AND (accounts.locked = false))
|
|
|
|
GROUP BY accounts.id
|
|
|
|
WITH NO DATA;
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE public.account_summaries OWNER TO pinafore;
|
2019-01-20 21:44:06 +00:00
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_warning_presets; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.account_warning_presets (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
text text DEFAULT ''::text NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
2020-05-03 01:02:29 +00:00
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
title character varying DEFAULT ''::character varying NOT NULL
|
2019-01-20 21:44:06 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_warning_presets OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_warning_presets_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.account_warning_presets_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_warning_presets_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_warning_presets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.account_warning_presets_id_seq OWNED BY public.account_warning_presets.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_warnings; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.account_warnings (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint,
|
|
|
|
target_account_id bigint,
|
|
|
|
action integer DEFAULT 0 NOT NULL,
|
|
|
|
text text DEFAULT ''::text NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
report_id bigint,
|
|
|
|
status_ids character varying[],
|
|
|
|
overruled_at timestamp without time zone
|
2019-01-20 21:44:06 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_warnings OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_warnings_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.account_warnings_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.account_warnings_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_warnings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.account_warnings_id_seq OWNED BY public.account_warnings.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: accounts_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.accounts_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.accounts_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: accounts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.accounts_id_seq OWNED BY public.accounts.id;
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: accounts_tags; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.accounts_tags (
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
tag_id bigint NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.accounts_tags OWNER TO pinafore;
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: admin_action_logs; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.admin_action_logs (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint,
|
|
|
|
action character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
target_type character varying,
|
|
|
|
target_id bigint,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
2022-12-02 23:09:58 +00:00
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
human_identifier character varying,
|
|
|
|
route_param character varying,
|
|
|
|
permalink character varying
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.admin_action_logs OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: admin_action_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.admin_action_logs_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.admin_action_logs_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: admin_action_logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.admin_action_logs_id_seq OWNED BY public.admin_action_logs.id;
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: announcement_mutes; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.announcement_mutes (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint,
|
|
|
|
announcement_id bigint,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.announcement_mutes OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: announcement_mutes_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.announcement_mutes_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.announcement_mutes_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: announcement_mutes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.announcement_mutes_id_seq OWNED BY public.announcement_mutes.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: announcement_reactions; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.announcement_reactions (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint,
|
|
|
|
announcement_id bigint,
|
|
|
|
name character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
custom_emoji_id bigint,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.announcement_reactions OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: announcement_reactions_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.announcement_reactions_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.announcement_reactions_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: announcement_reactions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.announcement_reactions_id_seq OWNED BY public.announcement_reactions.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: announcements; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.announcements (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
text text DEFAULT ''::text NOT NULL,
|
|
|
|
published boolean DEFAULT false NOT NULL,
|
|
|
|
all_day boolean DEFAULT false NOT NULL,
|
|
|
|
scheduled_at timestamp without time zone,
|
|
|
|
starts_at timestamp without time zone,
|
|
|
|
ends_at timestamp without time zone,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
published_at timestamp without time zone,
|
|
|
|
status_ids bigint[]
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.announcements OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: announcements_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.announcements_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.announcements_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: announcements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.announcements_id_seq OWNED BY public.announcements.id;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: appeals; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.appeals (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
account_warning_id bigint NOT NULL,
|
|
|
|
text text DEFAULT ''::text NOT NULL,
|
|
|
|
approved_at timestamp without time zone,
|
|
|
|
approved_by_account_id bigint,
|
|
|
|
rejected_at timestamp without time zone,
|
|
|
|
rejected_by_account_id bigint,
|
|
|
|
created_at timestamp(6) without time zone NOT NULL,
|
|
|
|
updated_at timestamp(6) without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.appeals OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: appeals_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.appeals_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.appeals_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: appeals_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.appeals_id_seq OWNED BY public.appeals.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.ar_internal_metadata (
|
2018-02-18 19:53:50 +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
|
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.ar_internal_metadata OWNER TO pinafore;
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: backups; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.backups (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
user_id bigint,
|
|
|
|
dump_file_name character varying,
|
|
|
|
dump_content_type character varying,
|
|
|
|
dump_updated_at timestamp without time zone,
|
|
|
|
processed boolean DEFAULT false NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
2020-05-03 01:02:29 +00:00
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
dump_file_size bigint
|
2018-08-19 21:46:48 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.backups OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: backups_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.backups_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.backups_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: backups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.backups_id_seq OWNED BY public.backups.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: blocks; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.blocks (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
2018-08-19 21:46:48 +00:00
|
|
|
target_account_id bigint NOT NULL,
|
|
|
|
uri character varying
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.blocks OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.blocks_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.blocks_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.blocks_id_seq OWNED BY public.blocks.id;
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: bookmarks; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.bookmarks (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
status_id bigint NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.bookmarks OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: bookmarks_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.bookmarks_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.bookmarks_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: bookmarks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.bookmarks_id_seq OWNED BY public.bookmarks.id;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: canonical_email_blocks; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.canonical_email_blocks (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
canonical_email_hash character varying DEFAULT ''::character varying NOT NULL,
|
2022-12-02 23:09:58 +00:00
|
|
|
reference_account_id bigint,
|
2022-05-01 00:14:31 +00:00
|
|
|
created_at timestamp(6) without time zone NOT NULL,
|
|
|
|
updated_at timestamp(6) without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.canonical_email_blocks OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: canonical_email_blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.canonical_email_blocks_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.canonical_email_blocks_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: canonical_email_blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.canonical_email_blocks_id_seq OWNED BY public.canonical_email_blocks.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: conversation_mutes; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.conversation_mutes (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
conversation_id bigint NOT NULL,
|
|
|
|
account_id bigint NOT NULL
|
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.conversation_mutes OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: conversation_mutes_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.conversation_mutes_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.conversation_mutes_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: conversation_mutes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.conversation_mutes_id_seq OWNED BY public.conversation_mutes.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: conversations; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.conversations (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
uri character varying,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.conversations OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: conversations_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.conversations_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.conversations_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: conversations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.conversations_id_seq OWNED BY public.conversations.id;
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_emoji_categories; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.custom_emoji_categories (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
name character varying,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.custom_emoji_categories OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_emoji_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.custom_emoji_categories_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.custom_emoji_categories_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_emoji_categories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.custom_emoji_categories_id_seq OWNED BY public.custom_emoji_categories.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_emojis; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.custom_emojis (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
shortcode character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
domain character varying,
|
|
|
|
image_file_name character varying,
|
|
|
|
image_content_type character varying,
|
|
|
|
image_file_size integer,
|
|
|
|
image_updated_at timestamp without time zone,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
disabled boolean DEFAULT false NOT NULL,
|
|
|
|
uri character varying,
|
|
|
|
image_remote_url character varying,
|
2020-05-03 01:02:29 +00:00
|
|
|
visible_in_picker boolean DEFAULT true NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
category_id bigint,
|
|
|
|
image_storage_schema_version integer
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.custom_emojis OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_emojis_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.custom_emojis_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.custom_emojis_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_emojis_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.custom_emojis_id_seq OWNED BY public.custom_emojis.id;
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_filter_keywords; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.custom_filter_keywords (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
custom_filter_id bigint NOT NULL,
|
|
|
|
keyword text DEFAULT ''::text NOT NULL,
|
|
|
|
whole_word boolean DEFAULT true NOT NULL,
|
|
|
|
created_at timestamp(6) without time zone NOT NULL,
|
|
|
|
updated_at timestamp(6) without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.custom_filter_keywords OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_filter_keywords_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.custom_filter_keywords_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.custom_filter_keywords_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_filter_keywords_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.custom_filter_keywords_id_seq OWNED BY public.custom_filter_keywords.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_filter_statuses; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.custom_filter_statuses (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
custom_filter_id bigint NOT NULL,
|
|
|
|
status_id bigint NOT NULL,
|
|
|
|
created_at timestamp(6) without time zone NOT NULL,
|
|
|
|
updated_at timestamp(6) without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.custom_filter_statuses OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_filter_statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.custom_filter_statuses_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.custom_filter_statuses_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_filter_statuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.custom_filter_statuses_id_seq OWNED BY public.custom_filter_statuses.id;
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_filters; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.custom_filters (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint,
|
|
|
|
expires_at timestamp without time zone,
|
|
|
|
phrase text DEFAULT ''::text NOT NULL,
|
|
|
|
context character varying[] DEFAULT '{}'::character varying[] NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
2022-12-02 23:09:58 +00:00
|
|
|
action integer DEFAULT 0 NOT NULL
|
2018-08-19 21:46:48 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.custom_filters OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.custom_filters_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.custom_filters_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.custom_filters_id_seq OWNED BY public.custom_filters.id;
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: devices; Type: TABLE; Schema: public; Owner: pinafore
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE TABLE public.devices (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
access_token_id bigint,
|
|
|
|
account_id bigint,
|
|
|
|
device_id character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
name character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
fingerprint_key text DEFAULT ''::text NOT NULL,
|
|
|
|
identity_key text DEFAULT ''::text NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.devices OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: devices_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.devices_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.devices_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: devices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.devices_id_seq OWNED BY public.devices.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: domain_allows; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.domain_allows (
|
2020-05-03 01:02:29 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
domain character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.domain_allows OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: domain_allows_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.domain_allows_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.domain_allows_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: domain_allows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.domain_allows_id_seq OWNED BY public.domain_allows.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: domain_blocks; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.domain_blocks (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
domain character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
severity integer DEFAULT 0,
|
2018-11-12 20:59:47 +00:00
|
|
|
reject_media boolean DEFAULT false NOT NULL,
|
2020-05-03 01:02:29 +00:00
|
|
|
reject_reports boolean DEFAULT false NOT NULL,
|
|
|
|
private_comment text,
|
2022-05-01 00:14:31 +00:00
|
|
|
public_comment text,
|
|
|
|
obfuscate boolean DEFAULT false NOT NULL
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.domain_blocks OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: domain_blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.domain_blocks_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.domain_blocks_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: domain_blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.domain_blocks_id_seq OWNED BY public.domain_blocks.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_domain_blocks; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.email_domain_blocks (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
domain character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
2020-05-03 01:02:29 +00:00
|
|
|
updated_at timestamp without time zone NOT NULL,
|
2022-12-02 23:09:58 +00:00
|
|
|
parent_id bigint
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.email_domain_blocks OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_domain_blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.email_domain_blocks_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.email_domain_blocks_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_domain_blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.email_domain_blocks_id_seq OWNED BY public.email_domain_blocks.id;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: encrypted_messages; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.encrypted_messages (
|
|
|
|
id bigint DEFAULT public.timestamp_id('encrypted_messages'::text) NOT NULL,
|
|
|
|
device_id bigint,
|
|
|
|
from_account_id bigint,
|
|
|
|
from_device_id character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
type integer DEFAULT 0 NOT NULL,
|
|
|
|
body text DEFAULT ''::text NOT NULL,
|
|
|
|
digest text DEFAULT ''::text NOT NULL,
|
|
|
|
message_franking text DEFAULT ''::text NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.encrypted_messages OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: encrypted_messages_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.encrypted_messages_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.encrypted_messages_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: encrypted_messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.encrypted_messages_id_seq OWNED BY public.encrypted_messages.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: favourites; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.favourites (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
status_id bigint NOT NULL
|
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.favourites OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: favourites_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.favourites_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.favourites_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: favourites_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.favourites_id_seq OWNED BY public.favourites.id;
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: featured_tags; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.featured_tags (
|
|
|
|
id bigint NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
account_id bigint NOT NULL,
|
|
|
|
tag_id bigint NOT NULL,
|
2019-05-05 22:02:14 +00:00
|
|
|
statuses_count bigint DEFAULT 0 NOT NULL,
|
|
|
|
last_status_at timestamp without time zone,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
2022-12-02 23:09:58 +00:00
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
name character varying
|
2019-05-05 22:02:14 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.featured_tags OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: featured_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.featured_tags_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.featured_tags_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: featured_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.featured_tags_id_seq OWNED BY public.featured_tags.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: follow_recommendation_suppressions; Type: TABLE; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE TABLE public.follow_recommendation_suppressions (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
created_at timestamp(6) without time zone NOT NULL,
|
|
|
|
updated_at timestamp(6) without time zone NOT NULL
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE public.follow_recommendation_suppressions OWNER TO pinafore;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: follow_recommendation_suppressions_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE SEQUENCE public.follow_recommendation_suppressions_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE public.follow_recommendation_suppressions_id_seq OWNER TO pinafore;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: follow_recommendation_suppressions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER SEQUENCE public.follow_recommendation_suppressions_id_seq OWNED BY public.follow_recommendation_suppressions.id;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: follows; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.follows (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
target_account_id bigint NOT NULL,
|
2018-08-19 21:46:48 +00:00
|
|
|
show_reblogs boolean DEFAULT true NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
uri character varying,
|
2022-12-02 23:09:58 +00:00
|
|
|
notify boolean DEFAULT false NOT NULL,
|
|
|
|
languages character varying[]
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.follows OWNER TO pinafore;
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: status_stats; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.status_stats (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
status_id bigint NOT NULL,
|
|
|
|
replies_count bigint DEFAULT 0 NOT NULL,
|
|
|
|
reblogs_count bigint DEFAULT 0 NOT NULL,
|
|
|
|
favourites_count bigint DEFAULT 0 NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.status_stats OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: users; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.users (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
email character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
encrypted_password character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
reset_password_token character varying,
|
|
|
|
reset_password_sent_at timestamp without time zone,
|
|
|
|
sign_in_count integer DEFAULT 0 NOT NULL,
|
|
|
|
current_sign_in_at timestamp without time zone,
|
|
|
|
last_sign_in_at timestamp without time zone,
|
|
|
|
admin boolean DEFAULT false NOT NULL,
|
|
|
|
confirmation_token character varying,
|
|
|
|
confirmed_at timestamp without time zone,
|
|
|
|
confirmation_sent_at timestamp without time zone,
|
|
|
|
unconfirmed_email character varying,
|
|
|
|
locale character varying,
|
|
|
|
encrypted_otp_secret character varying,
|
|
|
|
encrypted_otp_secret_iv character varying,
|
|
|
|
encrypted_otp_secret_salt character varying,
|
|
|
|
consumed_timestep integer,
|
|
|
|
otp_required_for_login boolean DEFAULT false NOT NULL,
|
|
|
|
last_emailed_at timestamp without time zone,
|
|
|
|
otp_backup_codes character varying[],
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
disabled boolean DEFAULT false NOT NULL,
|
|
|
|
moderator boolean DEFAULT false NOT NULL,
|
|
|
|
invite_id bigint,
|
|
|
|
chosen_languages character varying[],
|
|
|
|
created_by_application_id bigint,
|
|
|
|
approved boolean DEFAULT true NOT NULL,
|
|
|
|
sign_in_token character varying,
|
|
|
|
sign_in_token_sent_at timestamp without time zone,
|
|
|
|
webauthn_id character varying,
|
|
|
|
sign_up_ip inet,
|
2022-12-02 23:09:58 +00:00
|
|
|
skip_sign_in_token boolean,
|
|
|
|
role_id bigint
|
2022-05-01 00:14:31 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.users OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: follow_recommendations; Type: MATERIALIZED VIEW; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE MATERIALIZED VIEW public.follow_recommendations AS
|
|
|
|
SELECT t0.account_id,
|
|
|
|
sum(t0.rank) AS rank,
|
|
|
|
array_agg(t0.reason) AS reason
|
|
|
|
FROM ( SELECT account_summaries.account_id,
|
|
|
|
((count(follows.id))::numeric / (1.0 + (count(follows.id))::numeric)) AS rank,
|
|
|
|
'most_followed'::text AS reason
|
|
|
|
FROM (((public.follows
|
|
|
|
JOIN public.account_summaries ON ((account_summaries.account_id = follows.target_account_id)))
|
|
|
|
JOIN public.users ON ((users.account_id = follows.account_id)))
|
|
|
|
LEFT JOIN public.follow_recommendation_suppressions ON ((follow_recommendation_suppressions.account_id = follows.target_account_id)))
|
|
|
|
WHERE ((users.current_sign_in_at >= (now() - '30 days'::interval)) AND (account_summaries.sensitive = false) AND (follow_recommendation_suppressions.id IS NULL))
|
|
|
|
GROUP BY account_summaries.account_id
|
|
|
|
HAVING (count(follows.id) >= 5)
|
|
|
|
UNION ALL
|
|
|
|
SELECT account_summaries.account_id,
|
|
|
|
(sum((status_stats.reblogs_count + status_stats.favourites_count)) / (1.0 + sum((status_stats.reblogs_count + status_stats.favourites_count)))) AS rank,
|
|
|
|
'most_interactions'::text AS reason
|
|
|
|
FROM (((public.status_stats
|
|
|
|
JOIN public.statuses ON ((statuses.id = status_stats.status_id)))
|
|
|
|
JOIN public.account_summaries ON ((account_summaries.account_id = statuses.account_id)))
|
|
|
|
LEFT JOIN public.follow_recommendation_suppressions ON ((follow_recommendation_suppressions.account_id = statuses.account_id)))
|
|
|
|
WHERE ((statuses.id >= (((date_part('epoch'::text, (now() - '30 days'::interval)) * (1000)::double precision))::bigint << 16)) AND (account_summaries.sensitive = false) AND (follow_recommendation_suppressions.id IS NULL))
|
|
|
|
GROUP BY account_summaries.account_id
|
|
|
|
HAVING (sum((status_stats.reblogs_count + status_stats.favourites_count)) >= (5)::numeric)) t0
|
|
|
|
GROUP BY t0.account_id
|
|
|
|
ORDER BY (sum(t0.rank)) DESC
|
|
|
|
WITH NO DATA;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.follow_recommendations OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: follow_requests; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.follow_requests (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
target_account_id bigint NOT NULL,
|
|
|
|
show_reblogs boolean DEFAULT true NOT NULL,
|
|
|
|
uri character varying,
|
2022-12-02 23:09:58 +00:00
|
|
|
notify boolean DEFAULT false NOT NULL,
|
|
|
|
languages character varying[]
|
2022-05-01 00:14:31 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.follow_requests OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: follow_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.follow_requests_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.follow_requests_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: follow_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.follow_requests_id_seq OWNED BY public.follow_requests.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: follows_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.follows_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.follows_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: follows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.follows_id_seq OWNED BY public.follows.id;
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: identities; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.identities (
|
|
|
|
provider character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
uid character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
2019-01-20 21:44:06 +00:00
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
id bigint NOT NULL,
|
|
|
|
user_id bigint
|
2018-08-19 21:46:48 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.identities OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: identities_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.identities_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.identities_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: identities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.identities_id_seq OWNED BY public.identities.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: imports; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.imports (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
type integer NOT NULL,
|
|
|
|
approved boolean DEFAULT false NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
data_file_name character varying,
|
|
|
|
data_content_type character varying,
|
|
|
|
data_file_size integer,
|
|
|
|
data_updated_at timestamp without time zone,
|
2019-05-05 22:02:14 +00:00
|
|
|
account_id bigint NOT NULL,
|
|
|
|
overwrite boolean DEFAULT false NOT NULL
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.imports OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: imports_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.imports_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.imports_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: imports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.imports_id_seq OWNED BY public.imports.id;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: instances; Type: MATERIALIZED VIEW; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE MATERIALIZED VIEW public.instances AS
|
|
|
|
WITH domain_counts(domain, accounts_count) AS (
|
|
|
|
SELECT accounts.domain,
|
|
|
|
count(*) AS accounts_count
|
|
|
|
FROM public.accounts
|
|
|
|
WHERE (accounts.domain IS NOT NULL)
|
|
|
|
GROUP BY accounts.domain
|
|
|
|
)
|
|
|
|
SELECT domain_counts.domain,
|
|
|
|
domain_counts.accounts_count
|
|
|
|
FROM domain_counts
|
|
|
|
UNION
|
|
|
|
SELECT domain_blocks.domain,
|
|
|
|
COALESCE(domain_counts.accounts_count, (0)::bigint) AS accounts_count
|
|
|
|
FROM (public.domain_blocks
|
|
|
|
LEFT JOIN domain_counts ON (((domain_counts.domain)::text = (domain_blocks.domain)::text)))
|
|
|
|
UNION
|
|
|
|
SELECT domain_allows.domain,
|
|
|
|
COALESCE(domain_counts.accounts_count, (0)::bigint) AS accounts_count
|
|
|
|
FROM (public.domain_allows
|
|
|
|
LEFT JOIN domain_counts ON (((domain_counts.domain)::text = (domain_allows.domain)::text)))
|
|
|
|
WITH NO DATA;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.instances OWNER TO pinafore;
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: invites; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.invites (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
2018-08-19 21:46:48 +00:00
|
|
|
user_id bigint NOT NULL,
|
2018-02-18 19:53:50 +00:00
|
|
|
code character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
expires_at timestamp without time zone,
|
|
|
|
max_uses integer,
|
|
|
|
uses integer DEFAULT 0 NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
2018-08-19 21:46:48 +00:00
|
|
|
updated_at timestamp without time zone NOT NULL,
|
2020-05-03 01:02:29 +00:00
|
|
|
autofollow boolean DEFAULT false NOT NULL,
|
|
|
|
comment text
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.invites OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: invites_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.invites_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.invites_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: invites_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.invites_id_seq OWNED BY public.invites.id;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: ip_blocks; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.ip_blocks (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
ip inet DEFAULT '0.0.0.0'::inet NOT NULL,
|
|
|
|
severity integer DEFAULT 0 NOT NULL,
|
|
|
|
expires_at timestamp without time zone,
|
|
|
|
comment text DEFAULT ''::text NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.ip_blocks OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: ip_blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.ip_blocks_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.ip_blocks_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: ip_blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.ip_blocks_id_seq OWNED BY public.ip_blocks.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: list_accounts; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.list_accounts (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
list_id bigint NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
2020-05-03 01:02:29 +00:00
|
|
|
follow_id bigint
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.list_accounts OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: list_accounts_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.list_accounts_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.list_accounts_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: list_accounts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.list_accounts_id_seq OWNED BY public.list_accounts.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: lists; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.lists (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
title character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
replies_policy integer DEFAULT 0 NOT NULL
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.lists OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: lists_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.lists_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.lists_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: lists_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.lists_id_seq OWNED BY public.lists.id;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: login_activities; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.login_activities (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
user_id bigint NOT NULL,
|
|
|
|
authentication_method character varying,
|
|
|
|
provider character varying,
|
|
|
|
success boolean,
|
|
|
|
failure_reason character varying,
|
|
|
|
ip inet,
|
|
|
|
user_agent character varying,
|
|
|
|
created_at timestamp without time zone
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.login_activities OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: login_activities_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.login_activities_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.login_activities_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: login_activities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.login_activities_id_seq OWNED BY public.login_activities.id;
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: markers; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.markers (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
user_id bigint,
|
|
|
|
timeline character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
last_read_id bigint DEFAULT 0 NOT NULL,
|
|
|
|
lock_version integer DEFAULT 0 NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.markers OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: markers_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.markers_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.markers_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: markers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.markers_id_seq OWNED BY public.markers.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: media_attachments; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.media_attachments (
|
2022-05-01 00:14:31 +00:00
|
|
|
id bigint DEFAULT public.timestamp_id('media_attachments'::text) NOT NULL,
|
2018-02-18 19:53:50 +00:00
|
|
|
status_id bigint,
|
|
|
|
file_file_name character varying,
|
|
|
|
file_content_type character varying,
|
|
|
|
file_file_size integer,
|
|
|
|
file_updated_at timestamp without time zone,
|
|
|
|
remote_url character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
shortcode character varying,
|
|
|
|
type integer DEFAULT 0 NOT NULL,
|
|
|
|
file_meta json,
|
|
|
|
account_id bigint,
|
2019-01-20 21:44:06 +00:00
|
|
|
description text,
|
2019-05-05 22:02:14 +00:00
|
|
|
scheduled_status_id bigint,
|
2020-05-03 01:02:29 +00:00
|
|
|
blurhash character varying,
|
2022-05-01 00:14:31 +00:00
|
|
|
processing integer,
|
|
|
|
file_storage_schema_version integer,
|
|
|
|
thumbnail_file_name character varying,
|
|
|
|
thumbnail_content_type character varying,
|
|
|
|
thumbnail_file_size bigint,
|
|
|
|
thumbnail_updated_at timestamp without time zone,
|
|
|
|
thumbnail_remote_url character varying
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.media_attachments OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: media_attachments_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.media_attachments_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.media_attachments_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: media_attachments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.media_attachments_id_seq OWNED BY public.media_attachments.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: mentions; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.mentions (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
status_id bigint,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
2018-11-12 20:59:47 +00:00
|
|
|
account_id bigint,
|
|
|
|
silent boolean DEFAULT false NOT NULL
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.mentions OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.mentions_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.mentions_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.mentions_id_seq OWNED BY public.mentions.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: mutes; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.mutes (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
target_account_id bigint NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
hide_notifications boolean DEFAULT true NOT NULL,
|
|
|
|
expires_at timestamp without time zone
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.mutes OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: mutes_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.mutes_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.mutes_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: mutes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.mutes_id_seq OWNED BY public.mutes.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: notifications; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.notifications (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
2018-08-19 21:46:48 +00:00
|
|
|
activity_id bigint NOT NULL,
|
|
|
|
activity_type character varying NOT NULL,
|
2018-02-18 19:53:50 +00:00
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
2018-08-19 21:46:48 +00:00
|
|
|
account_id bigint NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
from_account_id bigint NOT NULL,
|
|
|
|
type character varying
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.notifications OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: notifications_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.notifications_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.notifications_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: notifications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.notifications_id_seq OWNED BY public.notifications.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_grants; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.oauth_access_grants (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
token character varying NOT NULL,
|
|
|
|
expires_in integer NOT NULL,
|
|
|
|
redirect_uri text NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
revoked_at timestamp without time zone,
|
|
|
|
scopes character varying,
|
|
|
|
application_id bigint NOT NULL,
|
|
|
|
resource_owner_id bigint NOT NULL
|
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.oauth_access_grants OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_grants_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.oauth_access_grants_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.oauth_access_grants_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_grants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.oauth_access_grants_id_seq OWNED BY public.oauth_access_grants.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_tokens; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.oauth_access_tokens (
|
|
|
|
id bigint NOT NULL,
|
2018-02-18 19:53:50 +00:00
|
|
|
token character varying NOT NULL,
|
|
|
|
refresh_token character varying,
|
|
|
|
expires_in integer,
|
|
|
|
revoked_at timestamp without time zone,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
scopes character varying,
|
|
|
|
application_id bigint,
|
2022-05-01 00:14:31 +00:00
|
|
|
resource_owner_id bigint,
|
|
|
|
last_used_at timestamp without time zone,
|
|
|
|
last_used_ip inet
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.oauth_access_tokens OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.oauth_access_tokens_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.oauth_access_tokens_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.oauth_access_tokens_id_seq OWNED BY public.oauth_access_tokens.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_applications; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.oauth_applications (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
name character varying NOT NULL,
|
|
|
|
uid character varying NOT NULL,
|
|
|
|
secret character varying NOT NULL,
|
|
|
|
redirect_uri text NOT NULL,
|
|
|
|
scopes character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
created_at timestamp without time zone,
|
|
|
|
updated_at timestamp without time zone,
|
|
|
|
superapp boolean DEFAULT false NOT NULL,
|
|
|
|
website character varying,
|
|
|
|
owner_type character varying,
|
2018-09-23 05:19:02 +00:00
|
|
|
owner_id bigint,
|
|
|
|
confidential boolean DEFAULT true NOT NULL
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.oauth_applications OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_applications_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.oauth_applications_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.oauth_applications_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_applications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.oauth_applications_id_seq OWNED BY public.oauth_applications.id;
|
|
|
|
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: one_time_keys; Type: TABLE; Schema: public; Owner: pinafore
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE TABLE public.one_time_keys (
|
2018-11-12 20:59:47 +00:00
|
|
|
id bigint NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
device_id bigint,
|
|
|
|
key_id character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
key text DEFAULT ''::text NOT NULL,
|
|
|
|
signature text DEFAULT ''::text NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
2018-11-12 20:59:47 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE public.one_time_keys OWNER TO pinafore;
|
2018-11-12 20:59:47 +00:00
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: one_time_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE SEQUENCE public.one_time_keys_id_seq
|
2018-11-12 20:59:47 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE public.one_time_keys_id_seq OWNER TO pinafore;
|
2018-11-12 20:59:47 +00:00
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: one_time_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER SEQUENCE public.one_time_keys_id_seq OWNED BY public.one_time_keys.id;
|
2018-11-12 20:59:47 +00:00
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: pghero_space_stats; Type: TABLE; Schema: public; Owner: pinafore
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE TABLE public.pghero_space_stats (
|
2019-05-05 22:02:14 +00:00
|
|
|
id bigint NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
database text,
|
|
|
|
schema text,
|
|
|
|
relation text,
|
|
|
|
size bigint,
|
|
|
|
captured_at timestamp without time zone
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.pghero_space_stats OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pghero_space_stats_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.pghero_space_stats_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.pghero_space_stats_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pghero_space_stats_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.pghero_space_stats_id_seq OWNED BY public.pghero_space_stats.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: poll_votes; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.poll_votes (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint,
|
|
|
|
poll_id bigint,
|
2019-05-05 22:02:14 +00:00
|
|
|
choice integer DEFAULT 0 NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
uri character varying
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.poll_votes OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: poll_votes_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.poll_votes_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.poll_votes_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: poll_votes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.poll_votes_id_seq OWNED BY public.poll_votes.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: polls; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.polls (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint,
|
|
|
|
status_id bigint,
|
|
|
|
expires_at timestamp without time zone,
|
|
|
|
options character varying[] DEFAULT '{}'::character varying[] NOT NULL,
|
|
|
|
cached_tallies bigint[] DEFAULT '{}'::bigint[] NOT NULL,
|
|
|
|
multiple boolean DEFAULT false NOT NULL,
|
|
|
|
hide_totals boolean DEFAULT false NOT NULL,
|
|
|
|
votes_count bigint DEFAULT 0 NOT NULL,
|
|
|
|
last_fetched_at timestamp without time zone,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
2020-05-03 01:02:29 +00:00
|
|
|
lock_version integer DEFAULT 0 NOT NULL,
|
|
|
|
voters_count bigint
|
2019-05-05 22:02:14 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.polls OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: polls_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.polls_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.polls_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: polls_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.polls_id_seq OWNED BY public.polls.id;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: preview_card_providers; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.preview_card_providers (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
domain character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
icon_file_name character varying,
|
|
|
|
icon_content_type character varying,
|
|
|
|
icon_file_size bigint,
|
|
|
|
icon_updated_at timestamp without time zone,
|
|
|
|
trendable boolean,
|
|
|
|
reviewed_at timestamp without time zone,
|
|
|
|
requested_review_at timestamp without time zone,
|
|
|
|
created_at timestamp(6) without time zone NOT NULL,
|
|
|
|
updated_at timestamp(6) without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.preview_card_providers OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: preview_card_providers_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.preview_card_providers_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.preview_card_providers_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: preview_card_providers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.preview_card_providers_id_seq OWNED BY public.preview_card_providers.id;
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: preview_card_trends; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.preview_card_trends (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
preview_card_id bigint NOT NULL,
|
|
|
|
score double precision DEFAULT 0.0 NOT NULL,
|
|
|
|
rank integer DEFAULT 0 NOT NULL,
|
|
|
|
allowed boolean DEFAULT false NOT NULL,
|
|
|
|
language character varying
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.preview_card_trends OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: preview_card_trends_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.preview_card_trends_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.preview_card_trends_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: preview_card_trends_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.preview_card_trends_id_seq OWNED BY public.preview_card_trends.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: preview_cards; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.preview_cards (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
url character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
title character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
description character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
image_file_name character varying,
|
|
|
|
image_content_type character varying,
|
|
|
|
image_file_size integer,
|
|
|
|
image_updated_at timestamp without time zone,
|
|
|
|
type integer DEFAULT 0 NOT NULL,
|
|
|
|
html text DEFAULT ''::text NOT NULL,
|
|
|
|
author_name character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
author_url character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
provider_name character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
provider_url character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
width integer DEFAULT 0 NOT NULL,
|
|
|
|
height integer DEFAULT 0 NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
2022-05-01 00:14:31 +00:00
|
|
|
embed_url character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
image_storage_schema_version integer,
|
|
|
|
blurhash character varying,
|
|
|
|
language character varying,
|
|
|
|
max_score double precision,
|
|
|
|
max_score_at timestamp without time zone,
|
|
|
|
trendable boolean,
|
|
|
|
link_type integer
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.preview_cards OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: preview_cards_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.preview_cards_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.preview_cards_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: preview_cards_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.preview_cards_id_seq OWNED BY public.preview_cards.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: preview_cards_statuses; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.preview_cards_statuses (
|
2018-02-18 19:53:50 +00:00
|
|
|
preview_card_id bigint NOT NULL,
|
|
|
|
status_id bigint NOT NULL
|
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.preview_cards_statuses OWNER TO pinafore;
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: relays; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.relays (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
inbox_url character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
follow_activity_id character varying,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
state integer DEFAULT 0 NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.relays OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: relays_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.relays_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.relays_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: relays_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.relays_id_seq OWNED BY public.relays.id;
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: report_notes; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.report_notes (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
content text NOT NULL,
|
|
|
|
report_id bigint NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.report_notes OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: report_notes_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.report_notes_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.report_notes_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: report_notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.report_notes_id_seq OWNED BY public.report_notes.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: reports; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.reports (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
status_ids bigint[] DEFAULT '{}'::bigint[] NOT NULL,
|
|
|
|
comment text DEFAULT ''::text NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
action_taken_by_account_id bigint,
|
2018-08-19 21:46:48 +00:00
|
|
|
target_account_id bigint NOT NULL,
|
2019-05-05 22:02:14 +00:00
|
|
|
assigned_account_id bigint,
|
2022-05-01 00:14:31 +00:00
|
|
|
uri character varying,
|
|
|
|
forwarded boolean,
|
|
|
|
category integer DEFAULT 0 NOT NULL,
|
|
|
|
action_taken_at timestamp without time zone,
|
|
|
|
rule_ids bigint[]
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.reports OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: reports_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.reports_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.reports_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: reports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.reports_id_seq OWNED BY public.reports.id;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: rules; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.rules (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
priority integer DEFAULT 0 NOT NULL,
|
|
|
|
deleted_at timestamp without time zone,
|
|
|
|
text text DEFAULT ''::text NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.rules OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: rules_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.rules_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.rules_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.rules_id_seq OWNED BY public.rules.id;
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: scheduled_statuses; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.scheduled_statuses (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint,
|
|
|
|
scheduled_at timestamp without time zone,
|
|
|
|
params jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.scheduled_statuses OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: scheduled_statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.scheduled_statuses_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.scheduled_statuses_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: scheduled_statuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.scheduled_statuses_id_seq OWNED BY public.scheduled_statuses.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.schema_migrations (
|
2018-02-18 19:53:50 +00:00
|
|
|
version character varying NOT NULL
|
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.schema_migrations OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: session_activations; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.session_activations (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
session_id character varying NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
user_agent character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
ip inet,
|
|
|
|
access_token_id bigint,
|
|
|
|
user_id bigint NOT NULL,
|
|
|
|
web_push_subscription_id bigint
|
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.session_activations OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: session_activations_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.session_activations_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.session_activations_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: session_activations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.session_activations_id_seq OWNED BY public.session_activations.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: settings; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.settings (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
var character varying NOT NULL,
|
|
|
|
value text,
|
|
|
|
thing_type character varying,
|
|
|
|
created_at timestamp without time zone,
|
|
|
|
updated_at timestamp without time zone,
|
|
|
|
thing_id bigint
|
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.settings OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: settings_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.settings_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.settings_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.settings_id_seq OWNED BY public.settings.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: site_uploads; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.site_uploads (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
var character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
file_file_name character varying,
|
|
|
|
file_content_type character varying,
|
|
|
|
file_file_size integer,
|
|
|
|
file_updated_at timestamp without time zone,
|
|
|
|
meta json,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
2022-12-02 23:09:58 +00:00
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
blurhash character varying
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.site_uploads OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: site_uploads_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.site_uploads_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.site_uploads_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: site_uploads_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.site_uploads_id_seq OWNED BY public.site_uploads.id;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: status_edits; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.status_edits (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
status_id bigint NOT NULL,
|
|
|
|
account_id bigint,
|
|
|
|
text text DEFAULT ''::text NOT NULL,
|
|
|
|
spoiler_text text DEFAULT ''::text NOT NULL,
|
|
|
|
created_at timestamp(6) without time zone NOT NULL,
|
|
|
|
updated_at timestamp(6) without time zone NOT NULL,
|
|
|
|
ordered_media_attachment_ids bigint[],
|
|
|
|
media_descriptions text[],
|
|
|
|
poll_options character varying[],
|
|
|
|
sensitive boolean
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.status_edits OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: status_edits_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.status_edits_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.status_edits_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: status_edits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.status_edits_id_seq OWNED BY public.status_edits.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: status_pins; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.status_pins (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
status_id bigint NOT NULL,
|
|
|
|
created_at timestamp without time zone DEFAULT now() NOT NULL,
|
|
|
|
updated_at timestamp without time zone DEFAULT now() NOT NULL
|
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.status_pins OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: status_pins_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.status_pins_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.status_pins_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: status_pins_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.status_pins_id_seq OWNED BY public.status_pins.id;
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: status_stats_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.status_stats_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.status_stats_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: status_stats_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.status_stats_id_seq OWNED BY public.status_stats.id;
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: status_trends; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.status_trends (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
status_id bigint NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
score double precision DEFAULT 0.0 NOT NULL,
|
|
|
|
rank integer DEFAULT 0 NOT NULL,
|
|
|
|
allowed boolean DEFAULT false NOT NULL,
|
|
|
|
language character varying
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.status_trends OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: status_trends_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.status_trends_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.status_trends_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: status_trends_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.status_trends_id_seq OWNED BY public.status_trends.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.statuses_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.statuses_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: statuses_tags; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.statuses_tags (
|
2018-02-18 19:53:50 +00:00
|
|
|
status_id bigint NOT NULL,
|
|
|
|
tag_id bigint NOT NULL
|
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.statuses_tags OWNER TO pinafore;
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: system_keys; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.system_keys (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
key bytea,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.system_keys OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: system_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.system_keys_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.system_keys_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: system_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.system_keys_id_seq OWNED BY public.system_keys.id;
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: tag_follows; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.tag_follows (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
tag_id bigint NOT NULL,
|
|
|
|
account_id bigint NOT NULL,
|
|
|
|
created_at timestamp(6) without time zone NOT NULL,
|
|
|
|
updated_at timestamp(6) without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.tag_follows OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_follows_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.tag_follows_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.tag_follows_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tag_follows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.tag_follows_id_seq OWNED BY public.tag_follows.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: tags; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.tags (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
name character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
2020-05-03 01:02:29 +00:00
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
usable boolean,
|
|
|
|
trendable boolean,
|
|
|
|
listable boolean,
|
|
|
|
reviewed_at timestamp without time zone,
|
|
|
|
requested_review_at timestamp without time zone,
|
|
|
|
last_status_at timestamp without time zone,
|
|
|
|
max_score double precision,
|
2022-12-02 23:09:58 +00:00
|
|
|
max_score_at timestamp without time zone,
|
|
|
|
display_name character varying
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.tags OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tags_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.tags_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.tags_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.tags_id_seq OWNED BY public.tags.id;
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: tombstones; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.tombstones (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
account_id bigint,
|
|
|
|
uri character varying NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
2019-06-22 20:21:06 +00:00
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
by_moderator boolean
|
2019-01-20 21:44:06 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.tombstones OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tombstones_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.tombstones_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.tombstones_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tombstones_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.tombstones_id_seq OWNED BY public.tombstones.id;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: unavailable_domains; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.unavailable_domains (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
domain character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.unavailable_domains OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: unavailable_domains_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.unavailable_domains_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.unavailable_domains_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: unavailable_domains_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.unavailable_domains_id_seq OWNED BY public.unavailable_domains.id;
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: user_invite_requests; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.user_invite_requests (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
user_id bigint,
|
|
|
|
text text,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.user_invite_requests OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: user_invite_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.user_invite_requests_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.user_invite_requests_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: user_invite_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.user_invite_requests_id_seq OWNED BY public.user_invite_requests.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: user_ips; Type: VIEW; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE VIEW public.user_ips AS
|
|
|
|
SELECT t0.user_id,
|
|
|
|
t0.ip,
|
|
|
|
max(t0.used_at) AS used_at
|
|
|
|
FROM ( SELECT users.id AS user_id,
|
|
|
|
users.sign_up_ip AS ip,
|
|
|
|
users.created_at AS used_at
|
|
|
|
FROM public.users
|
|
|
|
WHERE (users.sign_up_ip IS NOT NULL)
|
|
|
|
UNION ALL
|
|
|
|
SELECT session_activations.user_id,
|
|
|
|
session_activations.ip,
|
|
|
|
session_activations.updated_at
|
|
|
|
FROM public.session_activations
|
|
|
|
UNION ALL
|
|
|
|
SELECT login_activities.user_id,
|
|
|
|
login_activities.ip,
|
|
|
|
login_activities.created_at
|
|
|
|
FROM public.login_activities
|
|
|
|
WHERE (login_activities.success = true)) t0
|
|
|
|
GROUP BY t0.user_id, t0.ip;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE public.user_ips OWNER TO pinafore;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: user_roles; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.user_roles (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
name character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
color character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
"position" integer DEFAULT 0 NOT NULL,
|
|
|
|
permissions bigint DEFAULT 0 NOT NULL,
|
|
|
|
highlighted boolean DEFAULT false NOT NULL,
|
|
|
|
created_at timestamp(6) without time zone NOT NULL,
|
|
|
|
updated_at timestamp(6) without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.user_roles OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: user_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.user_roles_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.user_roles_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: user_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.user_roles_id_seq OWNED BY public.user_roles.id;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.users_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.users_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: web_push_subscriptions; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.web_push_subscriptions (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
endpoint character varying NOT NULL,
|
|
|
|
key_p256dh character varying NOT NULL,
|
|
|
|
key_auth character varying NOT NULL,
|
|
|
|
data json,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
2018-08-19 21:46:48 +00:00
|
|
|
updated_at timestamp without time zone NOT NULL,
|
|
|
|
access_token_id bigint,
|
|
|
|
user_id bigint
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.web_push_subscriptions OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: web_push_subscriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.web_push_subscriptions_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.web_push_subscriptions_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: web_push_subscriptions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.web_push_subscriptions_id_seq OWNED BY public.web_push_subscriptions.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: web_settings; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.web_settings (
|
2018-02-18 19:53:50 +00:00
|
|
|
id bigint NOT NULL,
|
|
|
|
data json,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL,
|
2018-08-19 21:46:48 +00:00
|
|
|
user_id bigint NOT NULL
|
2018-02-18 19:53:50 +00:00
|
|
|
);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.web_settings OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: web_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.web_settings_id_seq
|
2018-02-18 19:53:50 +00:00
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.web_settings_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: web_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.web_settings_id_seq OWNED BY public.web_settings.id;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: webauthn_credentials; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.webauthn_credentials (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
external_id character varying NOT NULL,
|
|
|
|
public_key character varying NOT NULL,
|
|
|
|
nickname character varying NOT NULL,
|
|
|
|
sign_count bigint DEFAULT 0 NOT NULL,
|
|
|
|
user_id bigint,
|
|
|
|
created_at timestamp without time zone NOT NULL,
|
|
|
|
updated_at timestamp without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.webauthn_credentials OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: webauthn_credentials_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.webauthn_credentials_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.webauthn_credentials_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: webauthn_credentials_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.webauthn_credentials_id_seq OWNED BY public.webauthn_credentials.id;
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: webhooks; Type: TABLE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.webhooks (
|
|
|
|
id bigint NOT NULL,
|
|
|
|
url character varying NOT NULL,
|
|
|
|
events character varying[] DEFAULT '{}'::character varying[] NOT NULL,
|
|
|
|
secret character varying DEFAULT ''::character varying NOT NULL,
|
|
|
|
enabled boolean DEFAULT true NOT NULL,
|
|
|
|
created_at timestamp(6) without time zone NOT NULL,
|
|
|
|
updated_at timestamp(6) without time zone NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.webhooks OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: webhooks_id_seq; Type: SEQUENCE; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.webhooks_id_seq
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE public.webhooks_id_seq OWNER TO pinafore;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: webhooks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.webhooks_id_seq OWNED BY public.webhooks.id;
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: account_aliases id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_aliases ALTER COLUMN id SET DEFAULT nextval('public.account_aliases_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
-- Name: account_conversations id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_conversations ALTER COLUMN id SET DEFAULT nextval('public.account_conversations_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_deletion_requests id; Type: DEFAULT; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE ONLY public.account_deletion_requests ALTER COLUMN id SET DEFAULT nextval('public.account_deletion_requests_id_seq'::regclass);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_domain_blocks id; Type: DEFAULT; Schema: public; Owner: pinafore
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE ONLY public.account_domain_blocks ALTER COLUMN id SET DEFAULT nextval('public.account_domain_blocks_id_seq'::regclass);
|
2019-05-05 22:02:14 +00:00
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: account_migrations id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_migrations ALTER COLUMN id SET DEFAULT nextval('public.account_migrations_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: account_moderation_notes id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_moderation_notes ALTER COLUMN id SET DEFAULT nextval('public.account_moderation_notes_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: account_notes id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_notes ALTER COLUMN id SET DEFAULT nextval('public.account_notes_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: account_pins id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_pins ALTER COLUMN id SET DEFAULT nextval('public.account_pins_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: account_stats id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_stats ALTER COLUMN id SET DEFAULT nextval('public.account_stats_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_statuses_cleanup_policies id; Type: DEFAULT; Schema: public; Owner: pinafore
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE ONLY public.account_statuses_cleanup_policies ALTER COLUMN id SET DEFAULT nextval('public.account_statuses_cleanup_policies_id_seq'::regclass);
|
2019-01-20 21:44:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_warning_presets id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_warning_presets ALTER COLUMN id SET DEFAULT nextval('public.account_warning_presets_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_warnings id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_warnings ALTER COLUMN id SET DEFAULT nextval('public.account_warnings_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: admin_action_logs id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.admin_action_logs ALTER COLUMN id SET DEFAULT nextval('public.admin_action_logs_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: announcement_mutes id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.announcement_mutes ALTER COLUMN id SET DEFAULT nextval('public.announcement_mutes_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: announcement_reactions id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.announcement_reactions ALTER COLUMN id SET DEFAULT nextval('public.announcement_reactions_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: announcements id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.announcements ALTER COLUMN id SET DEFAULT nextval('public.announcements_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: appeals id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.appeals ALTER COLUMN id SET DEFAULT nextval('public.appeals_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: backups id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.backups ALTER COLUMN id SET DEFAULT nextval('public.backups_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: blocks id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.blocks ALTER COLUMN id SET DEFAULT nextval('public.blocks_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: bookmarks id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.bookmarks ALTER COLUMN id SET DEFAULT nextval('public.bookmarks_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: canonical_email_blocks id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.canonical_email_blocks ALTER COLUMN id SET DEFAULT nextval('public.canonical_email_blocks_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: conversation_mutes id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.conversation_mutes ALTER COLUMN id SET DEFAULT nextval('public.conversation_mutes_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: conversations id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.conversations ALTER COLUMN id SET DEFAULT nextval('public.conversations_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_emoji_categories id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.custom_emoji_categories ALTER COLUMN id SET DEFAULT nextval('public.custom_emoji_categories_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_emojis id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.custom_emojis ALTER COLUMN id SET DEFAULT nextval('public.custom_emojis_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_filter_keywords id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.custom_filter_keywords ALTER COLUMN id SET DEFAULT nextval('public.custom_filter_keywords_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_filter_statuses id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.custom_filter_statuses ALTER COLUMN id SET DEFAULT nextval('public.custom_filter_statuses_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_filters id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.custom_filters ALTER COLUMN id SET DEFAULT nextval('public.custom_filters_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: devices id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.devices ALTER COLUMN id SET DEFAULT nextval('public.devices_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: domain_allows id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.domain_allows ALTER COLUMN id SET DEFAULT nextval('public.domain_allows_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: domain_blocks id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.domain_blocks ALTER COLUMN id SET DEFAULT nextval('public.domain_blocks_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_domain_blocks id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.email_domain_blocks ALTER COLUMN id SET DEFAULT nextval('public.email_domain_blocks_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: favourites id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.favourites ALTER COLUMN id SET DEFAULT nextval('public.favourites_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: featured_tags id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.featured_tags ALTER COLUMN id SET DEFAULT nextval('public.featured_tags_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: follow_recommendation_suppressions id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.follow_recommendation_suppressions ALTER COLUMN id SET DEFAULT nextval('public.follow_recommendation_suppressions_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: follow_requests id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.follow_requests ALTER COLUMN id SET DEFAULT nextval('public.follow_requests_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: follows id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.follows ALTER COLUMN id SET DEFAULT nextval('public.follows_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: identities id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.identities ALTER COLUMN id SET DEFAULT nextval('public.identities_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: imports id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.imports ALTER COLUMN id SET DEFAULT nextval('public.imports_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: invites id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.invites ALTER COLUMN id SET DEFAULT nextval('public.invites_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: ip_blocks id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.ip_blocks ALTER COLUMN id SET DEFAULT nextval('public.ip_blocks_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: list_accounts id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.list_accounts ALTER COLUMN id SET DEFAULT nextval('public.list_accounts_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: lists id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.lists ALTER COLUMN id SET DEFAULT nextval('public.lists_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: login_activities id; Type: DEFAULT; Schema: public; Owner: pinafore
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE ONLY public.login_activities ALTER COLUMN id SET DEFAULT nextval('public.login_activities_id_seq'::regclass);
|
2020-05-03 01:02:29 +00:00
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: markers id; Type: DEFAULT; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE ONLY public.markers ALTER COLUMN id SET DEFAULT nextval('public.markers_id_seq'::regclass);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: mentions id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.mentions ALTER COLUMN id SET DEFAULT nextval('public.mentions_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: mutes id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.mutes ALTER COLUMN id SET DEFAULT nextval('public.mutes_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: notifications id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.notifications ALTER COLUMN id SET DEFAULT nextval('public.notifications_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_grants id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.oauth_access_grants ALTER COLUMN id SET DEFAULT nextval('public.oauth_access_grants_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_tokens id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.oauth_access_tokens ALTER COLUMN id SET DEFAULT nextval('public.oauth_access_tokens_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_applications id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.oauth_applications ALTER COLUMN id SET DEFAULT nextval('public.oauth_applications_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: one_time_keys id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.one_time_keys ALTER COLUMN id SET DEFAULT nextval('public.one_time_keys_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
-- Name: pghero_space_stats id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.pghero_space_stats ALTER COLUMN id SET DEFAULT nextval('public.pghero_space_stats_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: poll_votes id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.poll_votes ALTER COLUMN id SET DEFAULT nextval('public.poll_votes_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: polls id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.polls ALTER COLUMN id SET DEFAULT nextval('public.polls_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: preview_card_providers id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.preview_card_providers ALTER COLUMN id SET DEFAULT nextval('public.preview_card_providers_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: preview_card_trends id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.preview_card_trends ALTER COLUMN id SET DEFAULT nextval('public.preview_card_trends_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: preview_cards id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.preview_cards ALTER COLUMN id SET DEFAULT nextval('public.preview_cards_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: relays id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.relays ALTER COLUMN id SET DEFAULT nextval('public.relays_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: report_notes id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.report_notes ALTER COLUMN id SET DEFAULT nextval('public.report_notes_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: reports id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.reports ALTER COLUMN id SET DEFAULT nextval('public.reports_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: rules id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.rules ALTER COLUMN id SET DEFAULT nextval('public.rules_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: scheduled_statuses id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.scheduled_statuses ALTER COLUMN id SET DEFAULT nextval('public.scheduled_statuses_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: session_activations id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.session_activations ALTER COLUMN id SET DEFAULT nextval('public.session_activations_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: settings id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.settings ALTER COLUMN id SET DEFAULT nextval('public.settings_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: site_uploads id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.site_uploads ALTER COLUMN id SET DEFAULT nextval('public.site_uploads_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: status_edits id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.status_edits ALTER COLUMN id SET DEFAULT nextval('public.status_edits_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: status_pins id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.status_pins ALTER COLUMN id SET DEFAULT nextval('public.status_pins_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: status_stats id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.status_stats ALTER COLUMN id SET DEFAULT nextval('public.status_stats_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: status_trends id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.status_trends ALTER COLUMN id SET DEFAULT nextval('public.status_trends_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: system_keys id; Type: DEFAULT; Schema: public; Owner: pinafore
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE ONLY public.system_keys ALTER COLUMN id SET DEFAULT nextval('public.system_keys_id_seq'::regclass);
|
2018-09-23 05:19:02 +00:00
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: tag_follows id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.tag_follows ALTER COLUMN id SET DEFAULT nextval('public.tag_follows_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: tags id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.tags ALTER COLUMN id SET DEFAULT nextval('public.tags_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: tombstones id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.tombstones ALTER COLUMN id SET DEFAULT nextval('public.tombstones_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: unavailable_domains id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.unavailable_domains ALTER COLUMN id SET DEFAULT nextval('public.unavailable_domains_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: user_invite_requests id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.user_invite_requests ALTER COLUMN id SET DEFAULT nextval('public.user_invite_requests_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: user_roles id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.user_roles ALTER COLUMN id SET DEFAULT nextval('public.user_roles_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: users id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: web_push_subscriptions id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.web_push_subscriptions ALTER COLUMN id SET DEFAULT nextval('public.web_push_subscriptions_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: web_settings id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.web_settings ALTER COLUMN id SET DEFAULT nextval('public.web_settings_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: webauthn_credentials id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.webauthn_credentials ALTER COLUMN id SET DEFAULT nextval('public.webauthn_credentials_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: webhooks id; Type: DEFAULT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.webhooks ALTER COLUMN id SET DEFAULT nextval('public.webhooks_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: account_aliases; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.account_aliases (id, account_id, acct, uri, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: account_conversations; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.account_conversations (id, account_id, conversation_id, participant_account_ids, status_ids, last_status_id, lock_version, unread) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Data for Name: account_deletion_requests; Type: TABLE DATA; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.account_deletion_requests (id, account_id, created_at, updated_at) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Data for Name: account_domain_blocks; Type: TABLE DATA; Schema: public; Owner: pinafore
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.account_domain_blocks (id, domain, created_at, updated_at, account_id) FROM stdin;
|
2019-05-05 22:02:14 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: account_migrations; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.account_migrations (id, account_id, acct, followers_count, target_account_id, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: account_moderation_notes; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.account_moderation_notes (id, content, account_id, target_account_id, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: account_notes; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.account_notes (id, account_id, target_account_id, comment, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: account_pins; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.account_pins (id, account_id, target_account_id, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: account_stats; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.account_stats (id, account_id, statuses_count, following_count, followers_count, created_at, updated_at, last_status_at) FROM stdin;
|
|
|
|
1 2 0 1 0 2018-03-06 03:52:20.992567 2018-03-06 03:52:20.992567 \N
|
|
|
|
2 3 0 1 0 2018-03-06 03:52:52.495982 2018-03-06 03:52:52.495982 \N
|
|
|
|
3 4 0 1 0 2018-03-06 03:53:52.5107 2018-03-06 03:54:25.492347 \N
|
|
|
|
4 5 0 1 0 2018-03-08 17:13:19.723561 2018-03-08 17:13:19.723561 \N
|
|
|
|
5 1 0 0 5 2018-03-06 03:50:49.164137 2018-03-06 03:50:49.164137 \N
|
|
|
|
6 6 0 1 0 2018-03-15 04:07:23.996029 2018-03-15 04:33:45.479283 \N
|
2019-01-20 21:44:06 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Data for Name: account_statuses_cleanup_policies; Type: TABLE DATA; Schema: public; Owner: pinafore
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.account_statuses_cleanup_policies (id, account_id, enabled, min_status_age, keep_direct, keep_pinned, keep_polls, keep_media, keep_self_fav, keep_self_bookmark, min_favs, min_reblogs, created_at, updated_at) FROM stdin;
|
2019-01-20 21:44:06 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: account_warning_presets; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
COPY public.account_warning_presets (id, text, created_at, updated_at, title) FROM stdin;
|
2019-01-20 21:44:06 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: account_warnings; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.account_warnings (id, account_id, target_account_id, action, text, created_at, updated_at, report_id, status_ids, overruled_at) FROM stdin;
|
2019-01-20 21:44:06 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: accounts; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.accounts (id, username, domain, private_key, public_key, created_at, updated_at, note, display_name, uri, url, avatar_file_name, avatar_content_type, avatar_file_size, avatar_updated_at, header_file_name, header_content_type, header_file_size, header_updated_at, avatar_remote_url, locked, header_remote_url, last_webfingered_at, inbox_url, outbox_url, shared_inbox_url, followers_url, protocol, memorial, moved_to_account_id, featured_collection_url, fields, actor_type, discoverable, also_known_as, silenced_at, suspended_at, hide_collections, avatar_storage_schema_version, header_storage_schema_version, devices_url, sensitized_at, suspension_origin, trendable, reviewed_at, requested_review_at) FROM stdin;
|
|
|
|
2 foobar \N -----BEGIN RSA PRIVATE KEY-----\nMIIEogIBAAKCAQEAoMmpjeV32Muoe7G9jtM1juQgFIWb+LVYb3Q+wDvcGui2u8ow\nlsffsZl3f0RBIQXAfqkmB0j55ISg2Rlp+IOEcDxz32N9syfd+6I03PUfshtb5xPP\n7kDsrlWDbD/fI5SpepaIYAsRH6bpZDlS3BCwRTgWX3FEVogOTYNXGBBL95vZn4U4\nksxo8QH8gKWaH9itYUOovvsbxARGKTU4Besvi2HzP2839Va4ce4SF5gaVLNH3Lxz\nnQU6qZk19kGN2+3k2Y80flmtSORLtjBywwZ6B2H3IJaKdVacnX9BZix1Uv9z0lib\nrJwF0/laDqNZvUDUjJfGoOq0Mn1VxXB1qgJ2RwIDAQABAoIBAEzMZe8/xoHHrP8A\nA6GfonpQ3j3PH5Oo0sfRh1N8hAJaW0XRKmoqp98FhX1FVbJ3M92L330lTy7mZomr\nyOEJuI1/Yn014UlcZnwVmxhbALuqs7foz61mV2Zhs/dVfrhY/qZuFk+Bmbk7mUjk\n1H4GfpthUdZenJyUOfiuHkCBMDfg+ColWRPKohopvEPYpj3AT0KdeZt8y+ElYBgF\nkPlEr/NwzxoqPyyt007x2/mouqsDu23M11/WLJbYUKd8m8NXZMLrSqjcUjxkIkjV\nOCXbXJM7MULCAgX85H6ymf/xBnevwMtdXkP3pUjvVEBdROUPHpVh4bEjikAN4hvP\nZL2HwbECgYEA0MDcvkvIjVlRmHSappw1i6QF+3bBdiE9yRQLl3+g3a69VkAYPuOc\nF/tWBc/W+ZvdNY53cJms4EbiVO5zmJE87c1DlfG7d911DiI6lgTdlLdpbpdR49uH\n/yiZc1WbX4f+gBdyqFMrHJwC+ymk4CL7Ma5yoWELY4OxaC74Qr/HRBkCgYEAxS2t\n35ZBXco/X6zXhKw4hYeFXVMqCkbAwPdQsarTJXIG1hsC/SrHU9o38oobIjZoex7X\npwMBXfN8Aj5VipV8ttB/GI68fdKwRpL9wzOu+QAfGO3++ZN+h+cFzvW51VoHe4K2\nkcxDQjVQ2hvVE0AqTsz3m+wTyoHuJvfRYHvv2V8CgYA7fCmq5Edy19fjfJ6xCWRM\ntWGrBW0db11+1gJzmj/Jy8hSMpN2ID/TqaAaqd4VZK/FWiJ46KGViz1lfEleWUym\nas5uhOKpxmZbr69IHnzRqu4VQHNqXZ1EPVp0vhk3QLZp48SdaI2pal+DGJvN7snr\nn0005UVshxNfn7rIsoNiyQKBgECaFr2KnR/9g4X1Oydcxaf6HtfUx5FWXRDb9rQ/\nI67BDTxY3UHVIjl25Z2xYfJzoQe1szIk6e2+OIMDqUMedx3ucbW6DkerH9X/kuTB\nqjIquAWS9FcQ3APqzRxhpeEg/hKZYPej1OV8UmEjfUwxWas3vGh5kIJoz34084SJ\nFqxBAoGADPTjFA6dqZBxY8tO63/blR0+CgE+Z/BbsPxmtGKgAyQbnM2TQ7IqCzQw\nJxDF6p3bQqyZYVLfrQ0BLna2I0AFPVGn7fUNAAOT67HVtm3U58Cbdt457O51EQuW\nFSiCX7BuMU5uJT2S70fWSMFf3iwczxJiQwwOwBLIDjpkSanm9eM=\n-----END RSA PRIVATE KEY-----\n -----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoMmpjeV32Muoe7G9jtM1\njuQgFIWb+LVYb3Q+wDvcGui2u8owlsffsZl3f0RBIQXAfqkmB0j55ISg2Rlp+IOE\ncDxz32N9syfd+6I03PUfshtb5xPP7kDsrlWDbD/fI5SpepaIYAsRH6bpZDlS3BCw\nRTgWX3FEVogOTYNXGBBL95vZn4U4ksxo8QH8gKWaH9itYUOovvsbxARGKTU4Besv\ni2HzP2839Va4ce4SF5gaVLNH3LxznQU6qZk19kGN2+3k2Y80flmtSORLtjBywwZ6\nB2H3IJaKdVacnX9BZix1Uv9z0librJwF0/laDqNZvUDUjJfGoOq0Mn1VxXB1qgJ2\nRwIDAQAB\n-----END PUBLIC KEY-----\n 2018-03-06 03:52:20.992567 2018-03-06 03:52:20.992567 \N \N \N \N \N \N \N \N \N \N f \N 0 f \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N
|
|
|
|
3 quux \N -----BEGIN RSA PRIVATE KEY-----\nMIIEpQIBAAKCAQEAuXdx5P91Cn1Sx+C4ihnk2r2L+q6Lalr/r9h9hQVRQaR5ZiHF\nj61eST6y0k0KzZ3ALcpjZHZsjbbn/LGFjyBwTqqLhYcImjeiCTt2J69o+imI9x8p\n3A1tIWwMn3oQVvT5mXqj1cEDzqmgpByPA0xF9YAbKwGu/3H+DLOckauI7AeOcgrt\nfydFX7gsyv4kji/tfzg9D+8PwYXLKHIkjuCadxR4h58m2J+KZnOcCDK0x0tVhq1m\n6gEX+5wMRrWEvC3tSUNFH+58q3ozNuNuhyEURCcr4jQa77ZWiNxjR6JmFWl5YKfZ\n8Y+hNtRjF4VT+aW2T7UanEIxrabRvKL2aC26/wIDAQABAoIBAQCTI0DXdRdMqBo5\nen3NCjf2lbPsv/bY/LKmtjD2jD5nvm2VaiuLDfakUzqY/wgYEhO6ADuUIyOB1l77\nqXaVEx4mOsUPvQ5FEufZPTRCzbWR6cvAiheyfXBbuJXXG4bFBfrTGWnLFiLIHOjV\n6dZHvoYt+2ESYHaOL8hmGUSYiKbK4OYB8KzVLikm4DG2+Ck6JxaCNbkI3VxOBGD9\nypRWLIBefVPwntxCU8Kb8k5JJAJOMUkucZ7Mjj7TRzyq133kupq7oaOE0V4/o63U\nQVomtGfw1Q7HVuVsXm9dClIG8tRhDGfAO8QgqmHv4GfNt7IpaKHiBkp0e1R02LMK\nc4WeElgBAoGBAN5EaDXDmcyQ+4CBbNNGDG8h970W1ElvS9G6xTZkQ4KrnWZmKNw7\nzfA4TjvX88cUYbw1h0/YBO4bUe08N5bJihmLAxPBPpwkxhkzgisjBIIw5IEIM7Vo\nVmz+u8iCuEH2Uh89X354nxE5UWPm+jS7zN5Z3QGI7PFeksisNlGPbXQBAoGBANWd\nP55kDswWZ77UUbn4A1kiaD48/b0SkuvxA3HaZFbZJlHCrRfgn5yiO8IGoQCV2YQg\nZRfVIyDQWeCjGjmdYMX661OXsJDoxmGTPamgl5KB4dB92bZB09kTwJsoJz47jnGO\nkYHt+/zMeXiRrTCi+07vMPlZGnyW4WFqPZATTy7/AoGAUr7IxOsywJNg7fBA4U58\nporQvdZX5ZbHdSbA8ITXFThqeoqhv4uMGVf82A6HNKAD2pta6oCTJUmKcHUwhLQ2\n81drJ9mTQ3H1RcCFPyXkMcud5eN1zJ0xP5Z9tiHkErpuzC5+9IhXP4RFJpoAn80i\nccymmEGvZBQ/NPHXrvlkWAECgYEAy1ZUKMG2FC9/sfcJlKyxAzftYtFL956mnFFf\nphDtUn6CK3HUstXvGXqUx6zntVbvJwZvNLB+L84kv+CCJjXY2JxxRbEvMcFilZ9D\nIyTrI1rfSUeC5irjLc/Pl+Iw+NxYS2AawkN3irxZJJwG8DU0Y37sb26R9+bnw4MN\n9wdqaKECgYEAnLWO4wrhg7keBAVF6HFgRyjT5S6DHFM2BsEpjbqrxLN7M0pVimJa\nYxVJj70Clm3OdkZ8k8f9AaxNK4l38cTRNct+IhKlQB4Ryz+Gpc+T0HOAv9kk6qJ4\niJofJ1scmvubau+vOmtI6mfuyIsiSVZdW9jOEihkyzlLa2K5K5m1yww=\n-----END RSA PRIVATE KEY-----\n -----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuXdx5P91Cn1Sx+C4ihnk\n2r2L+q6Lalr/r9h9hQVRQaR5ZiHFj61eST6y0k0KzZ3ALcpjZHZsjbbn/LGFjyBw\nTqqLhYcImjeiCTt2J69o+imI9x8p3A1tIWwMn3oQVvT5mXqj1cEDzqmgpByPA0xF\n9YAbKwGu/3H+DLOckauI7AeOcgrtfydFX7gsyv4kji/tfzg9D+8PwYXLKHIkjuCa\ndxR4h58m2J+KZnOcCDK0x0tVhq1m6gEX+5wMRrWEvC3tSUNFH+58q3ozNuNuhyEU\nRCcr4jQa77ZWiNxjR6JmFWl5YKfZ8Y+hNtRjF4VT+aW2T7UanEIxrabRvKL2aC26\n/wIDAQAB\n-----END PUBLIC KEY-----\n 2018-03-06 03:52:52.495982 2018-03-06 03:52:52.495982 \N \N \N \N \N \N \N \N \N \N f \N 0 f \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N
|
|
|
|
4 ExternalLinks \N -----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEArvTBpSQFmhlygPYMF0YTi5/Cd5mmKYlfu/nqR1bGUixefGWR\nV89Z2YcEV7qhOtYQFjO3kkgn8e0S3O/d52PpcKAm7L3RxHNXG2KuOgW0UkG2wqQY\nV/fx3Fj8xvCISOc1ZEbrem9pt9/XtNsBozL13lYloKGNC5FGN6W0kwd25EE1oq9p\nhO8Z+Wwh4hx1Qpg30FEW3OpVDGxEq96p4mR50cPfSGXMAeyYg93njC1kfSdnaNuq\n/8ouMS1IzJlzr4N+CweCB+qKLbB7+05bpO3SC7Xnf0r1e+N2zFdzo1iuePv6tqkQ\nzM7ppTU7eWGuTUozQrb7ROI59ML1eKcAuFcYQwIDAQABAoIBAQCCZe5GdViviDPt\npnVQi2xZ7pL0rVJJNxhhdF2HGkfqSyOJN/JiLitbk+RKttEglxeaVKWHo7wR9o7O\nmQEdSzxcMyGP5dKIxyavRJdyq3nArTXYUJHMTwK3JqQQaopJO/pxaOJteMikwXN2\nWp0X1A2ozzBwTrhfXMGnDBxQUYntiOi/Hi+E4ZCBEoAhWFZSq4YH4hB5HOKUHUIZ\niKfKsFV8H5TqR0li6FbIZtR+fBY83FcRPsOA423wswrgTXPPZ3Mnv0rMtg3BijpB\nl88B5uLMprpckwLzRLRZO6KCACxjoKrrFIXy4apRG1jcIjd4Nr4j3Lus+pPNQRI3\nKsWxRpvRAoGBAOA05cfazBFhUQaRRxCmxc+mM30gAmd5IL4fGS+4DKtZz6DBr0ke\nfOS3wZ6ANo5Ovg9Js3fN9U09sRO5f4+QLeaE2f/EzdlkocnKqJGgWpNLsPAv/BrK\ngCBS3b7vXPTkiXQcuct+0dgP5tlCU+BRmH1yMTjKjaB+25mpOFZhsHJHAoGBAMfD\n+cAsAI/OwNyNAgF8gLJWdCMuYvoYlYGBAbhpFk3Xrg1FvAQbyeFDleGlaqBszq8P\nmk1hXLhX7aUZLc5g3wcmfGdFbJIjbBHxfmJqgy7iA8a60FxlD3wCtx7txD33tKSU\nt7NeMhR44YdwZ8XmPI/4vK/34bFJb1KLAvg4CswlAoGARjiLFzMx4uel5vatWUvC\nfKzDR5c06Y+Ib8Nxsf5lCW3Rl7nR2obP+xqKa8ggTiXfZQ5iRU2eXJjL0y+wAhjY\nJ3DIjlDnYAUinv74GNQuSh/UxQViYkm2I2mQxfJWHOVPH6y3jEKmGpOwa69YcdNc\nfT28qNrXzMKuqMvVN0jVaJUCgYBWpjgP1kZMGodnYzaKhIGiWYO4uuctyjoXWWjw\nn4yQKUyS7zuVoKQZtOIvZTvx6CBiqObqR6AbSfCH23sV+Mjk5hmyBdgJL5ox0kla\n0Q6j6F9w9Rlp6mAkD1106fdkVayicuuXvvUEEkbpI6WvnqWIYYEe5uubpdnGuQuJ\ntW1hjQKBgQC2CjJ35lntsCHoWud8uWnlMjtXAbEWSLkcTUXvY6TaMtHCMVvpUvCI\niacqlUVkVTS7uHNN9jre/z0+iEWM+jpByC303/NCWtvnmjHT7uJHrFNqmdfeuKGs\n4WTB0rMNvaLv7ikHyi9WGCpeD+q2pmxIdFNKCepeuuiBuygCOoFG0A==\n-----END RSA PRIVATE KEY-----\n -----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArvTBpSQFmhlygPYMF0YT\ni5/Cd5mmKYlfu/nqR1bGUixefGWRV89Z2YcEV7qhOtYQFjO3kkgn8e0S3O/d52Pp\ncKAm7L3RxHNXG2KuOgW0UkG2wqQYV/fx3Fj8xvCISOc1ZEbrem9pt9/XtNsBozL1\n3lYloKGNC5FGN6W0kwd25EE1oq9phO8Z+Wwh4hx1Qpg30FEW3OpVDGxEq96p4mR5\n0cPfSGXMAeyYg93njC1kfSdnaNuq/8ouMS1IzJlzr4N+CweCB+qKLbB7+05bpO3S\nC7Xnf0r1e+N2zFdzo1iuePv6tqkQzM7ppTU7eWGuTUozQrb7ROI59ML1eKcAuFcY\nQwIDAQAB\n-----END PUBLIC KEY-----\n 2018-03-06 03:53:52.5107 2018-03-06 03:54:25.492347 Check out https://joinmastodon.org and #cat and #mastocats and also @quux is my friend External Lonk \N \N \N \N \N \N \N \N \N \N f \N 0 f \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N
|
|
|
|
5 baz \N -----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEA6MoozQ6aD0mGLXjepbLjRVITMiV/V6+Gv3hWBshGckO41bTn\nGLJ3vP/Qi93GCig78LHKbYtYyZ0hW5n7oLcX+ficX5KM/cmwhxzH0nnwzxPr/Upl\nbHcN+GTTGHOrqAs/PQpfcnraIGROh1KSMxvTJmBIcaUr50aqfvdV2TGD+NGW+rYS\noK8Txja2Yr4cEfZZydFZxVhePzlrwwwSVEZm1u310KIWaIRhetAtSCkIkdUa3/8U\n6gfObp/eZbdugFLjC9dOnbyuJWX7j587nZyF1tfEGD5Wchybb3ZNK3742HpR0E8m\n7wQQl5onxG7bJD25zxgb0E03G6kxv6o43ZnXFQIDAQABAoIBAQDQDL1iZwZxWzi8\nMyZp2PMd5TiavMCO0aUQQrA/54ZuYPA0rzVK8VXqaIcuOcrhEQxhFcThGoUDy5cg\nkwI8pOac1gCLuiKgPz2xw5sjFTCPIjLrcS4sPksSEKpJVDe6PDMMjtS3L+z6visg\n7j8Txm50AeE9EG2oiZOfXdYwAvz7xkFLV8sUHI+Au37x61ulm0MMYrafCVkwIYIm\n3m8OPGLAFtN9nOJUdq7mExHu+A27s/3ypIae6GDu7zNyJW2TyiGpnw4UUgJQJhgy\nOP8keFcMyaMiPKyALKtjmHdFlebDyfH8btfpXiXErzRvH326JixJtg4M1xRWBra1\nl1NOUIaRAoGBAPgZUG9fWdPGTcUKsa1CJjSK0gwVldqeuxxh2Vkcai18XEXzTZ/z\ndVM/XDymUqOtIegjt52SNR2iF1ViomF5ur+74/xo1tXNf8vjMzeXJ7R0Nz5kd+ZN\nCWtVexeXvxtQO7lbJJwecjI+aLUv+9yWeZHIvSS+tHvC7zMa1DjKJIu3AoGBAPA0\nCIOTral3q9MOwDOBjCtvv72RjLx5cU93J2dca0xxYI/wa2IDl18WMEOhovB1knId\nzf2PhwakbWQ9axoq303L5muPMiVT9rkxBf90r/bUEdQPfZNRAQZ01v1uWUZnZCz7\nFJmRuk9YNbnYzp4ljU1iz7dL5YvA8gYSnma1yUuTAoGATNkqfRT/8gUe2cXyO0Se\nKPBHF88n18wLEUON23hduzEmM9SlWsJCuUKLA45RUrmyIwHNQlWjdkZbC+u9eIwI\nOJOujuS6hwdcan85wiJj/hVxdzYPnZqHLGQR+MDcRU2Y8lU1Bda4cK+8J0NxtGY3\nydxwGg2oQh2jkiThT6XtpAkCgYEAu5u4ZqRKiEla387umYv+YdK3TKXI6VBlCu8C\nzL0nZR5MkD/0bypk6TSYX8p4TB1YU18qC3g1ux9j/V3nMBn6LXYrMyk1vmf1FTHQ\nAHUwFrYOcrXim9Qx28wYOvscKVwJpwQ4U7W5cc1wsQZAYs7rrVyW5hAWanA52Dpk\nk846OZcCgYB4G8BOm7apwEfkjVzmPMazxZsV2COB2r32Wdbiuulu0hbtTVO0rZgw\nRJGCow3wEWHoO1hzVO0aFVsLB176NaRDKnEP/L2xn2y71cS3mo+FRIEHOwL9sBOL\n958bpX5AWw7KOMCPOcesFEffomMl8raaMcYkUabEABMjgNJHzL4ICA==\n-----END RSA PRIVATE KEY-----\n -----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6MoozQ6aD0mGLXjepbLj\nRVITMiV/V6+Gv3hWBshGckO41bTnGLJ3vP/Qi93GCig78LHKbYtYyZ0hW5n7oLcX\n+ficX5KM/cmwhxzH0nnwzxPr/UplbHcN+GTTGHOrqAs/PQpfcnraIGROh1KSMxvT\nJmBIcaUr50aqfvdV2TGD+NGW+rYSoK8Txja2Yr4cEfZZydFZxVhePzlrwwwSVEZm\n1u310KIWaIRhetAtSCkIkdUa3/8U6gfObp/eZbdugFLjC9dOnbyuJWX7j587nZyF\n1tfEGD5Wchybb3ZNK3742HpR0E8m7wQQl5onxG7bJD25zxgb0E03G6kxv6o43ZnX\nFQIDAQAB\n-----END PUBLIC KEY-----\n 2018-03-08 17:13:19.723561 2018-03-08 17:13:19.723561 \N \N \N \N \N \N \N \N \N \N f \N 0 f \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N
|
|
|
|
1 admin \N -----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAqhTaq3zCpRnFoQzHheYBfwcdjjczJ4pSKwsq1qJmydctdZM6\ngScZfgObg0mY7Y1UrnlQDw5RB6Py8hFmGGEh/wJm8mqxx473L+noX8X49jhFuv5O\nsnWTDLMbo497hCaZoD5/7y/zlfgYzGp2Llt8GKmX9Cg8W1G52dZlNq/HbEygg0W7\nvq2LBPJvuTAE0RH2jxKU+JCsVhfaUzEFUlcrJyXli9+cLl9p4msiLgbP3x9mZ46s\njtYl0tSSL7hPoF0uP0QQoB7n6TmQqhY6K2dM/lax9x5CRcmDJLBwqZPFi1TnPJOr\nAy/o9LeQoLSKzEcF0YtiwjghQi4cw+2oNbH/pwIDAQABAoIBAQCIa/fFq2mY8iYR\n+uUjIo06raNoSiBu68Tin695v4PBDCZ7c19u7sTEzfH0CZlvmXg+BjJQEUSvYzLg\nNVJ15ZtWJ0AZ27jDf4oH1Y+9GleKbzKHPaoz/Ji5jAR0WgdRxYBeByOo4AZ62ShS\n9mXa4yiTw5yNi6R1/wSalRxUFARaeYBbRSZTawU24C4hyZZFEKO3QlxbhBaAfsJP\nDVGftkL9mdCHJLvA4/7IXZsmpErkhaXP98B1FaY3zE+qefGcLFRLYbAxjbCOAX6z\nAD3yjk3e66DKxHF1Wxva4u30aPZfODPCkCgPwxuZq8Tz+VNh4j5cS5C13etukBV4\nB31Brb8pAoGBAOFzZ8IMcz1GZxeIgarb5AQHbi0rZiPZwJF4/pLa9U4Bg0maj97t\nemWRomuVEtM/bI5Dva+YzQnei49pDPnTMAqPLRbfOeruFBlGxJlPbaKguR5qAQar\n2imkhvjOq3/bV7PonP6JE6hxqfwAoMtxpPYKuKymSDdZ+imFFNiu/fiNAoGBAMEg\nwjGyukiXppjKYPyXnjJOuzajvq1+o2h6l216tYMSlvRlbM8EINYbg6yKLia0yHDl\n9wVD4vEU6BYZ5OmXDT0hSF00+wx1lQi4YM2u+va00dthpgUDxXi/FUctlJZuRpOW\nzK1JKpFl/znIMxME6d+DN+yNqGMM2hMatQAVee4DAoGAKWeMcrLepy462LOVPM/N\nfH/w2BLUW1kuaIkUF9xmmMDmX6onKgXrKKQqdB+YqXtIcIg4WftyDJH2h4v/ehIz\nDH1nBoBQnrjCsDGzAYT42Zky5kcJkTQWiPdSYndyP7UE0mGyE30RQyo80a872KEy\nbo1hhTO0p5W6v81VGsZoljECgYBwzjmf3c2BaVMeG9faspTsvaAMokhV/opkFHcu\ns2YiUVFrH3MW2Ep1xUx8E5oxcZdCmpBWuvhr6NJHVoinCFvrQO2Lw85/0I5ksY2Z\nloNwZt3NTpQyialmhfZfxPfthiwjOQoEjaAXnYQetBlhGpWgwHyB55xbfr5COm9O\nxTybEQKBgALIfybfST7EfUZszLen+/PyXPfCHKybTwEHHYfwwwFHmiVuMLCbsXIR\nPjOPl29jHcSiSutMQZbnKDZ3UgNnx9O31lSzS7ygC50pK1QpzPBXKZMGGnS4UGSd\nTBa+FKJuFAeVeRnoDKnTRFSRIGwvu4vDKLmXBv1728XWKG3GHDot\n-----END RSA PRIVATE KEY-----\n -----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqhTaq3zCpRnFoQzHheYB\nfwcdjjczJ4pSKwsq1qJmydctdZM6gScZfgObg0mY7Y1UrnlQDw5RB6Py8hFmGGEh\n/wJm8mqxx473L+noX8X49jhFuv5OsnWTDLMbo497hCaZoD5/7y/zlfgYzGp2Llt8\nGKmX9Cg8W1G52dZlNq/HbEygg0W7vq2LBPJvuTAE0RH2jxKU+JCsVhfaUzEFUlcr\nJyXli9+cLl9p4msiLgbP3x9mZ46sjtYl0tSSL7hPoF0uP0QQoB7n6TmQqhY6K2dM\n/lax9x5CRcmDJLBwqZPFi1TnPJOrAy/o9LeQoLSKzEcF0YtiwjghQi4cw+2oNbH/\npwIDAQAB\n-----END PUBLIC KEY-----\n 2018-03-06 03:50:49.164137 2018-03-06 03:50:49.164137 \N \N \N \N \N \N \N \N \N \N f \N 0 f \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N
|
|
|
|
6 LockedAccount \N -----BEGIN RSA PRIVATE KEY-----\nMIIEpgIBAAKCAQEA6HayWvdAVUdIeabZBP8fpdvaBUWyFflzdHXU3lQ7ZtQpfWm0\nYTTA9/rTPUnZvc6GxRkfs5onWgwb5PBRFpWYxv4X6QP79CH4RVXJtJK9eGzVtNib\nzGrs/M8eH0TW9Lv+daOyh/QKrll7cGTR+vD8BeRORubkxU37kSphFiYNOi4/gkkD\n9Lz8R6IPMf3Mp3+tTJhTk8MRCW/GHNLTsY9qUlmeMXRrHeEdIHuIQrHCkqASZjMz\nA6pawaHw2B4RMWAsI3xj6FXUK5iaNHm9ad3+2WDcDU3bR/uQulIPddnjoNhMDXOd\n8pyHGIPeAhKPd6m22wXhw3H8YfZ+QpAYi8pOSQIDAQABAoIBAQC0EtaAjs2AAfML\ngYrVSwfqBE90DBQy34RnL6vQ+fD1692j79EyB5p/vgYKkP2iAaz2W0rqZrybDYxC\nIUK/Ou0ZINXGxDZVXEck9pqETbOF6ND3AWBWznF8OLj9wea9uC8aU89Fb28iteBg\nJUlfmXOw4LUeSVfn20vHnMuOS7WtXZGlbHt6KA29vLKOXCSSdlBkq+NJr+GwGy8Q\n6l1ZM7bOkMral2FHFd3LK2d94+F1lbKsNnA/IPgUk9EY0P8wjOMJ0ThRQu28s9G4\nX0GxXQ/+utO98yzdJ6vsKPLotsrW7DQizuo/h66USvHHrgiDmBo6vXOPASAUWWho\nvm1VKykxAoGBAP/vju1pSOySHqQU/b3QcLzHSVm7U47BVt7/eZzvydmAMFpCFX5I\n0woKBLQAXibwOaJu2avGbvmpckmWC/BjlQEDpGKWmZpgCORVYY8vjp/k0tLMgZfd\nJprjAwVFg03YObLsxDxNnLxlJar2gVbzFn82XfC4L+GIiHkP++D0bUSVAoGBAOiF\noWjsWFpAH5Zxx1lFggx6LESDmOWlo5WzXChP2l8iZEb/wNBJ3LKU14szIuJXCsQM\nOH3Yz8XwiU2bUz5pWpQNoitP349BNqzjuUXJ91by2KUOjvX5ycZ8hYfAnWgAv75A\nZy+CH+XUiS1wjV9MNdap7/GqvlrxqtSud697ceHlAoGBAO2B0G99bxErIIhAeqD1\nmEl33xgIgShPP2C+UItU80qGbVi1TuDckAwW8/pfBQC5maKloBaKlV3W45pqRjYV\nE6fXS2u6Ol1KlbXfjiOkjITRgtvgsLrPng3KcXko4wsQh6sFka4skDE85FHdZHXe\nLJhtSYwkQTrYy10dei9uZSBpAoGBAOeTHvwWVrAbqNn2mymHlkvC6Y+a2I3ud4tC\nRIhJbxzMbb5gPLG0vj6FCl4yIY32TlyOJzz+z389XiGSjkdcOb+2DErCk85ijoeF\njSG6UcGgvq80XqEPkytBHOPkq1/HTy+1iI7CM+57y9sbe1Dr37rZKIUxHcAJa6/B\nyqVUdkkZAoGBAIRLMM2TmPHH33tjYTR1WHtGR1/7D3cose5zOqGCu4zx2I0e9m+p\nMmaYl0gtr0CfFesQVtLTRuoTPXfDwaTECEuKpGrQTjUUHjC7MgEP0T6odmx2rlfQ\nmdNa6lJrZA8jscz5kcYoHjlr9KamkmtnaOSwPp+sQDWNB/kSoEMZxXyC\n-----END RSA PRIVATE KEY-----\n -----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6HayWvdAVUdIeabZBP8f\npdvaBUWyFflzdHXU3lQ7ZtQpfWm0YTTA9/rTPUnZvc6GxRkfs5onWgwb5PBRFpWY\nxv4X6QP79CH4RVXJtJK9eGzVtNibzGrs/M8eH0TW9Lv+daOyh/QKrll7cGTR+vD8\nBeRORubkxU37kSphFiYNOi4/gkkD9Lz8R6IPMf3Mp3+tTJhTk8MRCW/GHNLTsY9q\nUlmeMXRrHeEdIHuIQrHCkqASZjMzA6pawaHw2B4RMWAsI3xj6FXUK5iaNHm9ad3+\n2WDcDU3bR/uQulIPddnjoNhMDXOd8pyHGIPeAhKPd6m22wXhw3H8YfZ+QpAYi8pO\nSQIDAQAB\n-----END PUBLIC KEY-----\n 2018-03-15 04:07:23.996029 2018-03-15 04:33:45.479283 \N \N \N \N \N \N \N \N \N \N t \N 0 f \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N
|
|
|
|
-99 localhost:3000 \N -----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEArcZWuOaOs2V5bqL5jG3Odut9ipuA/XnmblIxxoFHN82jOLIc\ncWLvxYbkAFr1q/kie7DnoS3FTMB3ufv1pGOAeFFiFPGguzew0ilKxLNI9np4mnd8\nl/JPtaQ9sEdBFKN8vbic/3CwXmi7bpThmO0WrVI7/mgzlyzJizb04UtHJ5Y+bGkL\nomAS6qeP5QjRCGHjW6C1b+h/TYUFDB1AnQ+3Gsz6KTiKpt+AvfIIyy+F29RJsZNW\nbt3beYV8Hd1WMe23qdoPNmmWEWVclo0kDNxCaMWkQk+9fgVkAT69rwDj703FSfUH\nfSjlJIe8eT972qDeY5vWKSRBjp6IlSAfxaCMpQIDAQABAoIBABh2lXrOKkSjAmdK\n1iqowqoHGNNMdOo6IPBi7dLuHCKE9ndiy5JCxVJfXPWX2IHvPqV/D/ymvuHBLpmm\nGLydrVZCzrX4FhKFEoVjfr0WKC1arGPCcm3JlOMTTgPk5AqNwV/L/34OVSXVRJ2a\no++tYMXhj8SO0sRzb6QDhpG40TmHN4ed2NdEuETgWrN/qgpvXraKyHOG/VD821dP\nBoD1lj6KCzoK8Z4XnyHmG1dgGywF2KyX1iuk4Sqcva3jvo7KIu9fECIsS9uGHznb\n1RyRCPwrq9/BJRLHvRCB/qO4i+pB7BtG2+Raqhf0jibIT4IPmfSjhEiLApoKZwMh\n+7H4UgECgYEA5SbDYguwQrbtDNNEnXcemS6aNaan82VtkWKGHtwfjFSxSw3g/r2b\nZaAkHDxnnJEjEbKviVCQjtIWcx3nQGUYQzh0YoNVufxC95zGeg+7+7huvTZPuGps\n2bsWERyG4sgzZVpontzmuqZT20EFWY1+mfGWWO0w0nLdcxGrZ+2Op0ECgYEAwiKX\nYzCIM9PQuMr/7VzydOjkHrdXuFvn0+MEkui5zcKam7yNG+SR7pElEqRUE8wwrBRo\nafZtWm5U44XjNE7I3XQsB1g4Q4fmN3hU3yRpp0XTYJj8R1cOQAOzmkRAMD74dP2e\nFEuAa1mOxzXwX2QwaxBA1/en34NH2l5NSyFEkGUCgYEAnb+9qXVaddLwBXA7QBuM\n2O8YAe8kl44vi3JD2mK25Sg4lO6NAVEN9Tv1H+sFeOcBOWHFLcZkfa1q/vyLAe2W\nclAe7uJy1YIvp74pdEX4pyUkNuV4o/+/x3PfkRAOW3huyUsf0p1HyR5PhBSS1j9t\n9BQ36CgBAB9LC7gSQ41qMwECgYEAloKvEC2+S0A7ICnyhZp8N3uf8NiAX+SRNctZ\n7nQUKZxotblXRXrOUUGilnNk4/x499DSquRtH6FOmx9gaVtzi43X3NHevSyNpg/a\n7S2T5CXUnZ2+aajq2WKFSmMDyOPpSPqgJmfq5k+GzJfbBnnst/Tf8RCGzFlByeE2\n17qxJ6kCgYAFwUmN39gXMlb3y+y0aVhvAvGMntPJOrw+mFWf0ldPKpZrzr4R1Pb6\nvwI7XZfLqB7g4h7N9NHA/tO+F3/dyNH1GDarJZboZCW59yQjT7yaho+LsqcjPcD2\nnnxCIR4spwBxg2DUzAndYq0Yw7cJ+Z+EvT5ZNnlBhJJKk+iT8EyssA==\n-----END RSA PRIVATE KEY-----\n -----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArcZWuOaOs2V5bqL5jG3O\ndut9ipuA/XnmblIxxoFHN82jOLIccWLvxYbkAFr1q/kie7DnoS3FTMB3ufv1pGOA\neFFiFPGguzew0ilKxLNI9np4mnd8l/JPtaQ9sEdBFKN8vbic/3CwXmi7bpThmO0W\nrVI7/mgzlyzJizb04UtHJ5Y+bGkLomAS6qeP5QjRCGHjW6C1b+h/TYUFDB1AnQ+3\nGsz6KTiKpt+AvfIIyy+F29RJsZNWbt3beYV8Hd1WMe23qdoPNmmWEWVclo0kDNxC\naMWkQk+9fgVkAT69rwDj703FSfUHfSjlJIe8eT972qDeY5vWKSRBjp6IlSAfxaCM\npQIDAQAB\n-----END PUBLIC KEY-----\n 2020-05-02 22:27:10.296462 2020-05-02 22:27:10.296462 \N \N \N \N \N \N \N \N \N \N t \N 0 f \N \N \N Application \N \N \N \N \N \N \N \N \N \N \N \N \N
|
2019-01-20 21:44:06 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: accounts_tags; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.accounts_tags (account_id, tag_id) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: admin_action_logs; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
COPY public.admin_action_logs (id, account_id, action, target_type, target_id, created_at, updated_at, human_identifier, route_param, permalink) FROM stdin;
|
|
|
|
1 1 create CustomEmoji 1 2018-03-06 17:02:54.830036 2018-03-06 17:02:54.830036 \N \N \N
|
|
|
|
2 1 create CustomEmoji 2 2018-03-06 17:03:10.392351 2018-03-06 17:03:10.392351 \N \N \N
|
|
|
|
3 1 create CustomEmoji 3 2018-03-06 17:03:21.468887 2018-03-06 17:03:21.468887 \N \N \N
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: announcement_mutes; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.announcement_mutes (id, account_id, announcement_id, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: announcement_reactions; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.announcement_reactions (id, account_id, announcement_id, name, custom_emoji_id, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: announcements; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.announcements (id, text, published, all_day, scheduled_at, starts_at, ends_at, created_at, updated_at, published_at, status_ids) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: appeals; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.appeals (id, account_id, account_warning_id, text, approved_at, approved_by_account_id, rejected_at, rejected_by_account_id, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: ar_internal_metadata; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.ar_internal_metadata (key, value, created_at, updated_at) FROM stdin;
|
|
|
|
environment development 2018-03-06 03:50:47.67559 2018-03-06 03:50:47.67559
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: backups; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
COPY public.backups (id, user_id, dump_file_name, dump_content_type, dump_updated_at, processed, created_at, updated_at, dump_file_size) FROM stdin;
|
2018-08-19 21:46:48 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: blocks; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
COPY public.blocks (id, created_at, updated_at, account_id, target_account_id, uri) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: bookmarks; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.bookmarks (id, account_id, status_id, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: canonical_email_blocks; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.canonical_email_blocks (id, canonical_email_hash, reference_account_id, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: conversation_mutes; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.conversation_mutes (id, conversation_id, account_id) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: conversations; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.conversations (id, uri, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: custom_emoji_categories; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.custom_emoji_categories (id, name, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: custom_emojis; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.custom_emojis (id, shortcode, domain, image_file_name, image_content_type, image_file_size, image_updated_at, created_at, updated_at, disabled, uri, image_remote_url, visible_in_picker, category_id, image_storage_schema_version) FROM stdin;
|
|
|
|
1 blobpats \N blobpats.png image/png 11087 2018-03-06 17:02:54.574428 2018-03-06 17:02:54.753665 2018-03-06 17:02:54.753665 f \N \N t \N \N
|
|
|
|
2 blobpeek \N blobpeek.png image/png 9135 2018-03-06 17:03:10.272121 2018-03-06 17:03:10.360884 2018-03-06 17:03:10.360884 f \N \N t \N \N
|
|
|
|
3 blobnom \N blobnom.png image/png 13053 2018-03-06 17:03:21.327244 2018-03-06 17:03:21.438791 2018-03-06 17:03:21.438791 f \N \N t \N \N
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: custom_filter_keywords; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.custom_filter_keywords (id, custom_filter_id, keyword, whole_word, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: custom_filter_statuses; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.custom_filter_statuses (id, custom_filter_id, status_id, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: custom_filters; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
COPY public.custom_filters (id, account_id, expires_at, phrase, context, created_at, updated_at, action) FROM stdin;
|
2018-08-19 21:46:48 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: devices; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.devices (id, access_token_id, account_id, device_id, name, fingerprint_key, identity_key, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: domain_allows; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.domain_allows (id, domain, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: domain_blocks; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.domain_blocks (id, domain, created_at, updated_at, severity, reject_media, reject_reports, private_comment, public_comment, obfuscate) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: email_domain_blocks; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
COPY public.email_domain_blocks (id, domain, created_at, updated_at, parent_id) FROM stdin;
|
2022-05-01 00:14:31 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: encrypted_messages; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.encrypted_messages (id, device_id, from_account_id, from_device_id, type, body, digest, message_franking, created_at, updated_at) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: favourites; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.favourites (id, created_at, updated_at, account_id, status_id) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: featured_tags; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
COPY public.featured_tags (id, account_id, tag_id, statuses_count, last_status_at, created_at, updated_at, name) FROM stdin;
|
2019-05-05 22:02:14 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: follow_recommendation_suppressions; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.follow_recommendation_suppressions (id, account_id, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: follow_requests; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
COPY public.follow_requests (id, created_at, updated_at, account_id, target_account_id, show_reblogs, uri, notify, languages) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: follows; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
COPY public.follows (id, created_at, updated_at, account_id, target_account_id, show_reblogs, uri, notify, languages) FROM stdin;
|
|
|
|
1 2018-03-06 03:52:28.049515 2018-03-06 03:52:28.049515 2 1 t \N f \N
|
|
|
|
2 2018-03-06 03:52:56.891683 2018-03-06 03:52:56.891683 3 1 t \N f \N
|
|
|
|
3 2018-03-06 03:53:56.148659 2018-03-06 03:53:56.148659 4 1 t \N f \N
|
|
|
|
4 2018-03-08 17:13:30.3398 2018-03-08 17:13:30.3398 5 1 t \N f \N
|
|
|
|
5 2018-03-15 04:07:36.361956 2018-03-15 04:07:36.361956 6 1 t \N f \N
|
2018-08-19 21:46:48 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
COPY public.identities (provider, uid, created_at, updated_at, id, user_id) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: imports; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
COPY public.imports (id, type, approved, created_at, updated_at, data_file_name, data_content_type, data_file_size, data_updated_at, account_id, overwrite) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: invites; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
COPY public.invites (id, user_id, code, expires_at, max_uses, uses, created_at, updated_at, autofollow, comment) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: ip_blocks; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.ip_blocks (id, ip, severity, expires_at, comment, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: list_accounts; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.list_accounts (id, list_id, account_id, follow_id) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: lists; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.lists (id, account_id, title, created_at, updated_at, replies_policy) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: login_activities; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.login_activities (id, user_id, authentication_method, provider, success, failure_reason, ip, user_agent, created_at) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: markers; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.markers (id, user_id, timeline, last_read_id, lock_version, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: media_attachments; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.media_attachments (id, status_id, file_file_name, file_content_type, file_file_size, file_updated_at, remote_url, created_at, updated_at, shortcode, type, file_meta, account_id, description, scheduled_status_id, blurhash, processing, file_storage_schema_version, thumbnail_file_name, thumbnail_content_type, thumbnail_file_size, thumbnail_updated_at, thumbnail_remote_url) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: mentions; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
COPY public.mentions (id, status_id, created_at, updated_at, account_id, silent) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: mutes; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.mutes (id, created_at, updated_at, account_id, target_account_id, hide_notifications, expires_at) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: notifications; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.notifications (id, activity_id, activity_type, created_at, updated_at, account_id, from_account_id, type) FROM stdin;
|
|
|
|
1 1 Follow 2018-03-06 03:52:28.202361 2018-03-06 03:52:28.202361 1 2 follow
|
|
|
|
2 2 Follow 2018-03-06 03:52:57.117077 2018-03-06 03:52:57.117077 1 3 follow
|
|
|
|
3 3 Follow 2018-03-06 03:53:56.212939 2018-03-06 03:53:56.212939 1 4 follow
|
|
|
|
4 4 Follow 2018-03-08 17:13:30.636622 2018-03-08 17:13:30.636622 1 5 follow
|
|
|
|
5 5 Follow 2018-03-15 04:07:36.656928 2018-03-15 04:07:36.656928 1 6 follow
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: oauth_access_grants; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.oauth_access_grants (id, token, expires_in, redirect_uri, created_at, revoked_at, scopes, application_id, resource_owner_id) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: oauth_access_tokens; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.oauth_access_tokens (id, token, refresh_token, expires_in, revoked_at, created_at, scopes, application_id, resource_owner_id, last_used_at, last_used_ip) FROM stdin;
|
|
|
|
1 e9a463ba1729ae0049a97a312af702cb3d08d84de1cc8d6da3fad90af068117b \N \N \N 2018-03-06 03:54:07.530641 read write follow 1 4 \N \N
|
|
|
|
2 f954c8de1fcc0080ff706fa2516d05b60de0d8f5b536255a85ef85a6c32e4afb \N \N \N 2018-03-06 04:56:52.127914 read write follow 1 1 \N \N
|
|
|
|
3 b48d72074a467e77a18eafc0d52e373dcf2492bcb3fefadc302a81300ec69002 \N \N \N 2018-03-06 04:57:40.866461 read write follow 1 2 \N \N
|
|
|
|
4 894d3583dbf7d0f4f4784a06db86bdadb6ef0d99453d15afbc03e0c103bd78af \N \N \N 2018-03-06 04:58:05.724937 read write follow 1 3 \N \N
|
|
|
|
6 0639238783efdfde849304bc89ec0c4b60b5ef5f261f60859fcd597de081cfdc \N \N \N 2018-03-08 17:13:40.045338 read write follow 1 5 \N \N
|
|
|
|
7 39ed9aeffa4b25eda4940f22f29fea66e625c6282c2a8bf0430203c9779e9e98 \N \N \N 2018-03-15 04:07:55.095858 read write follow 1 6 \N \N
|
|
|
|
8 a2f0bc5a65d7d0e971bdd63c83f01948150f17739425890d154e20b528480ab8 \N \N \N 2018-03-15 04:33:24.989472 read write follow 1 6 \N \N
|
|
|
|
9 8ef64835d2d68769072d52b4771d86fc44fc0caeaca3040cb904a8f1f6904f92 \N \N \N 2018-03-15 04:58:42.550623 read write follow 1 6 \N \N
|
|
|
|
10 EVPzy_98EY8tPn2pYxY-3m0xy5EnZtq899sRGr6R9Kg \N \N \N 2020-05-02 23:40:17.720209 read write follow 1 1 \N \N
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: oauth_applications; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
COPY public.oauth_applications (id, name, uid, secret, redirect_uri, scopes, created_at, updated_at, superapp, website, owner_type, owner_id, confidential) FROM stdin;
|
2022-05-01 00:14:31 +00:00
|
|
|
1 Web 376d13061ec170c84519ae921ff81056188764ceb6d5a68e0368ad028ae0d03d wITmCqj1fUAT2I4CKThRoQqipEzXb-Hsm4jh6cEyAkc urn:ietf:wg:oauth:2.0:oob read write follow 2018-03-06 03:50:48.998748 2022-04-30 21:46:42.774233 t \N \N \N t
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: one_time_keys; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.one_time_keys (id, device_id, key_id, key, signature, created_at, updated_at) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: pghero_space_stats; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.pghero_space_stats (id, database, schema, relation, size, captured_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: poll_votes; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.poll_votes (id, account_id, poll_id, choice, created_at, updated_at, uri) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: polls; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
COPY public.polls (id, account_id, status_id, expires_at, options, cached_tallies, multiple, hide_totals, votes_count, last_fetched_at, created_at, updated_at, lock_version, voters_count) FROM stdin;
|
2019-05-05 22:02:14 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: preview_card_providers; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.preview_card_providers (id, domain, icon_file_name, icon_content_type, icon_file_size, icon_updated_at, trendable, reviewed_at, requested_review_at, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: preview_card_trends; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.preview_card_trends (id, preview_card_id, score, rank, allowed, language) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: preview_cards; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.preview_cards (id, url, title, description, image_file_name, image_content_type, image_file_size, image_updated_at, type, html, author_name, author_url, provider_name, provider_url, width, height, created_at, updated_at, embed_url, image_storage_schema_version, blurhash, language, max_score, max_score_at, trendable, link_type) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: preview_cards_statuses; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.preview_cards_statuses (preview_card_id, status_id) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: relays; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.relays (id, inbox_url, follow_activity_id, created_at, updated_at, state) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: report_notes; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.report_notes (id, content, report_id, account_id, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: reports; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.reports (id, status_ids, comment, created_at, updated_at, account_id, action_taken_by_account_id, target_account_id, assigned_account_id, uri, forwarded, category, action_taken_at, rule_ids) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: rules; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.rules (id, priority, deleted_at, text, created_at, updated_at) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: scheduled_statuses; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.scheduled_statuses (id, account_id, scheduled_at, params) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: schema_migrations; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.schema_migrations (version) FROM stdin;
|
|
|
|
20180106000232
|
|
|
|
20160220174730
|
|
|
|
20160220211917
|
|
|
|
20160221003140
|
|
|
|
20160221003621
|
|
|
|
20160222122600
|
|
|
|
20160222143943
|
|
|
|
20160223162837
|
|
|
|
20160223164502
|
|
|
|
20160223165723
|
|
|
|
20160223165855
|
|
|
|
20160223171800
|
|
|
|
20160224223247
|
|
|
|
20160227230233
|
|
|
|
20160305115639
|
|
|
|
20160306172223
|
|
|
|
20160312193225
|
|
|
|
20160314164231
|
|
|
|
20160316103650
|
|
|
|
20160322193748
|
|
|
|
20160325130944
|
|
|
|
20160826155805
|
|
|
|
20160905150353
|
|
|
|
20160919221059
|
|
|
|
20160920003904
|
|
|
|
20160926213048
|
|
|
|
20161003142332
|
|
|
|
20161003145426
|
|
|
|
20161006213403
|
|
|
|
20161009120834
|
|
|
|
20161027172456
|
|
|
|
20161104173623
|
|
|
|
20161105130633
|
|
|
|
20161116162355
|
|
|
|
20161119211120
|
|
|
|
20161122163057
|
|
|
|
20161123093447
|
|
|
|
20161128103007
|
|
|
|
20161130142058
|
|
|
|
20161130185319
|
|
|
|
20161202132159
|
|
|
|
20161203164520
|
|
|
|
20161205214545
|
|
|
|
20161221152630
|
|
|
|
20161222201034
|
|
|
|
20161222204147
|
|
|
|
20170105224407
|
|
|
|
20170109120109
|
|
|
|
20170112154826
|
|
|
|
20170114194937
|
|
|
|
20170114203041
|
|
|
|
20170119214911
|
|
|
|
20170123162658
|
|
|
|
20170123203248
|
|
|
|
20170125145934
|
|
|
|
20170127165745
|
|
|
|
20170129000348
|
|
|
|
20170205175257
|
|
|
|
20170209184350
|
|
|
|
20170214110202
|
|
|
|
20170217012631
|
|
|
|
20170301222600
|
|
|
|
20170303212857
|
|
|
|
20170304202101
|
|
|
|
20170317193015
|
|
|
|
20170318214217
|
|
|
|
20170322021028
|
|
|
|
20170322143850
|
|
|
|
20170322162804
|
|
|
|
20170330021336
|
|
|
|
20170330163835
|
|
|
|
20170330164118
|
|
|
|
20170403172249
|
|
|
|
20170405112956
|
|
|
|
20170406215816
|
|
|
|
20170409170753
|
|
|
|
20170414080609
|
|
|
|
20170414132105
|
|
|
|
20170418160728
|
|
|
|
20170423005413
|
|
|
|
20170424003227
|
|
|
|
20170424112722
|
|
|
|
20170425131920
|
|
|
|
20170425202925
|
|
|
|
20170427011934
|
|
|
|
20170506235850
|
|
|
|
20170507000211
|
|
|
|
20170507141759
|
|
|
|
20170508230434
|
|
|
|
20170516072309
|
|
|
|
20170520145338
|
|
|
|
20170601210557
|
|
|
|
20170604144747
|
|
|
|
20170606113804
|
|
|
|
20170609145826
|
|
|
|
20170610000000
|
|
|
|
20170623152212
|
|
|
|
20170624134742
|
|
|
|
20170625140443
|
|
|
|
20170711225116
|
|
|
|
20170713112503
|
|
|
|
20170713175513
|
|
|
|
20170713190709
|
|
|
|
20170714184731
|
|
|
|
20170716191202
|
|
|
|
20170718211102
|
|
|
|
20170720000000
|
|
|
|
20170823162448
|
|
|
|
20170824103029
|
|
|
|
20170829215220
|
|
|
|
20170901141119
|
|
|
|
20170901142658
|
|
|
|
20170905044538
|
|
|
|
20170905165803
|
|
|
|
20170913000752
|
|
|
|
20170917153509
|
|
|
|
20170918125918
|
|
|
|
20170920024819
|
|
|
|
20170920032311
|
|
|
|
20170924022025
|
|
|
|
20170927215609
|
|
|
|
20170928082043
|
|
|
|
20171005102658
|
|
|
|
20171005171936
|
|
|
|
20171006142024
|
|
|
|
20171010023049
|
|
|
|
20171010025614
|
|
|
|
20171020084748
|
|
|
|
20171028221157
|
|
|
|
20171107143332
|
|
|
|
20171107143624
|
|
|
|
20171109012327
|
|
|
|
20171114080328
|
|
|
|
20171114231651
|
|
|
|
20171116161857
|
|
|
|
20171118012443
|
|
|
|
20171119172437
|
|
|
|
20171122120436
|
|
|
|
20171125024930
|
|
|
|
20171125031751
|
|
|
|
20171125185353
|
|
|
|
20171125190735
|
|
|
|
20171129172043
|
|
|
|
20171130000000
|
|
|
|
20171201000000
|
|
|
|
20171212195226
|
|
|
|
20171226094803
|
2018-08-19 21:46:48 +00:00
|
|
|
20180109143959
|
|
|
|
20180204034416
|
|
|
|
20180206000000
|
|
|
|
20180211015820
|
|
|
|
20180304013859
|
|
|
|
20180310000000
|
|
|
|
20180402031200
|
|
|
|
20180402040909
|
|
|
|
20180410204633
|
|
|
|
20180416210259
|
|
|
|
20180506221944
|
|
|
|
20180510214435
|
|
|
|
20180510230049
|
|
|
|
20180514130000
|
|
|
|
20180514140000
|
|
|
|
20180528141303
|
|
|
|
20180608213548
|
|
|
|
20180609104432
|
|
|
|
20180615122121
|
|
|
|
20180616192031
|
|
|
|
20180617162849
|
|
|
|
20180628181026
|
|
|
|
20180707154237
|
2018-09-23 05:19:02 +00:00
|
|
|
20180711152640
|
|
|
|
20180808175627
|
|
|
|
20180812123222
|
|
|
|
20180812162710
|
|
|
|
20180812173710
|
|
|
|
20180813113448
|
|
|
|
20180814171349
|
|
|
|
20180820232245
|
2018-11-12 20:59:47 +00:00
|
|
|
20180929222014
|
|
|
|
20181007025445
|
|
|
|
20181010141500
|
|
|
|
20181017170937
|
|
|
|
20181018205649
|
|
|
|
20181024224956
|
|
|
|
20181026034033
|
2019-01-20 21:44:06 +00:00
|
|
|
20181116165755
|
|
|
|
20181116173541
|
|
|
|
20181116184611
|
|
|
|
20181127130500
|
|
|
|
20181203003808
|
|
|
|
20181203021853
|
|
|
|
20181204193439
|
|
|
|
20181204215309
|
|
|
|
20181207011115
|
|
|
|
20181213184704
|
|
|
|
20181213185533
|
|
|
|
20181219235220
|
|
|
|
20181226021420
|
|
|
|
20190103124649
|
|
|
|
20190103124754
|
|
|
|
20190117114553
|
2019-05-05 22:02:14 +00:00
|
|
|
20190201012802
|
|
|
|
20190203180359
|
|
|
|
20190225031541
|
|
|
|
20190225031625
|
|
|
|
20190226003449
|
|
|
|
20190304152020
|
|
|
|
20190306145741
|
|
|
|
20190307234537
|
|
|
|
20190314181829
|
|
|
|
20190316190352
|
|
|
|
20190317135723
|
|
|
|
20190409054914
|
|
|
|
20190420025523
|
2019-06-22 20:21:06 +00:00
|
|
|
20190509164208
|
|
|
|
20190511134027
|
|
|
|
20190511152737
|
|
|
|
20190519130537
|
|
|
|
20190529143559
|
2020-05-03 01:02:29 +00:00
|
|
|
20180831171112
|
|
|
|
20190403141604
|
|
|
|
20190627222225
|
|
|
|
20190627222826
|
|
|
|
20190701022101
|
|
|
|
20190705002136
|
|
|
|
20190706233204
|
|
|
|
20190715031050
|
|
|
|
20190715164535
|
|
|
|
20190726175042
|
|
|
|
20190729185330
|
|
|
|
20190805123746
|
|
|
|
20190807135426
|
|
|
|
20190815225426
|
|
|
|
20190819134503
|
|
|
|
20190820003045
|
|
|
|
20190823221802
|
|
|
|
20190901035623
|
|
|
|
20190901040524
|
|
|
|
20190904222339
|
|
|
|
20190914202517
|
|
|
|
20190915194355
|
|
|
|
20190917213523
|
|
|
|
20190927124642
|
|
|
|
20190927232842
|
|
|
|
20191001213028
|
|
|
|
20191007013357
|
|
|
|
20191031163205
|
|
|
|
20191212003415
|
|
|
|
20191212163405
|
|
|
|
20191218153258
|
|
|
|
20200113125135
|
|
|
|
20200114113335
|
|
|
|
20200119112504
|
|
|
|
20200126203551
|
|
|
|
20200306035625
|
|
|
|
20200312144258
|
|
|
|
20200312162302
|
|
|
|
20200312185443
|
2022-05-01 00:14:31 +00:00
|
|
|
20181127165847
|
|
|
|
20200309150742
|
|
|
|
20200317021758
|
|
|
|
20200407201300
|
|
|
|
20200407202420
|
|
|
|
20200417125749
|
|
|
|
20200508212852
|
|
|
|
20200510110808
|
|
|
|
20200510181721
|
|
|
|
20200516180352
|
|
|
|
20200516183822
|
|
|
|
20200518083523
|
|
|
|
20200521180606
|
|
|
|
20200529214050
|
|
|
|
20200601222558
|
|
|
|
20200605155027
|
|
|
|
20200608113046
|
|
|
|
20200614002136
|
|
|
|
20200620164023
|
|
|
|
20200622213645
|
|
|
|
20200627125810
|
|
|
|
20200628133322
|
|
|
|
20200630190240
|
|
|
|
20200630190544
|
|
|
|
20200908193330
|
|
|
|
20200917192924
|
|
|
|
20200917193034
|
|
|
|
20200917193528
|
|
|
|
20200917222316
|
|
|
|
20200917222734
|
|
|
|
20201008202037
|
|
|
|
20201008220312
|
|
|
|
20201017233919
|
|
|
|
20201017234926
|
|
|
|
20201206004238
|
|
|
|
20201218054746
|
|
|
|
20210221045109
|
|
|
|
20210306164523
|
|
|
|
20210308133107
|
|
|
|
20210322164601
|
|
|
|
20210323114347
|
|
|
|
20210324171613
|
|
|
|
20210416200740
|
|
|
|
20210421121431
|
|
|
|
20210425135952
|
|
|
|
20210502233513
|
|
|
|
20210505174616
|
|
|
|
20210507001928
|
|
|
|
20210526193025
|
|
|
|
20210609202149
|
|
|
|
20210616214135
|
|
|
|
20210616214526
|
|
|
|
20210621221010
|
|
|
|
20210630000137
|
|
|
|
20210722120340
|
|
|
|
20210808071221
|
|
|
|
20210904215403
|
|
|
|
20210908220918
|
|
|
|
20211031031021
|
|
|
|
20211112011713
|
|
|
|
20211115032527
|
|
|
|
20211123212714
|
|
|
|
20211126000907
|
|
|
|
20211213040746
|
|
|
|
20211231080958
|
|
|
|
20220105163928
|
|
|
|
20220109213908
|
|
|
|
20220115125126
|
|
|
|
20220115125341
|
|
|
|
20220116202951
|
|
|
|
20220118183010
|
|
|
|
20220118183123
|
|
|
|
20220124141035
|
|
|
|
20220202200743
|
|
|
|
20220202200926
|
|
|
|
20220202201015
|
|
|
|
20220210153119
|
|
|
|
20220224010024
|
|
|
|
20220227041951
|
|
|
|
20220302232632
|
|
|
|
20220303000827
|
|
|
|
20220303203437
|
|
|
|
20220304195405
|
|
|
|
20220307083603
|
|
|
|
20220307094650
|
|
|
|
20220309213005
|
|
|
|
20220310060545
|
|
|
|
20220310060556
|
|
|
|
20220310060614
|
|
|
|
20220310060626
|
|
|
|
20220310060641
|
|
|
|
20220310060653
|
|
|
|
20220310060706
|
|
|
|
20220310060722
|
|
|
|
20220310060740
|
|
|
|
20220310060750
|
|
|
|
20220310060809
|
|
|
|
20220310060833
|
|
|
|
20220310060854
|
|
|
|
20220310060913
|
|
|
|
20220310060926
|
|
|
|
20220310060939
|
|
|
|
20220310060959
|
|
|
|
20220316233212
|
2022-12-02 23:09:58 +00:00
|
|
|
20220428112511
|
|
|
|
20220428112727
|
|
|
|
20220428114454
|
|
|
|
20220428114902
|
|
|
|
20220429101025
|
|
|
|
20220429101850
|
|
|
|
20220527114923
|
|
|
|
20220606044941
|
|
|
|
20220611210335
|
|
|
|
20220611212541
|
|
|
|
20220613110628
|
|
|
|
20220613110711
|
|
|
|
20220613110802
|
|
|
|
20220613110834
|
|
|
|
20220613110903
|
|
|
|
20220617202502
|
|
|
|
20220704024901
|
|
|
|
20220710102457
|
|
|
|
20220714171049
|
|
|
|
20220729171123
|
|
|
|
20220808101323
|
|
|
|
20220824164433
|
|
|
|
20220824164532
|
|
|
|
20220824233535
|
|
|
|
20220827195229
|
|
|
|
20220829192633
|
|
|
|
20220829192658
|
|
|
|
20221006061337
|
|
|
|
20221012181003
|
|
|
|
20221021055441
|
|
|
|
20221025171544
|
|
|
|
20221101190723
|
|
|
|
20221104133904
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: session_activations; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.session_activations (id, session_id, created_at, updated_at, user_agent, ip, access_token_id, user_id, web_push_subscription_id) FROM stdin;
|
|
|
|
1 794901e52b435405ca39610b9391dedf 2018-03-06 03:54:07.43064 2018-03-06 03:54:07.43064 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:58.0) Gecko/20100101 Firefox/58.0 127.0.0.1 1 4 \N
|
|
|
|
2 e94d79d0df271b2d7ca4c2ab055636ae 2018-03-06 04:56:52.094695 2018-03-06 04:56:52.094695 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 127.0.0.1 2 1 \N
|
|
|
|
3 d76fc8e8d8169c3ec5ad67c141454f0d 2018-03-06 04:57:40.864568 2018-03-06 04:57:40.864568 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 127.0.0.1 3 2 \N
|
|
|
|
4 7d2c8471dbb94211447e3a2e8130dc99 2018-03-06 04:58:05.707284 2018-03-06 04:58:05.707284 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 127.0.0.1 4 3 \N
|
|
|
|
6 1c1e3a649ec1e2366d389f1dc079c671 2018-03-08 17:13:40.0169 2018-03-08 17:13:40.0169 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 127.0.0.1 6 5 \N
|
|
|
|
7 f844efc7d2dbc81c1fe2151ac3d61bbe 2018-03-15 04:07:55.038088 2018-03-15 04:07:55.038088 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:59.0) Gecko/20100101 Firefox/59.0 127.0.0.1 7 6 \N
|
|
|
|
8 635fcbad4a6fe81524ff3ac9a9b11e8a 2018-03-15 04:33:24.95958 2018-03-15 04:33:24.95958 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36 127.0.0.1 8 6 \N
|
|
|
|
9 a8ef396160f8e1babdcc75ab903926a9 2018-03-15 04:58:42.504138 2018-03-15 04:58:42.504138 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:59.0) Gecko/20100101 Firefox/59.0 127.0.0.1 9 6 \N
|
2020-05-03 01:02:29 +00:00
|
|
|
10 2b383eb83df38b7cc5633616b1fe107a 2020-05-02 23:40:17.696656 2020-05-02 23:40:17.696656 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36 127.0.0.1 10 1 \N
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: settings; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.settings (id, var, value, thing_type, created_at, updated_at, thing_id) FROM stdin;
|
|
|
|
1 notification_emails ---\nfollow: false\nreblog: false\nfavourite: false\nmention: false\nfollow_request: false\ndigest: true\n User 2018-03-15 04:59:04.574423 2018-03-15 04:59:04.574423 6
|
|
|
|
2 interactions ---\nmust_be_follower: false\nmust_be_following: false\nmust_be_following_dm: false\n User 2018-03-15 04:59:04.605717 2018-03-15 04:59:04.605717 6
|
2020-05-03 01:02:29 +00:00
|
|
|
3 site_contact_username --- admin\n \N 2020-05-02 23:40:58.285333 2020-05-02 23:40:58.285333 \N
|
|
|
|
4 site_contact_email --- admin@localhost:3000\n \N 2020-05-02 23:40:58.290809 2020-05-02 23:40:58.290809 \N
|
|
|
|
5 site_title --- Mastodon\n \N 2020-05-02 23:40:58.294363 2020-05-02 23:40:58.294363 \N
|
|
|
|
6 site_short_description --- ''\n \N 2020-05-02 23:40:58.298423 2020-05-02 23:40:58.298423 \N
|
|
|
|
7 site_description --- ''\n \N 2020-05-02 23:40:58.302097 2020-05-02 23:40:58.302097 \N
|
|
|
|
8 site_extended_description --- ''\n \N 2020-05-02 23:40:58.305712 2020-05-02 23:40:58.305712 \N
|
|
|
|
9 site_terms --- ''\n \N 2020-05-02 23:40:58.309636 2020-05-02 23:40:58.309636 \N
|
|
|
|
10 registrations_mode --- open\n \N 2020-05-02 23:40:58.314461 2020-05-02 23:40:58.314461 \N
|
|
|
|
11 closed_registrations_message --- ''\n \N 2020-05-02 23:40:58.319845 2020-05-02 23:40:58.319845 \N
|
|
|
|
12 open_deletion --- true\n \N 2020-05-02 23:40:58.324914 2020-05-02 23:40:58.324914 \N
|
|
|
|
13 timeline_preview --- true\n \N 2020-05-02 23:40:58.330247 2020-05-02 23:40:58.330247 \N
|
|
|
|
14 show_staff_badge --- true\n \N 2020-05-02 23:40:58.334863 2020-05-02 23:40:58.334863 \N
|
|
|
|
15 enable_bootstrap_timeline_accounts --- true\n \N 2020-05-02 23:40:58.339447 2020-05-02 23:40:58.339447 \N
|
|
|
|
16 bootstrap_timeline_accounts --- ''\n \N 2020-05-02 23:40:58.344719 2020-05-02 23:40:58.344719 \N
|
|
|
|
17 theme --- default\n \N 2020-05-02 23:40:58.349827 2020-05-02 23:40:58.349827 \N
|
|
|
|
18 min_invite_role --- admin\n \N 2020-05-02 23:40:58.355039 2020-05-02 23:40:58.355039 \N
|
|
|
|
19 activity_api_enabled --- true\n \N 2020-05-02 23:40:58.359181 2020-05-02 23:40:58.359181 \N
|
|
|
|
20 peers_api_enabled --- true\n \N 2020-05-02 23:40:58.36713 2020-05-02 23:40:58.36713 \N
|
|
|
|
21 show_known_fediverse_at_about_page --- true\n \N 2020-05-02 23:40:58.37091 2020-05-02 23:40:58.37091 \N
|
|
|
|
22 preview_sensitive_media --- false\n \N 2020-05-02 23:40:58.374487 2020-05-02 23:40:58.374487 \N
|
|
|
|
23 custom_css --- ''\n \N 2020-05-02 23:40:58.380219 2020-05-02 23:40:58.380219 \N
|
|
|
|
24 profile_directory --- true\n \N 2020-05-02 23:40:58.385295 2020-05-02 23:40:58.385295 \N
|
|
|
|
25 thumbnail --- \n \N 2020-05-02 23:40:58.390115 2020-05-02 23:40:58.390115 \N
|
|
|
|
26 hero --- \n \N 2020-05-02 23:40:58.395057 2020-05-02 23:40:58.395057 \N
|
|
|
|
27 mascot --- \n \N 2020-05-02 23:40:58.399751 2020-05-02 23:40:58.399751 \N
|
|
|
|
28 spam_check_enabled --- true\n \N 2020-05-02 23:40:58.404804 2020-05-02 23:40:58.404804 \N
|
|
|
|
29 trends --- true\n \N 2020-05-02 23:40:58.408754 2020-05-02 23:40:58.408754 \N
|
|
|
|
30 trendable_by_default --- true\n \N 2020-05-02 23:40:58.413214 2020-05-02 23:40:58.413214 \N
|
|
|
|
31 show_domain_blocks --- disabled\n \N 2020-05-02 23:40:58.417108 2020-05-02 23:40:58.417108 \N
|
|
|
|
32 show_domain_blocks_rationale --- disabled\n \N 2020-05-02 23:40:58.420345 2020-05-02 23:40:58.420345 \N
|
|
|
|
33 noindex --- false\n \N 2020-05-02 23:40:58.423584 2020-05-02 23:40:58.423584 \N
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: site_uploads; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
COPY public.site_uploads (id, var, file_file_name, file_content_type, file_file_size, file_updated_at, meta, created_at, updated_at, blurhash) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: status_edits; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.status_edits (id, status_id, account_id, text, spoiler_text, created_at, updated_at, ordered_media_attachment_ids, media_descriptions, poll_options, sensitive) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: status_pins; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.status_pins (id, account_id, status_id, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: status_stats; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.status_stats (id, status_id, replies_count, reblogs_count, favourites_count, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: status_trends; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.status_trends (id, status_id, account_id, score, rank, allowed, language) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: statuses; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
COPY public.statuses (id, uri, text, created_at, updated_at, in_reply_to_id, reblog_of_id, url, sensitive, visibility, spoiler_text, reply, language, conversation_id, local, account_id, application_id, in_reply_to_account_id, poll_id, deleted_at, edited_at, trendable, ordered_media_attachment_ids) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: statuses_tags; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.statuses_tags (status_id, tag_id) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: system_keys; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.system_keys (id, key, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: tag_follows; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.tag_follows (id, tag_id, account_id, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: tags; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
COPY public.tags (id, name, created_at, updated_at, usable, trendable, listable, reviewed_at, requested_review_at, last_status_at, max_score, max_score_at, display_name) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: tombstones; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2019-06-22 20:21:06 +00:00
|
|
|
COPY public.tombstones (id, account_id, uri, created_at, updated_at, by_moderator) FROM stdin;
|
2019-01-20 21:44:06 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: unavailable_domains; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.unavailable_domains (id, domain, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: user_invite_requests; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.user_invite_requests (id, user_id, text, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: user_roles; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.user_roles (id, name, color, "position", permissions, highlighted, created_at, updated_at) FROM stdin;
|
|
|
|
1 Moderator 10 1308 t 2022-12-02 22:41:30.415178 2022-12-02 22:41:30.415178
|
|
|
|
3 Owner 1000 1 t 2022-12-02 22:41:30.423141 2022-12-02 22:41:30.423141
|
|
|
|
-99 -1 0 f 2022-12-02 22:41:30.409345 2022-12-02 22:41:30.465746
|
|
|
|
2 Admin 100 1048572 t 2022-12-02 22:41:30.419106 2022-12-02 22:41:30.468146
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
COPY public.users (id, email, created_at, updated_at, encrypted_password, reset_password_token, reset_password_sent_at, sign_in_count, current_sign_in_at, last_sign_in_at, admin, confirmation_token, confirmed_at, confirmation_sent_at, unconfirmed_email, locale, encrypted_otp_secret, encrypted_otp_secret_iv, encrypted_otp_secret_salt, consumed_timestep, otp_required_for_login, last_emailed_at, otp_backup_codes, account_id, disabled, moderator, invite_id, chosen_languages, created_by_application_id, approved, sign_in_token, sign_in_token_sent_at, webauthn_id, sign_up_ip, skip_sign_in_token, role_id) FROM stdin;
|
|
|
|
2 foobar@localhost:3000 2018-03-06 03:52:21.15566 2018-03-06 04:57:40.899388 $2a$10$uOJGEfYP4JcR6cdKASsuAe3EYc44ClEjY3IsL9cwupgAsKXNvsMB6 \N \N 1 2018-03-06 04:57:40.87839 2018-03-06 04:57:40.87839 f 9tZRP_PZyyQ6hQmx88hX 2018-03-06 03:52:26.359 2018-03-06 03:52:21.156096 \N en \N \N \N \N f \N \N 2 f f \N \N \N t \N \N \N \N \N \N
|
|
|
|
3 quux@localhost:3000 2018-03-06 03:52:52.825436 2018-03-06 04:58:05.758893 $2a$10$nSVOaz2ACr7hizj57HbbCOnBgaj20teuuSBHYFQdKboPAE8o8AWtu \N \N 1 2018-03-06 04:58:05.7443 2018-03-06 04:58:05.7443 f LZkd9hZPQby-DJR7q2xK 2018-03-06 03:52:56.722007 2018-03-06 03:52:52.825895 \N en \N \N \N \N f \N \N 3 f f \N \N \N t \N \N \N \N \N \N
|
|
|
|
4 externallinks@localhost:3000 2018-03-06 03:53:52.59743 2018-03-06 03:54:07.597338 $2a$10$j6UVhj3pm2ZivOrm9sGbcuPtw49kqvpggbyt.IcCX/sm9Mqr2W2lW \N \N 1 2018-03-06 03:54:07.569021 2018-03-06 03:54:07.569021 f 1wHx7PBsMfgkwz36yVSq 2018-03-06 03:53:56.002257 2018-03-06 03:53:52.597832 \N en \N \N \N \N f \N \N 4 f f \N \N \N t \N \N \N \N \N \N
|
|
|
|
5 baz@localhost:3000 2018-03-08 17:13:19.88529 2018-03-08 17:13:40.093697 $2a$10$eqGdrqmSUEfA4q.7qxjp1eFdMxSUGlNJMpnOG.zxE6ogyDUj9t8GO \N \N 1 2018-03-08 17:13:40.06976 2018-03-08 17:13:40.06976 f K5TLBFADUUD-51oaCMfL 2018-03-08 17:13:29.253941 2018-03-08 17:13:19.885632 \N en \N \N \N \N f \N \N 5 f f \N \N \N t \N \N \N \N \N \N
|
|
|
|
6 lockedaccount@localhost:3000 2018-03-15 04:07:24.10397 2018-03-15 04:58:42.615377 $2a$10$PGDn6VtjTR0BSbK4MY/aR.T0qJZ/wtziTXH0ySJr7x3.3XsZ/1qwm \N \N 3 2018-03-15 04:58:42.60349 2018-03-15 04:33:25.042573 f spRH4F8MUisS5i_uzTiS 2018-03-15 04:07:34.297881 2018-03-15 04:07:24.105731 \N en \N \N \N \N f \N \N 6 f f \N \N \N t \N \N \N \N \N \N
|
|
|
|
1 admin@localhost:3000 2018-03-06 03:50:49.649613 2020-05-02 23:40:17.754121 $2a$10$7DkNPkzyI1KdM8xDPE4LmuKz3VCDZGTiUVUSlX5De4RFBNfYmS27i \N \N 3 2020-05-02 23:40:17.735006 2018-03-06 16:53:21.708118 t \N 2018-03-06 03:50:49.482892 \N \N \N \N \N \N \N f \N \N 1 f f \N \N \N t \N \N \N \N \N 3
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: web_push_subscriptions; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
COPY public.web_push_subscriptions (id, endpoint, key_p256dh, key_auth, data, created_at, updated_at, access_token_id, user_id) FROM stdin;
|
2018-04-11 01:39:56 +00:00
|
|
|
\.
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Data for Name: web_settings; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.web_settings (id, data, created_at, updated_at, user_id) FROM stdin;
|
|
|
|
1 {"onboarded":true,"skinTone":1,"home":{"shows":{"reblog":true,"reply":true},"regex":{"body":""}},"notifications":{"alerts":{"follow":true,"favourite":true,"reblog":true,"mention":true},"shows":{"follow":true,"favourite":true,"reblog":true,"mention":true},"sounds":{"follow":true,"favourite":true,"reblog":true,"mention":true}},"community":{"regex":{"body":""}},"public":{"regex":{"body":""}},"columns":[{"id":"COMPOSE","uuid":"68d78b81-9453-4dfe-9c38-5a077ad19445","params":{}},{"id":"HOME","uuid":"d6de85e8-9b46-46a4-806a-dd6063e3bf1e","params":{}},{"id":"NOTIFICATIONS","uuid":"2b7958e4-e1dd-498d-9708-e875e8446d74","params":{}}]} 2018-03-06 04:56:58.130081 2018-03-06 04:56:58.130081 1
|
|
|
|
2 {"onboarded":true,"skinTone":1,"home":{"shows":{"reblog":true,"reply":true},"regex":{"body":""}},"notifications":{"alerts":{"follow":true,"favourite":true,"reblog":true,"mention":true},"shows":{"follow":true,"favourite":true,"reblog":true,"mention":true},"sounds":{"follow":true,"favourite":true,"reblog":true,"mention":true}},"community":{"regex":{"body":""}},"public":{"regex":{"body":""}},"columns":[{"id":"COMPOSE","uuid":"ccf71fa5-037e-447d-8f03-34d9c3fba0f9","params":{}},{"id":"HOME","uuid":"09a142e2-9681-4584-80f5-f98c7f02b9ac","params":{}},{"id":"NOTIFICATIONS","uuid":"f1985ade-2ee6-4d4b-a4e0-545add8fabb3","params":{}}]} 2018-03-06 04:57:46.789709 2018-03-06 04:57:46.789709 2
|
|
|
|
3 {"onboarded":true,"skinTone":1,"home":{"shows":{"reblog":true,"reply":true},"regex":{"body":""}},"notifications":{"alerts":{"follow":true,"favourite":true,"reblog":true,"mention":true},"shows":{"follow":true,"favourite":true,"reblog":true,"mention":true},"sounds":{"follow":true,"favourite":true,"reblog":true,"mention":true}},"community":{"regex":{"body":""}},"public":{"regex":{"body":""}},"columns":[{"id":"COMPOSE","uuid":"a31cb067-99a7-42e5-855a-518a851eef51","params":{}},{"id":"HOME","uuid":"e72285de-fde1-4939-9640-84098f301af1","params":{}},{"id":"NOTIFICATIONS","uuid":"86509c82-e0d8-4768-b4fe-71cd908e5ad7","params":{}}]} 2018-03-08 17:13:46.311542 2018-03-08 17:13:46.311542 5
|
|
|
|
4 {"onboarded":true,"skinTone":1,"home":{"shows":{"reblog":true,"reply":true},"regex":{"body":""}},"notifications":{"alerts":{"follow":true,"favourite":true,"reblog":true,"mention":true},"shows":{"follow":true,"favourite":true,"reblog":true,"mention":true},"sounds":{"follow":true,"favourite":true,"reblog":true,"mention":true}},"community":{"regex":{"body":""}},"public":{"regex":{"body":""}},"columns":[{"id":"COMPOSE","uuid":"534d5170-4e10-4ed3-9329-c864d8fd8386","params":{}},{"id":"HOME","uuid":"1a920c13-a8a7-481c-868d-e88fac754b8f","params":{}},{"id":"NOTIFICATIONS","uuid":"76869a99-a78a-47f5-8938-3f56d5e3a217","params":{}}]} 2018-03-15 04:08:02.30709 2018-03-15 04:08:02.30709 6
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: webauthn_credentials; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.webauthn_credentials (id, external_id, public_key, nickname, sign_count, user_id, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Data for Name: webhooks; Type: TABLE DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
COPY public.webhooks (id, url, events, secret, enabled, created_at, updated_at) FROM stdin;
|
|
|
|
\.
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: account_aliases_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.account_aliases_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
-- Name: account_conversations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.account_conversations_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_deletion_requests_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
SELECT pg_catalog.setval('public.account_deletion_requests_id_seq', 1, false);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_domain_blocks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
SELECT pg_catalog.setval('public.account_domain_blocks_id_seq', 1, false);
|
2019-05-05 22:02:14 +00:00
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: account_migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.account_migrations_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: account_moderation_notes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.account_moderation_notes_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: account_notes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.account_notes_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: account_pins_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.account_pins_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: account_stats_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.account_stats_id_seq', 6, true);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_statuses_cleanup_policies_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
SELECT pg_catalog.setval('public.account_statuses_cleanup_policies_id_seq', 1, false);
|
2019-01-20 21:44:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_warning_presets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.account_warning_presets_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_warnings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.account_warnings_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: accounts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.accounts_id_seq', 6, true);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: admin_action_logs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.admin_action_logs_id_seq', 3, true);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: announcement_mutes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.announcement_mutes_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: announcement_reactions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.announcement_reactions_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: announcements_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.announcements_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: appeals_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.appeals_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: backups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.backups_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: blocks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.blocks_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: bookmarks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.bookmarks_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: canonical_email_blocks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.canonical_email_blocks_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: conversation_mutes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.conversation_mutes_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2020-05-03 01:02:29 +00:00
|
|
|
-- Name: conversations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.conversations_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_emoji_categories_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
SELECT pg_catalog.setval('public.custom_emoji_categories_id_seq', 1, false);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_emojis_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.custom_emojis_id_seq', 3, true);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_filter_keywords_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.custom_filter_keywords_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_filter_statuses_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.custom_filter_statuses_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_filters_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.custom_filters_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: devices_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.devices_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: domain_allows_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.domain_allows_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: domain_blocks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.domain_blocks_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_domain_blocks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.email_domain_blocks_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: encrypted_messages_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.encrypted_messages_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: favourites_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.favourites_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: featured_tags_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.featured_tags_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: follow_recommendation_suppressions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.follow_recommendation_suppressions_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: follow_requests_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.follow_requests_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: follows_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.follows_id_seq', 5, true);
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: identities_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.identities_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: imports_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.imports_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: invites_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.invites_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: ip_blocks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.ip_blocks_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: list_accounts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.list_accounts_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: lists_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.lists_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: login_activities_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.login_activities_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: markers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.markers_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: media_attachments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.media_attachments_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: mentions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.mentions_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: mutes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.mutes_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: notifications_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.notifications_id_seq', 5, true);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_grants_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.oauth_access_grants_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_tokens_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
SELECT pg_catalog.setval('public.oauth_access_tokens_id_seq', 10, true);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_applications_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.oauth_applications_id_seq', 1, true);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: one_time_keys_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.one_time_keys_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
-- Name: pghero_space_stats_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.pghero_space_stats_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: poll_votes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.poll_votes_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: polls_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.polls_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: preview_card_providers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.preview_card_providers_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: preview_card_trends_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.preview_card_trends_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: preview_cards_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.preview_cards_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: relays_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.relays_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: report_notes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.report_notes_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: reports_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.reports_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: rules_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.rules_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: scheduled_statuses_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.scheduled_statuses_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: session_activations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
SELECT pg_catalog.setval('public.session_activations_id_seq', 10, true);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: settings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
SELECT pg_catalog.setval('public.settings_id_seq', 33, true);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: site_uploads_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.site_uploads_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: status_edits_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.status_edits_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: status_pins_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.status_pins_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: status_stats_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.status_stats_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: status_trends_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.status_trends_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: statuses_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.statuses_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: system_keys_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.system_keys_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: tag_follows_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.tag_follows_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: tags_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.tags_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: tombstones_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.tombstones_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: unavailable_domains_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.unavailable_domains_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: user_invite_requests_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.user_invite_requests_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: user_roles_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.user_roles_id_seq', 3, true);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.users_id_seq', 6, true);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: web_push_subscriptions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.web_push_subscriptions_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: web_settings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.web_settings_id_seq', 4, true);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: webauthn_credentials_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.webauthn_credentials_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: webhooks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
SELECT pg_catalog.setval('public.webhooks_id_seq', 1, false);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: account_aliases account_aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_aliases
|
|
|
|
ADD CONSTRAINT account_aliases_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
-- Name: account_conversations account_conversations_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_conversations
|
|
|
|
ADD CONSTRAINT account_conversations_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_deletion_requests account_deletion_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE ONLY public.account_deletion_requests
|
|
|
|
ADD CONSTRAINT account_deletion_requests_pkey PRIMARY KEY (id);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_domain_blocks account_domain_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE ONLY public.account_domain_blocks
|
|
|
|
ADD CONSTRAINT account_domain_blocks_pkey PRIMARY KEY (id);
|
2019-05-05 22:02:14 +00:00
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: account_migrations account_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_migrations
|
|
|
|
ADD CONSTRAINT account_migrations_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: account_moderation_notes account_moderation_notes_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_moderation_notes
|
|
|
|
ADD CONSTRAINT account_moderation_notes_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: account_notes account_notes_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_notes
|
|
|
|
ADD CONSTRAINT account_notes_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: account_pins account_pins_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_pins
|
|
|
|
ADD CONSTRAINT account_pins_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: account_stats account_stats_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_stats
|
|
|
|
ADD CONSTRAINT account_stats_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: account_statuses_cleanup_policies account_statuses_cleanup_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE ONLY public.account_statuses_cleanup_policies
|
|
|
|
ADD CONSTRAINT account_statuses_cleanup_policies_pkey PRIMARY KEY (id);
|
2019-01-20 21:44:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_warning_presets account_warning_presets_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_warning_presets
|
|
|
|
ADD CONSTRAINT account_warning_presets_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_warnings account_warnings_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_warnings
|
|
|
|
ADD CONSTRAINT account_warnings_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: accounts accounts_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.accounts
|
|
|
|
ADD CONSTRAINT accounts_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: admin_action_logs admin_action_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.admin_action_logs
|
|
|
|
ADD CONSTRAINT admin_action_logs_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: announcement_mutes announcement_mutes_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.announcement_mutes
|
|
|
|
ADD CONSTRAINT announcement_mutes_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: announcement_reactions announcement_reactions_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.announcement_reactions
|
|
|
|
ADD CONSTRAINT announcement_reactions_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: announcements announcements_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.announcements
|
|
|
|
ADD CONSTRAINT announcements_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: appeals appeals_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.appeals
|
|
|
|
ADD CONSTRAINT appeals_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: ar_internal_metadata ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.ar_internal_metadata
|
|
|
|
ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key);
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: backups backups_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.backups
|
|
|
|
ADD CONSTRAINT backups_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: blocks blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.blocks
|
|
|
|
ADD CONSTRAINT blocks_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: bookmarks bookmarks_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.bookmarks
|
|
|
|
ADD CONSTRAINT bookmarks_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: canonical_email_blocks canonical_email_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.canonical_email_blocks
|
|
|
|
ADD CONSTRAINT canonical_email_blocks_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: conversation_mutes conversation_mutes_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.conversation_mutes
|
|
|
|
ADD CONSTRAINT conversation_mutes_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: conversations conversations_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.conversations
|
|
|
|
ADD CONSTRAINT conversations_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_emoji_categories custom_emoji_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.custom_emoji_categories
|
|
|
|
ADD CONSTRAINT custom_emoji_categories_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_emojis custom_emojis_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.custom_emojis
|
|
|
|
ADD CONSTRAINT custom_emojis_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_filter_keywords custom_filter_keywords_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.custom_filter_keywords
|
|
|
|
ADD CONSTRAINT custom_filter_keywords_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: custom_filter_statuses custom_filter_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.custom_filter_statuses
|
|
|
|
ADD CONSTRAINT custom_filter_statuses_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_filters custom_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.custom_filters
|
|
|
|
ADD CONSTRAINT custom_filters_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: devices devices_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.devices
|
|
|
|
ADD CONSTRAINT devices_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: domain_allows domain_allows_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.domain_allows
|
|
|
|
ADD CONSTRAINT domain_allows_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: domain_blocks domain_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.domain_blocks
|
|
|
|
ADD CONSTRAINT domain_blocks_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: email_domain_blocks email_domain_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.email_domain_blocks
|
|
|
|
ADD CONSTRAINT email_domain_blocks_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: encrypted_messages encrypted_messages_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.encrypted_messages
|
|
|
|
ADD CONSTRAINT encrypted_messages_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: favourites favourites_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.favourites
|
|
|
|
ADD CONSTRAINT favourites_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: featured_tags featured_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.featured_tags
|
|
|
|
ADD CONSTRAINT featured_tags_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: follow_recommendation_suppressions follow_recommendation_suppressions_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.follow_recommendation_suppressions
|
|
|
|
ADD CONSTRAINT follow_recommendation_suppressions_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: follow_requests follow_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.follow_requests
|
|
|
|
ADD CONSTRAINT follow_requests_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: follows follows_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.follows
|
|
|
|
ADD CONSTRAINT follows_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
2019-01-20 21:44:06 +00:00
|
|
|
-- Name: imports imports_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
ALTER TABLE ONLY public.imports
|
|
|
|
ADD CONSTRAINT imports_pkey PRIMARY KEY (id);
|
2018-08-19 21:46:48 +00:00
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2019-01-20 21:44:06 +00:00
|
|
|
-- Name: identities index_identities_on_id; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
ALTER TABLE ONLY public.identities
|
|
|
|
ADD CONSTRAINT index_identities_on_id PRIMARY KEY (id);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: invites invites_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.invites
|
|
|
|
ADD CONSTRAINT invites_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: ip_blocks ip_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.ip_blocks
|
|
|
|
ADD CONSTRAINT ip_blocks_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: list_accounts list_accounts_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.list_accounts
|
|
|
|
ADD CONSTRAINT list_accounts_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: lists lists_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.lists
|
|
|
|
ADD CONSTRAINT lists_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: login_activities login_activities_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.login_activities
|
|
|
|
ADD CONSTRAINT login_activities_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: markers markers_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.markers
|
|
|
|
ADD CONSTRAINT markers_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: media_attachments media_attachments_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.media_attachments
|
|
|
|
ADD CONSTRAINT media_attachments_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: mentions mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.mentions
|
|
|
|
ADD CONSTRAINT mentions_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: mutes mutes_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.mutes
|
|
|
|
ADD CONSTRAINT mutes_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: notifications notifications_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.notifications
|
|
|
|
ADD CONSTRAINT notifications_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_grants oauth_access_grants_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.oauth_access_grants
|
|
|
|
ADD CONSTRAINT oauth_access_grants_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_tokens oauth_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.oauth_access_tokens
|
|
|
|
ADD CONSTRAINT oauth_access_tokens_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_applications oauth_applications_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.oauth_applications
|
|
|
|
ADD CONSTRAINT oauth_applications_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: one_time_keys one_time_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.one_time_keys
|
|
|
|
ADD CONSTRAINT one_time_keys_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
-- Name: pghero_space_stats pghero_space_stats_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.pghero_space_stats
|
|
|
|
ADD CONSTRAINT pghero_space_stats_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: poll_votes poll_votes_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.poll_votes
|
|
|
|
ADD CONSTRAINT poll_votes_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: polls polls_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.polls
|
|
|
|
ADD CONSTRAINT polls_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: preview_card_providers preview_card_providers_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.preview_card_providers
|
|
|
|
ADD CONSTRAINT preview_card_providers_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: preview_card_trends preview_card_trends_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.preview_card_trends
|
|
|
|
ADD CONSTRAINT preview_card_trends_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: preview_cards preview_cards_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.preview_cards
|
|
|
|
ADD CONSTRAINT preview_cards_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: relays relays_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.relays
|
|
|
|
ADD CONSTRAINT relays_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: report_notes report_notes_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.report_notes
|
|
|
|
ADD CONSTRAINT report_notes_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: reports reports_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.reports
|
|
|
|
ADD CONSTRAINT reports_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: rules rules_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.rules
|
|
|
|
ADD CONSTRAINT rules_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: scheduled_statuses scheduled_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.scheduled_statuses
|
|
|
|
ADD CONSTRAINT scheduled_statuses_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: schema_migrations schema_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.schema_migrations
|
|
|
|
ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (version);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: session_activations session_activations_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.session_activations
|
|
|
|
ADD CONSTRAINT session_activations_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: settings settings_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.settings
|
|
|
|
ADD CONSTRAINT settings_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: site_uploads site_uploads_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.site_uploads
|
|
|
|
ADD CONSTRAINT site_uploads_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: status_edits status_edits_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.status_edits
|
|
|
|
ADD CONSTRAINT status_edits_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: status_pins status_pins_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.status_pins
|
|
|
|
ADD CONSTRAINT status_pins_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: status_stats status_stats_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.status_stats
|
|
|
|
ADD CONSTRAINT status_stats_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: status_trends status_trends_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.status_trends
|
|
|
|
ADD CONSTRAINT status_trends_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: statuses statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.statuses
|
|
|
|
ADD CONSTRAINT statuses_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: system_keys system_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.system_keys
|
|
|
|
ADD CONSTRAINT system_keys_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: tag_follows tag_follows_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.tag_follows
|
|
|
|
ADD CONSTRAINT tag_follows_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: tags tags_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.tags
|
|
|
|
ADD CONSTRAINT tags_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: tombstones tombstones_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.tombstones
|
|
|
|
ADD CONSTRAINT tombstones_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: unavailable_domains unavailable_domains_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.unavailable_domains
|
|
|
|
ADD CONSTRAINT unavailable_domains_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: user_invite_requests user_invite_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.user_invite_requests
|
|
|
|
ADD CONSTRAINT user_invite_requests_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: user_roles user_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.user_roles
|
|
|
|
ADD CONSTRAINT user_roles_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.users
|
|
|
|
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: web_push_subscriptions web_push_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.web_push_subscriptions
|
|
|
|
ADD CONSTRAINT web_push_subscriptions_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: web_settings web_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.web_settings
|
|
|
|
ADD CONSTRAINT web_settings_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: webauthn_credentials webauthn_credentials_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE ONLY public.webauthn_credentials
|
|
|
|
ADD CONSTRAINT webauthn_credentials_pkey PRIMARY KEY (id);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: webhooks webhooks_pkey; Type: CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.webhooks
|
|
|
|
ADD CONSTRAINT webhooks_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2020-05-03 01:02:29 +00:00
|
|
|
-- Name: index_account_aliases_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
CREATE INDEX index_account_aliases_on_account_id ON public.account_aliases USING btree (account_id);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
-- Name: index_account_conversations_on_conversation_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_account_conversations_on_conversation_id ON public.account_conversations USING btree (conversation_id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_account_deletion_requests_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_account_deletion_requests_on_account_id ON public.account_deletion_requests USING btree (account_id);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_account_domain_blocks_on_account_id_and_domain; Type: INDEX; Schema: public; Owner: pinafore
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE UNIQUE INDEX index_account_domain_blocks_on_account_id_and_domain ON public.account_domain_blocks USING btree (account_id, domain);
|
2019-05-05 22:02:14 +00:00
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: index_account_migrations_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_account_migrations_on_account_id ON public.account_migrations USING btree (account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_account_migrations_on_target_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_account_migrations_on_target_account_id ON public.account_migrations USING btree (target_account_id) WHERE (target_account_id IS NOT NULL);
|
2020-05-03 01:02:29 +00:00
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_account_moderation_notes_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_account_moderation_notes_on_account_id ON public.account_moderation_notes USING btree (account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_account_moderation_notes_on_target_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_account_moderation_notes_on_target_account_id ON public.account_moderation_notes USING btree (target_account_id);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_account_notes_on_account_id_and_target_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_account_notes_on_account_id_and_target_account_id ON public.account_notes USING btree (account_id, target_account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_account_notes_on_target_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_account_notes_on_target_account_id ON public.account_notes USING btree (target_account_id);
|
2018-09-23 05:19:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_account_pins_on_account_id_and_target_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_account_pins_on_account_id_and_target_account_id ON public.account_pins USING btree (account_id, target_account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_account_pins_on_target_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_account_pins_on_target_account_id ON public.account_pins USING btree (target_account_id);
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_account_stats_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE UNIQUE INDEX index_account_stats_on_account_id ON public.account_stats USING btree (account_id);
|
2019-05-05 22:02:14 +00:00
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_account_statuses_cleanup_policies_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_account_statuses_cleanup_policies_on_account_id ON public.account_statuses_cleanup_policies USING btree (account_id);
|
2019-01-20 21:44:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_account_summaries_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE UNIQUE INDEX index_account_summaries_on_account_id ON public.account_summaries USING btree (account_id);
|
2019-01-20 21:44:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_account_warnings_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_account_warnings_on_account_id ON public.account_warnings USING btree (account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_account_warnings_on_target_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_account_warnings_on_target_account_id ON public.account_warnings USING btree (target_account_id);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: index_accounts_on_moved_to_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_accounts_on_moved_to_account_id ON public.accounts USING btree (moved_to_account_id) WHERE (moved_to_account_id IS NOT NULL);
|
2018-09-23 05:19:02 +00:00
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_accounts_on_uri; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_accounts_on_uri ON public.accounts USING btree (uri);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_accounts_on_url; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_accounts_on_url ON public.accounts USING btree (url text_pattern_ops) WHERE (url IS NOT NULL);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_accounts_on_username_and_domain_lower; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE UNIQUE INDEX index_accounts_on_username_and_domain_lower ON public.accounts USING btree (lower((username)::text), COALESCE(lower((domain)::text), ''::text));
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: index_accounts_tags_on_account_id_and_tag_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_accounts_tags_on_account_id_and_tag_id ON public.accounts_tags USING btree (account_id, tag_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_accounts_tags_on_tag_id_and_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_accounts_tags_on_tag_id_and_account_id ON public.accounts_tags USING btree (tag_id, account_id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_admin_action_logs_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_admin_action_logs_on_account_id ON public.admin_action_logs USING btree (account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_admin_action_logs_on_target_type_and_target_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_admin_action_logs_on_target_type_and_target_id ON public.admin_action_logs USING btree (target_type, target_id);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_announcement_mutes_on_account_id_and_announcement_id; Type: INDEX; Schema: public; Owner: pinafore
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE UNIQUE INDEX index_announcement_mutes_on_account_id_and_announcement_id ON public.announcement_mutes USING btree (account_id, announcement_id);
|
2020-05-03 01:02:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_announcement_mutes_on_announcement_id; Type: INDEX; Schema: public; Owner: pinafore
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_announcement_mutes_on_announcement_id ON public.announcement_mutes USING btree (announcement_id);
|
2020-05-03 01:02:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_announcement_reactions_on_account_id_and_announcement_id; Type: INDEX; Schema: public; Owner: pinafore
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE UNIQUE INDEX index_announcement_reactions_on_account_id_and_announcement_id ON public.announcement_reactions USING btree (account_id, announcement_id, name);
|
2020-05-03 01:02:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_announcement_reactions_on_announcement_id; Type: INDEX; Schema: public; Owner: pinafore
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_announcement_reactions_on_announcement_id ON public.announcement_reactions USING btree (announcement_id);
|
2020-05-03 01:02:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_announcement_reactions_on_custom_emoji_id; Type: INDEX; Schema: public; Owner: pinafore
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_announcement_reactions_on_custom_emoji_id ON public.announcement_reactions USING btree (custom_emoji_id) WHERE (custom_emoji_id IS NOT NULL);
|
2020-05-03 01:02:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_appeals_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_appeals_on_account_id ON public.appeals USING btree (account_id);
|
2020-05-03 01:02:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_appeals_on_account_warning_id; Type: INDEX; Schema: public; Owner: pinafore
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE UNIQUE INDEX index_appeals_on_account_warning_id ON public.appeals USING btree (account_warning_id);
|
2020-05-03 01:02:29 +00:00
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_appeals_on_approved_by_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_appeals_on_approved_by_account_id ON public.appeals USING btree (approved_by_account_id) WHERE (approved_by_account_id IS NOT NULL);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_appeals_on_rejected_by_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_appeals_on_rejected_by_account_id ON public.appeals USING btree (rejected_by_account_id) WHERE (rejected_by_account_id IS NOT NULL);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_blocks_on_account_id_and_target_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_blocks_on_account_id_and_target_account_id ON public.blocks USING btree (account_id, target_account_id);
|
2018-09-23 05:19:02 +00:00
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_blocks_on_target_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_blocks_on_target_account_id ON public.blocks USING btree (target_account_id);
|
2020-05-03 01:02:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_bookmarks_on_account_id_and_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_bookmarks_on_account_id_and_status_id ON public.bookmarks USING btree (account_id, status_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_bookmarks_on_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_bookmarks_on_status_id ON public.bookmarks USING btree (status_id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: index_canonical_email_blocks_on_canonical_email_hash; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_canonical_email_blocks_on_canonical_email_hash ON public.canonical_email_blocks USING btree (canonical_email_hash);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_canonical_email_blocks_on_reference_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_canonical_email_blocks_on_reference_account_id ON public.canonical_email_blocks USING btree (reference_account_id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_conversation_mutes_on_account_id_and_conversation_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_conversation_mutes_on_account_id_and_conversation_id ON public.conversation_mutes USING btree (account_id, conversation_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_conversations_on_uri; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE UNIQUE INDEX index_conversations_on_uri ON public.conversations USING btree (uri text_pattern_ops) WHERE (uri IS NOT NULL);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: index_custom_emoji_categories_on_name; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_custom_emoji_categories_on_name ON public.custom_emoji_categories USING btree (name);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_custom_emojis_on_shortcode_and_domain; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_custom_emojis_on_shortcode_and_domain ON public.custom_emojis USING btree (shortcode, domain);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: index_custom_filter_keywords_on_custom_filter_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_custom_filter_keywords_on_custom_filter_id ON public.custom_filter_keywords USING btree (custom_filter_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_custom_filter_statuses_on_custom_filter_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_custom_filter_statuses_on_custom_filter_id ON public.custom_filter_statuses USING btree (custom_filter_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_custom_filter_statuses_on_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_custom_filter_statuses_on_status_id ON public.custom_filter_statuses USING btree (status_id);
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: index_custom_filters_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_custom_filters_on_account_id ON public.custom_filters USING btree (account_id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: index_devices_on_access_token_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_devices_on_access_token_id ON public.devices USING btree (access_token_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_devices_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_devices_on_account_id ON public.devices USING btree (account_id);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: index_domain_allows_on_domain; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_domain_allows_on_domain ON public.domain_allows USING btree (domain);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_domain_blocks_on_domain; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_domain_blocks_on_domain ON public.domain_blocks USING btree (domain);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_email_domain_blocks_on_domain; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_email_domain_blocks_on_domain ON public.email_domain_blocks USING btree (domain);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: index_encrypted_messages_on_device_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_encrypted_messages_on_device_id ON public.encrypted_messages USING btree (device_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_encrypted_messages_on_from_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_encrypted_messages_on_from_account_id ON public.encrypted_messages USING btree (from_account_id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_favourites_on_account_id_and_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_favourites_on_account_id_and_id ON public.favourites USING btree (account_id, id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_favourites_on_account_id_and_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_favourites_on_account_id_and_status_id ON public.favourites USING btree (account_id, status_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_favourites_on_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_favourites_on_status_id ON public.favourites USING btree (status_id);
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
2022-12-02 23:09:58 +00:00
|
|
|
-- Name: index_featured_tags_on_account_id_and_tag_id; Type: INDEX; Schema: public; Owner: pinafore
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
CREATE UNIQUE INDEX index_featured_tags_on_account_id_and_tag_id ON public.featured_tags USING btree (account_id, tag_id);
|
2019-05-05 22:02:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_featured_tags_on_tag_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_featured_tags_on_tag_id ON public.featured_tags USING btree (tag_id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: index_follow_recommendation_suppressions_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_follow_recommendation_suppressions_on_account_id ON public.follow_recommendation_suppressions USING btree (account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_follow_recommendations_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_follow_recommendations_on_account_id ON public.follow_recommendations USING btree (account_id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_follow_requests_on_account_id_and_target_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_follow_requests_on_account_id_and_target_account_id ON public.follow_requests USING btree (account_id, target_account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_follows_on_account_id_and_target_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_follows_on_account_id_and_target_account_id ON public.follows USING btree (account_id, target_account_id);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: index_follows_on_target_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_follows_on_target_account_id ON public.follows USING btree (target_account_id);
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: index_identities_on_user_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_identities_on_user_id ON public.identities USING btree (user_id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: index_instances_on_domain; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_instances_on_domain ON public.instances USING btree (domain);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_invites_on_code; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_invites_on_code ON public.invites USING btree (code);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_invites_on_user_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_invites_on_user_id ON public.invites USING btree (user_id);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: index_ip_blocks_on_ip; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_ip_blocks_on_ip ON public.ip_blocks USING btree (ip);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_list_accounts_on_account_id_and_list_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_list_accounts_on_account_id_and_list_id ON public.list_accounts USING btree (account_id, list_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_list_accounts_on_follow_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_list_accounts_on_follow_id ON public.list_accounts USING btree (follow_id) WHERE (follow_id IS NOT NULL);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_list_accounts_on_list_id_and_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_list_accounts_on_list_id_and_account_id ON public.list_accounts USING btree (list_id, account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_lists_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_lists_on_account_id ON public.lists USING btree (account_id);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_login_activities_on_user_id; Type: INDEX; Schema: public; Owner: pinafore
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_login_activities_on_user_id ON public.login_activities USING btree (user_id);
|
2020-05-03 01:02:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_markers_on_user_id_and_timeline; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_markers_on_user_id_and_timeline ON public.markers USING btree (user_id, timeline);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_media_attachments_on_account_id_and_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_media_attachments_on_account_id_and_status_id ON public.media_attachments USING btree (account_id, status_id DESC);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: index_media_attachments_on_scheduled_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_media_attachments_on_scheduled_status_id ON public.media_attachments USING btree (scheduled_status_id) WHERE (scheduled_status_id IS NOT NULL);
|
2019-01-20 21:44:06 +00:00
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_media_attachments_on_shortcode; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE UNIQUE INDEX index_media_attachments_on_shortcode ON public.media_attachments USING btree (shortcode text_pattern_ops) WHERE (shortcode IS NOT NULL);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_media_attachments_on_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_media_attachments_on_status_id ON public.media_attachments USING btree (status_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_mentions_on_account_id_and_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_mentions_on_account_id_and_status_id ON public.mentions USING btree (account_id, status_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_mentions_on_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_mentions_on_status_id ON public.mentions USING btree (status_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_mutes_on_account_id_and_target_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_mutes_on_account_id_and_target_account_id ON public.mutes USING btree (account_id, target_account_id);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: index_mutes_on_target_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_mutes_on_target_account_id ON public.mutes USING btree (target_account_id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_notifications_on_account_id_and_id_and_type; Type: INDEX; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_notifications_on_account_id_and_id_and_type ON public.notifications USING btree (account_id, id DESC, type);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_notifications_on_activity_id_and_activity_type; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_notifications_on_activity_id_and_activity_type ON public.notifications USING btree (activity_id, activity_type);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: index_notifications_on_from_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_notifications_on_from_account_id ON public.notifications USING btree (from_account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_oauth_access_grants_on_resource_owner_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_oauth_access_grants_on_resource_owner_id ON public.oauth_access_grants USING btree (resource_owner_id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_oauth_access_grants_on_token; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_oauth_access_grants_on_token ON public.oauth_access_grants USING btree (token);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_oauth_access_tokens_on_refresh_token; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE UNIQUE INDEX index_oauth_access_tokens_on_refresh_token ON public.oauth_access_tokens USING btree (refresh_token text_pattern_ops) WHERE (refresh_token IS NOT NULL);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_oauth_access_tokens_on_resource_owner_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_oauth_access_tokens_on_resource_owner_id ON public.oauth_access_tokens USING btree (resource_owner_id) WHERE (resource_owner_id IS NOT NULL);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_oauth_access_tokens_on_token; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_oauth_access_tokens_on_token ON public.oauth_access_tokens USING btree (token);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_oauth_applications_on_owner_id_and_owner_type; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_oauth_applications_on_owner_id_and_owner_type ON public.oauth_applications USING btree (owner_id, owner_type);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_oauth_applications_on_uid; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_oauth_applications_on_uid ON public.oauth_applications USING btree (uid);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: index_one_time_keys_on_device_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_one_time_keys_on_device_id ON public.one_time_keys USING btree (device_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_one_time_keys_on_key_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_one_time_keys_on_key_id ON public.one_time_keys USING btree (key_id);
|
|
|
|
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
-- Name: index_pghero_space_stats_on_database_and_captured_at; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_pghero_space_stats_on_database_and_captured_at ON public.pghero_space_stats USING btree (database, captured_at);
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: index_poll_votes_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_poll_votes_on_account_id ON public.poll_votes USING btree (account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_poll_votes_on_poll_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_poll_votes_on_poll_id ON public.poll_votes USING btree (poll_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_polls_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_polls_on_account_id ON public.polls USING btree (account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_polls_on_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_polls_on_status_id ON public.polls USING btree (status_id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: index_preview_card_providers_on_domain; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_preview_card_providers_on_domain ON public.preview_card_providers USING btree (domain);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: index_preview_card_trends_on_preview_card_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_preview_card_trends_on_preview_card_id ON public.preview_card_trends USING btree (preview_card_id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_preview_cards_on_url; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_preview_cards_on_url ON public.preview_cards USING btree (url);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_preview_cards_statuses_on_status_id_and_preview_card_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_preview_cards_statuses_on_status_id_and_preview_card_id ON public.preview_cards_statuses USING btree (status_id, preview_card_id);
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: index_report_notes_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_report_notes_on_account_id ON public.report_notes USING btree (account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_report_notes_on_report_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_report_notes_on_report_id ON public.report_notes USING btree (report_id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_reports_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_reports_on_account_id ON public.reports USING btree (account_id);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: index_reports_on_action_taken_by_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_reports_on_action_taken_by_account_id ON public.reports USING btree (action_taken_by_account_id) WHERE (action_taken_by_account_id IS NOT NULL);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_reports_on_assigned_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_reports_on_assigned_account_id ON public.reports USING btree (assigned_account_id) WHERE (assigned_account_id IS NOT NULL);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_reports_on_target_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_reports_on_target_account_id ON public.reports USING btree (target_account_id);
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: index_scheduled_statuses_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_scheduled_statuses_on_account_id ON public.scheduled_statuses USING btree (account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_scheduled_statuses_on_scheduled_at; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_scheduled_statuses_on_scheduled_at ON public.scheduled_statuses USING btree (scheduled_at);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: index_session_activations_on_access_token_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_session_activations_on_access_token_id ON public.session_activations USING btree (access_token_id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_session_activations_on_session_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_session_activations_on_session_id ON public.session_activations USING btree (session_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_session_activations_on_user_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_session_activations_on_user_id ON public.session_activations USING btree (user_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_settings_on_thing_type_and_thing_id_and_var; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_settings_on_thing_type_and_thing_id_and_var ON public.settings USING btree (thing_type, thing_id, var);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_site_uploads_on_var; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_site_uploads_on_var ON public.site_uploads USING btree (var);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: index_status_edits_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_status_edits_on_account_id ON public.status_edits USING btree (account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_status_edits_on_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_status_edits_on_status_id ON public.status_edits USING btree (status_id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_status_pins_on_account_id_and_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_status_pins_on_account_id_and_status_id ON public.status_pins USING btree (account_id, status_id);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: index_status_pins_on_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_status_pins_on_status_id ON public.status_pins USING btree (status_id);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: index_status_stats_on_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_status_stats_on_status_id ON public.status_stats USING btree (status_id);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: index_status_trends_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_status_trends_on_account_id ON public.status_trends USING btree (account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_status_trends_on_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_status_trends_on_status_id ON public.status_trends USING btree (status_id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2020-05-03 01:02:29 +00:00
|
|
|
-- Name: index_statuses_20190820; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_statuses_20190820 ON public.statuses USING btree (account_id, id DESC, visibility, updated_at) WHERE (deleted_at IS NULL);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_statuses_local_20190824; Type: INDEX; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
CREATE INDEX index_statuses_local_20190824 ON public.statuses USING btree (id DESC, account_id) WHERE ((local OR (uri IS NULL)) AND (deleted_at IS NULL) AND (visibility = 0) AND (reblog_of_id IS NULL) AND ((NOT reply) OR (in_reply_to_account_id = account_id)));
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: index_statuses_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_statuses_on_account_id ON public.statuses USING btree (account_id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: index_statuses_on_deleted_at; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_statuses_on_deleted_at ON public.statuses USING btree (deleted_at) WHERE (deleted_at IS NOT NULL);
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: index_statuses_on_in_reply_to_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_statuses_on_in_reply_to_account_id ON public.statuses USING btree (in_reply_to_account_id) WHERE (in_reply_to_account_id IS NOT NULL);
|
2018-09-23 05:19:02 +00:00
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_statuses_on_in_reply_to_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_statuses_on_in_reply_to_id ON public.statuses USING btree (in_reply_to_id) WHERE (in_reply_to_id IS NOT NULL);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_statuses_on_reblog_of_id_and_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_statuses_on_reblog_of_id_and_account_id ON public.statuses USING btree (reblog_of_id, account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_statuses_on_uri; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE UNIQUE INDEX index_statuses_on_uri ON public.statuses USING btree (uri text_pattern_ops) WHERE (uri IS NOT NULL);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
2020-05-03 01:02:29 +00:00
|
|
|
-- Name: index_statuses_public_20200119; Type: INDEX; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
CREATE INDEX index_statuses_public_20200119 ON public.statuses USING btree (id DESC, account_id) WHERE ((deleted_at IS NULL) AND (visibility = 0) AND (reblog_of_id IS NULL) AND ((NOT reply) OR (in_reply_to_account_id = account_id)));
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
2020-05-03 01:02:29 +00:00
|
|
|
-- Name: index_statuses_tags_on_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
CREATE INDEX index_statuses_tags_on_status_id ON public.statuses_tags USING btree (status_id);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
2020-05-03 01:02:29 +00:00
|
|
|
-- Name: index_statuses_tags_on_tag_id_and_status_id; Type: INDEX; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
CREATE UNIQUE INDEX index_statuses_tags_on_tag_id_and_status_id ON public.statuses_tags USING btree (tag_id, status_id);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: index_tag_follows_on_account_id_and_tag_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_tag_follows_on_account_id_and_tag_id ON public.tag_follows USING btree (account_id, tag_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_tag_follows_on_tag_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_tag_follows_on_tag_id ON public.tag_follows USING btree (tag_id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: index_tags_on_name_lower_btree; Type: INDEX; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE UNIQUE INDEX index_tags_on_name_lower_btree ON public.tags USING btree (lower((name)::text) text_pattern_ops);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: index_tombstones_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_tombstones_on_account_id ON public.tombstones USING btree (account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_tombstones_on_uri; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_tombstones_on_uri ON public.tombstones USING btree (uri);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: index_unavailable_domains_on_domain; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_unavailable_domains_on_domain ON public.unavailable_domains USING btree (domain);
|
|
|
|
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
-- Name: index_unique_conversations; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_unique_conversations ON public.account_conversations USING btree (account_id, conversation_id, participant_account_ids);
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: index_user_invite_requests_on_user_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_user_invite_requests_on_user_id ON public.user_invite_requests USING btree (user_id);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_users_on_account_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_users_on_account_id ON public.users USING btree (account_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_users_on_confirmation_token; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_users_on_confirmation_token ON public.users USING btree (confirmation_token);
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: index_users_on_created_by_application_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_users_on_created_by_application_id ON public.users USING btree (created_by_application_id) WHERE (created_by_application_id IS NOT NULL);
|
2019-01-20 21:44:06 +00:00
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: index_users_on_email; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_users_on_email ON public.users USING btree (email);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-08-19 21:46:48 +00:00
|
|
|
-- Name: index_users_on_reset_password_token; Type: INDEX; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE UNIQUE INDEX index_users_on_reset_password_token ON public.users USING btree (reset_password_token text_pattern_ops) WHERE (reset_password_token IS NOT NULL);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: index_users_on_role_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_users_on_role_id ON public.users USING btree (role_id) WHERE (role_id IS NOT NULL);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
2018-08-19 21:46:48 +00:00
|
|
|
-- Name: index_web_push_subscriptions_on_access_token_id; Type: INDEX; Schema: public; Owner: pinafore
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
CREATE INDEX index_web_push_subscriptions_on_access_token_id ON public.web_push_subscriptions USING btree (access_token_id) WHERE (access_token_id IS NOT NULL);
|
2018-08-19 21:46:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_web_push_subscriptions_on_user_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_web_push_subscriptions_on_user_id ON public.web_push_subscriptions USING btree (user_id);
|
2018-04-11 01:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_web_settings_on_user_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_web_settings_on_user_id ON public.web_settings USING btree (user_id);
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: index_webauthn_credentials_on_external_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_webauthn_credentials_on_external_id ON public.webauthn_credentials USING btree (external_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: index_webauthn_credentials_on_user_id; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX index_webauthn_credentials_on_user_id ON public.webauthn_credentials USING btree (user_id);
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: index_webhooks_on_url; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX index_webhooks_on_url ON public.webhooks USING btree (url);
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: search_index; Type: INDEX; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE INDEX search_index ON public.accounts USING gin ((((setweight(to_tsvector('simple'::regconfig, (display_name)::text), 'A'::"char") || setweight(to_tsvector('simple'::regconfig, (username)::text), 'B'::"char")) || setweight(to_tsvector('simple'::regconfig, (COALESCE(domain, ''::character varying))::text), 'C'::"char"))));
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: web_settings fk_11910667b2; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.web_settings
|
|
|
|
ADD CONSTRAINT fk_11910667b2 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_domain_blocks fk_206c6029bd; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_domain_blocks
|
|
|
|
ADD CONSTRAINT fk_206c6029bd FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: conversation_mutes fk_225b4212bb; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.conversation_mutes
|
|
|
|
ADD CONSTRAINT fk_225b4212bb FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: statuses_tags fk_3081861e21; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.statuses_tags
|
|
|
|
ADD CONSTRAINT fk_3081861e21 FOREIGN KEY (tag_id) REFERENCES public.tags(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: follows fk_32ed1b5560; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.follows
|
|
|
|
ADD CONSTRAINT fk_32ed1b5560 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_grants fk_34d54b0a33; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.oauth_access_grants
|
|
|
|
ADD CONSTRAINT fk_34d54b0a33 FOREIGN KEY (application_id) REFERENCES public.oauth_applications(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: blocks fk_4269e03e65; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.blocks
|
|
|
|
ADD CONSTRAINT fk_4269e03e65 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: reports fk_4b81f7522c; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.reports
|
|
|
|
ADD CONSTRAINT fk_4b81f7522c FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: users fk_50500f500d; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.users
|
|
|
|
ADD CONSTRAINT fk_50500f500d FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: favourites fk_5eb6c2b873; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.favourites
|
|
|
|
ADD CONSTRAINT fk_5eb6c2b873 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_grants fk_63b044929b; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.oauth_access_grants
|
|
|
|
ADD CONSTRAINT fk_63b044929b FOREIGN KEY (resource_owner_id) REFERENCES public.users(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: imports fk_6db1b6e408; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.imports
|
|
|
|
ADD CONSTRAINT fk_6db1b6e408 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: follows fk_745ca29eac; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.follows
|
|
|
|
ADD CONSTRAINT fk_745ca29eac FOREIGN KEY (target_account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: follow_requests fk_76d644b0e7; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.follow_requests
|
|
|
|
ADD CONSTRAINT fk_76d644b0e7 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: follow_requests fk_9291ec025d; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.follow_requests
|
|
|
|
ADD CONSTRAINT fk_9291ec025d FOREIGN KEY (target_account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: blocks fk_9571bfabc1; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.blocks
|
|
|
|
ADD CONSTRAINT fk_9571bfabc1 FOREIGN KEY (target_account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: session_activations fk_957e5bda89; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.session_activations
|
|
|
|
ADD CONSTRAINT fk_957e5bda89 FOREIGN KEY (access_token_id) REFERENCES public.oauth_access_tokens(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: media_attachments fk_96dd81e81b; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.media_attachments
|
|
|
|
ADD CONSTRAINT fk_96dd81e81b FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: mentions fk_970d43f9d1; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.mentions
|
|
|
|
ADD CONSTRAINT fk_970d43f9d1 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: statuses fk_9bda1543f7; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.statuses
|
|
|
|
ADD CONSTRAINT fk_9bda1543f7 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_applications fk_b0988c7c0a; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.oauth_applications
|
|
|
|
ADD CONSTRAINT fk_b0988c7c0a FOREIGN KEY (owner_id) REFERENCES public.users(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: favourites fk_b0e856845e; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.favourites
|
|
|
|
ADD CONSTRAINT fk_b0e856845e FOREIGN KEY (status_id) REFERENCES public.statuses(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: mutes fk_b8d8daf315; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.mutes
|
|
|
|
ADD CONSTRAINT fk_b8d8daf315 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: reports fk_bca45b75fd; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.reports
|
|
|
|
ADD CONSTRAINT fk_bca45b75fd FOREIGN KEY (action_taken_by_account_id) REFERENCES public.accounts(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: identities fk_bea040f377; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.identities
|
|
|
|
ADD CONSTRAINT fk_bea040f377 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: notifications fk_c141c8ee55; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.notifications
|
|
|
|
ADD CONSTRAINT fk_c141c8ee55 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: statuses fk_c7fa917661; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.statuses
|
|
|
|
ADD CONSTRAINT fk_c7fa917661 FOREIGN KEY (in_reply_to_account_id) REFERENCES public.accounts(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: status_pins fk_d4cb435b62; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.status_pins
|
|
|
|
ADD CONSTRAINT fk_d4cb435b62 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: session_activations fk_e5fda67334; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.session_activations
|
|
|
|
ADD CONSTRAINT fk_e5fda67334 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_tokens fk_e84df68546; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.oauth_access_tokens
|
|
|
|
ADD CONSTRAINT fk_e84df68546 FOREIGN KEY (resource_owner_id) REFERENCES public.users(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: reports fk_eb37af34f0; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.reports
|
|
|
|
ADD CONSTRAINT fk_eb37af34f0 FOREIGN KEY (target_account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: mutes fk_eecff219ea; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.mutes
|
|
|
|
ADD CONSTRAINT fk_eecff219ea FOREIGN KEY (target_account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: oauth_access_tokens fk_f5fc4c1ee3; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.oauth_access_tokens
|
|
|
|
ADD CONSTRAINT fk_f5fc4c1ee3 FOREIGN KEY (application_id) REFERENCES public.oauth_applications(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: notifications fk_fbd6b0bf9e; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.notifications
|
|
|
|
ADD CONSTRAINT fk_fbd6b0bf9e FOREIGN KEY (from_account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: tag_follows fk_rails_091e831473; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.tag_follows
|
|
|
|
ADD CONSTRAINT fk_rails_091e831473 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: backups fk_rails_096669d221; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.backups
|
|
|
|
ADD CONSTRAINT fk_rails_096669d221 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: tag_follows fk_rails_0deefe597f; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.tag_follows
|
|
|
|
ADD CONSTRAINT fk_rails_0deefe597f FOREIGN KEY (tag_id) REFERENCES public.tags(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: bookmarks fk_rails_11207ffcfd; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.bookmarks
|
|
|
|
ADD CONSTRAINT fk_rails_11207ffcfd FOREIGN KEY (status_id) REFERENCES public.statuses(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
-- Name: account_conversations fk_rails_1491654f9f; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_conversations
|
|
|
|
ADD CONSTRAINT fk_rails_1491654f9f FOREIGN KEY (conversation_id) REFERENCES public.conversations(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: featured_tags fk_rails_174efcf15f; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.featured_tags
|
|
|
|
ADD CONSTRAINT fk_rails_174efcf15f FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
2022-05-01 00:14:31 +00:00
|
|
|
-- Name: canonical_email_blocks fk_rails_1ecb262096; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
ALTER TABLE ONLY public.canonical_email_blocks
|
|
|
|
ADD CONSTRAINT fk_rails_1ecb262096 FOREIGN KEY (reference_account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
2019-01-20 21:44:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_stats fk_rails_215bb31ff1; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_stats
|
|
|
|
ADD CONSTRAINT fk_rails_215bb31ff1 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: accounts fk_rails_2320833084; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.accounts
|
|
|
|
ADD CONSTRAINT fk_rails_2320833084 FOREIGN KEY (moved_to_account_id) REFERENCES public.accounts(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: featured_tags fk_rails_23a9055c7c; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.featured_tags
|
|
|
|
ADD CONSTRAINT fk_rails_23a9055c7c FOREIGN KEY (tag_id) REFERENCES public.tags(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: scheduled_statuses fk_rails_23bd9018f9; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.scheduled_statuses
|
|
|
|
ADD CONSTRAINT fk_rails_23bd9018f9 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: account_statuses_cleanup_policies fk_rails_23d5f73cfe; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_statuses_cleanup_policies
|
|
|
|
ADD CONSTRAINT fk_rails_23d5f73cfe FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: statuses fk_rails_256483a9ab; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.statuses
|
|
|
|
ADD CONSTRAINT fk_rails_256483a9ab FOREIGN KEY (reblog_of_id) REFERENCES public.statuses(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: account_notes fk_rails_2801b48f1a; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_notes
|
|
|
|
ADD CONSTRAINT fk_rails_2801b48f1a FOREIGN KEY (target_account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_filter_statuses fk_rails_2f6d20c0cf; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.custom_filter_statuses
|
|
|
|
ADD CONSTRAINT fk_rails_2f6d20c0cf FOREIGN KEY (status_id) REFERENCES public.statuses(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: media_attachments fk_rails_31fc5aeef1; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.media_attachments
|
|
|
|
ADD CONSTRAINT fk_rails_31fc5aeef1 FOREIGN KEY (scheduled_status_id) REFERENCES public.scheduled_statuses(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: preview_card_trends fk_rails_371593db34; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.preview_card_trends
|
|
|
|
ADD CONSTRAINT fk_rails_371593db34 FOREIGN KEY (preview_card_id) REFERENCES public.preview_cards(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: user_invite_requests fk_rails_3773f15361; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.user_invite_requests
|
|
|
|
ADD CONSTRAINT fk_rails_3773f15361 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: lists fk_rails_3853b78dac; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.lists
|
|
|
|
ADD CONSTRAINT fk_rails_3853b78dac FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: devices fk_rails_393f74df68; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.devices
|
|
|
|
ADD CONSTRAINT fk_rails_393f74df68 FOREIGN KEY (access_token_id) REFERENCES public.oauth_access_tokens(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: polls fk_rails_3e0d9f1115; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.polls
|
|
|
|
ADD CONSTRAINT fk_rails_3e0d9f1115 FOREIGN KEY (status_id) REFERENCES public.statuses(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: media_attachments fk_rails_3ec0cfdd70; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.media_attachments
|
|
|
|
ADD CONSTRAINT fk_rails_3ec0cfdd70 FOREIGN KEY (status_id) REFERENCES public.statuses(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_moderation_notes fk_rails_3f8b75089b; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_moderation_notes
|
|
|
|
ADD CONSTRAINT fk_rails_3f8b75089b FOREIGN KEY (account_id) REFERENCES public.accounts(id);
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: email_domain_blocks fk_rails_408efe0a15; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.email_domain_blocks
|
|
|
|
ADD CONSTRAINT fk_rails_408efe0a15 FOREIGN KEY (parent_id) REFERENCES public.email_domain_blocks(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: list_accounts fk_rails_40f9cc29f1; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.list_accounts
|
|
|
|
ADD CONSTRAINT fk_rails_40f9cc29f1 FOREIGN KEY (follow_id) REFERENCES public.follows(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: account_deletion_requests fk_rails_45bf2626b9; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_deletion_requests
|
|
|
|
ADD CONSTRAINT fk_rails_45bf2626b9 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: status_stats fk_rails_4a247aac42; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.status_stats
|
|
|
|
ADD CONSTRAINT fk_rails_4a247aac42 FOREIGN KEY (status_id) REFERENCES public.statuses(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: reports fk_rails_4e7a498fb4; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.reports
|
|
|
|
ADD CONSTRAINT fk_rails_4e7a498fb4 FOREIGN KEY (assigned_account_id) REFERENCES public.accounts(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: account_notes fk_rails_4ee4503c69; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_notes
|
|
|
|
ADD CONSTRAINT fk_rails_4ee4503c69 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: appeals fk_rails_501c3a6e13; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.appeals
|
|
|
|
ADD CONSTRAINT fk_rails_501c3a6e13 FOREIGN KEY (rejected_by_account_id) REFERENCES public.accounts(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: mentions fk_rails_59edbe2887; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.mentions
|
|
|
|
ADD CONSTRAINT fk_rails_59edbe2887 FOREIGN KEY (status_id) REFERENCES public.statuses(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_filter_keywords fk_rails_5a49a74012; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.custom_filter_keywords
|
|
|
|
ADD CONSTRAINT fk_rails_5a49a74012 FOREIGN KEY (custom_filter_id) REFERENCES public.custom_filters(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: conversation_mutes fk_rails_5ab139311f; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.conversation_mutes
|
|
|
|
ADD CONSTRAINT fk_rails_5ab139311f FOREIGN KEY (conversation_id) REFERENCES public.conversations(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: polls fk_rails_5b19a0c011; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.polls
|
|
|
|
ADD CONSTRAINT fk_rails_5b19a0c011 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: users fk_rails_642f17018b; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.users
|
|
|
|
ADD CONSTRAINT fk_rails_642f17018b FOREIGN KEY (role_id) REFERENCES public.user_roles(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: status_pins fk_rails_65c05552f1; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.status_pins
|
|
|
|
ADD CONSTRAINT fk_rails_65c05552f1 FOREIGN KEY (status_id) REFERENCES public.statuses(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: status_trends fk_rails_68c610dc1a; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.status_trends
|
|
|
|
ADD CONSTRAINT fk_rails_68c610dc1a FOREIGN KEY (status_id) REFERENCES public.statuses(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-11-12 20:59:47 +00:00
|
|
|
--
|
|
|
|
-- Name: account_conversations fk_rails_6f5278b6e9; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_conversations
|
|
|
|
ADD CONSTRAINT fk_rails_6f5278b6e9 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: announcement_reactions fk_rails_7444ad831f; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.announcement_reactions
|
|
|
|
ADD CONSTRAINT fk_rails_7444ad831f FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: web_push_subscriptions fk_rails_751a9f390b; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.web_push_subscriptions
|
|
|
|
ADD CONSTRAINT fk_rails_751a9f390b FOREIGN KEY (access_token_id) REFERENCES public.oauth_access_tokens(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: report_notes fk_rails_7fa83a61eb; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.report_notes
|
|
|
|
ADD CONSTRAINT fk_rails_7fa83a61eb FOREIGN KEY (report_id) REFERENCES public.reports(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: list_accounts fk_rails_85fee9d6ab; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.list_accounts
|
|
|
|
ADD CONSTRAINT fk_rails_85fee9d6ab FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_filters fk_rails_8b8d786993; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.custom_filters
|
|
|
|
ADD CONSTRAINT fk_rails_8b8d786993 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: account_warnings fk_rails_8f2bab4b16; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_warnings
|
|
|
|
ADD CONSTRAINT fk_rails_8f2bab4b16 FOREIGN KEY (report_id) REFERENCES public.reports(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: users fk_rails_8fb2a43e88; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.users
|
|
|
|
ADD CONSTRAINT fk_rails_8fb2a43e88 FOREIGN KEY (invite_id) REFERENCES public.invites(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: statuses fk_rails_94a6f70399; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.statuses
|
|
|
|
ADD CONSTRAINT fk_rails_94a6f70399 FOREIGN KEY (in_reply_to_id) REFERENCES public.statuses(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: announcement_mutes fk_rails_9c99f8e835; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.announcement_mutes
|
|
|
|
ADD CONSTRAINT fk_rails_9c99f8e835 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: appeals fk_rails_9deb2f63ad; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.appeals
|
|
|
|
ADD CONSTRAINT fk_rails_9deb2f63ad FOREIGN KEY (approved_by_account_id) REFERENCES public.accounts(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: bookmarks fk_rails_9f6ac182a6; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.bookmarks
|
|
|
|
ADD CONSTRAINT fk_rails_9f6ac182a6 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: announcement_reactions fk_rails_a1226eaa5c; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.announcement_reactions
|
|
|
|
ADD CONSTRAINT fk_rails_a1226eaa5c FOREIGN KEY (announcement_id) REFERENCES public.announcements(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: account_pins fk_rails_a176e26c37; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_pins
|
|
|
|
ADD CONSTRAINT fk_rails_a176e26c37 FOREIGN KEY (target_account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: encrypted_messages fk_rails_a42ad0f8d5; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.encrypted_messages
|
|
|
|
ADD CONSTRAINT fk_rails_a42ad0f8d5 FOREIGN KEY (from_account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: webauthn_credentials fk_rails_a4355aef77; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.webauthn_credentials
|
|
|
|
ADD CONSTRAINT fk_rails_a4355aef77 FOREIGN KEY (user_id) REFERENCES public.users(id);
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: account_warnings fk_rails_a65a1bf71b; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_warnings
|
|
|
|
ADD CONSTRAINT fk_rails_a65a1bf71b FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: status_trends fk_rails_a6b527ea49; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.status_trends
|
|
|
|
ADD CONSTRAINT fk_rails_a6b527ea49 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: poll_votes fk_rails_a6e6974b7e; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.poll_votes
|
|
|
|
ADD CONSTRAINT fk_rails_a6e6974b7e FOREIGN KEY (poll_id) REFERENCES public.polls(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: markers fk_rails_a7009bc2b6; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.markers
|
|
|
|
ADD CONSTRAINT fk_rails_a7009bc2b6 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: admin_action_logs fk_rails_a7667297fa; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.admin_action_logs
|
|
|
|
ADD CONSTRAINT fk_rails_a7667297fa FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: devices fk_rails_a796b75798; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.devices
|
|
|
|
ADD CONSTRAINT fk_rails_a796b75798 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: account_warnings fk_rails_a7ebbb1e37; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_warnings
|
|
|
|
ADD CONSTRAINT fk_rails_a7ebbb1e37 FOREIGN KEY (target_account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: encrypted_messages fk_rails_a83e4df7ae; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.encrypted_messages
|
|
|
|
ADD CONSTRAINT fk_rails_a83e4df7ae FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: status_edits fk_rails_a960f234a0; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.status_edits
|
|
|
|
ADD CONSTRAINT fk_rails_a960f234a0 FOREIGN KEY (status_id) REFERENCES public.statuses(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: appeals fk_rails_a99f14546e; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.appeals
|
|
|
|
ADD CONSTRAINT fk_rails_a99f14546e FOREIGN KEY (account_warning_id) REFERENCES public.account_warnings(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: web_push_subscriptions fk_rails_b006f28dac; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.web_push_subscriptions
|
|
|
|
ADD CONSTRAINT fk_rails_b006f28dac FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-05-05 22:02:14 +00:00
|
|
|
--
|
|
|
|
-- Name: poll_votes fk_rails_b6c18cf44a; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.poll_votes
|
|
|
|
ADD CONSTRAINT fk_rails_b6c18cf44a FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: announcement_reactions fk_rails_b742c91c0e; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.announcement_reactions
|
|
|
|
ADD CONSTRAINT fk_rails_b742c91c0e FOREIGN KEY (custom_emoji_id) REFERENCES public.custom_emojis(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: account_migrations fk_rails_c9f701caaf; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_migrations
|
|
|
|
ADD CONSTRAINT fk_rails_c9f701caaf FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-08-19 21:46:48 +00:00
|
|
|
--
|
|
|
|
-- Name: report_notes fk_rails_cae66353f3; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.report_notes
|
|
|
|
ADD CONSTRAINT fk_rails_cae66353f3 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: one_time_keys fk_rails_d3edd8c878; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.one_time_keys
|
|
|
|
ADD CONSTRAINT fk_rails_d3edd8c878 FOREIGN KEY (device_id) REFERENCES public.devices(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-09-23 05:19:02 +00:00
|
|
|
--
|
|
|
|
-- Name: account_pins fk_rails_d44979e5dd; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_pins
|
|
|
|
ADD CONSTRAINT fk_rails_d44979e5dd FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: account_migrations fk_rails_d9a8dad070; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_migrations
|
|
|
|
ADD CONSTRAINT fk_rails_d9a8dad070 FOREIGN KEY (target_account_id) REFERENCES public.accounts(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: status_edits fk_rails_dc8988c545; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.status_edits
|
|
|
|
ADD CONSTRAINT fk_rails_dc8988c545 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: account_moderation_notes fk_rails_dd62ed5ac3; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_moderation_notes
|
|
|
|
ADD CONSTRAINT fk_rails_dd62ed5ac3 FOREIGN KEY (target_account_id) REFERENCES public.accounts(id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: statuses_tags fk_rails_df0fe11427; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.statuses_tags
|
|
|
|
ADD CONSTRAINT fk_rails_df0fe11427 FOREIGN KEY (status_id) REFERENCES public.statuses(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: follow_recommendation_suppressions fk_rails_dfb9a1dbe2; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.follow_recommendation_suppressions
|
|
|
|
ADD CONSTRAINT fk_rails_dfb9a1dbe2 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-12-02 23:09:58 +00:00
|
|
|
--
|
|
|
|
-- Name: custom_filter_statuses fk_rails_e2ddaf5b14; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.custom_filter_statuses
|
|
|
|
ADD CONSTRAINT fk_rails_e2ddaf5b14 FOREIGN KEY (custom_filter_id) REFERENCES public.custom_filters(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: announcement_mutes fk_rails_e35401adf1; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.announcement_mutes
|
|
|
|
ADD CONSTRAINT fk_rails_e35401adf1 FOREIGN KEY (announcement_id) REFERENCES public.announcements(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: login_activities fk_rails_e4b6396b41; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.login_activities
|
|
|
|
ADD CONSTRAINT fk_rails_e4b6396b41 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: list_accounts fk_rails_e54e356c88; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.list_accounts
|
|
|
|
ADD CONSTRAINT fk_rails_e54e356c88 FOREIGN KEY (list_id) REFERENCES public.lists(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: appeals fk_rails_ea84881569; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.appeals
|
|
|
|
ADD CONSTRAINT fk_rails_ea84881569 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-01-20 21:44:06 +00:00
|
|
|
--
|
|
|
|
-- Name: users fk_rails_ecc9536e7c; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.users
|
|
|
|
ADD CONSTRAINT fk_rails_ecc9536e7c FOREIGN KEY (created_by_application_id) REFERENCES public.oauth_applications(id) ON DELETE SET NULL;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tombstones fk_rails_f95b861449; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.tombstones
|
|
|
|
ADD CONSTRAINT fk_rails_f95b861449 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2020-05-03 01:02:29 +00:00
|
|
|
--
|
|
|
|
-- Name: account_aliases fk_rails_fc91575d08; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.account_aliases
|
|
|
|
ADD CONSTRAINT fk_rails_fc91575d08 FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- Name: invites fk_rails_ff69dbb2ac; Type: FK CONSTRAINT; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.invites
|
|
|
|
ADD CONSTRAINT fk_rails_ff69dbb2ac FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2022-05-01 00:14:31 +00:00
|
|
|
--
|
|
|
|
-- Name: instances; Type: MATERIALIZED VIEW DATA; Schema: public; Owner: pinafore
|
|
|
|
--
|
|
|
|
|
|
|
|
REFRESH MATERIALIZED VIEW public.instances;
|
|
|
|
|
|
|
|
|
2018-04-11 01:39:56 +00:00
|
|
|
--
|
|
|
|
-- PostgreSQL database dump complete
|
|
|
|
--
|
|
|
|
|