mina-data_sync 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 429517b17021caf055dc326bfb23e0bc55da21d6
4
+ data.tar.gz: b98ec01c2d3b2e0390acded7637a79ec749cc810
5
+ SHA512:
6
+ metadata.gz: 0fc73f6aceb2f5e43fb6363fd9525cef76a8f21897994165de93066d40a03f5f3336bbfcd40b2e27f40a150f06de689c8735022527796d5e5dfd948de20bcefa
7
+ data.tar.gz: 659c4cf0c66fb7199201e135e2857e80d592f6c0f66c386720b6104973fb78e73b6a172cc8459b7e9b9cf4cbb2dcae6c92ddd15b7814fe0f58b39b0a5187aa9e
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in mina-data_sync.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Stjepan Hadjic
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # Mina::DataSync
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'mina-data_sync'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install mina-data_sync
20
+
21
+ ## Usage
22
+
23
+ TODO: Write usage instructions here
24
+
25
+ ## Contributing
26
+
27
+ 1. Fork it ( https://github.com/[my-github-username]/mina-data_sync/fork )
28
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
29
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
30
+ 4. Push to the branch (`git push origin my-new-feature`)
31
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,2845 @@
1
+ --
2
+ -- PostgreSQL database dump
3
+ --
4
+
5
+ SET statement_timeout = 0;
6
+ SET lock_timeout = 0;
7
+ SET client_encoding = 'UTF8';
8
+ SET standard_conforming_strings = on;
9
+ SET check_function_bodies = false;
10
+ SET client_min_messages = warning;
11
+
12
+ --
13
+ -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
14
+ --
15
+
16
+ CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
17
+
18
+
19
+ --
20
+ -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
21
+ --
22
+
23
+ COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
24
+
25
+
26
+ --
27
+ -- Name: adminpack; Type: EXTENSION; Schema: -; Owner:
28
+ --
29
+
30
+ CREATE EXTENSION IF NOT EXISTS adminpack WITH SCHEMA pg_catalog;
31
+
32
+
33
+ --
34
+ -- Name: EXTENSION adminpack; Type: COMMENT; Schema: -; Owner:
35
+ --
36
+
37
+ COMMENT ON EXTENSION adminpack IS 'administrative functions for PostgreSQL';
38
+
39
+
40
+ --
41
+ -- Name: pgcrypto; Type: EXTENSION; Schema: -; Owner:
42
+ --
43
+
44
+ CREATE EXTENSION IF NOT EXISTS pgcrypto WITH SCHEMA public;
45
+
46
+
47
+ --
48
+ -- Name: EXTENSION pgcrypto; Type: COMMENT; Schema: -; Owner:
49
+ --
50
+
51
+ COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions';
52
+
53
+
54
+ SET search_path = public, pg_catalog;
55
+
56
+ SET default_tablespace = '';
57
+
58
+ SET default_with_oids = false;
59
+
60
+ --
61
+ -- Name: attachments; Type: TABLE; Schema: public; Owner: staging; Tablespace:
62
+ --
63
+
64
+ CREATE TABLE attachments (
65
+ id integer NOT NULL,
66
+ attached_to_id integer,
67
+ attached_to_type character varying(255),
68
+ created_at timestamp without time zone,
69
+ updated_at timestamp without time zone,
70
+ file_file_name character varying(255),
71
+ file_content_type character varying(255),
72
+ file_file_size integer,
73
+ file_updated_at timestamp without time zone,
74
+ category character varying(255)
75
+ );
76
+
77
+
78
+ ALTER TABLE public.attachments OWNER TO staging;
79
+
80
+ --
81
+ -- Name: attachments_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
82
+ --
83
+
84
+ CREATE SEQUENCE attachments_id_seq
85
+ START WITH 1
86
+ INCREMENT BY 1
87
+ NO MINVALUE
88
+ NO MAXVALUE
89
+ CACHE 1;
90
+
91
+
92
+ ALTER TABLE public.attachments_id_seq OWNER TO staging;
93
+
94
+ --
95
+ -- Name: attachments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
96
+ --
97
+
98
+ ALTER SEQUENCE attachments_id_seq OWNED BY attachments.id;
99
+
100
+
101
+ --
102
+ -- Name: base_port_managers; Type: TABLE; Schema: public; Owner: staging; Tablespace:
103
+ --
104
+
105
+ CREATE TABLE base_port_managers (
106
+ id integer NOT NULL,
107
+ name character varying(255),
108
+ contact text,
109
+ charter_company_id integer,
110
+ base_port_id integer
111
+ );
112
+
113
+
114
+ ALTER TABLE public.base_port_managers OWNER TO staging;
115
+
116
+ --
117
+ -- Name: base_port_managers_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
118
+ --
119
+
120
+ CREATE SEQUENCE base_port_managers_id_seq
121
+ START WITH 1
122
+ INCREMENT BY 1
123
+ NO MINVALUE
124
+ NO MAXVALUE
125
+ CACHE 1;
126
+
127
+
128
+ ALTER TABLE public.base_port_managers_id_seq OWNER TO staging;
129
+
130
+ --
131
+ -- Name: base_port_managers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
132
+ --
133
+
134
+ ALTER SEQUENCE base_port_managers_id_seq OWNED BY base_port_managers.id;
135
+
136
+
137
+ --
138
+ -- Name: base_ports; Type: TABLE; Schema: public; Owner: staging; Tablespace:
139
+ --
140
+
141
+ CREATE TABLE base_ports (
142
+ id integer NOT NULL,
143
+ name character varying(255),
144
+ address character varying(255),
145
+ region_id integer,
146
+ contact character varying(255),
147
+ created_at timestamp without time zone,
148
+ updated_at timestamp without time zone,
149
+ latitude double precision,
150
+ longitude double precision,
151
+ city character varying(255),
152
+ description text
153
+ );
154
+
155
+
156
+ ALTER TABLE public.base_ports OWNER TO staging;
157
+
158
+ --
159
+ -- Name: base_ports_charter_companies; Type: TABLE; Schema: public; Owner: staging; Tablespace:
160
+ --
161
+
162
+ CREATE TABLE base_ports_charter_companies (
163
+ id integer NOT NULL,
164
+ charter_company_id integer,
165
+ base_port_id integer,
166
+ city character varying(255),
167
+ address character varying(255),
168
+ country_code character varying(255),
169
+ phone character varying(255),
170
+ fax character varying(255),
171
+ info text,
172
+ created_at timestamp without time zone,
173
+ updated_at timestamp without time zone
174
+ );
175
+
176
+
177
+ ALTER TABLE public.base_ports_charter_companies OWNER TO staging;
178
+
179
+ --
180
+ -- Name: base_ports_charter_companies_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
181
+ --
182
+
183
+ CREATE SEQUENCE base_ports_charter_companies_id_seq
184
+ START WITH 1
185
+ INCREMENT BY 1
186
+ NO MINVALUE
187
+ NO MAXVALUE
188
+ CACHE 1;
189
+
190
+
191
+ ALTER TABLE public.base_ports_charter_companies_id_seq OWNER TO staging;
192
+
193
+ --
194
+ -- Name: base_ports_charter_companies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
195
+ --
196
+
197
+ ALTER SEQUENCE base_ports_charter_companies_id_seq OWNED BY base_ports_charter_companies.id;
198
+
199
+
200
+ --
201
+ -- Name: base_ports_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
202
+ --
203
+
204
+ CREATE SEQUENCE base_ports_id_seq
205
+ START WITH 1
206
+ INCREMENT BY 1
207
+ NO MINVALUE
208
+ NO MAXVALUE
209
+ CACHE 1;
210
+
211
+
212
+ ALTER TABLE public.base_ports_id_seq OWNER TO staging;
213
+
214
+ --
215
+ -- Name: base_ports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
216
+ --
217
+
218
+ ALTER SEQUENCE base_ports_id_seq OWNED BY base_ports.id;
219
+
220
+
221
+ --
222
+ -- Name: catalogues; Type: TABLE; Schema: public; Owner: staging; Tablespace:
223
+ --
224
+
225
+ CREATE TABLE catalogues (
226
+ id integer NOT NULL,
227
+ name character varying(255),
228
+ charter_company_id integer,
229
+ year integer,
230
+ active boolean
231
+ );
232
+
233
+
234
+ ALTER TABLE public.catalogues OWNER TO staging;
235
+
236
+ --
237
+ -- Name: catalogues_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
238
+ --
239
+
240
+ CREATE SEQUENCE catalogues_id_seq
241
+ START WITH 1
242
+ INCREMENT BY 1
243
+ NO MINVALUE
244
+ NO MAXVALUE
245
+ CACHE 1;
246
+
247
+
248
+ ALTER TABLE public.catalogues_id_seq OWNER TO staging;
249
+
250
+ --
251
+ -- Name: catalogues_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
252
+ --
253
+
254
+ ALTER SEQUENCE catalogues_id_seq OWNED BY catalogues.id;
255
+
256
+
257
+ --
258
+ -- Name: charter_companies; Type: TABLE; Schema: public; Owner: staging; Tablespace:
259
+ --
260
+
261
+ CREATE TABLE charter_companies (
262
+ id integer NOT NULL,
263
+ code character varying(255),
264
+ name character varying(255),
265
+ fullname character varying(255),
266
+ city character varying(255),
267
+ address character varying(255),
268
+ phone character varying(255),
269
+ fax character varying(255),
270
+ url character varying(255),
271
+ email character varying(255),
272
+ country_code character varying(255),
273
+ created_at timestamp without time zone,
274
+ updated_at timestamp without time zone,
275
+ info text,
276
+ general_charter_conditions text,
277
+ payment_type_id integer,
278
+ billing_method_id integer,
279
+ account_number character varying(255),
280
+ transit_log_payment_id integer,
281
+ account_for_billing character varying(255),
282
+ check_in_time time without time zone,
283
+ check_out_time time without time zone,
284
+ check_in_day integer,
285
+ check_out_day integer,
286
+ payment_instructions text
287
+ );
288
+
289
+
290
+ ALTER TABLE public.charter_companies OWNER TO staging;
291
+
292
+ --
293
+ -- Name: charter_companies_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
294
+ --
295
+
296
+ CREATE SEQUENCE charter_companies_id_seq
297
+ START WITH 1
298
+ INCREMENT BY 1
299
+ NO MINVALUE
300
+ NO MAXVALUE
301
+ CACHE 1;
302
+
303
+
304
+ ALTER TABLE public.charter_companies_id_seq OWNER TO staging;
305
+
306
+ --
307
+ -- Name: charter_companies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
308
+ --
309
+
310
+ ALTER SEQUENCE charter_companies_id_seq OWNED BY charter_companies.id;
311
+
312
+
313
+ --
314
+ -- Name: charter_company_base_port_infos; Type: TABLE; Schema: public; Owner: staging; Tablespace:
315
+ --
316
+
317
+ CREATE TABLE charter_company_base_port_infos (
318
+ id integer NOT NULL,
319
+ charter_company_id integer,
320
+ base_port_id integer,
321
+ city character varying(255),
322
+ address character varying(255),
323
+ country_code character varying(255),
324
+ phone character varying(255),
325
+ fax character varying(255),
326
+ info text,
327
+ created_at timestamp without time zone,
328
+ updated_at timestamp without time zone
329
+ );
330
+
331
+
332
+ ALTER TABLE public.charter_company_base_port_infos OWNER TO staging;
333
+
334
+ --
335
+ -- Name: charter_company_base_port_infos_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
336
+ --
337
+
338
+ CREATE SEQUENCE charter_company_base_port_infos_id_seq
339
+ START WITH 1
340
+ INCREMENT BY 1
341
+ NO MINVALUE
342
+ NO MAXVALUE
343
+ CACHE 1;
344
+
345
+
346
+ ALTER TABLE public.charter_company_base_port_infos_id_seq OWNER TO staging;
347
+
348
+ --
349
+ -- Name: charter_company_base_port_infos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
350
+ --
351
+
352
+ ALTER SEQUENCE charter_company_base_port_infos_id_seq OWNED BY charter_company_base_port_infos.id;
353
+
354
+
355
+ --
356
+ -- Name: charter_packs; Type: TABLE; Schema: public; Owner: staging; Tablespace:
357
+ --
358
+
359
+ CREATE TABLE charter_packs (
360
+ id integer NOT NULL,
361
+ name character varying(255),
362
+ description text,
363
+ season_id integer
364
+ );
365
+
366
+
367
+ ALTER TABLE public.charter_packs OWNER TO staging;
368
+
369
+ --
370
+ -- Name: charter_packs_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
371
+ --
372
+
373
+ CREATE SEQUENCE charter_packs_id_seq
374
+ START WITH 1
375
+ INCREMENT BY 1
376
+ NO MINVALUE
377
+ NO MAXVALUE
378
+ CACHE 1;
379
+
380
+
381
+ ALTER TABLE public.charter_packs_id_seq OWNER TO staging;
382
+
383
+ --
384
+ -- Name: charter_packs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
385
+ --
386
+
387
+ ALTER SEQUENCE charter_packs_id_seq OWNED BY charter_packs.id;
388
+
389
+
390
+ --
391
+ -- Name: charter_packs_ships; Type: TABLE; Schema: public; Owner: staging; Tablespace:
392
+ --
393
+
394
+ CREATE TABLE charter_packs_ships (
395
+ charter_pack_id integer,
396
+ ship_id integer
397
+ );
398
+
399
+
400
+ ALTER TABLE public.charter_packs_ships OWNER TO staging;
401
+
402
+ --
403
+ -- Name: deposit_items; Type: TABLE; Schema: public; Owner: staging; Tablespace:
404
+ --
405
+
406
+ CREATE TABLE deposit_items (
407
+ id integer NOT NULL,
408
+ name character varying(255),
409
+ price character varying(255),
410
+ deposit_type_id integer,
411
+ charter_company_id integer
412
+ );
413
+
414
+
415
+ ALTER TABLE public.deposit_items OWNER TO staging;
416
+
417
+ --
418
+ -- Name: deposit_items_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
419
+ --
420
+
421
+ CREATE SEQUENCE deposit_items_id_seq
422
+ START WITH 1
423
+ INCREMENT BY 1
424
+ NO MINVALUE
425
+ NO MAXVALUE
426
+ CACHE 1;
427
+
428
+
429
+ ALTER TABLE public.deposit_items_id_seq OWNER TO staging;
430
+
431
+ --
432
+ -- Name: deposit_items_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
433
+ --
434
+
435
+ ALTER SEQUENCE deposit_items_id_seq OWNED BY deposit_items.id;
436
+
437
+
438
+ --
439
+ -- Name: deposit_items_ships; Type: TABLE; Schema: public; Owner: staging; Tablespace:
440
+ --
441
+
442
+ CREATE TABLE deposit_items_ships (
443
+ deposit_item_id integer,
444
+ ship_id integer
445
+ );
446
+
447
+
448
+ ALTER TABLE public.deposit_items_ships OWNER TO staging;
449
+
450
+ --
451
+ -- Name: equipment; Type: TABLE; Schema: public; Owner: staging; Tablespace:
452
+ --
453
+
454
+ CREATE TABLE equipment (
455
+ id integer NOT NULL,
456
+ name character varying(255),
457
+ equipment_type_id integer,
458
+ equipment_category_id integer,
459
+ created_at timestamp without time zone,
460
+ updated_at timestamp without time zone,
461
+ ship_type_id integer,
462
+ "position" integer
463
+ );
464
+
465
+
466
+ ALTER TABLE public.equipment OWNER TO staging;
467
+
468
+ --
469
+ -- Name: equipment_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
470
+ --
471
+
472
+ CREATE SEQUENCE equipment_id_seq
473
+ START WITH 1
474
+ INCREMENT BY 1
475
+ NO MINVALUE
476
+ NO MAXVALUE
477
+ CACHE 1;
478
+
479
+
480
+ ALTER TABLE public.equipment_id_seq OWNER TO staging;
481
+
482
+ --
483
+ -- Name: equipment_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
484
+ --
485
+
486
+ ALTER SEQUENCE equipment_id_seq OWNED BY equipment.id;
487
+
488
+
489
+ --
490
+ -- Name: equipment_ships; Type: TABLE; Schema: public; Owner: staging; Tablespace:
491
+ --
492
+
493
+ CREATE TABLE equipment_ships (
494
+ equipment_id integer NOT NULL,
495
+ ship_id integer NOT NULL
496
+ );
497
+
498
+
499
+ ALTER TABLE public.equipment_ships OWNER TO staging;
500
+
501
+ --
502
+ -- Name: expenses; Type: TABLE; Schema: public; Owner: staging; Tablespace:
503
+ --
504
+
505
+ CREATE TABLE expenses (
506
+ id integer NOT NULL,
507
+ name character varying(255),
508
+ description text,
509
+ created_at timestamp without time zone,
510
+ updated_at timestamp without time zone
511
+ );
512
+
513
+
514
+ ALTER TABLE public.expenses OWNER TO staging;
515
+
516
+ --
517
+ -- Name: expenses_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
518
+ --
519
+
520
+ CREATE SEQUENCE expenses_id_seq
521
+ START WITH 1
522
+ INCREMENT BY 1
523
+ NO MINVALUE
524
+ NO MAXVALUE
525
+ CACHE 1;
526
+
527
+
528
+ ALTER TABLE public.expenses_id_seq OWNER TO staging;
529
+
530
+ --
531
+ -- Name: expenses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
532
+ --
533
+
534
+ ALTER SEQUENCE expenses_id_seq OWNED BY expenses.id;
535
+
536
+
537
+ --
538
+ -- Name: extra_items; Type: TABLE; Schema: public; Owner: staging; Tablespace:
539
+ --
540
+
541
+ CREATE TABLE extra_items (
542
+ id integer NOT NULL,
543
+ name character varying(255),
544
+ charter_company_id integer
545
+ );
546
+
547
+
548
+ ALTER TABLE public.extra_items OWNER TO staging;
549
+
550
+ --
551
+ -- Name: extra_items_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
552
+ --
553
+
554
+ CREATE SEQUENCE extra_items_id_seq
555
+ START WITH 1
556
+ INCREMENT BY 1
557
+ NO MINVALUE
558
+ NO MAXVALUE
559
+ CACHE 1;
560
+
561
+
562
+ ALTER TABLE public.extra_items_id_seq OWNER TO staging;
563
+
564
+ --
565
+ -- Name: extra_items_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
566
+ --
567
+
568
+ ALTER SEQUENCE extra_items_id_seq OWNED BY extra_items.id;
569
+
570
+
571
+ --
572
+ -- Name: extra_items_templates; Type: TABLE; Schema: public; Owner: staging; Tablespace:
573
+ --
574
+
575
+ CREATE TABLE extra_items_templates (
576
+ extra_item_id integer,
577
+ extra_template_id integer
578
+ );
579
+
580
+
581
+ ALTER TABLE public.extra_items_templates OWNER TO staging;
582
+
583
+ --
584
+ -- Name: extra_templates; Type: TABLE; Schema: public; Owner: staging; Tablespace:
585
+ --
586
+
587
+ CREATE TABLE extra_templates (
588
+ id integer NOT NULL,
589
+ name character varying(255),
590
+ charter_company_id integer,
591
+ price double precision
592
+ );
593
+
594
+
595
+ ALTER TABLE public.extra_templates OWNER TO staging;
596
+
597
+ --
598
+ -- Name: extra_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
599
+ --
600
+
601
+ CREATE SEQUENCE extra_templates_id_seq
602
+ START WITH 1
603
+ INCREMENT BY 1
604
+ NO MINVALUE
605
+ NO MAXVALUE
606
+ CACHE 1;
607
+
608
+
609
+ ALTER TABLE public.extra_templates_id_seq OWNER TO staging;
610
+
611
+ --
612
+ -- Name: extra_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
613
+ --
614
+
615
+ ALTER SEQUENCE extra_templates_id_seq OWNED BY extra_templates.id;
616
+
617
+
618
+ --
619
+ -- Name: extra_templates_ships; Type: TABLE; Schema: public; Owner: staging; Tablespace:
620
+ --
621
+
622
+ CREATE TABLE extra_templates_ships (
623
+ extra_template_id integer,
624
+ ship_id integer
625
+ );
626
+
627
+
628
+ ALTER TABLE public.extra_templates_ships OWNER TO staging;
629
+
630
+ --
631
+ -- Name: fees; Type: TABLE; Schema: public; Owner: staging; Tablespace:
632
+ --
633
+
634
+ CREATE TABLE fees (
635
+ id integer NOT NULL,
636
+ charter_company_id integer,
637
+ ship_type_id integer,
638
+ price double precision,
639
+ created_at timestamp without time zone,
640
+ updated_at timestamp without time zone
641
+ );
642
+
643
+
644
+ ALTER TABLE public.fees OWNER TO staging;
645
+
646
+ --
647
+ -- Name: fees_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
648
+ --
649
+
650
+ CREATE SEQUENCE fees_id_seq
651
+ START WITH 1
652
+ INCREMENT BY 1
653
+ NO MINVALUE
654
+ NO MAXVALUE
655
+ CACHE 1;
656
+
657
+
658
+ ALTER TABLE public.fees_id_seq OWNER TO staging;
659
+
660
+ --
661
+ -- Name: fees_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
662
+ --
663
+
664
+ ALTER SEQUENCE fees_id_seq OWNED BY fees.id;
665
+
666
+
667
+ --
668
+ -- Name: images; Type: TABLE; Schema: public; Owner: staging; Tablespace:
669
+ --
670
+
671
+ CREATE TABLE images (
672
+ id integer NOT NULL,
673
+ item_id integer,
674
+ item_type character varying(255),
675
+ image_type_id integer,
676
+ image_file_name character varying(255),
677
+ image_content_type character varying(255),
678
+ image_file_size integer,
679
+ image_updated_at timestamp without time zone,
680
+ created_at timestamp without time zone,
681
+ updated_at timestamp without time zone
682
+ );
683
+
684
+
685
+ ALTER TABLE public.images OWNER TO staging;
686
+
687
+ --
688
+ -- Name: images_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
689
+ --
690
+
691
+ CREATE SEQUENCE images_id_seq
692
+ START WITH 1
693
+ INCREMENT BY 1
694
+ NO MINVALUE
695
+ NO MAXVALUE
696
+ CACHE 1;
697
+
698
+
699
+ ALTER TABLE public.images_id_seq OWNER TO staging;
700
+
701
+ --
702
+ -- Name: images_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
703
+ --
704
+
705
+ ALTER SEQUENCE images_id_seq OWNED BY images.id;
706
+
707
+
708
+ --
709
+ -- Name: periods; Type: TABLE; Schema: public; Owner: staging; Tablespace:
710
+ --
711
+
712
+ CREATE TABLE periods (
713
+ id integer NOT NULL,
714
+ start_date date,
715
+ end_date date,
716
+ created_at timestamp without time zone,
717
+ updated_at timestamp without time zone,
718
+ season_id integer
719
+ );
720
+
721
+
722
+ ALTER TABLE public.periods OWNER TO staging;
723
+
724
+ --
725
+ -- Name: periods_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
726
+ --
727
+
728
+ CREATE SEQUENCE periods_id_seq
729
+ START WITH 1
730
+ INCREMENT BY 1
731
+ NO MINVALUE
732
+ NO MAXVALUE
733
+ CACHE 1;
734
+
735
+
736
+ ALTER TABLE public.periods_id_seq OWNER TO staging;
737
+
738
+ --
739
+ -- Name: periods_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
740
+ --
741
+
742
+ ALTER SEQUENCE periods_id_seq OWNED BY periods.id;
743
+
744
+
745
+ --
746
+ -- Name: price_lists; Type: TABLE; Schema: public; Owner: staging; Tablespace:
747
+ --
748
+
749
+ CREATE TABLE price_lists (
750
+ id integer NOT NULL,
751
+ created_at timestamp without time zone,
752
+ updated_at timestamp without time zone,
753
+ name character varying(255),
754
+ season_id integer
755
+ );
756
+
757
+
758
+ ALTER TABLE public.price_lists OWNER TO staging;
759
+
760
+ --
761
+ -- Name: price_lists_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
762
+ --
763
+
764
+ CREATE SEQUENCE price_lists_id_seq
765
+ START WITH 1
766
+ INCREMENT BY 1
767
+ NO MINVALUE
768
+ NO MAXVALUE
769
+ CACHE 1;
770
+
771
+
772
+ ALTER TABLE public.price_lists_id_seq OWNER TO staging;
773
+
774
+ --
775
+ -- Name: price_lists_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
776
+ --
777
+
778
+ ALTER SEQUENCE price_lists_id_seq OWNED BY price_lists.id;
779
+
780
+
781
+ --
782
+ -- Name: price_lists_ships; Type: TABLE; Schema: public; Owner: staging; Tablespace:
783
+ --
784
+
785
+ CREATE TABLE price_lists_ships (
786
+ price_list_id integer,
787
+ ship_id integer
788
+ );
789
+
790
+
791
+ ALTER TABLE public.price_lists_ships OWNER TO staging;
792
+
793
+ --
794
+ -- Name: price_per_weeks; Type: TABLE; Schema: public; Owner: staging; Tablespace:
795
+ --
796
+
797
+ CREATE TABLE price_per_weeks (
798
+ id integer NOT NULL,
799
+ season_ship_id integer,
800
+ price double precision,
801
+ start date,
802
+ created_at timestamp without time zone,
803
+ updated_at timestamp without time zone
804
+ );
805
+
806
+
807
+ ALTER TABLE public.price_per_weeks OWNER TO staging;
808
+
809
+ --
810
+ -- Name: price_per_weeks_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
811
+ --
812
+
813
+ CREATE SEQUENCE price_per_weeks_id_seq
814
+ START WITH 1
815
+ INCREMENT BY 1
816
+ NO MINVALUE
817
+ NO MAXVALUE
818
+ CACHE 1;
819
+
820
+
821
+ ALTER TABLE public.price_per_weeks_id_seq OWNER TO staging;
822
+
823
+ --
824
+ -- Name: price_per_weeks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
825
+ --
826
+
827
+ ALTER SEQUENCE price_per_weeks_id_seq OWNED BY price_per_weeks.id;
828
+
829
+
830
+ --
831
+ -- Name: regions; Type: TABLE; Schema: public; Owner: staging; Tablespace:
832
+ --
833
+
834
+ CREATE TABLE regions (
835
+ id integer NOT NULL,
836
+ name character varying(255),
837
+ created_at timestamp without time zone,
838
+ updated_at timestamp without time zone,
839
+ parent_id integer,
840
+ latitude double precision,
841
+ longitude double precision,
842
+ season_id integer,
843
+ ancestry character varying(255),
844
+ description text
845
+ );
846
+
847
+
848
+ ALTER TABLE public.regions OWNER TO staging;
849
+
850
+ --
851
+ -- Name: regions_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
852
+ --
853
+
854
+ CREATE SEQUENCE regions_id_seq
855
+ START WITH 1
856
+ INCREMENT BY 1
857
+ NO MINVALUE
858
+ NO MAXVALUE
859
+ CACHE 1;
860
+
861
+
862
+ ALTER TABLE public.regions_id_seq OWNER TO staging;
863
+
864
+ --
865
+ -- Name: regions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
866
+ --
867
+
868
+ ALTER SEQUENCE regions_id_seq OWNED BY regions.id;
869
+
870
+
871
+ --
872
+ -- Name: sailings; Type: TABLE; Schema: public; Owner: staging; Tablespace:
873
+ --
874
+
875
+ CREATE TABLE sailings (
876
+ id integer NOT NULL,
877
+ season_ship_id integer,
878
+ start_date date,
879
+ price double precision
880
+ );
881
+
882
+
883
+ ALTER TABLE public.sailings OWNER TO staging;
884
+
885
+ --
886
+ -- Name: sailings_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
887
+ --
888
+
889
+ CREATE SEQUENCE sailings_id_seq
890
+ START WITH 1
891
+ INCREMENT BY 1
892
+ NO MINVALUE
893
+ NO MAXVALUE
894
+ CACHE 1;
895
+
896
+
897
+ ALTER TABLE public.sailings_id_seq OWNER TO staging;
898
+
899
+ --
900
+ -- Name: sailings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
901
+ --
902
+
903
+ ALTER SEQUENCE sailings_id_seq OWNED BY sailings.id;
904
+
905
+
906
+ --
907
+ -- Name: sailings_transactions; Type: TABLE; Schema: public; Owner: staging; Tablespace:
908
+ --
909
+
910
+ CREATE TABLE sailings_transactions (
911
+ transaction_id integer,
912
+ sailing_id integer
913
+ );
914
+
915
+
916
+ ALTER TABLE public.sailings_transactions OWNER TO staging;
917
+
918
+ --
919
+ -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: staging; Tablespace:
920
+ --
921
+
922
+ CREATE TABLE schema_migrations (
923
+ version character varying(255) NOT NULL
924
+ );
925
+
926
+
927
+ ALTER TABLE public.schema_migrations OWNER TO staging;
928
+
929
+ --
930
+ -- Name: season_ships; Type: TABLE; Schema: public; Owner: staging; Tablespace:
931
+ --
932
+
933
+ CREATE TABLE season_ships (
934
+ id integer NOT NULL,
935
+ ship_id integer,
936
+ season_id integer,
937
+ created_at timestamp without time zone,
938
+ updated_at timestamp without time zone,
939
+ price double precision
940
+ );
941
+
942
+
943
+ ALTER TABLE public.season_ships OWNER TO staging;
944
+
945
+ --
946
+ -- Name: season_ships_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
947
+ --
948
+
949
+ CREATE SEQUENCE season_ships_id_seq
950
+ START WITH 1
951
+ INCREMENT BY 1
952
+ NO MINVALUE
953
+ NO MAXVALUE
954
+ CACHE 1;
955
+
956
+
957
+ ALTER TABLE public.season_ships_id_seq OWNER TO staging;
958
+
959
+ --
960
+ -- Name: season_ships_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
961
+ --
962
+
963
+ ALTER SEQUENCE season_ships_id_seq OWNED BY season_ships.id;
964
+
965
+
966
+ --
967
+ -- Name: seasons; Type: TABLE; Schema: public; Owner: staging; Tablespace:
968
+ --
969
+
970
+ CREATE TABLE seasons (
971
+ id integer NOT NULL,
972
+ name character varying(255),
973
+ catalogue_id integer,
974
+ price double precision
975
+ );
976
+
977
+
978
+ ALTER TABLE public.seasons OWNER TO staging;
979
+
980
+ --
981
+ -- Name: seasons_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
982
+ --
983
+
984
+ CREATE SEQUENCE seasons_id_seq
985
+ START WITH 1
986
+ INCREMENT BY 1
987
+ NO MINVALUE
988
+ NO MAXVALUE
989
+ CACHE 1;
990
+
991
+
992
+ ALTER TABLE public.seasons_id_seq OWNER TO staging;
993
+
994
+ --
995
+ -- Name: seasons_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
996
+ --
997
+
998
+ ALTER SEQUENCE seasons_id_seq OWNED BY seasons.id;
999
+
1000
+
1001
+ --
1002
+ -- Name: ship_manufacturers; Type: TABLE; Schema: public; Owner: staging; Tablespace:
1003
+ --
1004
+
1005
+ CREATE TABLE ship_manufacturers (
1006
+ id integer NOT NULL,
1007
+ name character varying(255),
1008
+ country_code character varying(255),
1009
+ url character varying(255),
1010
+ created_at timestamp without time zone,
1011
+ updated_at timestamp without time zone
1012
+ );
1013
+
1014
+
1015
+ ALTER TABLE public.ship_manufacturers OWNER TO staging;
1016
+
1017
+ --
1018
+ -- Name: ship_manufacturers_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
1019
+ --
1020
+
1021
+ CREATE SEQUENCE ship_manufacturers_id_seq
1022
+ START WITH 1
1023
+ INCREMENT BY 1
1024
+ NO MINVALUE
1025
+ NO MAXVALUE
1026
+ CACHE 1;
1027
+
1028
+
1029
+ ALTER TABLE public.ship_manufacturers_id_seq OWNER TO staging;
1030
+
1031
+ --
1032
+ -- Name: ship_manufacturers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
1033
+ --
1034
+
1035
+ ALTER SEQUENCE ship_manufacturers_id_seq OWNED BY ship_manufacturers.id;
1036
+
1037
+
1038
+ --
1039
+ -- Name: ship_models; Type: TABLE; Schema: public; Owner: staging; Tablespace:
1040
+ --
1041
+
1042
+ CREATE TABLE ship_models (
1043
+ id integer NOT NULL,
1044
+ name character varying(255),
1045
+ ship_manufacturer_id integer,
1046
+ ship_type_id integer,
1047
+ hull_type_id integer,
1048
+ fuel_type_id integer,
1049
+ length double precision,
1050
+ beam double precision,
1051
+ draught double precision,
1052
+ fuel_capacity double precision,
1053
+ water_capacity double precision,
1054
+ no_of_engines integer,
1055
+ engine_power double precision,
1056
+ engine_name character varying(255),
1057
+ created_at timestamp without time zone,
1058
+ updated_at timestamp without time zone,
1059
+ variant character varying(255)
1060
+ );
1061
+
1062
+
1063
+ ALTER TABLE public.ship_models OWNER TO staging;
1064
+
1065
+ --
1066
+ -- Name: ship_models_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
1067
+ --
1068
+
1069
+ CREATE SEQUENCE ship_models_id_seq
1070
+ START WITH 1
1071
+ INCREMENT BY 1
1072
+ NO MINVALUE
1073
+ NO MAXVALUE
1074
+ CACHE 1;
1075
+
1076
+
1077
+ ALTER TABLE public.ship_models_id_seq OWNER TO staging;
1078
+
1079
+ --
1080
+ -- Name: ship_models_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
1081
+ --
1082
+
1083
+ ALTER SEQUENCE ship_models_id_seq OWNED BY ship_models.id;
1084
+
1085
+
1086
+ --
1087
+ -- Name: ships; Type: TABLE; Schema: public; Owner: staging; Tablespace:
1088
+ --
1089
+
1090
+ CREATE TABLE ships (
1091
+ id integer NOT NULL,
1092
+ name character varying(255),
1093
+ charter_company_id integer,
1094
+ ship_model_id integer,
1095
+ base_port_id integer,
1096
+ year_of_manufacture integer,
1097
+ no_of_engines integer,
1098
+ engine_name character varying(255),
1099
+ engine_power double precision,
1100
+ fuel_type_id integer,
1101
+ created_at timestamp without time zone,
1102
+ updated_at timestamp without time zone,
1103
+ description text,
1104
+ length double precision,
1105
+ beam double precision,
1106
+ draught double precision,
1107
+ fuel_capacity double precision,
1108
+ water_capacity double precision,
1109
+ max_no_of_people integer,
1110
+ no_of_berths character varying(255),
1111
+ no_of_crew_cabins integer,
1112
+ no_of_heads integer,
1113
+ variant character varying(255),
1114
+ no_of_bunk_cabins integer,
1115
+ no_of_double_cabins integer,
1116
+ no_of_skipper_cabins integer,
1117
+ hull_type_id integer,
1118
+ ship_type_id integer,
1119
+ no_of_single_cabins integer,
1120
+ no_of_triple_cabins integer,
1121
+ charter_type_id integer
1122
+ );
1123
+
1124
+
1125
+ ALTER TABLE public.ships OWNER TO staging;
1126
+
1127
+ --
1128
+ -- Name: ships_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
1129
+ --
1130
+
1131
+ CREATE SEQUENCE ships_id_seq
1132
+ START WITH 1
1133
+ INCREMENT BY 1
1134
+ NO MINVALUE
1135
+ NO MAXVALUE
1136
+ CACHE 1;
1137
+
1138
+
1139
+ ALTER TABLE public.ships_id_seq OWNER TO staging;
1140
+
1141
+ --
1142
+ -- Name: ships_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
1143
+ --
1144
+
1145
+ ALTER SEQUENCE ships_id_seq OWNED BY ships.id;
1146
+
1147
+
1148
+ --
1149
+ -- Name: ships_transit_log_templates; Type: TABLE; Schema: public; Owner: staging; Tablespace:
1150
+ --
1151
+
1152
+ CREATE TABLE ships_transit_log_templates (
1153
+ ship_id integer,
1154
+ transit_log_template_id integer
1155
+ );
1156
+
1157
+
1158
+ ALTER TABLE public.ships_transit_log_templates OWNER TO staging;
1159
+
1160
+ --
1161
+ -- Name: to_do_items; Type: TABLE; Schema: public; Owner: staging; Tablespace:
1162
+ --
1163
+
1164
+ CREATE TABLE to_do_items (
1165
+ id integer NOT NULL,
1166
+ "position" integer DEFAULT 0,
1167
+ text text,
1168
+ status boolean DEFAULT false,
1169
+ created_at timestamp without time zone,
1170
+ updated_at timestamp without time zone,
1171
+ assignee_id integer,
1172
+ assignee_type character varying(255),
1173
+ user_id integer,
1174
+ due_date date
1175
+ );
1176
+
1177
+
1178
+ ALTER TABLE public.to_do_items OWNER TO staging;
1179
+
1180
+ --
1181
+ -- Name: to_do_items_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
1182
+ --
1183
+
1184
+ CREATE SEQUENCE to_do_items_id_seq
1185
+ START WITH 1
1186
+ INCREMENT BY 1
1187
+ NO MINVALUE
1188
+ NO MAXVALUE
1189
+ CACHE 1;
1190
+
1191
+
1192
+ ALTER TABLE public.to_do_items_id_seq OWNER TO staging;
1193
+
1194
+ --
1195
+ -- Name: to_do_items_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
1196
+ --
1197
+
1198
+ ALTER SEQUENCE to_do_items_id_seq OWNED BY to_do_items.id;
1199
+
1200
+
1201
+ --
1202
+ -- Name: transactions; Type: TABLE; Schema: public; Owner: staging; Tablespace:
1203
+ --
1204
+
1205
+ CREATE TABLE transactions (
1206
+ id integer NOT NULL,
1207
+ transaction_status_id integer,
1208
+ check_in date,
1209
+ check_out date,
1210
+ base_in_id integer,
1211
+ base_out_id integer,
1212
+ charter_company_id integer,
1213
+ client_id integer,
1214
+ price character varying(255),
1215
+ payment_type_id integer,
1216
+ agency_agreement character varying(255),
1217
+ agent_id integer,
1218
+ creation_date date,
1219
+ option_date date,
1220
+ expiry_date date,
1221
+ created_at timestamp without time zone,
1222
+ updated_at timestamp without time zone,
1223
+ notes text,
1224
+ payment_status double precision DEFAULT 0,
1225
+ reservation_date date
1226
+ );
1227
+
1228
+
1229
+ ALTER TABLE public.transactions OWNER TO staging;
1230
+
1231
+ --
1232
+ -- Name: transactions_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
1233
+ --
1234
+
1235
+ CREATE SEQUENCE transactions_id_seq
1236
+ START WITH 1
1237
+ INCREMENT BY 1
1238
+ NO MINVALUE
1239
+ NO MAXVALUE
1240
+ CACHE 1;
1241
+
1242
+
1243
+ ALTER TABLE public.transactions_id_seq OWNER TO staging;
1244
+
1245
+ --
1246
+ -- Name: transactions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
1247
+ --
1248
+
1249
+ ALTER SEQUENCE transactions_id_seq OWNED BY transactions.id;
1250
+
1251
+
1252
+ --
1253
+ -- Name: transit_log_items; Type: TABLE; Schema: public; Owner: staging; Tablespace:
1254
+ --
1255
+
1256
+ CREATE TABLE transit_log_items (
1257
+ id integer NOT NULL,
1258
+ name character varying(255),
1259
+ created_at timestamp without time zone,
1260
+ updated_at timestamp without time zone
1261
+ );
1262
+
1263
+
1264
+ ALTER TABLE public.transit_log_items OWNER TO staging;
1265
+
1266
+ --
1267
+ -- Name: transit_log_items_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
1268
+ --
1269
+
1270
+ CREATE SEQUENCE transit_log_items_id_seq
1271
+ START WITH 1
1272
+ INCREMENT BY 1
1273
+ NO MINVALUE
1274
+ NO MAXVALUE
1275
+ CACHE 1;
1276
+
1277
+
1278
+ ALTER TABLE public.transit_log_items_id_seq OWNER TO staging;
1279
+
1280
+ --
1281
+ -- Name: transit_log_items_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
1282
+ --
1283
+
1284
+ ALTER SEQUENCE transit_log_items_id_seq OWNED BY transit_log_items.id;
1285
+
1286
+
1287
+ --
1288
+ -- Name: transit_log_items_templates; Type: TABLE; Schema: public; Owner: staging; Tablespace:
1289
+ --
1290
+
1291
+ CREATE TABLE transit_log_items_templates (
1292
+ transit_log_item_id integer,
1293
+ transit_log_template_id integer
1294
+ );
1295
+
1296
+
1297
+ ALTER TABLE public.transit_log_items_templates OWNER TO staging;
1298
+
1299
+ --
1300
+ -- Name: transit_log_templates; Type: TABLE; Schema: public; Owner: staging; Tablespace:
1301
+ --
1302
+
1303
+ CREATE TABLE transit_log_templates (
1304
+ id integer NOT NULL,
1305
+ name character varying(255),
1306
+ price double precision,
1307
+ created_at timestamp without time zone,
1308
+ updated_at timestamp without time zone,
1309
+ charter_company_id integer
1310
+ );
1311
+
1312
+
1313
+ ALTER TABLE public.transit_log_templates OWNER TO staging;
1314
+
1315
+ --
1316
+ -- Name: transit_log_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
1317
+ --
1318
+
1319
+ CREATE SEQUENCE transit_log_templates_id_seq
1320
+ START WITH 1
1321
+ INCREMENT BY 1
1322
+ NO MINVALUE
1323
+ NO MAXVALUE
1324
+ CACHE 1;
1325
+
1326
+
1327
+ ALTER TABLE public.transit_log_templates_id_seq OWNER TO staging;
1328
+
1329
+ --
1330
+ -- Name: transit_log_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
1331
+ --
1332
+
1333
+ ALTER SEQUENCE transit_log_templates_id_seq OWNED BY transit_log_templates.id;
1334
+
1335
+
1336
+ --
1337
+ -- Name: translations; Type: TABLE; Schema: public; Owner: staging; Tablespace:
1338
+ --
1339
+
1340
+ CREATE TABLE translations (
1341
+ id integer NOT NULL,
1342
+ translatable_id integer,
1343
+ translatable_type character varying(255),
1344
+ translatable_field character varying(255),
1345
+ locale character varying(255),
1346
+ content text,
1347
+ created_at timestamp without time zone,
1348
+ updated_at timestamp without time zone
1349
+ );
1350
+
1351
+
1352
+ ALTER TABLE public.translations OWNER TO staging;
1353
+
1354
+ --
1355
+ -- Name: translations_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
1356
+ --
1357
+
1358
+ CREATE SEQUENCE translations_id_seq
1359
+ START WITH 1
1360
+ INCREMENT BY 1
1361
+ NO MINVALUE
1362
+ NO MAXVALUE
1363
+ CACHE 1;
1364
+
1365
+
1366
+ ALTER TABLE public.translations_id_seq OWNER TO staging;
1367
+
1368
+ --
1369
+ -- Name: translations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
1370
+ --
1371
+
1372
+ ALTER SEQUENCE translations_id_seq OWNED BY translations.id;
1373
+
1374
+
1375
+ --
1376
+ -- Name: users; Type: TABLE; Schema: public; Owner: staging; Tablespace:
1377
+ --
1378
+
1379
+ CREATE TABLE users (
1380
+ id integer NOT NULL,
1381
+ email character varying(255) DEFAULT ''::character varying NOT NULL,
1382
+ encrypted_password character varying(255) DEFAULT ''::character varying NOT NULL,
1383
+ reset_password_token character varying(255),
1384
+ reset_password_sent_at timestamp without time zone,
1385
+ remember_created_at timestamp without time zone,
1386
+ sign_in_count integer DEFAULT 0 NOT NULL,
1387
+ current_sign_in_at timestamp without time zone,
1388
+ last_sign_in_at timestamp without time zone,
1389
+ current_sign_in_ip character varying(255),
1390
+ last_sign_in_ip character varying(255),
1391
+ created_at timestamp without time zone,
1392
+ updated_at timestamp without time zone,
1393
+ role_id integer
1394
+ );
1395
+
1396
+
1397
+ ALTER TABLE public.users OWNER TO staging;
1398
+
1399
+ --
1400
+ -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: staging
1401
+ --
1402
+
1403
+ CREATE SEQUENCE users_id_seq
1404
+ START WITH 1
1405
+ INCREMENT BY 1
1406
+ NO MINVALUE
1407
+ NO MAXVALUE
1408
+ CACHE 1;
1409
+
1410
+
1411
+ ALTER TABLE public.users_id_seq OWNER TO staging;
1412
+
1413
+ --
1414
+ -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: staging
1415
+ --
1416
+
1417
+ ALTER SEQUENCE users_id_seq OWNED BY users.id;
1418
+
1419
+
1420
+ --
1421
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1422
+ --
1423
+
1424
+ ALTER TABLE ONLY attachments ALTER COLUMN id SET DEFAULT nextval('attachments_id_seq'::regclass);
1425
+
1426
+
1427
+ --
1428
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1429
+ --
1430
+
1431
+ ALTER TABLE ONLY base_port_managers ALTER COLUMN id SET DEFAULT nextval('base_port_managers_id_seq'::regclass);
1432
+
1433
+
1434
+ --
1435
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1436
+ --
1437
+
1438
+ ALTER TABLE ONLY base_ports ALTER COLUMN id SET DEFAULT nextval('base_ports_id_seq'::regclass);
1439
+
1440
+
1441
+ --
1442
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1443
+ --
1444
+
1445
+ ALTER TABLE ONLY base_ports_charter_companies ALTER COLUMN id SET DEFAULT nextval('base_ports_charter_companies_id_seq'::regclass);
1446
+
1447
+
1448
+ --
1449
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1450
+ --
1451
+
1452
+ ALTER TABLE ONLY catalogues ALTER COLUMN id SET DEFAULT nextval('catalogues_id_seq'::regclass);
1453
+
1454
+
1455
+ --
1456
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1457
+ --
1458
+
1459
+ ALTER TABLE ONLY charter_companies ALTER COLUMN id SET DEFAULT nextval('charter_companies_id_seq'::regclass);
1460
+
1461
+
1462
+ --
1463
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1464
+ --
1465
+
1466
+ ALTER TABLE ONLY charter_company_base_port_infos ALTER COLUMN id SET DEFAULT nextval('charter_company_base_port_infos_id_seq'::regclass);
1467
+
1468
+
1469
+ --
1470
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1471
+ --
1472
+
1473
+ ALTER TABLE ONLY charter_packs ALTER COLUMN id SET DEFAULT nextval('charter_packs_id_seq'::regclass);
1474
+
1475
+
1476
+ --
1477
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1478
+ --
1479
+
1480
+ ALTER TABLE ONLY deposit_items ALTER COLUMN id SET DEFAULT nextval('deposit_items_id_seq'::regclass);
1481
+
1482
+
1483
+ --
1484
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1485
+ --
1486
+
1487
+ ALTER TABLE ONLY equipment ALTER COLUMN id SET DEFAULT nextval('equipment_id_seq'::regclass);
1488
+
1489
+
1490
+ --
1491
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1492
+ --
1493
+
1494
+ ALTER TABLE ONLY expenses ALTER COLUMN id SET DEFAULT nextval('expenses_id_seq'::regclass);
1495
+
1496
+
1497
+ --
1498
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1499
+ --
1500
+
1501
+ ALTER TABLE ONLY extra_items ALTER COLUMN id SET DEFAULT nextval('extra_items_id_seq'::regclass);
1502
+
1503
+
1504
+ --
1505
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1506
+ --
1507
+
1508
+ ALTER TABLE ONLY extra_templates ALTER COLUMN id SET DEFAULT nextval('extra_templates_id_seq'::regclass);
1509
+
1510
+
1511
+ --
1512
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1513
+ --
1514
+
1515
+ ALTER TABLE ONLY fees ALTER COLUMN id SET DEFAULT nextval('fees_id_seq'::regclass);
1516
+
1517
+
1518
+ --
1519
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1520
+ --
1521
+
1522
+ ALTER TABLE ONLY images ALTER COLUMN id SET DEFAULT nextval('images_id_seq'::regclass);
1523
+
1524
+
1525
+ --
1526
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1527
+ --
1528
+
1529
+ ALTER TABLE ONLY periods ALTER COLUMN id SET DEFAULT nextval('periods_id_seq'::regclass);
1530
+
1531
+
1532
+ --
1533
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1534
+ --
1535
+
1536
+ ALTER TABLE ONLY price_lists ALTER COLUMN id SET DEFAULT nextval('price_lists_id_seq'::regclass);
1537
+
1538
+
1539
+ --
1540
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1541
+ --
1542
+
1543
+ ALTER TABLE ONLY price_per_weeks ALTER COLUMN id SET DEFAULT nextval('price_per_weeks_id_seq'::regclass);
1544
+
1545
+
1546
+ --
1547
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1548
+ --
1549
+
1550
+ ALTER TABLE ONLY regions ALTER COLUMN id SET DEFAULT nextval('regions_id_seq'::regclass);
1551
+
1552
+
1553
+ --
1554
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1555
+ --
1556
+
1557
+ ALTER TABLE ONLY sailings ALTER COLUMN id SET DEFAULT nextval('sailings_id_seq'::regclass);
1558
+
1559
+
1560
+ --
1561
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1562
+ --
1563
+
1564
+ ALTER TABLE ONLY season_ships ALTER COLUMN id SET DEFAULT nextval('season_ships_id_seq'::regclass);
1565
+
1566
+
1567
+ --
1568
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1569
+ --
1570
+
1571
+ ALTER TABLE ONLY seasons ALTER COLUMN id SET DEFAULT nextval('seasons_id_seq'::regclass);
1572
+
1573
+
1574
+ --
1575
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1576
+ --
1577
+
1578
+ ALTER TABLE ONLY ship_manufacturers ALTER COLUMN id SET DEFAULT nextval('ship_manufacturers_id_seq'::regclass);
1579
+
1580
+
1581
+ --
1582
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1583
+ --
1584
+
1585
+ ALTER TABLE ONLY ship_models ALTER COLUMN id SET DEFAULT nextval('ship_models_id_seq'::regclass);
1586
+
1587
+
1588
+ --
1589
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1590
+ --
1591
+
1592
+ ALTER TABLE ONLY ships ALTER COLUMN id SET DEFAULT nextval('ships_id_seq'::regclass);
1593
+
1594
+
1595
+ --
1596
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1597
+ --
1598
+
1599
+ ALTER TABLE ONLY to_do_items ALTER COLUMN id SET DEFAULT nextval('to_do_items_id_seq'::regclass);
1600
+
1601
+
1602
+ --
1603
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1604
+ --
1605
+
1606
+ ALTER TABLE ONLY transactions ALTER COLUMN id SET DEFAULT nextval('transactions_id_seq'::regclass);
1607
+
1608
+
1609
+ --
1610
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1611
+ --
1612
+
1613
+ ALTER TABLE ONLY transit_log_items ALTER COLUMN id SET DEFAULT nextval('transit_log_items_id_seq'::regclass);
1614
+
1615
+
1616
+ --
1617
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1618
+ --
1619
+
1620
+ ALTER TABLE ONLY transit_log_templates ALTER COLUMN id SET DEFAULT nextval('transit_log_templates_id_seq'::regclass);
1621
+
1622
+
1623
+ --
1624
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1625
+ --
1626
+
1627
+ ALTER TABLE ONLY translations ALTER COLUMN id SET DEFAULT nextval('translations_id_seq'::regclass);
1628
+
1629
+
1630
+ --
1631
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: staging
1632
+ --
1633
+
1634
+ ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
1635
+
1636
+
1637
+ --
1638
+ -- Data for Name: attachments; Type: TABLE DATA; Schema: public; Owner: staging
1639
+ --
1640
+
1641
+ COPY attachments (id, attached_to_id, attached_to_type, created_at, updated_at, file_file_name, file_content_type, file_file_size, file_updated_at, category) FROM stdin;
1642
+ \.
1643
+
1644
+
1645
+ --
1646
+ -- Name: attachments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1647
+ --
1648
+
1649
+ SELECT pg_catalog.setval('attachments_id_seq', 1, false);
1650
+
1651
+
1652
+ --
1653
+ -- Data for Name: base_port_managers; Type: TABLE DATA; Schema: public; Owner: staging
1654
+ --
1655
+
1656
+ COPY base_port_managers (id, name, contact, charter_company_id, base_port_id) FROM stdin;
1657
+ \.
1658
+
1659
+
1660
+ --
1661
+ -- Name: base_port_managers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1662
+ --
1663
+
1664
+ SELECT pg_catalog.setval('base_port_managers_id_seq', 1, false);
1665
+
1666
+
1667
+ --
1668
+ -- Data for Name: base_ports; Type: TABLE DATA; Schema: public; Owner: staging
1669
+ --
1670
+
1671
+ COPY base_ports (id, name, address, region_id, contact, created_at, updated_at, latitude, longitude, city, description) FROM stdin;
1672
+ 2 Nowy port Nowy port 2 { "phone": "1234589765432"} 2015-03-26 12:21:38.979018 2015-03-26 12:21:38.979018 54.397627 18.6648910000000008 Gdansk \N
1673
+ \.
1674
+
1675
+
1676
+ --
1677
+ -- Data for Name: base_ports_charter_companies; Type: TABLE DATA; Schema: public; Owner: staging
1678
+ --
1679
+
1680
+ COPY base_ports_charter_companies (id, charter_company_id, base_port_id, city, address, country_code, phone, fax, info, created_at, updated_at) FROM stdin;
1681
+ \.
1682
+
1683
+
1684
+ --
1685
+ -- Name: base_ports_charter_companies_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1686
+ --
1687
+
1688
+ SELECT pg_catalog.setval('base_ports_charter_companies_id_seq', 1, false);
1689
+
1690
+
1691
+ --
1692
+ -- Name: base_ports_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1693
+ --
1694
+
1695
+ SELECT pg_catalog.setval('base_ports_id_seq', 2, true);
1696
+
1697
+
1698
+ --
1699
+ -- Data for Name: catalogues; Type: TABLE DATA; Schema: public; Owner: staging
1700
+ --
1701
+
1702
+ COPY catalogues (id, name, charter_company_id, year, active) FROM stdin;
1703
+ \.
1704
+
1705
+
1706
+ --
1707
+ -- Name: catalogues_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1708
+ --
1709
+
1710
+ SELECT pg_catalog.setval('catalogues_id_seq', 1, true);
1711
+
1712
+
1713
+ --
1714
+ -- Data for Name: charter_companies; Type: TABLE DATA; Schema: public; Owner: staging
1715
+ --
1716
+
1717
+ COPY charter_companies (id, code, name, fullname, city, address, phone, fax, url, email, country_code, created_at, updated_at, info, general_charter_conditions, payment_type_id, billing_method_id, account_number, transit_log_payment_id, account_for_billing, check_in_time, check_out_time, check_in_day, check_out_day, payment_instructions) FROM stdin;
1718
+ \.
1719
+
1720
+
1721
+ --
1722
+ -- Name: charter_companies_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1723
+ --
1724
+
1725
+ SELECT pg_catalog.setval('charter_companies_id_seq', 1, false);
1726
+
1727
+
1728
+ --
1729
+ -- Data for Name: charter_company_base_port_infos; Type: TABLE DATA; Schema: public; Owner: staging
1730
+ --
1731
+
1732
+ COPY charter_company_base_port_infos (id, charter_company_id, base_port_id, city, address, country_code, phone, fax, info, created_at, updated_at) FROM stdin;
1733
+ 1 1 2 Reyes and Carr LLC Myers Rose LLC AS +566-40-2823709 Daniels Oliver Inc . 2015-03-26 12:27:41.655529 2015-03-26 12:27:41.655529
1734
+ \.
1735
+
1736
+
1737
+ --
1738
+ -- Name: charter_company_base_port_infos_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1739
+ --
1740
+
1741
+ SELECT pg_catalog.setval('charter_company_base_port_infos_id_seq', 1, true);
1742
+
1743
+
1744
+ --
1745
+ -- Data for Name: charter_packs; Type: TABLE DATA; Schema: public; Owner: staging
1746
+ --
1747
+
1748
+ COPY charter_packs (id, name, description, season_id) FROM stdin;
1749
+ \.
1750
+
1751
+
1752
+ --
1753
+ -- Name: charter_packs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1754
+ --
1755
+
1756
+ SELECT pg_catalog.setval('charter_packs_id_seq', 1, false);
1757
+
1758
+
1759
+ --
1760
+ -- Data for Name: charter_packs_ships; Type: TABLE DATA; Schema: public; Owner: staging
1761
+ --
1762
+
1763
+ COPY charter_packs_ships (charter_pack_id, ship_id) FROM stdin;
1764
+ \.
1765
+
1766
+
1767
+ --
1768
+ -- Data for Name: deposit_items; Type: TABLE DATA; Schema: public; Owner: staging
1769
+ --
1770
+
1771
+ COPY deposit_items (id, name, price, deposit_type_id, charter_company_id) FROM stdin;
1772
+ 3 Rafael Emerson 547 1 \N
1773
+ \.
1774
+
1775
+
1776
+ --
1777
+ -- Name: deposit_items_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1778
+ --
1779
+
1780
+ SELECT pg_catalog.setval('deposit_items_id_seq', 3, true);
1781
+
1782
+
1783
+ --
1784
+ -- Data for Name: deposit_items_ships; Type: TABLE DATA; Schema: public; Owner: staging
1785
+ --
1786
+
1787
+ COPY deposit_items_ships (deposit_item_id, ship_id) FROM stdin;
1788
+ \.
1789
+
1790
+
1791
+ --
1792
+ -- Data for Name: equipment; Type: TABLE DATA; Schema: public; Owner: staging
1793
+ --
1794
+
1795
+ COPY equipment (id, name, equipment_type_id, equipment_category_id, created_at, updated_at, ship_type_id, "position") FROM stdin;
1796
+ 1 Deirdre Bauer \N 1 2015-03-26 12:38:41.400645 2015-03-26 12:38:41.400645 1 1
1797
+ 3 Nita Gamble \N 3 2015-03-26 12:39:28.589707 2015-03-26 12:39:28.589707 0 1
1798
+ 5 Shafira Santiago \N 5 2015-03-26 12:40:02.204187 2015-03-26 12:40:02.204187 0 1
1799
+ 2 Gloria Walters \N 2 2015-03-26 12:39:05.255425 2015-03-26 12:41:49.938034 2 1
1800
+ 6 fghj \N 4 2015-03-26 12:45:03.580906 2015-03-26 12:45:29.429576 4 3
1801
+ 4 Ariel Abbott \N 4 2015-03-26 12:39:38.55956 2015-03-26 12:45:42.714486 0 2
1802
+ 7 nm \N 4 2015-03-26 12:45:37.129921 2015-03-26 12:45:44.612075 3 1
1803
+ 8 Kaden Haley \N 1 2015-03-26 14:09:33.459066 2015-03-26 14:09:33.459066 0 2
1804
+ \.
1805
+
1806
+
1807
+ --
1808
+ -- Name: equipment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1809
+ --
1810
+
1811
+ SELECT pg_catalog.setval('equipment_id_seq', 8, true);
1812
+
1813
+
1814
+ --
1815
+ -- Data for Name: equipment_ships; Type: TABLE DATA; Schema: public; Owner: staging
1816
+ --
1817
+
1818
+ COPY equipment_ships (equipment_id, ship_id) FROM stdin;
1819
+ \.
1820
+
1821
+
1822
+ --
1823
+ -- Data for Name: expenses; Type: TABLE DATA; Schema: public; Owner: staging
1824
+ --
1825
+
1826
+ COPY expenses (id, name, description, created_at, updated_at) FROM stdin;
1827
+ 1 Clarke Marsh Consequatur? Ducimus, et cupiditate occaecat officiis ex sapiente consequuntur sit, alias qui minima nulla. 2015-03-26 14:58:40.266474 2015-03-26 14:58:40.266474
1828
+ \.
1829
+
1830
+
1831
+ --
1832
+ -- Name: expenses_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1833
+ --
1834
+
1835
+ SELECT pg_catalog.setval('expenses_id_seq', 1, true);
1836
+
1837
+
1838
+ --
1839
+ -- Data for Name: extra_items; Type: TABLE DATA; Schema: public; Owner: staging
1840
+ --
1841
+
1842
+ COPY extra_items (id, name, charter_company_id) FROM stdin;
1843
+ 1 Morgan Burke \N
1844
+ \.
1845
+
1846
+
1847
+ --
1848
+ -- Name: extra_items_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1849
+ --
1850
+
1851
+ SELECT pg_catalog.setval('extra_items_id_seq', 1, true);
1852
+
1853
+
1854
+ --
1855
+ -- Data for Name: extra_items_templates; Type: TABLE DATA; Schema: public; Owner: staging
1856
+ --
1857
+
1858
+ COPY extra_items_templates (extra_item_id, extra_template_id) FROM stdin;
1859
+ \.
1860
+
1861
+
1862
+ --
1863
+ -- Data for Name: extra_templates; Type: TABLE DATA; Schema: public; Owner: staging
1864
+ --
1865
+
1866
+ COPY extra_templates (id, name, charter_company_id, price) FROM stdin;
1867
+ \.
1868
+
1869
+
1870
+ --
1871
+ -- Name: extra_templates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1872
+ --
1873
+
1874
+ SELECT pg_catalog.setval('extra_templates_id_seq', 1, false);
1875
+
1876
+
1877
+ --
1878
+ -- Data for Name: extra_templates_ships; Type: TABLE DATA; Schema: public; Owner: staging
1879
+ --
1880
+
1881
+ COPY extra_templates_ships (extra_template_id, ship_id) FROM stdin;
1882
+ \.
1883
+
1884
+
1885
+ --
1886
+ -- Data for Name: fees; Type: TABLE DATA; Schema: public; Owner: staging
1887
+ --
1888
+
1889
+ COPY fees (id, charter_company_id, ship_type_id, price, created_at, updated_at) FROM stdin;
1890
+ \.
1891
+
1892
+
1893
+ --
1894
+ -- Name: fees_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1895
+ --
1896
+
1897
+ SELECT pg_catalog.setval('fees_id_seq', 1, false);
1898
+
1899
+
1900
+ --
1901
+ -- Data for Name: images; Type: TABLE DATA; Schema: public; Owner: staging
1902
+ --
1903
+
1904
+ COPY images (id, item_id, item_type, image_type_id, image_file_name, image_content_type, image_file_size, image_updated_at, created_at, updated_at) FROM stdin;
1905
+ 1 1 ShipModel 1 Bavaria_30C_layout.jpeg image/jpeg 11840 2015-03-24 12:46:36.975463 2015-03-24 12:46:37.611516 2015-03-24 12:46:37.611516
1906
+ 2 1 ShipModel 2 Bavaria_30_C_cabin.jpeg image/jpeg 14672 2015-03-24 12:46:37.427969 2015-03-24 12:46:38.389558 2015-03-24 12:46:38.389558
1907
+ 3 1 ShipModel 2 Bavaria_30_C_head.jpeg image/jpeg 14005 2015-03-24 12:46:37.46576 2015-03-24 12:46:38.702698 2015-03-24 12:46:38.702698
1908
+ 4 1 ShipModel 2 Bavaria_30C_kitchen.jpeg image/jpeg 25020 2015-03-24 12:46:37.514197 2015-03-24 12:46:38.992471 2015-03-24 12:46:38.992471
1909
+ 5 1 ShipModel 2 Bavaria_30C_salon.jpeg image/jpeg 32666 2015-03-24 12:46:37.565226 2015-03-24 12:46:39.376877 2015-03-24 12:46:39.376877
1910
+ 6 1 ShipModel 3 Bavaria_30_C_(1).jpeg image/jpeg 13544 2015-03-24 12:47:06.312746 2015-03-24 12:47:06.399165 2015-03-24 12:47:06.399165
1911
+ 7 1 ShipModel 3 Bavaria_30C.jpeg image/jpeg 35152 2015-03-24 12:47:06.353225 2015-03-24 12:47:07.061676 2015-03-24 12:47:07.061676
1912
+ 8 2 ShipModel 1 Bavaria_32C_layout.jpeg image/jpeg 8806 2015-03-24 14:15:57.336524 2015-03-24 14:15:57.560938 2015-03-24 14:15:57.560938
1913
+ 9 2 ShipModel 2 Bavaria_32C_cabin.jpeg image/jpeg 20764 2015-03-24 14:15:57.365386 2015-03-24 14:15:58.15948 2015-03-24 14:15:58.15948
1914
+ 10 2 ShipModel 2 Bavaria_32C_navigation_table.jpeg image/jpeg 26288 2015-03-24 14:15:57.403237 2015-03-24 14:15:58.503281 2015-03-24 14:15:58.503281
1915
+ 11 2 ShipModel 2 Bavaria_32C_salon_1.jpeg image/jpeg 31489 2015-03-24 14:15:57.441592 2015-03-24 14:15:59.065575 2015-03-24 14:15:59.065575
1916
+ 12 2 ShipModel 2 Bavaria_32C_salon.jpeg image/jpeg 27831 2015-03-24 14:15:57.479761 2015-03-24 14:15:59.393109 2015-03-24 14:15:59.393109
1917
+ 13 2 ShipModel 3 Bavaria_32C.jpeg image/jpeg 28524 2015-03-24 14:15:57.518359 2015-03-24 14:15:59.726461 2015-03-24 14:15:59.726461
1918
+ 14 3 ShipModel 1 613133640000100096__480.jpg image/jpeg 17698 2015-03-24 14:25:49.746828 2015-03-24 14:25:50.01529 2015-03-24 14:25:50.01529
1919
+ 15 3 ShipModel 2 613133590000100096_-int_480.JPG image/jpeg 48261 2015-03-24 14:25:49.785569 2015-03-24 14:25:50.888537 2015-03-24 14:25:50.888537
1920
+ 16 3 ShipModel 2 613134010000100096_-int1_640.JPG image/jpeg 66460 2015-03-24 14:25:49.824317 2015-03-24 14:25:51.371545 2015-03-24 14:25:51.371545
1921
+ 17 3 ShipModel 2 613134040000100096_-int2_640.JPG image/jpeg 85387 2015-03-24 14:25:49.873461 2015-03-24 14:25:51.954102 2015-03-24 14:25:51.954102
1922
+ 18 3 ShipModel 2 613134070000100096__-int3_640.JPG image/jpeg 53133 2015-03-24 14:25:49.923196 2015-03-24 14:25:52.328284 2015-03-24 14:25:52.328284
1923
+ 19 3 ShipModel 3 613133540000100096_-ex_480.JPG image/jpeg 50114 2015-03-24 14:25:49.971973 2015-03-24 14:25:52.706978 2015-03-24 14:25:52.706978
1924
+ 20 4 ShipModel 1 Sun_Odyssey_370_layout.jpeg image/jpeg 8797 2015-03-24 14:37:40.558962 2015-03-24 14:37:40.973939 2015-03-24 14:37:40.973939
1925
+ 21 4 ShipModel 2 Sun_Odyssey-379_head.jpg image/jpeg 149950 2015-03-24 14:37:40.587002 2015-03-24 14:37:41.546587 2015-03-24 14:37:41.546587
1926
+ 22 4 ShipModel 2 Sun_Odyssey-379_interieur.jpg image/jpeg 139616 2015-03-24 14:37:40.693729 2015-03-24 14:37:42.246635 2015-03-24 14:37:42.246635
1927
+ 23 4 ShipModel 2 Sun_Odyssey-379_navigation_table.jpg image/jpeg 176668 2015-03-24 14:37:40.756745 2015-03-24 14:37:42.686959 2015-03-24 14:37:42.686959
1928
+ 24 4 ShipModel 2 Sun_Odyssey-379_salon.jpg image/jpeg 85009 2015-03-24 14:37:40.848635 2015-03-24 14:37:43.033795 2015-03-24 14:37:43.033795
1929
+ 25 4 ShipModel 3 Sun_Odyssey_379_exterieur.jpg image/jpeg 112443 2015-03-24 14:37:40.910511 2015-03-24 14:37:43.380216 2015-03-24 14:37:43.380216
1930
+ 26 5 ShipModel 1 Sun_Fast_32i_-_layout.jpeg image/jpeg 18579 2015-03-25 08:39:38.94011 2015-03-25 08:39:39.10256 2015-03-25 08:39:39.10256
1931
+ 27 5 ShipModel 2 Sun_Fast_32i_-_cabin.jpeg image/jpeg 6423 2015-03-25 08:39:38.981606 2015-03-25 08:39:40.152403 2015-03-25 08:39:40.152403
1932
+ 28 5 ShipModel 2 Sun_Fast_32i_-_head.jpeg image/jpeg 7686 2015-03-25 08:39:39.007608 2015-03-25 08:39:40.472077 2015-03-25 08:39:40.472077
1933
+ 29 5 ShipModel 2 Sun_Fast_32i_-_salon.jpeg image/jpeg 8283 2015-03-25 08:39:39.033768 2015-03-25 08:39:40.812835 2015-03-25 08:39:40.812835
1934
+ 30 5 ShipModel 3 Sun_Fast_32i_-_outside.jpg image/jpeg 30115 2015-03-25 08:39:39.059952 2015-03-25 08:39:41.173995 2015-03-25 08:39:41.173995
1935
+ 31 6 ShipModel 1 Sun_Fast_26_-_layout.jpeg image/jpeg 10680 2015-03-25 08:45:05.995489 2015-03-25 08:45:06.127792 2015-03-25 08:45:06.127792
1936
+ 32 6 ShipModel 2 Sun_Fast_-_cabin.jpeg image/jpeg 6476 2015-03-25 08:45:06.024752 2015-03-25 08:45:06.729742 2015-03-25 08:45:06.729742
1937
+ 33 6 ShipModel 2 Sun_Fast_26_-_kitchen.jpeg image/jpeg 6697 2015-03-25 08:45:06.04973 2015-03-25 08:45:07.007725 2015-03-25 08:45:07.007725
1938
+ 34 6 ShipModel 2 Sun_Fast_26_-_salon.jpeg image/jpeg 8380 2015-03-25 08:45:06.072077 2015-03-25 08:45:07.421173 2015-03-25 08:45:07.421173
1939
+ 35 6 ShipModel 3 Sun_Fast_26_-_outside.jpeg image/jpeg 6001 2015-03-25 08:45:06.094583 2015-03-25 08:45:07.693165 2015-03-25 08:45:07.693165
1940
+ 36 7 ShipModel 1 Sun_Odyssey_32i_-_layout.jpg image/jpeg 49352 2015-03-25 09:00:57.039231 2015-03-25 09:00:57.239212 2015-03-25 09:00:57.239212
1941
+ 37 7 ShipModel 2 Sun_Odyssey_32i_-_kitchen.jpg image/jpeg 44227 2015-03-25 09:00:57.08328 2015-03-25 09:00:58.045754 2015-03-25 09:00:58.045754
1942
+ 38 7 ShipModel 2 Sun_Odyssey_32i_-_navigation_table.jpg image/jpeg 17976 2015-03-25 09:00:57.120939 2015-03-25 09:00:58.431033 2015-03-25 09:00:58.431033
1943
+ 39 7 ShipModel 2 Sun_Odyssey_32i_-_salon.jpg image/jpeg 65530 2015-03-25 09:00:57.151672 2015-03-25 09:00:58.725912 2015-03-25 09:00:58.725912
1944
+ 40 7 ShipModel 3 Sun_Odyssey_32i_-_outside.jpg image/jpeg 47346 2015-03-25 09:00:57.195156 2015-03-25 09:00:59.101656 2015-03-25 09:00:59.101656
1945
+ 41 8 ShipModel 1 Sun_Odyssey_30i_-_layout.jpg image/jpeg 70834 2015-03-25 09:11:31.275538 2015-03-25 09:11:31.625728 2015-03-25 09:11:31.625728
1946
+ 42 8 ShipModel 2 Sun_Odyssey_30i_-_kitchen_island.jpg image/jpeg 140059 2015-03-25 09:11:31.336752 2015-03-25 09:11:32.702744 2015-03-25 09:11:32.702744
1947
+ 43 8 ShipModel 2 Sun_Odyssey_30i_-_kitchen.jpg image/jpeg 108429 2015-03-25 09:11:31.425077 2015-03-25 09:11:33.329912 2015-03-25 09:11:33.329912
1948
+ 44 8 ShipModel 2 Sun_Odyssey_30i_-_salon_berth.jpg image/jpeg 91722 2015-03-25 09:11:31.471871 2015-03-25 09:11:33.803431 2015-03-25 09:11:33.803431
1949
+ 45 8 ShipModel 2 Sun-Odyssey_30i_-_cabin.jpg image/jpeg 80251 2015-03-25 09:11:31.517365 2015-03-25 09:11:34.177477 2015-03-25 09:11:34.177477
1950
+ 46 8 ShipModel 3 Sun_Odyssey_30i_-_exterieur.jpg image/jpeg 144852 2015-03-25 09:11:31.561128 2015-03-25 09:11:34.577957 2015-03-25 09:11:34.577957
1951
+ 47 9 ShipModel 1 layout.jpg image/jpeg 17496 2015-03-25 11:53:28.248451 2015-03-25 11:53:28.334621 2015-03-25 11:53:28.334621
1952
+ 48 9 ShipModel 2 main.jpg image/jpeg 7332 2015-03-25 11:53:28.295528 2015-03-25 11:53:29.045022 2015-03-25 11:53:29.045022
1953
+ 49 9 ShipModel 2 n1.jpg image/jpeg 7907 2015-03-25 11:57:41.266848 2015-03-25 11:57:41.380897 2015-03-25 11:57:41.380897
1954
+ 50 9 ShipModel 2 Sun_Odyssey_30i_-_cabin.jpg image/jpeg 7473 2015-03-25 11:57:41.290124 2015-03-25 11:57:42.053205 2015-03-25 11:57:42.053205
1955
+ 51 9 ShipModel 2 Sun_Odyssey_30i_-_exterieur.jpg image/jpeg 144852 2015-03-25 11:57:41.317364 2015-03-25 11:57:42.333649 2015-03-25 11:57:42.333649
1956
+ 52 10 ShipModel 1 01e24391b062_(1).jpg image/jpeg 73169 2015-03-26 12:33:39.633987 2015-03-26 12:33:39.699816 2015-03-26 12:33:39.699816
1957
+ 53 11 ShipModel 1 Hanse_320_layout.jpeg image/jpeg 8677 2015-03-26 13:33:02.064483 2015-03-26 13:33:02.143312 2015-03-26 13:33:02.143312
1958
+ 54 11 ShipModel 3 Hanse_320_-_outside_1.jpeg image/jpeg 8715 2015-03-26 13:33:02.09169 2015-03-26 13:33:02.899747 2015-03-26 13:33:02.899747
1959
+ 55 11 ShipModel 3 Hanse_320_-_outside.jpeg image/jpeg 7403 2015-03-26 13:33:02.115381 2015-03-26 13:33:03.204021 2015-03-26 13:33:03.204021
1960
+ \.
1961
+
1962
+
1963
+ --
1964
+ -- Name: images_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1965
+ --
1966
+
1967
+ SELECT pg_catalog.setval('images_id_seq', 55, true);
1968
+
1969
+
1970
+ --
1971
+ -- Data for Name: periods; Type: TABLE DATA; Schema: public; Owner: staging
1972
+ --
1973
+
1974
+ COPY periods (id, start_date, end_date, created_at, updated_at, season_id) FROM stdin;
1975
+ \.
1976
+
1977
+
1978
+ --
1979
+ -- Name: periods_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1980
+ --
1981
+
1982
+ SELECT pg_catalog.setval('periods_id_seq', 1, false);
1983
+
1984
+
1985
+ --
1986
+ -- Data for Name: price_lists; Type: TABLE DATA; Schema: public; Owner: staging
1987
+ --
1988
+
1989
+ COPY price_lists (id, created_at, updated_at, name, season_id) FROM stdin;
1990
+ \.
1991
+
1992
+
1993
+ --
1994
+ -- Name: price_lists_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
1995
+ --
1996
+
1997
+ SELECT pg_catalog.setval('price_lists_id_seq', 1, false);
1998
+
1999
+
2000
+ --
2001
+ -- Data for Name: price_lists_ships; Type: TABLE DATA; Schema: public; Owner: staging
2002
+ --
2003
+
2004
+ COPY price_lists_ships (price_list_id, ship_id) FROM stdin;
2005
+ \.
2006
+
2007
+
2008
+ --
2009
+ -- Data for Name: price_per_weeks; Type: TABLE DATA; Schema: public; Owner: staging
2010
+ --
2011
+
2012
+ COPY price_per_weeks (id, season_ship_id, price, start, created_at, updated_at) FROM stdin;
2013
+ \.
2014
+
2015
+
2016
+ --
2017
+ -- Name: price_per_weeks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
2018
+ --
2019
+
2020
+ SELECT pg_catalog.setval('price_per_weeks_id_seq', 1, false);
2021
+
2022
+
2023
+ --
2024
+ -- Data for Name: regions; Type: TABLE DATA; Schema: public; Owner: staging
2025
+ --
2026
+
2027
+ COPY regions (id, name, created_at, updated_at, parent_id, latitude, longitude, season_id, ancestry, description) FROM stdin;
2028
+ 1 Gdansk 2015-03-26 12:12:27.97463 2015-03-26 12:12:27.97463 \N 54.3550681105814633 18.7802002139169417 \N \N <p>nice city</p>
2029
+ \.
2030
+
2031
+
2032
+ --
2033
+ -- Name: regions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
2034
+ --
2035
+
2036
+ SELECT pg_catalog.setval('regions_id_seq', 3, true);
2037
+
2038
+
2039
+ --
2040
+ -- Data for Name: sailings; Type: TABLE DATA; Schema: public; Owner: staging
2041
+ --
2042
+
2043
+ COPY sailings (id, season_ship_id, start_date, price) FROM stdin;
2044
+ \.
2045
+
2046
+
2047
+ --
2048
+ -- Name: sailings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
2049
+ --
2050
+
2051
+ SELECT pg_catalog.setval('sailings_id_seq', 1, false);
2052
+
2053
+
2054
+ --
2055
+ -- Data for Name: sailings_transactions; Type: TABLE DATA; Schema: public; Owner: staging
2056
+ --
2057
+
2058
+ COPY sailings_transactions (transaction_id, sailing_id) FROM stdin;
2059
+ \.
2060
+
2061
+
2062
+ --
2063
+ -- Data for Name: schema_migrations; Type: TABLE DATA; Schema: public; Owner: staging
2064
+ --
2065
+
2066
+ COPY schema_migrations (version) FROM stdin;
2067
+ 20140325144924
2068
+ 20140325151331
2069
+ 20140403154233
2070
+ 20140404081636
2071
+ 20140414151802
2072
+ 20140415130515
2073
+ 20140415153307
2074
+ 20140416100844
2075
+ 20140416111129
2076
+ 20140416122055
2077
+ 20140416133118
2078
+ 20140422122853
2079
+ 20140709070540
2080
+ 20140709071905
2081
+ 20140709072757
2082
+ 20140709074659
2083
+ 20140709124246
2084
+ 20140715131024
2085
+ 20140807111941
2086
+ 20140808083842
2087
+ 20140811065905
2088
+ 20140811070238
2089
+ 20140811073809
2090
+ 20140811101546
2091
+ 20140820134058
2092
+ 20140827144147
2093
+ 20140911093819
2094
+ 20140911093834
2095
+ 20140918124349
2096
+ 20140922082246
2097
+ 20140922082949
2098
+ 20140922084029
2099
+ 20140922090632
2100
+ 20140922093943
2101
+ 20140922094219
2102
+ 20140922094704
2103
+ 20140922100847
2104
+ 20140922101705
2105
+ 20140923080648
2106
+ 20140923080749
2107
+ 20140923143108
2108
+ 20140924112454
2109
+ 20140924132003
2110
+ 20141009091356
2111
+ 20141009092557
2112
+ 20141009102946
2113
+ 20141014131558
2114
+ 20141014133009
2115
+ 20141014133845
2116
+ 20141014134522
2117
+ 20141014134710
2118
+ 20141014135034
2119
+ 20141014144848
2120
+ 20141016105000
2121
+ 20141016113037
2122
+ 20141016114103
2123
+ 20141020083119
2124
+ 20141020083851
2125
+ 20141020090036
2126
+ 20141020090324
2127
+ 20141020094912
2128
+ 20141020095115
2129
+ 20141020102337
2130
+ 20141020103329
2131
+ 20141020105422
2132
+ 20141020105456
2133
+ 20141021083007
2134
+ 20141021085252
2135
+ 20141021085720
2136
+ 20141021090024
2137
+ 20141021090141
2138
+ 20141021094531
2139
+ 20141021102431
2140
+ 20141021102955
2141
+ 20141021103212
2142
+ 20141021105311
2143
+ 20141021110543
2144
+ 20141021125013
2145
+ 20141027140315
2146
+ 20141027144324
2147
+ 20141027144909
2148
+ 20141027145701
2149
+ 20141027150217
2150
+ 20141027151221
2151
+ 20141027151919
2152
+ 20141027160232
2153
+ 20141126124519
2154
+ 20141126124748
2155
+ 20141126125740
2156
+ 20141127090559
2157
+ 20141202073411
2158
+ 20141202074333
2159
+ 20150116083246
2160
+ 20150116083247
2161
+ 20150116083248
2162
+ 20150128133245
2163
+ 20150130100942
2164
+ 20150202132717
2165
+ 20150202135329
2166
+ 20150202152849
2167
+ 20150205141635
2168
+ 20150205144335
2169
+ 20150205145953
2170
+ 20150205154302
2171
+ 20150209093647
2172
+ 20150209094057
2173
+ 20150213080101
2174
+ 20150213080938
2175
+ 20150213090118
2176
+ 20150216061818
2177
+ 20150216125037
2178
+ 20150217133647
2179
+ 20150304111806
2180
+ 20150305091735
2181
+ 20150309073448
2182
+ 20150310140313
2183
+ 20150310150113
2184
+ 20150311104528
2185
+ 20150313062022
2186
+ 20150313062356
2187
+ 20150313085221
2188
+ 20150318064813
2189
+ 20150318064856
2190
+ 20150318070223
2191
+ 20150319163732
2192
+ 20150320071323
2193
+ 20150320082832
2194
+ 20150320120636
2195
+ \.
2196
+
2197
+
2198
+ --
2199
+ -- Data for Name: season_ships; Type: TABLE DATA; Schema: public; Owner: staging
2200
+ --
2201
+
2202
+ COPY season_ships (id, ship_id, season_id, created_at, updated_at, price) FROM stdin;
2203
+ \.
2204
+
2205
+
2206
+ --
2207
+ -- Name: season_ships_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
2208
+ --
2209
+
2210
+ SELECT pg_catalog.setval('season_ships_id_seq', 1, false);
2211
+
2212
+
2213
+ --
2214
+ -- Data for Name: seasons; Type: TABLE DATA; Schema: public; Owner: staging
2215
+ --
2216
+
2217
+ COPY seasons (id, name, catalogue_id, price) FROM stdin;
2218
+ \.
2219
+
2220
+
2221
+ --
2222
+ -- Name: seasons_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
2223
+ --
2224
+
2225
+ SELECT pg_catalog.setval('seasons_id_seq', 1, false);
2226
+
2227
+
2228
+ --
2229
+ -- Data for Name: ship_manufacturers; Type: TABLE DATA; Schema: public; Owner: staging
2230
+ --
2231
+
2232
+ COPY ship_manufacturers (id, name, country_code, url, created_at, updated_at) FROM stdin;
2233
+ 1 Bavaria DE 2015-03-24 12:42:57.081982 2015-03-24 12:42:57.081982
2234
+ 2 Jeanneau FR 2015-03-24 14:14:07.464843 2015-03-24 14:14:07.464843
2235
+ 5 Hanse DE https://www.hanseyachts.com/gb.html 2015-03-26 13:31:42.341234 2015-03-26 13:31:42.341234
2236
+ \.
2237
+
2238
+
2239
+ --
2240
+ -- Name: ship_manufacturers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
2241
+ --
2242
+
2243
+ SELECT pg_catalog.setval('ship_manufacturers_id_seq', 5, true);
2244
+
2245
+
2246
+ --
2247
+ -- Data for Name: ship_models; Type: TABLE DATA; Schema: public; Owner: staging
2248
+ --
2249
+
2250
+ COPY ship_models (id, name, ship_manufacturer_id, ship_type_id, hull_type_id, fuel_type_id, length, beam, draught, fuel_capacity, water_capacity, no_of_engines, engine_power, engine_name, created_at, updated_at, variant) FROM stdin;
2251
+ 1 Bavaria 30C 1 2 1 1 9.44999999999999929 3.29000000000000004 1.85000000000000009 90 150 \N \N Volvo 2015-03-24 12:46:37.6102 2015-03-24 12:46:37.6102 2006
2252
+ 2 Bavaria 32C 1 2 1 1 9.99000000000000021 \N 1.64999999999999991 150 150 \N \N Volvo Penta 2015-03-24 14:15:57.559644 2015-03-24 14:15:57.559644 2010
2253
+ 3 Bavaria 33C 1 2 1 1 9.99000000000000021 3.41999999999999993 1.94999999999999996 150 150 \N \N Volvo 2015-03-24 14:25:50.01378 2015-03-24 14:25:50.01378 2013
2254
+ 4 Sun Odyssey 379 2 2 1 1 11.3399999999999999 3.75999999999999979 1.94999999999999996 130 200 \N \N Yanmar 2015-03-24 14:37:40.972424 2015-03-24 14:37:40.972424 2013
2255
+ 5 Sun Fast 32i 2 2 1 1 9.59999999999999964 3.29999999999999982 1.97999999999999998 70 170 \N \N 2015-03-25 08:39:39.100883 2015-03-25 08:39:39.100883 2005
2256
+ 6 Sun Fast 26 2 2 1 1 7.62999999999999989 2.9700000000000002 1.5 25 100 \N \N 2015-03-25 08:45:06.12594 2015-03-25 08:45:06.12594
2257
+ 7 Sun Odyssey 32i 2 2 1 1 9.59999999999999964 3.29999999999999982 2 70 170 \N \N 2015-03-25 09:00:57.237706 2015-03-25 09:00:57.237706 2008
2258
+ 8 Sun Odyssey 30i 2 2 1 1 8.99000000000000021 3.18000000000000016 1.75 50 160 \N \N Yanmar 2015-03-25 09:11:31.624195 2015-03-25 09:11:31.624195 2012
2259
+ 9 petra 3 2 1 1 8 5 2 300 250 \N \N Volvo Penta 2015-03-25 11:52:33.151538 2015-03-25 11:52:33.151538 2012
2260
+ 10 Vielka Rocha 1 1 1 1 41 24 91 87 5 \N \N Aubrey Velazquez 2015-03-26 12:33:39.69823 2015-03-26 12:33:39.69823 Aperiam magnam tempor laborum aliquip aliqua Natus dolor quas perspiciatis commodo eveniet deleniti ipsa neque ut excepturi molestiae nostrum consequatur
2261
+ 11 Hanse 320 5 2 1 1 9.63000000000000078 3.29999999999999982 1.75 110 260 \N \N Yanmar 2015-03-26 13:33:02.141807 2015-03-26 13:33:02.141807 2008
2262
+ \.
2263
+
2264
+
2265
+ --
2266
+ -- Name: ship_models_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
2267
+ --
2268
+
2269
+ SELECT pg_catalog.setval('ship_models_id_seq', 11, true);
2270
+
2271
+
2272
+ --
2273
+ -- Data for Name: ships; Type: TABLE DATA; Schema: public; Owner: staging
2274
+ --
2275
+
2276
+ COPY ships (id, name, charter_company_id, ship_model_id, base_port_id, year_of_manufacture, no_of_engines, engine_name, engine_power, fuel_type_id, created_at, updated_at, description, length, beam, draught, fuel_capacity, water_capacity, max_no_of_people, no_of_berths, no_of_crew_cabins, no_of_heads, variant, no_of_bunk_cabins, no_of_double_cabins, no_of_skipper_cabins, hull_type_id, ship_type_id, no_of_single_cabins, no_of_triple_cabins, charter_type_id) FROM stdin;
2277
+ 1 Alec Sparks 1 3 2 27 39 Isaiah Sweeney 20 1 2015-03-26 12:28:14.776742 2015-03-26 12:28:14.776742 Earum mollit facere saepe tempor id, qui harum rerum commodo voluptatum reprehenderit, nesciunt, est, iusto architecto ipsam alias id vel. 17 45 62 46 50 66 Hic reiciendis est in qui 37 40 Officia vitae quaerat a asperiores voluptas amet quaerat 1 36 59 1 2 66 1 1
2278
+ \.
2279
+
2280
+
2281
+ --
2282
+ -- Name: ships_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
2283
+ --
2284
+
2285
+ SELECT pg_catalog.setval('ships_id_seq', 1, true);
2286
+
2287
+
2288
+ --
2289
+ -- Data for Name: ships_transit_log_templates; Type: TABLE DATA; Schema: public; Owner: staging
2290
+ --
2291
+
2292
+ COPY ships_transit_log_templates (ship_id, transit_log_template_id) FROM stdin;
2293
+ \.
2294
+
2295
+
2296
+ --
2297
+ -- Data for Name: to_do_items; Type: TABLE DATA; Schema: public; Owner: staging
2298
+ --
2299
+
2300
+ COPY to_do_items (id, "position", text, status, created_at, updated_at, assignee_id, assignee_type, user_id, due_date) FROM stdin;
2301
+ \.
2302
+
2303
+
2304
+ --
2305
+ -- Name: to_do_items_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
2306
+ --
2307
+
2308
+ SELECT pg_catalog.setval('to_do_items_id_seq', 1, false);
2309
+
2310
+
2311
+ --
2312
+ -- Data for Name: transactions; Type: TABLE DATA; Schema: public; Owner: staging
2313
+ --
2314
+
2315
+ COPY transactions (id, transaction_status_id, check_in, check_out, base_in_id, base_out_id, charter_company_id, client_id, price, payment_type_id, agency_agreement, agent_id, creation_date, option_date, expiry_date, created_at, updated_at, notes, payment_status, reservation_date) FROM stdin;
2316
+ \.
2317
+
2318
+
2319
+ --
2320
+ -- Name: transactions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
2321
+ --
2322
+
2323
+ SELECT pg_catalog.setval('transactions_id_seq', 1, false);
2324
+
2325
+
2326
+ --
2327
+ -- Data for Name: transit_log_items; Type: TABLE DATA; Schema: public; Owner: staging
2328
+ --
2329
+
2330
+ COPY transit_log_items (id, name, created_at, updated_at) FROM stdin;
2331
+ 1 Tashya Byers 2015-03-26 14:15:13.863076 2015-03-26 14:15:13.863076
2332
+ \.
2333
+
2334
+
2335
+ --
2336
+ -- Name: transit_log_items_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
2337
+ --
2338
+
2339
+ SELECT pg_catalog.setval('transit_log_items_id_seq', 1, true);
2340
+
2341
+
2342
+ --
2343
+ -- Data for Name: transit_log_items_templates; Type: TABLE DATA; Schema: public; Owner: staging
2344
+ --
2345
+
2346
+ COPY transit_log_items_templates (transit_log_item_id, transit_log_template_id) FROM stdin;
2347
+ \.
2348
+
2349
+
2350
+ --
2351
+ -- Data for Name: transit_log_templates; Type: TABLE DATA; Schema: public; Owner: staging
2352
+ --
2353
+
2354
+ COPY transit_log_templates (id, name, price, created_at, updated_at, charter_company_id) FROM stdin;
2355
+ \.
2356
+
2357
+
2358
+ --
2359
+ -- Name: transit_log_templates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
2360
+ --
2361
+
2362
+ SELECT pg_catalog.setval('transit_log_templates_id_seq', 2, true);
2363
+
2364
+
2365
+ --
2366
+ -- Data for Name: translations; Type: TABLE DATA; Schema: public; Owner: staging
2367
+ --
2368
+
2369
+ COPY translations (id, translatable_id, translatable_type, translatable_field, locale, content, created_at, updated_at) FROM stdin;
2370
+ 1 1 Expense description en 2015-03-26 14:58:40.267845 2015-03-26 14:58:40.267845
2371
+ 2 1 Expense description hr 2015-03-26 14:58:40.269107 2015-03-26 14:58:40.269107
2372
+ 3 1 Expense description de 2015-03-26 14:58:40.26982 2015-03-26 14:58:40.26982
2373
+ 4 1 Expense description fr 2015-03-26 14:58:40.270478 2015-03-26 14:58:40.270478
2374
+ \.
2375
+
2376
+
2377
+ --
2378
+ -- Name: translations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
2379
+ --
2380
+
2381
+ SELECT pg_catalog.setval('translations_id_seq', 4, true);
2382
+
2383
+
2384
+ --
2385
+ -- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: staging
2386
+ --
2387
+
2388
+ COPY users (id, email, encrypted_password, reset_password_token, reset_password_sent_at, remember_created_at, sign_in_count, current_sign_in_at, last_sign_in_at, current_sign_in_ip, last_sign_in_ip, created_at, updated_at, role_id) FROM stdin;
2389
+ 2 josip@infinum.hr $2a$10$xT/ABToXw.jJvaVFS2obf.IUAnBdBWdHcsn2Nlj7YMWo1fJ6XX3Py \N \N \N 1 2015-03-24 10:02:27.046451 2015-03-24 10:02:27.046451 213.147.102.42 213.147.102.42 2015-03-24 09:57:14.211133 2015-03-24 10:02:27.047701 1
2390
+ 1 admin@infinum.co $2a$10$5qBBHSFqkq1WNOi4PVwsa.yx0ieVQCLZakFjOuF1zQK991ZE4CJQi \N \N \N 3 2015-03-26 11:39:59.06348 2015-03-24 09:56:56.666934 213.147.102.42 213.147.102.42 2015-03-24 07:42:56.321559 2015-03-26 11:39:59.064812 1
2391
+ 3 maja@miramoclub.com $2a$10$hBUyeSxrRwN1d8hgD1wlFOB6zlSjnQ/w2PSpBG.yFgheARKPnsIu6 \N \N 2015-03-24 10:21:34.515682 4 2015-03-26 13:06:34.247288 2015-03-25 11:48:33.592827 151.252.233.169 5.39.142.122 2015-03-24 10:02:58.680854 2015-03-26 13:06:34.248275 1
2392
+ \.
2393
+
2394
+
2395
+ --
2396
+ -- Name: users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: staging
2397
+ --
2398
+
2399
+ SELECT pg_catalog.setval('users_id_seq', 3, true);
2400
+
2401
+
2402
+ --
2403
+ -- Name: attachments_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2404
+ --
2405
+
2406
+ ALTER TABLE ONLY attachments
2407
+ ADD CONSTRAINT attachments_pkey PRIMARY KEY (id);
2408
+
2409
+
2410
+ --
2411
+ -- Name: base_managers_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2412
+ --
2413
+
2414
+ ALTER TABLE ONLY base_port_managers
2415
+ ADD CONSTRAINT base_managers_pkey PRIMARY KEY (id);
2416
+
2417
+
2418
+ --
2419
+ -- Name: base_ports_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2420
+ --
2421
+
2422
+ ALTER TABLE ONLY base_ports
2423
+ ADD CONSTRAINT base_ports_pkey PRIMARY KEY (id);
2424
+
2425
+
2426
+ --
2427
+ -- Name: catalogues_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2428
+ --
2429
+
2430
+ ALTER TABLE ONLY catalogues
2431
+ ADD CONSTRAINT catalogues_pkey PRIMARY KEY (id);
2432
+
2433
+
2434
+ --
2435
+ -- Name: charter_companies_base_ports_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2436
+ --
2437
+
2438
+ ALTER TABLE ONLY base_ports_charter_companies
2439
+ ADD CONSTRAINT charter_companies_base_ports_pkey PRIMARY KEY (id);
2440
+
2441
+
2442
+ --
2443
+ -- Name: charter_companies_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2444
+ --
2445
+
2446
+ ALTER TABLE ONLY charter_companies
2447
+ ADD CONSTRAINT charter_companies_pkey PRIMARY KEY (id);
2448
+
2449
+
2450
+ --
2451
+ -- Name: charter_company_base_port_infos_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2452
+ --
2453
+
2454
+ ALTER TABLE ONLY charter_company_base_port_infos
2455
+ ADD CONSTRAINT charter_company_base_port_infos_pkey PRIMARY KEY (id);
2456
+
2457
+
2458
+ --
2459
+ -- Name: charter_packs_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2460
+ --
2461
+
2462
+ ALTER TABLE ONLY charter_packs
2463
+ ADD CONSTRAINT charter_packs_pkey PRIMARY KEY (id);
2464
+
2465
+
2466
+ --
2467
+ -- Name: deposit_items_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2468
+ --
2469
+
2470
+ ALTER TABLE ONLY deposit_items
2471
+ ADD CONSTRAINT deposit_items_pkey PRIMARY KEY (id);
2472
+
2473
+
2474
+ --
2475
+ -- Name: equipment_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2476
+ --
2477
+
2478
+ ALTER TABLE ONLY equipment
2479
+ ADD CONSTRAINT equipment_pkey PRIMARY KEY (id);
2480
+
2481
+
2482
+ --
2483
+ -- Name: expenses_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2484
+ --
2485
+
2486
+ ALTER TABLE ONLY expenses
2487
+ ADD CONSTRAINT expenses_pkey PRIMARY KEY (id);
2488
+
2489
+
2490
+ --
2491
+ -- Name: extra_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2492
+ --
2493
+
2494
+ ALTER TABLE ONLY extra_templates
2495
+ ADD CONSTRAINT extra_templates_pkey PRIMARY KEY (id);
2496
+
2497
+
2498
+ --
2499
+ -- Name: extras_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2500
+ --
2501
+
2502
+ ALTER TABLE ONLY extra_items
2503
+ ADD CONSTRAINT extras_pkey PRIMARY KEY (id);
2504
+
2505
+
2506
+ --
2507
+ -- Name: images_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2508
+ --
2509
+
2510
+ ALTER TABLE ONLY images
2511
+ ADD CONSTRAINT images_pkey PRIMARY KEY (id);
2512
+
2513
+
2514
+ --
2515
+ -- Name: periods_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2516
+ --
2517
+
2518
+ ALTER TABLE ONLY periods
2519
+ ADD CONSTRAINT periods_pkey PRIMARY KEY (id);
2520
+
2521
+
2522
+ --
2523
+ -- Name: price_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2524
+ --
2525
+
2526
+ ALTER TABLE ONLY price_lists
2527
+ ADD CONSTRAINT price_lists_pkey PRIMARY KEY (id);
2528
+
2529
+
2530
+ --
2531
+ -- Name: price_per_weeks_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2532
+ --
2533
+
2534
+ ALTER TABLE ONLY price_per_weeks
2535
+ ADD CONSTRAINT price_per_weeks_pkey PRIMARY KEY (id);
2536
+
2537
+
2538
+ --
2539
+ -- Name: prices_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2540
+ --
2541
+
2542
+ ALTER TABLE ONLY sailings
2543
+ ADD CONSTRAINT prices_pkey PRIMARY KEY (id);
2544
+
2545
+
2546
+ --
2547
+ -- Name: provisions_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2548
+ --
2549
+
2550
+ ALTER TABLE ONLY fees
2551
+ ADD CONSTRAINT provisions_pkey PRIMARY KEY (id);
2552
+
2553
+
2554
+ --
2555
+ -- Name: regions_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2556
+ --
2557
+
2558
+ ALTER TABLE ONLY regions
2559
+ ADD CONSTRAINT regions_pkey PRIMARY KEY (id);
2560
+
2561
+
2562
+ --
2563
+ -- Name: season_ships_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2564
+ --
2565
+
2566
+ ALTER TABLE ONLY season_ships
2567
+ ADD CONSTRAINT season_ships_pkey PRIMARY KEY (id);
2568
+
2569
+
2570
+ --
2571
+ -- Name: seasons_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2572
+ --
2573
+
2574
+ ALTER TABLE ONLY seasons
2575
+ ADD CONSTRAINT seasons_pkey PRIMARY KEY (id);
2576
+
2577
+
2578
+ --
2579
+ -- Name: ship_manufacturers_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2580
+ --
2581
+
2582
+ ALTER TABLE ONLY ship_manufacturers
2583
+ ADD CONSTRAINT ship_manufacturers_pkey PRIMARY KEY (id);
2584
+
2585
+
2586
+ --
2587
+ -- Name: ship_models_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2588
+ --
2589
+
2590
+ ALTER TABLE ONLY ship_models
2591
+ ADD CONSTRAINT ship_models_pkey PRIMARY KEY (id);
2592
+
2593
+
2594
+ --
2595
+ -- Name: ships_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2596
+ --
2597
+
2598
+ ALTER TABLE ONLY ships
2599
+ ADD CONSTRAINT ships_pkey PRIMARY KEY (id);
2600
+
2601
+
2602
+ --
2603
+ -- Name: to_do_items_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2604
+ --
2605
+
2606
+ ALTER TABLE ONLY to_do_items
2607
+ ADD CONSTRAINT to_do_items_pkey PRIMARY KEY (id);
2608
+
2609
+
2610
+ --
2611
+ -- Name: transactions_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2612
+ --
2613
+
2614
+ ALTER TABLE ONLY transactions
2615
+ ADD CONSTRAINT transactions_pkey PRIMARY KEY (id);
2616
+
2617
+
2618
+ --
2619
+ -- Name: transit_log_items_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2620
+ --
2621
+
2622
+ ALTER TABLE ONLY transit_log_items
2623
+ ADD CONSTRAINT transit_log_items_pkey PRIMARY KEY (id);
2624
+
2625
+
2626
+ --
2627
+ -- Name: transit_log_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2628
+ --
2629
+
2630
+ ALTER TABLE ONLY transit_log_templates
2631
+ ADD CONSTRAINT transit_log_templates_pkey PRIMARY KEY (id);
2632
+
2633
+
2634
+ --
2635
+ -- Name: translations_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2636
+ --
2637
+
2638
+ ALTER TABLE ONLY translations
2639
+ ADD CONSTRAINT translations_pkey PRIMARY KEY (id);
2640
+
2641
+
2642
+ --
2643
+ -- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: staging; Tablespace:
2644
+ --
2645
+
2646
+ ALTER TABLE ONLY users
2647
+ ADD CONSTRAINT users_pkey PRIMARY KEY (id);
2648
+
2649
+
2650
+ --
2651
+ -- Name: index_base_ports_charter_companies_on_base_port_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2652
+ --
2653
+
2654
+ CREATE INDEX index_base_ports_charter_companies_on_base_port_id ON base_ports_charter_companies USING btree (base_port_id);
2655
+
2656
+
2657
+ --
2658
+ -- Name: index_base_ports_charter_companies_on_charter_company_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2659
+ --
2660
+
2661
+ CREATE INDEX index_base_ports_charter_companies_on_charter_company_id ON base_ports_charter_companies USING btree (charter_company_id);
2662
+
2663
+
2664
+ --
2665
+ -- Name: index_charter_company_base_port_infos_on_base_port_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2666
+ --
2667
+
2668
+ CREATE INDEX index_charter_company_base_port_infos_on_base_port_id ON charter_company_base_port_infos USING btree (base_port_id);
2669
+
2670
+
2671
+ --
2672
+ -- Name: index_charter_company_base_port_infos_on_charter_company_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2673
+ --
2674
+
2675
+ CREATE INDEX index_charter_company_base_port_infos_on_charter_company_id ON charter_company_base_port_infos USING btree (charter_company_id);
2676
+
2677
+
2678
+ --
2679
+ -- Name: index_equipment_ships_on_equipment_id_and_ship_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2680
+ --
2681
+
2682
+ CREATE INDEX index_equipment_ships_on_equipment_id_and_ship_id ON equipment_ships USING btree (equipment_id, ship_id);
2683
+
2684
+
2685
+ --
2686
+ -- Name: index_equipment_ships_on_ship_id_and_equipment_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2687
+ --
2688
+
2689
+ CREATE INDEX index_equipment_ships_on_ship_id_and_equipment_id ON equipment_ships USING btree (ship_id, equipment_id);
2690
+
2691
+
2692
+ --
2693
+ -- Name: index_fees_on_charter_company_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2694
+ --
2695
+
2696
+ CREATE INDEX index_fees_on_charter_company_id ON fees USING btree (charter_company_id);
2697
+
2698
+
2699
+ --
2700
+ -- Name: index_images_on_item_id_and_item_type; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2701
+ --
2702
+
2703
+ CREATE INDEX index_images_on_item_id_and_item_type ON images USING btree (item_id, item_type);
2704
+
2705
+
2706
+ --
2707
+ -- Name: index_price_per_weeks_on_season_ship_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2708
+ --
2709
+
2710
+ CREATE INDEX index_price_per_weeks_on_season_ship_id ON price_per_weeks USING btree (season_ship_id);
2711
+
2712
+
2713
+ --
2714
+ -- Name: index_regions_on_ancestry; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2715
+ --
2716
+
2717
+ CREATE INDEX index_regions_on_ancestry ON regions USING btree (ancestry);
2718
+
2719
+
2720
+ --
2721
+ -- Name: index_sailings_transactions_on_sailing_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2722
+ --
2723
+
2724
+ CREATE INDEX index_sailings_transactions_on_sailing_id ON sailings_transactions USING btree (sailing_id);
2725
+
2726
+
2727
+ --
2728
+ -- Name: index_sailings_transactions_on_transaction_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2729
+ --
2730
+
2731
+ CREATE INDEX index_sailings_transactions_on_transaction_id ON sailings_transactions USING btree (transaction_id);
2732
+
2733
+
2734
+ --
2735
+ -- Name: index_season_ships_on_season_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2736
+ --
2737
+
2738
+ CREATE INDEX index_season_ships_on_season_id ON season_ships USING btree (season_id);
2739
+
2740
+
2741
+ --
2742
+ -- Name: index_season_ships_on_ship_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2743
+ --
2744
+
2745
+ CREATE INDEX index_season_ships_on_ship_id ON season_ships USING btree (ship_id);
2746
+
2747
+
2748
+ --
2749
+ -- Name: index_ship_models_on_ship_manufacturer_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2750
+ --
2751
+
2752
+ CREATE INDEX index_ship_models_on_ship_manufacturer_id ON ship_models USING btree (ship_manufacturer_id);
2753
+
2754
+
2755
+ --
2756
+ -- Name: index_ships_on_base_port_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2757
+ --
2758
+
2759
+ CREATE INDEX index_ships_on_base_port_id ON ships USING btree (base_port_id);
2760
+
2761
+
2762
+ --
2763
+ -- Name: index_ships_on_ship_model_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2764
+ --
2765
+
2766
+ CREATE INDEX index_ships_on_ship_model_id ON ships USING btree (ship_model_id);
2767
+
2768
+
2769
+ --
2770
+ -- Name: index_transactions_on_agent_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2771
+ --
2772
+
2773
+ CREATE INDEX index_transactions_on_agent_id ON transactions USING btree (agent_id);
2774
+
2775
+
2776
+ --
2777
+ -- Name: index_transactions_on_base_in_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2778
+ --
2779
+
2780
+ CREATE INDEX index_transactions_on_base_in_id ON transactions USING btree (base_in_id);
2781
+
2782
+
2783
+ --
2784
+ -- Name: index_transactions_on_base_out_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2785
+ --
2786
+
2787
+ CREATE INDEX index_transactions_on_base_out_id ON transactions USING btree (base_out_id);
2788
+
2789
+
2790
+ --
2791
+ -- Name: index_transactions_on_charter_company_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2792
+ --
2793
+
2794
+ CREATE INDEX index_transactions_on_charter_company_id ON transactions USING btree (charter_company_id);
2795
+
2796
+
2797
+ --
2798
+ -- Name: index_transactions_on_client_id; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2799
+ --
2800
+
2801
+ CREATE INDEX index_transactions_on_client_id ON transactions USING btree (client_id);
2802
+
2803
+
2804
+ --
2805
+ -- Name: index_users_on_email; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2806
+ --
2807
+
2808
+ CREATE UNIQUE INDEX index_users_on_email ON users USING btree (email);
2809
+
2810
+
2811
+ --
2812
+ -- Name: index_users_on_reset_password_token; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2813
+ --
2814
+
2815
+ CREATE UNIQUE INDEX index_users_on_reset_password_token ON users USING btree (reset_password_token);
2816
+
2817
+
2818
+ --
2819
+ -- Name: record_translations_index; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2820
+ --
2821
+
2822
+ CREATE INDEX record_translations_index ON translations USING btree (translatable_id, translatable_type, locale);
2823
+
2824
+
2825
+ --
2826
+ -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: staging; Tablespace:
2827
+ --
2828
+
2829
+ CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
2830
+
2831
+
2832
+ --
2833
+ -- Name: public; Type: ACL; Schema: -; Owner: postgres
2834
+ --
2835
+
2836
+ REVOKE ALL ON SCHEMA public FROM PUBLIC;
2837
+ REVOKE ALL ON SCHEMA public FROM postgres;
2838
+ GRANT ALL ON SCHEMA public TO postgres;
2839
+ GRANT ALL ON SCHEMA public TO PUBLIC;
2840
+
2841
+
2842
+ --
2843
+ -- PostgreSQL database dump complete
2844
+ --
2845
+