Created
October 15, 2022 18:12
-
-
Save zew13/995659a6f57547814d49e3d1c5aef706 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- | |
| -- PostgreSQL database dump | |
| -- | |
| 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; | |
| SET xmloption = content; | |
| SET client_min_messages = warning; | |
| SET row_security = off; | |
| -- | |
| -- Name: public; Type: SCHEMA; Schema: -; Owner: - | |
| -- | |
| CREATE SCHEMA public; | |
| -- | |
| -- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: - | |
| -- | |
| COMMENT ON SCHEMA public IS 'standard public schema'; | |
| SET default_tablespace = ''; | |
| SET default_table_access_method = heap; | |
| -- | |
| -- Name: mail_user; Type: TABLE; Schema: public; Owner: - | |
| -- | |
| CREATE TABLE public.mail_user ( | |
| id bigint NOT NULL, | |
| oid bigint NOT NULL, | |
| ctime bigint NOT NULL, | |
| mail_id bigint NOT NULL, | |
| password_hash public.hash NOT NULL | |
| ); | |
| -- | |
| -- Name: upsert_password_hash(bigint, bigint, bigint, public.hash); Type: FUNCTION; Schema: public; Owner: - | |
| -- | |
| CREATE FUNCTION public.upsert_password_hash(oid bigint, ctime bigint, mail_id bigint, password_hash bytea) RETURNS void | |
| LANGUAGE sql | |
| BEGIN ATOMIC | |
| INSERT INTO public.mail_user (oid, ctime, mail_id, password_hash) | |
| VALUES (upsert_password_hash.oid, upsert_password_hash.ctime, upsert_password_hash.mail_id, upsert_password_hash.password_hash); | |
| END; | |
| -- | |
| -- Name: mail_user_id_seq; Type: SEQUENCE; Schema: public; Owner: - | |
| -- | |
| CREATE SEQUENCE public.mail_user_id_seq | |
| START WITH 1 | |
| INCREMENT BY 1 | |
| NO MINVALUE | |
| NO MAXVALUE | |
| CACHE 1; | |
| -- | |
| -- Name: mail_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - | |
| -- | |
| ALTER SEQUENCE public.mail_user_id_seq OWNED BY public.mail_user.id; | |
| -- | |
| -- Name: mail_user_log_id_seq; Type: SEQUENCE; Schema: public; Owner: - | |
| -- | |
| CREATE SEQUENCE public.mail_user_log_id_seq | |
| START WITH 1 | |
| INCREMENT BY 1 | |
| NO MINVALUE | |
| NO MAXVALUE | |
| CACHE 1; | |
| -- | |
| -- Name: mail_user_log; Type: TABLE; Schema: public; Owner: - | |
| -- | |
| CREATE TABLE public.mail_user_log ( | |
| id bigint DEFAULT nextval('public.mail_user_log_id_seq'::regclass) NOT NULL, | |
| oid bigint NOT NULL, | |
| ctime bigint NOT NULL, | |
| mail_id bigint NOT NULL, | |
| password_hash public.hash NOT NULL | |
| ); | |
| -- | |
| -- Name: mail_user id; Type: DEFAULT; Schema: public; Owner: - | |
| -- | |
| ALTER TABLE ONLY public.mail_user ALTER COLUMN id SET DEFAULT nextval('public.mail_user_id_seq'::regclass); | |
| -- | |
| -- Name: mail_user mail_user.oid.mail_id; Type: CONSTRAINT; Schema: public; Owner: - | |
| -- | |
| ALTER TABLE ONLY public.mail_user | |
| ADD CONSTRAINT "mail_user.oid.mail_id" UNIQUE (oid, mail_id); | |
| -- | |
| -- Name: mail_user_log mail_user_bak_pkey; Type: CONSTRAINT; Schema: public; Owner: - | |
| -- | |
| ALTER TABLE ONLY public.mail_user_log | |
| ADD CONSTRAINT mail_user_bak_pkey PRIMARY KEY (id); | |
| -- | |
| -- Name: mail_user mail_user_pkey; Type: CONSTRAINT; Schema: public; Owner: - | |
| -- | |
| ALTER TABLE ONLY public.mail_user | |
| ADD CONSTRAINT mail_user_pkey PRIMARY KEY (id); | |
| -- | |
| -- PostgreSQL database dump complete | |
| -- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment