|
2 | 2 | -- PostgreSQL database dump |
3 | 3 | -- |
4 | 4 |
|
5 | | --- Dumped from database version 9.6.2 |
6 | | --- Dumped by pg_dump version 9.6.2 |
| 5 | +-- Dumped from database version 9.6.3 |
| 6 | +-- Dumped by pg_dump version 9.6.3 |
7 | 7 |
|
8 | 8 | SET statement_timeout = 0; |
9 | 9 | SET lock_timeout = 0; |
@@ -109,6 +109,52 @@ CREATE SEQUENCE comments_id_seq |
109 | 109 | ALTER SEQUENCE comments_id_seq OWNED BY comments.id; |
110 | 110 |
|
111 | 111 |
|
| 112 | +-- |
| 113 | +-- Name: employees; Type: TABLE; Schema: public; Owner: - |
| 114 | +-- |
| 115 | + |
| 116 | +CREATE TABLE employees ( |
| 117 | + id integer NOT NULL, |
| 118 | + last_name character varying, |
| 119 | + first_name character varying, |
| 120 | + title character varying, |
| 121 | + title_of_courtesy character varying, |
| 122 | + birth_date date, |
| 123 | + hire_date date, |
| 124 | + address character varying, |
| 125 | + city character varying, |
| 126 | + region character varying, |
| 127 | + postal_code character varying, |
| 128 | + country character varying, |
| 129 | + home_phone character varying, |
| 130 | + extension character varying, |
| 131 | + photo character varying, |
| 132 | + notes text, |
| 133 | + reports_to integer, |
| 134 | + created_at timestamp without time zone, |
| 135 | + updated_at timestamp without time zone |
| 136 | +); |
| 137 | + |
| 138 | + |
| 139 | +-- |
| 140 | +-- Name: employees_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
| 141 | +-- |
| 142 | + |
| 143 | +CREATE SEQUENCE employees_id_seq |
| 144 | + START WITH 1 |
| 145 | + INCREMENT BY 1 |
| 146 | + NO MINVALUE |
| 147 | + NO MAXVALUE |
| 148 | + CACHE 1; |
| 149 | + |
| 150 | + |
| 151 | +-- |
| 152 | +-- Name: employees_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
| 153 | +-- |
| 154 | + |
| 155 | +ALTER SEQUENCE employees_id_seq OWNED BY employees.id; |
| 156 | + |
| 157 | + |
112 | 158 | -- |
113 | 159 | -- Name: posts; Type: TABLE; Schema: public; Owner: - |
114 | 160 | -- |
@@ -255,6 +301,13 @@ ALTER TABLE ONLY categories ALTER COLUMN id SET DEFAULT nextval('categories_id_s |
255 | 301 | ALTER TABLE ONLY comments ALTER COLUMN id SET DEFAULT nextval('comments_id_seq'::regclass); |
256 | 302 |
|
257 | 303 |
|
| 304 | +-- |
| 305 | +-- Name: employees id; Type: DEFAULT; Schema: public; Owner: - |
| 306 | +-- |
| 307 | + |
| 308 | +ALTER TABLE ONLY employees ALTER COLUMN id SET DEFAULT nextval('employees_id_seq'::regclass); |
| 309 | + |
| 310 | + |
258 | 311 | -- |
259 | 312 | -- Name: posts id; Type: DEFAULT; Schema: public; Owner: - |
260 | 313 | -- |
@@ -300,6 +353,14 @@ ALTER TABLE ONLY comments |
300 | 353 | ADD CONSTRAINT comments_pkey PRIMARY KEY (id); |
301 | 354 |
|
302 | 355 |
|
| 356 | +-- |
| 357 | +-- Name: employees employees_pkey; Type: CONSTRAINT; Schema: public; Owner: - |
| 358 | +-- |
| 359 | + |
| 360 | +ALTER TABLE ONLY employees |
| 361 | + ADD CONSTRAINT employees_pkey PRIMARY KEY (id); |
| 362 | + |
| 363 | + |
303 | 364 | -- |
304 | 365 | -- Name: posts posts_pkey; Type: CONSTRAINT; Schema: public; Owner: - |
305 | 366 | -- |
@@ -423,6 +484,7 @@ INSERT INTO "schema_migrations" (version) VALUES |
423 | 484 | ('20170328194726'), |
424 | 485 | ('20170418135338'), |
425 | 486 | ('20170504204400'), |
426 | | -('20170508090812'); |
| 487 | +('20170508090812'), |
| 488 | +('20170516130923'); |
427 | 489 |
|
428 | 490 |
|
0 commit comments