Guest User

Untitled

a guest
Jun 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. --
  2. -- PostgreSQL database dump
  3. --
  4.  
  5. SET client_encoding = 'SQL_ASCII';
  6. SET standard_conforming_strings = off;
  7. SET check_function_bodies = false;
  8. SET client_min_messages = warning;
  9. SET escape_string_warning = off;
  10.  
  11. --
  12. -- Name: reby-memo; Type: DATABASE; Schema: -; Owner: -
  13. --
  14.  
  15. CREATE DATABASE "reby-memo" WITH TEMPLATE = template0 ENCODING = 'SQL_ASCII';
  16.  
  17.  
  18. \connect "reby-memo"
  19.  
  20. SET client_encoding = 'SQL_ASCII';
  21. SET standard_conforming_strings = off;
  22. SET check_function_bodies = false;
  23. SET client_min_messages = warning;
  24. SET escape_string_warning = off;
  25.  
  26. SET search_path = public, pg_catalog;
  27.  
  28. SET default_tablespace = '';
  29.  
  30. SET default_with_oids = true;
  31.  
  32. --
  33. -- Name: memos; Type: TABLE; Schema: public; Owner: -; Tablespace:
  34. --
  35.  
  36. CREATE TABLE memos (
  37. id integer NOT NULL,
  38. sender character varying(128),
  39. recipient character varying(128),
  40. time_sent timestamp without time zone DEFAULT now() NOT NULL,
  41. time_told timestamp without time zone,
  42. message character varying(4096),
  43. recipient_regexp character varying(128)
  44. );
  45.  
  46.  
  47. --
  48. -- Name: memos_id_seq; Type: SEQUENCE; Schema: public; Owner: -
  49. --
  50.  
  51. CREATE SEQUENCE memos_id_seq
  52. INCREMENT BY 1
  53. NO MAXVALUE
  54. NO MINVALUE
  55. CACHE 1;
  56.  
  57.  
  58. --
  59. -- Name: memos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
  60. --
  61.  
  62. ALTER SEQUENCE memos_id_seq OWNED BY memos.id;
  63.  
  64.  
  65. --
  66. -- Name: memos_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
  67. --
  68.  
  69. SELECT pg_catalog.setval('memos_id_seq', 1, true);
  70.  
  71.  
  72. --
  73. -- Name: id; Type: DEFAULT; Schema: public; Owner: -
  74. --
  75.  
  76. ALTER TABLE memos ALTER COLUMN id SET DEFAULT nextval('memos_id_seq'::regclass);
  77.  
  78.  
  79. --
  80. -- Name: memos_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
  81. --
  82.  
  83. ALTER TABLE ONLY memos
  84. ADD CONSTRAINT memos_pkey PRIMARY KEY (id);
  85.  
  86.  
  87. --
  88. -- PostgreSQL database dump complete
  89. --
Add Comment
Please, Sign In to add comment