forked from Pistos/Mathetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema-memo.sql
90 lines (61 loc) · 1.77 KB
/
schema-memo.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
--
-- PostgreSQL database dump
--
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- Name: reby-memo; Type: DATABASE; Schema: -; Owner: -
--
CREATE DATABASE "reby-memo" WITH TEMPLATE = template0 ENCODING = 'SQL_ASCII';
\connect "reby-memo"
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = true;
--
-- Name: memos; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE memos (
id integer NOT NULL,
sender character varying(128),
recipient character varying(128),
time_sent timestamp without time zone DEFAULT now() NOT NULL,
time_told timestamp without time zone,
message character varying(4096),
recipient_regexp character varying(128)
);
--
-- Name: memos_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE memos_id_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
--
-- Name: memos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE memos_id_seq OWNED BY memos.id;
--
-- Name: memos_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
--
SELECT pg_catalog.setval('memos_id_seq', 1, true);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE memos ALTER COLUMN id SET DEFAULT nextval('memos_id_seq'::regclass);
--
-- Name: memos_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY memos
ADD CONSTRAINT memos_pkey PRIMARY KEY (id);
--
-- PostgreSQL database dump complete
--