-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.sql
More file actions
1053 lines (723 loc) · 25.3 KB
/
database.sql
File metadata and controls
1053 lines (723 loc) · 25.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: attachments; Type: TABLE; Schema: public; Owner: bilal; Tablespace:
--
CREATE TABLE attachments (
id integer NOT NULL,
attachable_id integer,
attachable_type character varying,
url character varying,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.attachments OWNER TO bilal;
--
-- Name: attachments_id_seq; Type: SEQUENCE; Schema: public; Owner: bilal
--
CREATE SEQUENCE attachments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.attachments_id_seq OWNER TO bilal;
--
-- Name: attachments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bilal
--
ALTER SEQUENCE attachments_id_seq OWNED BY attachments.id;
--
-- Name: contact_us; Type: TABLE; Schema: public; Owner: bilal; Tablespace:
--
CREATE TABLE contact_us (
id integer NOT NULL,
name character varying,
email character varying,
subject character varying,
message text,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE public.contact_us OWNER TO bilal;
--
-- Name: contact_us_id_seq; Type: SEQUENCE; Schema: public; Owner: bilal
--
CREATE SEQUENCE contact_us_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.contact_us_id_seq OWNER TO bilal;
--
-- Name: contact_us_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bilal
--
ALTER SEQUENCE contact_us_id_seq OWNED BY contact_us.id;
--
-- Name: feedbacks; Type: TABLE; Schema: public; Owner: bilal; Tablespace:
--
CREATE TABLE feedbacks (
id integer NOT NULL,
added_by_id integer,
added_by_name character varying,
subject character varying,
feedback text,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
status character varying
);
ALTER TABLE public.feedbacks OWNER TO bilal;
--
-- Name: feedbacks_id_seq; Type: SEQUENCE; Schema: public; Owner: bilal
--
CREATE SEQUENCE feedbacks_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.feedbacks_id_seq OWNER TO bilal;
--
-- Name: feedbacks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bilal
--
ALTER SEQUENCE feedbacks_id_seq OWNED BY feedbacks.id;
--
-- Name: gatepass; Type: TABLE; Schema: public; Owner: bilal; Tablespace:
--
CREATE TABLE gatepass (
id integer NOT NULL,
order_id integer,
to_who character varying,
delivered_pcs character varying,
total_amount character varying,
made_by integer,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE public.gatepass OWNER TO bilal;
--
-- Name: gatepass_id_seq; Type: SEQUENCE; Schema: public; Owner: bilal
--
CREATE SEQUENCE gatepass_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.gatepass_id_seq OWNER TO bilal;
--
-- Name: gatepass_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bilal
--
ALTER SEQUENCE gatepass_id_seq OWNED BY gatepass.id;
--
-- Name: gatepasses; Type: TABLE; Schema: public; Owner: bilal; Tablespace:
--
CREATE TABLE gatepasses (
id integer NOT NULL,
order_id integer,
to_who character varying,
delivered_pcs character varying,
total_amount character varying,
made_by integer,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE public.gatepasses OWNER TO bilal;
--
-- Name: gatepasses_id_seq; Type: SEQUENCE; Schema: public; Owner: bilal
--
CREATE SEQUENCE gatepasses_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.gatepasses_id_seq OWNER TO bilal;
--
-- Name: gatepasses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bilal
--
ALTER SEQUENCE gatepasses_id_seq OWNED BY gatepasses.id;
--
-- Name: invoices; Type: TABLE; Schema: public; Owner: bilal; Tablespace:
--
CREATE TABLE invoices (
id integer NOT NULL,
personname character varying,
invoice_type character varying,
amount text,
description text,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
image character varying
);
ALTER TABLE public.invoices OWNER TO bilal;
--
-- Name: invoices_id_seq; Type: SEQUENCE; Schema: public; Owner: bilal
--
CREATE SEQUENCE invoices_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.invoices_id_seq OWNER TO bilal;
--
-- Name: invoices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bilal
--
ALTER SEQUENCE invoices_id_seq OWNED BY invoices.id;
--
-- Name: leaves; Type: TABLE; Schema: public; Owner: bilal; Tablespace:
--
CREATE TABLE leaves (
id integer NOT NULL,
person_id integer,
person_name character varying,
from_when timestamp without time zone,
number_of_days character varying,
subject character varying,
description text,
status character varying DEFAULT 'pending'::character varying,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
image character varying
);
ALTER TABLE public.leaves OWNER TO bilal;
--
-- Name: leaves_id_seq; Type: SEQUENCE; Schema: public; Owner: bilal
--
CREATE SEQUENCE leaves_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.leaves_id_seq OWNER TO bilal;
--
-- Name: leaves_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bilal
--
ALTER SEQUENCE leaves_id_seq OWNED BY leaves.id;
--
-- Name: orders; Type: TABLE; Schema: public; Owner: bilal; Tablespace:
--
CREATE TABLE orders (
id integer NOT NULL,
customer_name character varying,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
email character varying,
phn_number character varying,
nric character varying,
company_name character varying,
address character varying,
quantity character varying,
sizing character varying,
fabric_type character varying,
delivery_date character varying,
order_status character varying DEFAULT 'pending'::character varying,
description text,
created_by_id integer,
created_by_name character varying,
extra_note text,
price_per_piece integer,
image character varying,
image1 character varying
);
ALTER TABLE public.orders OWNER TO bilal;
--
-- Name: orders_id_seq; Type: SEQUENCE; Schema: public; Owner: bilal
--
CREATE SEQUENCE orders_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.orders_id_seq OWNER TO bilal;
--
-- Name: orders_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bilal
--
ALTER SEQUENCE orders_id_seq OWNED BY orders.id;
--
-- Name: products; Type: TABLE; Schema: public; Owner: bilal; Tablespace:
--
CREATE TABLE products (
id integer NOT NULL,
product_name character varying,
status character varying,
gender character varying,
price character varying,
description text,
quantity character varying,
product_image character varying,
created_by integer,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE public.products OWNER TO bilal;
--
-- Name: products_id_seq; Type: SEQUENCE; Schema: public; Owner: bilal
--
CREATE SEQUENCE products_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.products_id_seq OWNER TO bilal;
--
-- Name: products_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bilal
--
ALTER SEQUENCE products_id_seq OWNED BY products.id;
--
-- Name: registers; Type: TABLE; Schema: public; Owner: bilal; Tablespace:
--
CREATE TABLE registers (
id integer NOT NULL,
name character varying,
email character varying,
role character varying,
password_hash character varying,
password_salt character varying,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
admin boolean
);
ALTER TABLE public.registers OWNER TO bilal;
--
-- Name: registers_id_seq; Type: SEQUENCE; Schema: public; Owner: bilal
--
CREATE SEQUENCE registers_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.registers_id_seq OWNER TO bilal;
--
-- Name: registers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bilal
--
ALTER SEQUENCE registers_id_seq OWNED BY registers.id;
--
-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: bilal; Tablespace:
--
CREATE TABLE schema_migrations (
version character varying NOT NULL
);
ALTER TABLE public.schema_migrations OWNER TO bilal;
--
-- Name: stocks; Type: TABLE; Schema: public; Owner: bilal; Tablespace:
--
CREATE TABLE stocks (
id integer NOT NULL,
accessory_name character varying,
accessory_quantity integer,
accessory_price_per_pcs integer,
used_accessory integer,
last_updated timestamp without time zone,
added_by integer,
description text,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE public.stocks OWNER TO bilal;
--
-- Name: stocks_id_seq; Type: SEQUENCE; Schema: public; Owner: bilal
--
CREATE SEQUENCE stocks_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.stocks_id_seq OWNER TO bilal;
--
-- Name: stocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bilal
--
ALTER SEQUENCE stocks_id_seq OWNED BY stocks.id;
--
-- Name: users; Type: TABLE; Schema: public; Owner: bilal; Tablespace:
--
CREATE TABLE users (
id integer NOT NULL,
name character varying,
email character varying,
password character varying,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE public.users OWNER TO bilal;
--
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: bilal
--
CREATE SEQUENCE users_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.users_id_seq OWNER TO bilal;
--
-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bilal
--
ALTER SEQUENCE users_id_seq OWNED BY users.id;
--
-- Name: ussers; Type: TABLE; Schema: public; Owner: bilal; Tablespace:
--
CREATE TABLE ussers (
id integer NOT NULL,
admin boolean,
email character varying DEFAULT ''::character varying NOT NULL,
encrypted_password character varying DEFAULT ''::character varying NOT NULL,
reset_password_token character varying,
reset_password_sent_at timestamp without time zone,
remember_created_at timestamp without time zone,
sign_in_count integer DEFAULT 0 NOT NULL,
current_sign_in_at timestamp without time zone,
last_sign_in_at timestamp without time zone,
current_sign_in_ip inet,
last_sign_in_ip inet,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE public.ussers OWNER TO bilal;
--
-- Name: ussers_id_seq; Type: SEQUENCE; Schema: public; Owner: bilal
--
CREATE SEQUENCE ussers_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ussers_id_seq OWNER TO bilal;
--
-- Name: ussers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: bilal
--
ALTER SEQUENCE ussers_id_seq OWNED BY ussers.id;
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: bilal
--
ALTER TABLE ONLY attachments ALTER COLUMN id SET DEFAULT nextval('attachments_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: bilal
--
ALTER TABLE ONLY contact_us ALTER COLUMN id SET DEFAULT nextval('contact_us_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: bilal
--
ALTER TABLE ONLY feedbacks ALTER COLUMN id SET DEFAULT nextval('feedbacks_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: bilal
--
ALTER TABLE ONLY gatepass ALTER COLUMN id SET DEFAULT nextval('gatepass_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: bilal
--
ALTER TABLE ONLY gatepasses ALTER COLUMN id SET DEFAULT nextval('gatepasses_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: bilal
--
ALTER TABLE ONLY invoices ALTER COLUMN id SET DEFAULT nextval('invoices_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: bilal
--
ALTER TABLE ONLY leaves ALTER COLUMN id SET DEFAULT nextval('leaves_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: bilal
--
ALTER TABLE ONLY orders ALTER COLUMN id SET DEFAULT nextval('orders_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: bilal
--
ALTER TABLE ONLY products ALTER COLUMN id SET DEFAULT nextval('products_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: bilal
--
ALTER TABLE ONLY registers ALTER COLUMN id SET DEFAULT nextval('registers_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: bilal
--
ALTER TABLE ONLY stocks ALTER COLUMN id SET DEFAULT nextval('stocks_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: bilal
--
ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: bilal
--
ALTER TABLE ONLY ussers ALTER COLUMN id SET DEFAULT nextval('ussers_id_seq'::regclass);
--
-- Data for Name: attachments; Type: TABLE DATA; Schema: public; Owner: bilal
--
COPY attachments (id, attachable_id, attachable_type, url, created_at, updated_at) FROM stdin;
\.
--
-- Name: attachments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: bilal
--
SELECT pg_catalog.setval('attachments_id_seq', 1, false);
--
-- Data for Name: contact_us; Type: TABLE DATA; Schema: public; Owner: bilal
--
COPY contact_us (id, name, email, subject, message, created_at, updated_at) FROM stdin;
1 hbnkm hbnkjm h hn 2015-11-21 06:41:32.038722 2015-11-21 06:41:32.038722
\.
--
-- Name: contact_us_id_seq; Type: SEQUENCE SET; Schema: public; Owner: bilal
--
SELECT pg_catalog.setval('contact_us_id_seq', 1, true);
--
-- Data for Name: feedbacks; Type: TABLE DATA; Schema: public; Owner: bilal
--
COPY feedbacks (id, added_by_id, added_by_name, subject, feedback, created_at, updated_at, status) FROM stdin;
3 2 Bilal Graphs in Reporting! everything is working perfectly fine but! there should be some graphs or charts to show profile loss in reporting feature which will make easy to see profit and loss monthly. Thanks! 2015-11-22 14:42:15.631111 2015-11-22 14:42:15.631111
\.
--
-- Name: feedbacks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: bilal
--
SELECT pg_catalog.setval('feedbacks_id_seq', 3, true);
--
-- Data for Name: gatepass; Type: TABLE DATA; Schema: public; Owner: bilal
--
COPY gatepass (id, order_id, to_who, delivered_pcs, total_amount, made_by, created_at, updated_at) FROM stdin;
\.
--
-- Name: gatepass_id_seq; Type: SEQUENCE SET; Schema: public; Owner: bilal
--
SELECT pg_catalog.setval('gatepass_id_seq', 1, false);
--
-- Data for Name: gatepasses; Type: TABLE DATA; Schema: public; Owner: bilal
--
COPY gatepasses (id, order_id, to_who, delivered_pcs, total_amount, made_by, created_at, updated_at) FROM stdin;
1 13 company 277 33 2 2015-11-18 09:17:18.676085 2015-11-18 09:17:18.676085
\.
--
-- Name: gatepasses_id_seq; Type: SEQUENCE SET; Schema: public; Owner: bilal
--
SELECT pg_catalog.setval('gatepasses_id_seq', 1, true);
--
-- Data for Name: invoices; Type: TABLE DATA; Schema: public; Owner: bilal
--
COPY invoices (id, personname, invoice_type, amount, description, created_at, updated_at, image) FROM stdin;
2 Me Profit 200RM !! 2015-10-03 14:59:22.845318 2015-10-03 14:59:22.845318 \N
3 Hsheem payroll 100RM li the is ki!!!!! 2015-10-04 20:54:20.030518 2015-10-04 20:55:03.221554 \N
1 Sheikh Expense 20 toffie!!!! 2015-09-02 17:17:30 2015-10-26 12:17:56.533187 \N
4 The geradge sales 200RM we delivered!!! lol 2015-11-18 08:12:18.95321 2015-11-18 08:12:18.95321 \N
\.
--
-- Name: invoices_id_seq; Type: SEQUENCE SET; Schema: public; Owner: bilal
--
SELECT pg_catalog.setval('invoices_id_seq', 4, true);
--
-- Data for Name: leaves; Type: TABLE DATA; Schema: public; Owner: bilal
--
COPY leaves (id, person_id, person_name, from_when, number_of_days, subject, description, status, created_at, updated_at, image) FROM stdin;
1 2 Bilal 2015-10-06 00:00:00 2 fghbnj rdtfgyhkj Rejected 2015-10-18 18:05:59.908111 2015-11-21 10:28:07.099883 11760143_10206595340714016_2143098513978407381_n.jpg
2 3 Super \N efef sc cdc pending 2015-11-21 10:41:20.725476 2015-11-21 10:41:20.725476 Screenshot_from_2015-09-21_18_24_39.png
\.
--
-- Name: leaves_id_seq; Type: SEQUENCE SET; Schema: public; Owner: bilal
--
SELECT pg_catalog.setval('leaves_id_seq', 2, true);
--
-- Data for Name: orders; Type: TABLE DATA; Schema: public; Owner: bilal
--
COPY orders (id, customer_name, created_at, updated_at, email, phn_number, nric, company_name, address, quantity, sizing, fabric_type, delivery_date, order_status, description, created_by_id, created_by_name, extra_note, price_per_piece, image, image1) FROM stdin;
14 2015-11-15 15:59:39.217886 2015-11-15 15:59:39.217886 pending \N 2 Bilal tariq \N \N \N
11 vghbnj 2015-10-03 12:39:38.088451 2015-11-18 09:12:41.343169 yghbjn 12356789 yghbj ngyhbnj gyhbnj 111 nghbj nhbj hjn in_progress 2 Bilal tariq what 122 \N \N
9 ghbjnkm 2015-09-21 13:17:02.019128 2015-11-21 09:30:43.203444 ghkj gvhbjnk mhb nmv hbjn hbnjgvhb njmgvhbj ngvhbj nhbnj in_progress \N \N khbjnkm \N \N \N
12 what 2015-10-03 12:41:45.416001 2015-10-03 13:48:12.402763 what 345678 xdrcfgvhb fvghb fgvhnbj 2345 3456 3456 4567fgvhbnj pending \N 2 Bilal tariq rdgfvhbnj 444 \N \N
13 cfgvhbnj 2015-10-03 13:51:42.376804 2015-10-04 20:41:13.645254 cfgvhbnj cfgvhb cfgv hbcgv hbftgvyhb 456 ftyghu ftgyhu yvghbn completed order completed on this 2 Bilal tariq gh 44 \N \N
\.
--
-- Name: orders_id_seq; Type: SEQUENCE SET; Schema: public; Owner: bilal
--
SELECT pg_catalog.setval('orders_id_seq', 14, true);
--
-- Data for Name: products; Type: TABLE DATA; Schema: public; Owner: bilal
--
COPY products (id, product_name, status, gender, price, description, quantity, product_image, created_by, created_at, updated_at) FROM stdin;
1 WOWO available Men 200RM Design brilliantly with natural cotton! just kidding lol 200pcs 11760143_10206595340714016_2143098513978407381_n.jpg 2 2015-11-14 18:01:24.366737 2015-11-14 18:13:53.621575
2 NEW available Men 100RM its just a test!! 12pcs shirt.jpg 2 2015-11-14 18:14:45.667947 2015-11-14 18:14:45.667947
3 Blouse limites Womens 500RM products for womens 10pcs 11707629_10153434433906552_7453281273288241109_n.jpg 2 2015-11-14 18:26:42.774428 2015-11-14 18:26:42.774428
\.
--
-- Name: products_id_seq; Type: SEQUENCE SET; Schema: public; Owner: bilal
--
SELECT pg_catalog.setval('products_id_seq', 3, true);
--
-- Data for Name: registers; Type: TABLE DATA; Schema: public; Owner: bilal
--
COPY registers (id, name, email, role, password_hash, password_salt, created_at, updated_at, admin) FROM stdin;
3 Super super@live.com Staff superstaff superstaff 2015-08-29 17:24:13.47337 2015-08-29 17:24:13.47337 f
2 Bilal tariq bilal-tariq@live.com Admin super super 2015-08-29 10:42:41.591072 2015-09-23 09:47:27.787362 t
\.
--
-- Name: registers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: bilal
--
SELECT pg_catalog.setval('registers_id_seq', 3, true);
--
-- Data for Name: schema_migrations; Type: TABLE DATA; Schema: public; Owner: bilal
--
COPY schema_migrations (version) FROM stdin;
20150828165000
20150829065820
20150829094549
20150829125846
20150830120243
20150920163427
20150920175223
20150920185455
20150921130621
20150921162924
20150921173420
20151002163708
20151003090900
20151003092601
20151003111104
20151003122039
20151003134911
20151003145344
20151003155808
20151003161423
20151114172520
20151121051625
20151121111607
20151121122900
\.
--
-- Data for Name: stocks; Type: TABLE DATA; Schema: public; Owner: bilal
--
COPY stocks (id, accessory_name, accessory_quantity, accessory_price_per_pcs, used_accessory, last_updated, added_by, description, created_at, updated_at) FROM stdin;
1 Zip 2 3 1 2015-09-22 16:44:33.91141 2 cheap! 2015-09-21 17:53:06.678393 2015-09-22 16:44:33.912698
6 Pen 1 10 1 2015-09-22 16:51:34.656667 2 soft! 2015-09-21 18:31:00.011248 2015-09-22 16:51:34.658317
12 Pen drive 3 10 2 2015-09-23 08:49:12.564726 2 what!! 2015-09-23 08:48:29.824702 2015-09-23 08:49:12.565927
14 fgh 6 10 3 2015-10-04 20:56:38.260002 2 ftyghkj 2015-09-23 09:44:35.468105 2015-10-04 20:56:38.262103
\.
--
-- Name: stocks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: bilal
--
SELECT pg_catalog.setval('stocks_id_seq', 14, true);
--
-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: bilal
--
COPY users (id, name, email, password, created_at, updated_at) FROM stdin;
\.
--
-- Name: users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: bilal
--
SELECT pg_catalog.setval('users_id_seq', 1, false);
--
-- Data for Name: ussers; Type: TABLE DATA; Schema: public; Owner: bilal
--
COPY ussers (id, admin, 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) FROM stdin;
1 \N bilal-tariq@live.com $2a$10$0F4qtJCnsip8zTVgdsNk0.OcdICnH3LtWS/35.3vMj5ARmezP86kW \N \N \N 1 2015-08-29 13:06:08.334276 2015-08-29 13:06:08.334276 127.0.0.1 127.0.0.1 2015-08-29 13:06:08.319532 2015-08-29 13:06:08.335411
\.
--
-- Name: ussers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: bilal
--
SELECT pg_catalog.setval('ussers_id_seq', 1, true);
--
-- Name: attachments_pkey; Type: CONSTRAINT; Schema: public; Owner: bilal; Tablespace:
--
ALTER TABLE ONLY attachments
ADD CONSTRAINT attachments_pkey PRIMARY KEY (id);
--
-- Name: contact_us_pkey; Type: CONSTRAINT; Schema: public; Owner: bilal; Tablespace:
--
ALTER TABLE ONLY contact_us
ADD CONSTRAINT contact_us_pkey PRIMARY KEY (id);
--
-- Name: feedbacks_pkey; Type: CONSTRAINT; Schema: public; Owner: bilal; Tablespace:
--
ALTER TABLE ONLY feedbacks
ADD CONSTRAINT feedbacks_pkey PRIMARY KEY (id);
--
-- Name: gatepass_pkey; Type: CONSTRAINT; Schema: public; Owner: bilal; Tablespace:
--
ALTER TABLE ONLY gatepass
ADD CONSTRAINT gatepass_pkey PRIMARY KEY (id);
--
-- Name: gatepasses_pkey; Type: CONSTRAINT; Schema: public; Owner: bilal; Tablespace:
--
ALTER TABLE ONLY gatepasses
ADD CONSTRAINT gatepasses_pkey PRIMARY KEY (id);
--
-- Name: invoices_pkey; Type: CONSTRAINT; Schema: public; Owner: bilal; Tablespace:
--
ALTER TABLE ONLY invoices
ADD CONSTRAINT invoices_pkey PRIMARY KEY (id);
--
-- Name: leaves_pkey; Type: CONSTRAINT; Schema: public; Owner: bilal; Tablespace:
--
ALTER TABLE ONLY leaves
ADD CONSTRAINT leaves_pkey PRIMARY KEY (id);
--
-- Name: orders_pkey; Type: CONSTRAINT; Schema: public; Owner: bilal; Tablespace:
--
ALTER TABLE ONLY orders
ADD CONSTRAINT orders_pkey PRIMARY KEY (id);
--
-- Name: products_pkey; Type: CONSTRAINT; Schema: public; Owner: bilal; Tablespace:
--
ALTER TABLE ONLY products
ADD CONSTRAINT products_pkey PRIMARY KEY (id);
--
-- Name: registers_pkey; Type: CONSTRAINT; Schema: public; Owner: bilal; Tablespace:
--
ALTER TABLE ONLY registers
ADD CONSTRAINT registers_pkey PRIMARY KEY (id);
--
-- Name: stocks_pkey; Type: CONSTRAINT; Schema: public; Owner: bilal; Tablespace:
--
ALTER TABLE ONLY stocks
ADD CONSTRAINT stocks_pkey PRIMARY KEY (id);