-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathneapp.sql
More file actions
1771 lines (1200 loc) · 50.6 KB
/
Copy pathneapp.sql
File metadata and controls
1771 lines (1200 loc) · 50.6 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
--
-- Dumped from database version 11.3
-- Dumped by pg_dump version 11.3
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: Tags; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public."Tags" (
id integer NOT NULL,
name character varying(250) NOT NULL
);
ALTER TABLE public."Tags" OWNER TO blueparachute;
--
-- Name: Tags_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public."Tags_id_seq"
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public."Tags_id_seq" OWNER TO blueparachute;
--
-- Name: Tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public."Tags_id_seq" OWNED BY public."Tags".id;
--
-- Name: auth_group; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.auth_group (
id integer NOT NULL,
name character varying(150) NOT NULL
);
ALTER TABLE public.auth_group OWNER TO blueparachute;
--
-- Name: auth_group_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.auth_group_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.auth_group_id_seq OWNER TO blueparachute;
--
-- Name: auth_group_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.auth_group_id_seq OWNED BY public.auth_group.id;
--
-- Name: auth_group_permissions; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.auth_group_permissions (
id integer NOT NULL,
group_id integer NOT NULL,
permission_id integer NOT NULL
);
ALTER TABLE public.auth_group_permissions OWNER TO blueparachute;
--
-- Name: auth_group_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.auth_group_permissions_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.auth_group_permissions_id_seq OWNER TO blueparachute;
--
-- Name: auth_group_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.auth_group_permissions_id_seq OWNED BY public.auth_group_permissions.id;
--
-- Name: auth_permission; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.auth_permission (
id integer NOT NULL,
name character varying(255) NOT NULL,
content_type_id integer NOT NULL,
codename character varying(100) NOT NULL
);
ALTER TABLE public.auth_permission OWNER TO blueparachute;
--
-- Name: auth_permission_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.auth_permission_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.auth_permission_id_seq OWNER TO blueparachute;
--
-- Name: auth_permission_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.auth_permission_id_seq OWNED BY public.auth_permission.id;
--
-- Name: auth_user; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.auth_user (
id integer NOT NULL,
password character varying(128) NOT NULL,
last_login timestamp with time zone,
is_superuser boolean NOT NULL,
username character varying(150) NOT NULL,
first_name character varying(30) NOT NULL,
last_name character varying(150) NOT NULL,
email character varying(254) NOT NULL,
is_staff boolean NOT NULL,
is_active boolean NOT NULL,
date_joined timestamp with time zone NOT NULL
);
ALTER TABLE public.auth_user OWNER TO blueparachute;
--
-- Name: auth_user_groups; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.auth_user_groups (
id integer NOT NULL,
user_id integer NOT NULL,
group_id integer NOT NULL
);
ALTER TABLE public.auth_user_groups OWNER TO blueparachute;
--
-- Name: auth_user_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.auth_user_groups_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.auth_user_groups_id_seq OWNER TO blueparachute;
--
-- Name: auth_user_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.auth_user_groups_id_seq OWNED BY public.auth_user_groups.id;
--
-- Name: auth_user_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.auth_user_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.auth_user_id_seq OWNER TO blueparachute;
--
-- Name: auth_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.auth_user_id_seq OWNED BY public.auth_user.id;
--
-- Name: auth_user_user_permissions; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.auth_user_user_permissions (
id integer NOT NULL,
user_id integer NOT NULL,
permission_id integer NOT NULL
);
ALTER TABLE public.auth_user_user_permissions OWNER TO blueparachute;
--
-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.auth_user_user_permissions_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.auth_user_user_permissions_id_seq OWNER TO blueparachute;
--
-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.auth_user_user_permissions_id_seq OWNED BY public.auth_user_user_permissions.id;
--
-- Name: categorias; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.categorias (
id integer NOT NULL,
name character varying(250) NOT NULL
);
ALTER TABLE public.categorias OWNER TO blueparachute;
--
-- Name: categorias_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.categorias_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.categorias_id_seq OWNER TO blueparachute;
--
-- Name: categorias_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.categorias_id_seq OWNED BY public.categorias.id;
--
-- Name: costumer; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.costumer (
id integer NOT NULL,
creation timestamp with time zone NOT NULL,
name character varying(250) NOT NULL,
cep character varying(15) NOT NULL,
"CPF" character varying(20) NOT NULL,
logradouro character varying(250) NOT NULL,
bairro character varying(250) NOT NULL,
numero character varying(20) NOT NULL,
cidade character varying(200) NOT NULL,
"UF" character varying(2) NOT NULL,
complemento character varying(250) NOT NULL
);
ALTER TABLE public.costumer OWNER TO blueparachute;
--
-- Name: costumer_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.costumer_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.costumer_id_seq OWNER TO blueparachute;
--
-- Name: costumer_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.costumer_id_seq OWNED BY public.costumer.id;
--
-- Name: django_admin_log; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.django_admin_log (
id integer NOT NULL,
action_time timestamp with time zone NOT NULL,
object_id text,
object_repr character varying(200) NOT NULL,
action_flag smallint NOT NULL,
change_message text NOT NULL,
content_type_id integer,
user_id integer NOT NULL,
CONSTRAINT django_admin_log_action_flag_check CHECK ((action_flag >= 0))
);
ALTER TABLE public.django_admin_log OWNER TO blueparachute;
--
-- Name: django_admin_log_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.django_admin_log_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.django_admin_log_id_seq OWNER TO blueparachute;
--
-- Name: django_admin_log_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.django_admin_log_id_seq OWNED BY public.django_admin_log.id;
--
-- Name: django_content_type; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.django_content_type (
id integer NOT NULL,
app_label character varying(100) NOT NULL,
model character varying(100) NOT NULL
);
ALTER TABLE public.django_content_type OWNER TO blueparachute;
--
-- Name: django_content_type_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.django_content_type_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.django_content_type_id_seq OWNER TO blueparachute;
--
-- Name: django_content_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.django_content_type_id_seq OWNED BY public.django_content_type.id;
--
-- Name: django_migrations; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.django_migrations (
id integer NOT NULL,
app character varying(255) NOT NULL,
name character varying(255) NOT NULL,
applied timestamp with time zone NOT NULL
);
ALTER TABLE public.django_migrations OWNER TO blueparachute;
--
-- Name: django_migrations_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.django_migrations_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.django_migrations_id_seq OWNER TO blueparachute;
--
-- Name: django_migrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.django_migrations_id_seq OWNED BY public.django_migrations.id;
--
-- Name: django_session; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.django_session (
session_key character varying(40) NOT NULL,
session_data text NOT NULL,
expire_date timestamp with time zone NOT NULL
);
ALTER TABLE public.django_session OWNER TO blueparachute;
--
-- Name: item_vendas; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.item_vendas (
id integer NOT NULL,
valor double precision NOT NULL,
produtos_id integer NOT NULL,
vendas_id integer NOT NULL
);
ALTER TABLE public.item_vendas OWNER TO blueparachute;
--
-- Name: item_vendas_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.item_vendas_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.item_vendas_id_seq OWNER TO blueparachute;
--
-- Name: item_vendas_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.item_vendas_id_seq OWNED BY public.item_vendas.id;
--
-- Name: payinfo; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.payinfo (
id integer NOT NULL,
creation timestamp with time zone NOT NULL,
name character varying(250) NOT NULL,
card character varying(16) NOT NULL,
dv integer NOT NULL,
costumer_id integer NOT NULL
);
ALTER TABLE public.payinfo OWNER TO blueparachute;
--
-- Name: payinfo_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.payinfo_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.payinfo_id_seq OWNER TO blueparachute;
--
-- Name: payinfo_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.payinfo_id_seq OWNED BY public.payinfo.id;
--
-- Name: produto_tags; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.produto_tags (
id integer NOT NULL,
produto_id integer NOT NULL,
tags_id integer NOT NULL
);
ALTER TABLE public.produto_tags OWNER TO blueparachute;
--
-- Name: produto_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.produto_tags_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.produto_tags_id_seq OWNER TO blueparachute;
--
-- Name: produto_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.produto_tags_id_seq OWNED BY public.produto_tags.id;
--
-- Name: produtos; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.produtos (
id integer NOT NULL,
creation timestamp with time zone NOT NULL,
name character varying(250) NOT NULL,
preco double precision NOT NULL,
categoria_id integer NOT NULL
);
ALTER TABLE public.produtos OWNER TO blueparachute;
--
-- Name: produtos_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.produtos_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.produtos_id_seq OWNER TO blueparachute;
--
-- Name: produtos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.produtos_id_seq OWNED BY public.produtos.id;
--
-- Name: vendas; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.vendas (
id integer NOT NULL,
creation timestamp with time zone NOT NULL,
card_id integer NOT NULL,
costumer_id integer NOT NULL,
status_id integer NOT NULL
);
ALTER TABLE public.vendas OWNER TO blueparachute;
--
-- Name: vendas_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.vendas_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.vendas_id_seq OWNER TO blueparachute;
--
-- Name: vendas_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.vendas_id_seq OWNED BY public.vendas.id;
--
-- Name: vendas_status; Type: TABLE; Schema: public; Owner: blueparachute
--
CREATE TABLE public.vendas_status (
id integer NOT NULL,
name character varying(250) NOT NULL
);
ALTER TABLE public.vendas_status OWNER TO blueparachute;
--
-- Name: vendas_status_id_seq; Type: SEQUENCE; Schema: public; Owner: blueparachute
--
CREATE SEQUENCE public.vendas_status_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.vendas_status_id_seq OWNER TO blueparachute;
--
-- Name: vendas_status_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: blueparachute
--
ALTER SEQUENCE public.vendas_status_id_seq OWNED BY public.vendas_status.id;
--
-- Name: Tags id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public."Tags" ALTER COLUMN id SET DEFAULT nextval('public."Tags_id_seq"'::regclass);
--
-- Name: auth_group id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.auth_group ALTER COLUMN id SET DEFAULT nextval('public.auth_group_id_seq'::regclass);
--
-- Name: auth_group_permissions id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.auth_group_permissions ALTER COLUMN id SET DEFAULT nextval('public.auth_group_permissions_id_seq'::regclass);
--
-- Name: auth_permission id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.auth_permission ALTER COLUMN id SET DEFAULT nextval('public.auth_permission_id_seq'::regclass);
--
-- Name: auth_user id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.auth_user ALTER COLUMN id SET DEFAULT nextval('public.auth_user_id_seq'::regclass);
--
-- Name: auth_user_groups id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.auth_user_groups ALTER COLUMN id SET DEFAULT nextval('public.auth_user_groups_id_seq'::regclass);
--
-- Name: auth_user_user_permissions id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.auth_user_user_permissions ALTER COLUMN id SET DEFAULT nextval('public.auth_user_user_permissions_id_seq'::regclass);
--
-- Name: categorias id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.categorias ALTER COLUMN id SET DEFAULT nextval('public.categorias_id_seq'::regclass);
--
-- Name: costumer id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.costumer ALTER COLUMN id SET DEFAULT nextval('public.costumer_id_seq'::regclass);
--
-- Name: django_admin_log id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.django_admin_log ALTER COLUMN id SET DEFAULT nextval('public.django_admin_log_id_seq'::regclass);
--
-- Name: django_content_type id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.django_content_type ALTER COLUMN id SET DEFAULT nextval('public.django_content_type_id_seq'::regclass);
--
-- Name: django_migrations id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.django_migrations ALTER COLUMN id SET DEFAULT nextval('public.django_migrations_id_seq'::regclass);
--
-- Name: item_vendas id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.item_vendas ALTER COLUMN id SET DEFAULT nextval('public.item_vendas_id_seq'::regclass);
--
-- Name: payinfo id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.payinfo ALTER COLUMN id SET DEFAULT nextval('public.payinfo_id_seq'::regclass);
--
-- Name: produto_tags id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.produto_tags ALTER COLUMN id SET DEFAULT nextval('public.produto_tags_id_seq'::regclass);
--
-- Name: produtos id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.produtos ALTER COLUMN id SET DEFAULT nextval('public.produtos_id_seq'::regclass);
--
-- Name: vendas id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.vendas ALTER COLUMN id SET DEFAULT nextval('public.vendas_id_seq'::regclass);
--
-- Name: vendas_status id; Type: DEFAULT; Schema: public; Owner: blueparachute
--
ALTER TABLE ONLY public.vendas_status ALTER COLUMN id SET DEFAULT nextval('public.vendas_status_id_seq'::regclass);
--
-- Data for Name: Tags; Type: TABLE DATA; Schema: public; Owner: blueparachute
--
COPY public."Tags" (id, name) FROM stdin;
\.
--
-- Data for Name: auth_group; Type: TABLE DATA; Schema: public; Owner: blueparachute
--
COPY public.auth_group (id, name) FROM stdin;
1 users
2 supervisor
3 diretoria
\.
--
-- Data for Name: auth_group_permissions; Type: TABLE DATA; Schema: public; Owner: blueparachute
--
COPY public.auth_group_permissions (id, group_id, permission_id) FROM stdin;
1 2 33
2 2 35
3 2 29
4 2 30
5 2 31
6 2 61
7 2 62
9 3 61
10 3 63
11 3 62
12 3 29
13 3 30
14 3 33
15 3 64
16 3 35
17 2 34
\.
--
-- Data for Name: auth_permission; Type: TABLE DATA; Schema: public; Owner: blueparachute
--
COPY public.auth_permission (id, name, content_type_id, codename) FROM stdin;
1 Can add log entry 1 add_logentry
2 Can change log entry 1 change_logentry
3 Can delete log entry 1 delete_logentry
4 Can view log entry 1 view_logentry
5 Can add permission 2 add_permission
6 Can change permission 2 change_permission
7 Can delete permission 2 delete_permission
8 Can view permission 2 view_permission
9 Can add group 3 add_group
10 Can change group 3 change_group
11 Can delete group 3 delete_group
12 Can view group 3 view_group
13 Can add user 4 add_user
14 Can change user 4 change_user
15 Can delete user 4 delete_user
16 Can view user 4 view_user
17 Can add content type 5 add_contenttype
18 Can change content type 5 change_contenttype
19 Can delete content type 5 delete_contenttype
20 Can view content type 5 view_contenttype
21 Can add session 6 add_session
22 Can change session 6 change_session
23 Can delete session 6 delete_session
24 Can view session 6 view_session
25 Can add categoria 7 add_categoria
26 Can change categoria 7 change_categoria
27 Can delete categoria 7 delete_categoria
28 Can view categoria 7 view_categoria
29 Can add customer 8 add_customer
30 Can change customer 8 change_customer
31 Can delete customer 8 delete_customer
32 Can view customer 8 view_customer
33 Can add pay info 9 add_payinfo
34 Can change pay info 9 change_payinfo
35 Can delete pay info 9 delete_payinfo
36 Can view pay info 9 view_payinfo
37 Can add produtos 10 add_produtos
38 Can change produtos 10 change_produtos
39 Can delete produtos 10 delete_produtos
40 Can view produtos 10 view_produtos
41 Can add tags 11 add_tags
42 Can change tags 11 change_tags
43 Can delete tags 11 delete_tags
44 Can view tags 11 view_tags
45 Can add vendas status 12 add_vendasstatus
46 Can change vendas status 12 change_vendasstatus
47 Can delete vendas status 12 delete_vendasstatus
48 Can view vendas status 12 view_vendasstatus
49 Can add vendas 13 add_vendas
50 Can change vendas 13 change_vendas
51 Can delete vendas 13 delete_vendas
52 Can view vendas 13 view_vendas
53 Can add produto vendas 14 add_produtovendas
54 Can change produto vendas 14 change_produtovendas
55 Can delete produto vendas 14 delete_produtovendas
56 Can view produto vendas 14 view_produtovendas
57 Can add produto tags 15 add_produtotags
58 Can change produto tags 15 change_produtotags
59 Can delete produto tags 15 delete_produtotags
60 Can view produto tags 15 view_produtotags
61 Can Detokenize CPF 8 detokenize_cpf
62 Can Detokenize Cards 9 detokenize_card
63 Can Change customer CPF 8 change_customer_cpf
64 Can Detokenize DV 9 detokenize_dv
\.
--
-- Data for Name: auth_user; Type: TABLE DATA; Schema: public; Owner: blueparachute
--
COPY public.auth_user (id, password, last_login, is_superuser, username, first_name, last_name, email, is_staff, is_active, date_joined) FROM stdin;
1 pbkdf2_sha256$150000$aPegzT1tWGdM$xqvFuJz+Io8YsdccH8McJXDsyMUpR2fpOkcKov/By/4= 2019-05-15 16:42:21.372518-03 t admin admin@neotel.com.br t t 2019-05-15 16:36:44.269776-03
2 pbkdf2_sha256$150000$lxX0dJnigy5y$hxh8cS/IbPz/zz3k7bCAPBtnoNQhBFG9HEeA35gkDIs= 2019-05-17 16:34:34.575368-03 f user@neotel.com.br Usuário Comum user@neotel.com.br f t 2019-05-15 16:43:14-03
3 pbkdf2_sha256$150000$l2PzjnU1LG2o$c0XEEWcIrBV+8IGls1NUTH8jD5Mx2b0pxtAM684nVY4= 2019-05-17 16:35:44.365936-03 f supervisor@neotel.com.br Supervisor de conteudo supervisor@neotel.com.br f t 2019-05-15 16:44:31-03
4 pbkdf2_sha256$150000$xyXfxcZxhzaV$5Tq8op4ImVnX3luAXMgmKH+O3HOscE1hO2RaGTuLwyA= 2019-05-17 16:36:07.575487-03 f diretor@neotel.com.br Diretor Operacional diretor@neotel.com.br f t 2019-05-15 16:45:24-03
\.
--
-- Data for Name: auth_user_groups; Type: TABLE DATA; Schema: public; Owner: blueparachute
--
COPY public.auth_user_groups (id, user_id, group_id) FROM stdin;
1 3 2
2 2 1
3 4 3
\.
--
-- Data for Name: auth_user_user_permissions; Type: TABLE DATA; Schema: public; Owner: blueparachute
--
COPY public.auth_user_user_permissions (id, user_id, permission_id) FROM stdin;
\.
--
-- Data for Name: categorias; Type: TABLE DATA; Schema: public; Owner: blueparachute
--
COPY public.categorias (id, name) FROM stdin;
\.
--
-- Data for Name: costumer; Type: TABLE DATA; Schema: public; Owner: blueparachute
--
COPY public.costumer (id, creation, name, cep, "CPF", logradouro, bairro, numero, cidade, "UF", complemento) FROM stdin;
1 2019-05-17 12:07:21.657965-03 Adilson Santos da Rocha &n6db,)21`9 Centro São Paulo SP
\.
--
-- Data for Name: django_admin_log; Type: TABLE DATA; Schema: public; Owner: blueparachute
--
COPY public.django_admin_log (id, action_time, object_id, object_repr, action_flag, change_message, content_type_id, user_id) FROM stdin;
1 2019-05-15 16:43:14.59565-03 2 user@neotel.com.br 1 [{"added": {}}] 4 1
2 2019-05-15 16:43:56.69448-03 2 user@neotel.com.br 2 [{"changed": {"fields": ["first_name", "last_name", "email"]}}] 4 1
3 2019-05-15 16:44:31.154973-03 3 supervisor@neotel.com.br 1 [{"added": {}}] 4 1
4 2019-05-15 16:45:00.56463-03 3 supervisor@neotel.com.br 2 [{"changed": {"fields": ["first_name", "last_name", "email"]}}] 4 1
5 2019-05-15 16:45:24.218983-03 4 diretor@neotel.com.br 1 [{"added": {}}] 4 1
6 2019-05-15 16:45:59.608906-03 4 diretor@neotel.com.br 2 [{"changed": {"fields": ["first_name", "last_name", "email"]}}] 4 1
7 2019-05-15 16:49:57.216274-03 1 users 1 [{"added": {}}] 3 1
8 2019-05-15 16:51:11.122371-03 2 supervisor 1 [{"added": {}}] 3 1
9 2019-05-15 16:52:08.276307-03 3 supervisor@neotel.com.br 2 [{"changed": {"fields": ["groups"]}}] 4 1
10 2019-05-15 16:52:59.941004-03 2 supervisor 2 [{"changed": {"fields": ["permissions"]}}] 3 1
11 2019-05-15 16:54:37.000706-03 2 supervisor 2 [] 3 1
12 2019-05-15 16:55:09.83704-03 3 supervisor@neotel.com.br 2 [] 4 1
13 2019-05-15 16:56:01.405186-03 2 user@neotel.com.br 2 [{"changed": {"fields": ["groups"]}}] 4 1