-
Notifications
You must be signed in to change notification settings - Fork 0
/
20231205.03.32.57.sql
8414 lines (7836 loc) · 354 KB
/
20231205.03.32.57.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
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
create role azure_pg_admin;
create role codebras;
--
-- PostgreSQL database dump
--
-- Dumped from database version 15.4
-- Dumped by pg_dump version 16.0 (Debian 16.0-1.pgdg120+1)
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;
--
-- Name: public; Type: SCHEMA; Schema: -; Owner: azure_pg_admin
--
--CREATE SCHEMA public;
ALTER SCHEMA public OWNER TO azure_pg_admin;
--
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: azure_pg_admin
--
COMMENT ON SCHEMA public IS 'standard public schema';
--
-- Name: makepurchase(); Type: PROCEDURE; Schema: public; Owner: codebras
--
CREATE PROCEDURE public.makepurchase()
LANGUAGE plpgsql
AS $$
declare
customerId int = (select c.id from customer c order by random() limit 1);
employeeId int = (select e.id from employee e order by random() limit 1);
items int[] = (select array(select i.id from inventory i where i.is_purchased = false order by random() limit (floor(random()*5)+1)));
purchaseId int;
begin
insert into purchase (customer_id, employee_id, purchase_date)
values (customerId, employeeId, current_date)
returning id into purchaseId;
insert into purchase_item (purchase_id, inventory_id, final_price)
select purchaseId, i.id, it.sell_price
from inventory i
join item it on (it.id = i.item_id)
where i.id = any (items);
update inventory set is_purchased = true where id = any (items);
end;
$$;
ALTER PROCEDURE public.makepurchase() OWNER TO codebras;
--
-- Name: makerental(); Type: PROCEDURE; Schema: public; Owner: codebras
--
CREATE PROCEDURE public.makerental()
LANGUAGE plpgsql
AS $$
declare
customerId int = (select c.id from customer c order by random() limit 1);
employeeId int = (select e.id from employee e order by random() limit 1);
rentalId int;
dateChosen date = (select (timestamp '2021-01-01' + (random() * (timestamp '2023-10-20' - timestamp '2021-01-01'))::interval)::date);
items int[] = (select array(select i.id from inventory i where i.is_rentable = true order by random() limit (floor(random()*5)+1)));
begin
insert into rental (rental_date, customer_id, employee_id)
values (dateChosen, customerId, employeeId)
returning id into rentalId;
insert into item_rental (rental_id, inventory_id, final_rental_price, out_condition, return_date)
select rentalId, i.id , it.suggested_rental_price , concat('This is in a(n) ', s.status_name, ' state.'), dateChosen
from inventory i
join item it on (it.id = i.item_id)
join status s on (s.id = i.status_id)
where i.id = any (items);
end;
$$;
ALTER PROCEDURE public.makerental() OWNER TO codebras;
--
-- Name: makereview(); Type: PROCEDURE; Schema: public; Owner: codebras
--
CREATE PROCEDURE public.makereview()
LANGUAGE plpgsql
AS $$
begin
insert into review (item_id, customer_id, review_date, review_text, rating)
select
a.item_id
,a.id
,a.rental_date
,concat('I am reviewing the product. It looked like an item and worked like one too')
,floor(random()*5+1)::int
from
(select
ir.item_id
,c.id
,r.rental_date + 5 as rental_date
from customer c
join rental r ON (r.customer_id = c.id)
join item_rental ir on (ir.rental_id = r.id)
join item i on (i.id = ir.item_id)
order by random()
limit 1) as a;
end;
$$;
ALTER PROCEDURE public.makereview() OWNER TO codebras;
SET default_tablespace = '';
SET default_table_access_method = heap;
--
-- Name: AspNetRoleClaims; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public."AspNetRoleClaims" (
"Id" integer NOT NULL,
"RoleId" text NOT NULL,
"ClaimType" text,
"ClaimValue" text
);
ALTER TABLE public."AspNetRoleClaims" OWNER TO codebras;
--
-- Name: AspNetRoleClaims_Id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public."AspNetRoleClaims" ALTER COLUMN "Id" ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public."AspNetRoleClaims_Id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: AspNetRoles; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public."AspNetRoles" (
"Id" text NOT NULL,
"Name" character varying(256),
"NormalizedName" character varying(256),
"ConcurrencyStamp" text
);
ALTER TABLE public."AspNetRoles" OWNER TO codebras;
--
-- Name: AspNetUserClaims; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public."AspNetUserClaims" (
"Id" integer NOT NULL,
"UserId" text NOT NULL,
"ClaimType" text,
"ClaimValue" text
);
ALTER TABLE public."AspNetUserClaims" OWNER TO codebras;
--
-- Name: AspNetUserClaims_Id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public."AspNetUserClaims" ALTER COLUMN "Id" ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public."AspNetUserClaims_Id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: AspNetUserLogins; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public."AspNetUserLogins" (
"LoginProvider" text NOT NULL,
"ProviderKey" text NOT NULL,
"ProviderDisplayName" text,
"UserId" text NOT NULL
);
ALTER TABLE public."AspNetUserLogins" OWNER TO codebras;
--
-- Name: AspNetUserRoles; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public."AspNetUserRoles" (
"UserId" text NOT NULL,
"RoleId" text NOT NULL
);
ALTER TABLE public."AspNetUserRoles" OWNER TO codebras;
--
-- Name: AspNetUserTokens; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public."AspNetUserTokens" (
"UserId" text NOT NULL,
"LoginProvider" text NOT NULL,
"Name" text NOT NULL,
"Value" text
);
ALTER TABLE public."AspNetUserTokens" OWNER TO codebras;
--
-- Name: AspNetUsers; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public."AspNetUsers" (
"Id" text NOT NULL,
"UserName" character varying(256),
"NormalizedUserName" character varying(256),
"Email" character varying(256),
"NormalizedEmail" character varying(256),
"EmailConfirmed" boolean NOT NULL,
"PasswordHash" text,
"SecurityStamp" text,
"ConcurrencyStamp" text,
"PhoneNumber" text,
"PhoneNumberConfirmed" boolean NOT NULL,
"TwoFactorEnabled" boolean NOT NULL,
"LockoutEnd" timestamp with time zone,
"LockoutEnabled" boolean NOT NULL,
"AccessFailedCount" integer NOT NULL
);
ALTER TABLE public."AspNetUsers" OWNER TO codebras;
--
-- Name: __EFMigrationsHistory; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public."__EFMigrationsHistory" (
"MigrationId" character varying(150) NOT NULL,
"ProductVersion" character varying(32) NOT NULL
);
ALTER TABLE public."__EFMigrationsHistory" OWNER TO codebras;
--
-- Name: brand; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.brand (
id integer NOT NULL,
brand_name character varying(50),
brand_description text
);
ALTER TABLE public.brand OWNER TO codebras;
--
-- Name: brand_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.brand ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.brand_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: cart_items; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.cart_items (
id integer NOT NULL,
customer_id integer,
inventory_id integer
);
ALTER TABLE public.cart_items OWNER TO codebras;
--
-- Name: cart_items_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.cart_items ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.cart_items_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: category; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.category (
id integer NOT NULL,
category_name character varying(30),
description text
);
ALTER TABLE public.category OWNER TO codebras;
--
-- Name: category_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.category ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.category_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: customer; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.customer (
id integer NOT NULL,
first_name character varying(50),
last_name character varying(50),
email character varying(320),
address character varying(300),
phone_number character varying(20),
reward_points integer
);
ALTER TABLE public.customer OWNER TO codebras;
--
-- Name: customer_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.customer ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.customer_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: employee; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.employee (
id integer NOT NULL,
first_name character varying(50),
last_name character varying(50),
email character varying(320),
phone_number character varying(20),
address character varying(300),
manager_id integer
);
ALTER TABLE public.employee OWNER TO codebras;
--
-- Name: employee_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.employee ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.employee_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: inventory; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.inventory (
id integer NOT NULL,
item_id integer,
status_id integer,
is_rentable boolean,
is_purchased boolean
);
ALTER TABLE public.inventory OWNER TO codebras;
--
-- Name: item; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.item (
id integer NOT NULL,
item_name character varying(100),
description text,
serial_number character varying(50),
sell_price money,
suggested_rental_price money,
brand_id integer
);
ALTER TABLE public.item OWNER TO codebras;
--
-- Name: item_category; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.item_category (
id integer NOT NULL,
item_id integer,
category_id integer
);
ALTER TABLE public.item_category OWNER TO codebras;
--
-- Name: item_category_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.item_category ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.item_category_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: item_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.item ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.item_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: item_image; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.item_image (
id integer NOT NULL,
item_id integer,
filepath text,
is_primary boolean
);
ALTER TABLE public.item_image OWNER TO codebras;
--
-- Name: item_image_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.item_image ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.item_image_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: item_rental; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.item_rental (
id integer NOT NULL,
rental_id integer,
inventory_id integer,
final_rental_price money,
out_condition text,
return_date timestamp without time zone
);
ALTER TABLE public.item_rental OWNER TO codebras;
--
-- Name: item_rental_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.item_rental ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.item_rental_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: item_status_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.inventory ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.item_status_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: purchase; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.purchase (
id integer NOT NULL,
customer_id integer,
employee_id integer,
purchase_date date
);
ALTER TABLE public.purchase OWNER TO codebras;
--
-- Name: purchase_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.purchase ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.purchase_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: purchase_item; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.purchase_item (
id integer NOT NULL,
purchase_id integer,
inventory_id integer,
final_price money
);
ALTER TABLE public.purchase_item OWNER TO codebras;
--
-- Name: purchase_item_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.purchase_item ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.purchase_item_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: rental; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.rental (
id integer NOT NULL,
rental_date date,
customer_id integer,
employee_id integer
);
ALTER TABLE public.rental OWNER TO codebras;
--
-- Name: rental_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.rental ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.rental_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: review; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.review (
id integer NOT NULL,
item_id integer,
customer_id integer,
review_date date,
review_text text,
rating integer
);
ALTER TABLE public.review OWNER TO codebras;
--
-- Name: review_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.review ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.review_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: room; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.room (
id integer NOT NULL,
room_name character varying(100),
max_capacity integer,
room_type_id integer
);
ALTER TABLE public.room OWNER TO codebras;
--
-- Name: room_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.room ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.room_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: room_rental; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.room_rental (
id integer NOT NULL,
rental_id integer,
room_id integer,
actual_price money,
start_time timestamp without time zone,
end_time timestamp without time zone
);
ALTER TABLE public.room_rental OWNER TO codebras;
--
-- Name: room_rental_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.room_rental ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.room_rental_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: room_type; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.room_type (
id integer NOT NULL,
room_type_name character varying(50),
base_price money
);
ALTER TABLE public.room_type OWNER TO codebras;
--
-- Name: room_type_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.room_type ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.room_type_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: status; Type: TABLE; Schema: public; Owner: codebras
--
CREATE TABLE public.status (
id integer NOT NULL,
status_name character varying(100)
);
ALTER TABLE public.status OWNER TO codebras;
--
-- Name: status_id_seq; Type: SEQUENCE; Schema: public; Owner: codebras
--
ALTER TABLE public.status ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.status_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Data for Name: AspNetRoleClaims; Type: TABLE DATA; Schema: public; Owner: codebras
--
COPY public."AspNetRoleClaims" ("Id", "RoleId", "ClaimType", "ClaimValue") FROM stdin;
\.
--
-- Data for Name: AspNetRoles; Type: TABLE DATA; Schema: public; Owner: codebras
--
COPY public."AspNetRoles" ("Id", "Name", "NormalizedName", "ConcurrencyStamp") FROM stdin;
4e5accc7-be88-49cd-8fa4-67911526fed5 admins ADMINS \N
\.
--
-- Data for Name: AspNetUserClaims; Type: TABLE DATA; Schema: public; Owner: codebras
--
COPY public."AspNetUserClaims" ("Id", "UserId", "ClaimType", "ClaimValue") FROM stdin;
\.
--
-- Data for Name: AspNetUserLogins; Type: TABLE DATA; Schema: public; Owner: codebras
--
COPY public."AspNetUserLogins" ("LoginProvider", "ProviderKey", "ProviderDisplayName", "UserId") FROM stdin;
Google 101922167934449816481 Google 4a47af8c-1d5a-4e55-ba35-2f8e4e9ade84
Google 113295345736006484475 Google 2f41e490-ad93-4031-9989-0aec5dbf185b
Google 111909584822301974246 Google 31c66ec5-444e-48ce-b983-398ec024e69f
Google 116464480609502740936 Google e17a5720-a13c-4102-b7a3-14e86d481440
\.
--
-- Data for Name: AspNetUserRoles; Type: TABLE DATA; Schema: public; Owner: codebras
--
COPY public."AspNetUserRoles" ("UserId", "RoleId") FROM stdin;
c3e60acd-4ac9-40b2-bbc3-78f12f19fdcd 4e5accc7-be88-49cd-8fa4-67911526fed5
\.
--
-- Data for Name: AspNetUserTokens; Type: TABLE DATA; Schema: public; Owner: codebras
--
COPY public."AspNetUserTokens" ("UserId", "LoginProvider", "Name", "Value") FROM stdin;
\.
--
-- Data for Name: AspNetUsers; Type: TABLE DATA; Schema: public; Owner: codebras
--
COPY public."AspNetUsers" ("Id", "UserName", "NormalizedUserName", "Email", "NormalizedEmail", "EmailConfirmed", "PasswordHash", "SecurityStamp", "ConcurrencyStamp", "PhoneNumber", "PhoneNumberConfirmed", "TwoFactorEnabled", "LockoutEnd", "LockoutEnabled", "AccessFailedCount") FROM stdin;
c3e60acd-4ac9-40b2-bbc3-78f12f19fdcd [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAEF5DQ8gHrIC7etad2OsVErk98r/WiJwUNbrma+hJZdDs4t/qiGKxRbwCpTC7gDoEGQ== AUTOX5NU4CXESJX76FEBRGWKWKFH2YNM bd71cd61-8978-434f-8865-a96f073eabf2 \N f f \N t 0
356da52f-7a39-4573-987c-8b0ec0c8dcc6 [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAELCWNtSt3baDoZa6Tj+vjatLVbv6wwzYSkHe9QAuK/S3mEzxVivSti9M03m/CZNLAQ== 4VC2ADKB4ORN7CQSBSBKCV2F23QZAQZU b751524c-5591-4871-a6cc-c5128b928a33 \N f f \N t 0
4a47af8c-1d5a-4e55-ba35-2f8e4e9ade84 [email protected] [email protected] [email protected] [email protected] t \N 4IIMYYNAGLWQGUG7SHF2ECMRXW5VDV4A 913f1937-dc08-4d19-81ea-fbd8b107d53e \N f f \N t 0
2f41e490-ad93-4031-9989-0aec5dbf185b [email protected] [email protected] [email protected] [email protected] t \N VIIWNC4GWVIXEGAB6OLSOSDKLBJJUK4H 7d049dcd-5685-41d3-af3a-4bb21dcfbed2 \N f f \N t 0
82cdb4bb-09d6-476a-8a26-a6239bd08719 [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAEKD7qXtHpiRtd3rJR0EcWJuCIQ7QZreSwARgxwNrwVO/WrClog4WjKt3uG0YzxWriQ== IYNW2HGPZ2WEBLLOVH7WERZV54RHGCMX 25c29a53-cef3-4d3b-a960-c90f40075be6 \N f f \N t 0
31c66ec5-444e-48ce-b983-398ec024e69f [email protected] [email protected] [email protected] [email protected] t \N OUGTKSVM6DNQBXP4KZHTQPBR2RYCXZQ6 1f25fc55-50b8-43f8-977a-21f07bde8159 \N f f \N t 0
d748403b-6625-4597-aafa-cc9ec7fbfd5f [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAEPpUFqNUG8XXVUXMCuJXC/KkyJA9FzIc7CMx2M651ZpZCMSSX+8EkHmu2tShKHKfoQ== UAMQCEQ5ZRP7A7G6XBGIVA6OVXRKOCA6 444608d2-0118-4515-a8af-1f0b4c9cdf15 \N f f \N t 0
b1853361-1480-45d4-815e-86ea53f534ce [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAEI8mryK4QsmclMqlIrjRzc4L13vnsF9iIUBU8HBxRClYnbRQGr4ZUW1s0wThJmP4KQ== KTEULR7VHLACHVK4HK3I7YEBIXCY7BMY 2f725b5d-ae5d-4c44-91f6-60adcec6598f \N f f \N t 0
ee625009-b207-4597-90b1-0deecde6dca5 [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAEDJt0UhbplRVcbew8rGYxjS8w0kdFh4SChM32ENMBJlCffhr3M9J6LWLV7do1E9NkQ== MGEAWIC3HWXWWFEIW5L3UWPL6J37K2QL ff36619f-2769-4888-ba02-00f98b071598 \N f f \N t 0
d2d81b4f-08ad-4f97-b893-4cdc3350ccdf [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAEMbZfL5BRIKQBzV9IIaAJ7CASyd19zo6YHDv4UcrnWJOiU4LVq/jr2MvuV0WrIpDog== 42STFAYQICA26G6RA2EVL6AYGDGWOY5U 053f975e-0baa-447e-8e4c-a553a97e6a2c \N f f \N t 0
64e8b1ec-cab8-40dd-9dc1-f779c8a8e0f3 [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAECqMKHGTOikKu+sxlALgoLRS6nyPW8ToqHahRGOagwPJeBriMoGaj/HYdH8JB3hd1g== QVA22CIWWFIO4FX3R4KNJF4GFRV533PJ 2c779e0d-d2c2-4790-918f-cb25aa759093 \N f f \N t 0
16b89048-5fa1-47ba-bf22-86a739c56c83 [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAEMiEbZQIUTOau6hiMjQxVkVP1OUVvWjFSFjHwbdaNDVlJnez/4o/cAbxDqFLcy7WDg== IIUF555PKW26QRFDBY4U5MGSX7NO7O5C 6949e529-ae8e-41c9-9766-d2df5792fd5a \N f f \N t 0
9cdd4d12-e603-4787-b315-492503f9632d [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAEL4lN5nibLCCj79rYQutpW89oHRzdjBAiSMvYEjMcsMn/tqI5OqWzGJzjmZZ18Vfag== AQETHB7R7JFJCE2MITD5IWNNHA2L4BXN 7d8b84f7-e106-45ef-8468-c78957f020a6 \N f f \N t 0
28e6dc2e-0a02-41db-b048-25ba52b4a0de [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAEHzHgyBpnssPFUxUs2ABIRK7JPfWd8L7ISVmVDdpf+Bauag+jbZQoDyfGKPcMDPRQA== LMAMLJUICZKNQDETNPICYGD2SBE2RSEA d3f94397-4718-4335-a1aa-4a7ca6ad8b47 \N f f \N t 0
7fc6b863-675d-405d-8f25-02e8783a3db4 [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAEPC7pCbAb12lopt9Xtl5UrZ1bI0mTW9t6teHimftWCusIy9/9+mgQQUyOCQ4tz4g/Q== DATNG4D35XNRK5MIJI5RRALD3OYXLQUV becdfe27-65c7-4970-86f7-a059451e6446 \N f f \N t 0
e17a5720-a13c-4102-b7a3-14e86d481440 [email protected] [email protected] [email protected] [email protected] t \N VZ7BUPFV2HMWINZLDQLCQ4K6CVJ3XEH2 0ce80730-764c-4c24-8a29-ffec6be006ef \N f f \N t 0
1f02c683-6084-4abf-bf44-27fd69412e31 [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAEIXb2Bb3PRIByerm57xHDklfK3XUC44NfOojcOV+6/q5HR+10ALyHQPJ15tRpW2tJA== UZQAMTXGK2MFUDY7DY35S56KJCPVIHCN d30ed198-aac4-4b45-97e1-4eac8c44b77e \N f f \N t 0
fd6b643a-f70e-4cb2-8f4a-71d1e3e84b22 [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAEPa3+qzRloWYnYEDWYqGxJEjYzKGTYJ/qX2jXymk8RzshP5WxqeDbreiqVYWyyIzRQ== XIG7YED64S3CK7SPSEDPBSNOU25EA62X eee80006-702f-4e16-9a2d-9a741c86781b \N f f \N t 0
fe9dba2e-68e7-4bbf-9901-d10aa9c2a046 [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAEBTecpDrURkn0rBqc6XFj+YYYIF9T9X30dGubK8yVl/vdg3dtFaRkZYYO4ooZiwGHw== MQRZEI63HHLB6K4AHLH435ZO7W2LQBKQ 3c5e6220-5670-4159-af04-b17b8ea9a130 \N f f \N t 0
1d90c434-89bc-47c5-af0d-13e6be2a288d [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAECLp41LY5HLB/UeJNxGv0NKdGdfTuHByAxxiWtdxmQxZ09wx2XftGbwq4Kk9q2aPZQ== RYMPFRF24DOGT5MAQXJHWYSY2M7R776Y 40630300-dd06-4316-a0ef-7907872a84d0 \N f f \N t 0
5990086e-043b-48e3-801f-b3e6edd3b563 [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAEDUoew1FdQVkP/m1tZC9r+U6eED6XV3uJEWa+CvLCNAR2IfWy1c9/Gu9kxlooHjFkA== OYXN5S3M2PTSACC5MN75MIHEBDMTKLZU 110b2a50-ea29-46ec-b5f0-a237193b4e30 \N f f \N t 0
a022c113-e14c-46ed-be9b-27d239170cee [email protected] [email protected] [email protected] [email protected] t AQAAAAIAAYagAAAAEOSf0PavPsh2I5lb1MRfewEKCrS3Qtk+CyVx6fO3KGVPK7v4O7uLxUoqjGsSIbS1Gw== PA6A3JRBTT5JWDCJ4X7BRX5L2DMN6ATQ 48262b20-20d3-4b41-a3ee-e298d3d96d97 \N f f \N t 0
\.
--
-- Data for Name: __EFMigrationsHistory; Type: TABLE DATA; Schema: public; Owner: codebras
--
COPY public."__EFMigrationsHistory" ("MigrationId", "ProductVersion") FROM stdin;
20231115011444_Initial Migration 7.0.14
\.
--
-- Data for Name: brand; Type: TABLE DATA; Schema: public; Owner: codebras
--
COPY public.brand (id, brand_name, brand_description) FROM stdin;
1 Brand1 Default Description
2 Brand2 Default Description
3 Brand3 Default Description
4 Brand4 Default Description
5 Brand5 Default Description
6 Brand6 Default Description
7 Brand7 Default Description
8 Brand8 Default Description
9 Brand9 Default Description
10 Brand10 Default Description
\.
--
-- Data for Name: cart_items; Type: TABLE DATA; Schema: public; Owner: codebras
--
COPY public.cart_items (id, customer_id, inventory_id) FROM stdin;
10 6 693
11 1 610
32 1 419
47 1 635
48 1 636
50 1 287
51 1 288
52 1 289
53 1 290
\.
--
-- Data for Name: category; Type: TABLE DATA; Schema: public; Owner: codebras
--
COPY public.category (id, category_name, description) FROM stdin;
1 Guitar Guitars
2 Brass Made of brass
3 String Pluck the strings
4 Piano Tickle the keys
5 Percussion Bang
6 Idiophones Vibrate away
7 Woodwinds Blow
8 Bass Deep
9 Aerophones Vibrate the air
10 Bowed Rub it
\.
--
-- Data for Name: customer; Type: TABLE DATA; Schema: public; Owner: codebras
--
COPY public.customer (id, first_name, last_name, email, address, phone_number, reward_points) FROM stdin;
7 Code Bras [email protected] 123123 123123 \N
1 Customer1 LastName [email protected] This is an address 901-109-3003 4518397
4 Customer4 LastName [email protected] This is an address 901-109-3003 4570684
2 Customer2 LastName [email protected] This is an address 901-109-3003 4546066
3 Customer3 LastName [email protected] This is an address 901-109-3003 4501765
5 Customer5 LastName [email protected] This is an address 901-109-3003 4479077
6 Parker Swenson [email protected] Home 901-109-3003 100
90 sad asd [email protected] asd asd \N
91 Testn Tester [email protected] 234234 324234 \N
92 \N \N [email protected] \N \N \N
75 Benoch Whtaker [email protected] 143N300E 901-109-3003 \N
82 Admin Admin [email protected] Admin Admin \N
\.
--
-- Data for Name: employee; Type: TABLE DATA; Schema: public; Owner: codebras
--
COPY public.employee (id, first_name, last_name, email, phone_number, address, manager_id) FROM stdin;
1 Employee1 LastName [email protected] 901-109-3003 This is an address \N
2 Employee2 LastName [email protected] 901-109-3003 This is an address 1
3 Employee3 LastName [email protected] 901-109-3003 This is an address \N
4 Employee4 LastName [email protected] 901-109-3003 This is an address 3
5 Employee5 LastName [email protected] 901-109-3003 This is an address 3
\.
--
-- Data for Name: inventory; Type: TABLE DATA; Schema: public; Owner: codebras
--
COPY public.inventory (id, item_id, status_id, is_rentable, is_purchased) FROM stdin;
442 7 4 f t
337 3 5 f t
487 9 5 f t
438 7 4 f t
348 4 3 t t
484 9 4 t t
460 8 3 f t
333 3 5 f t
344 4 2 f t
354 4 3 t t
472 9 1 t t
465 8 5 f t
336 3 5 f t
483 9 4 t t
440 7 4 f t
338 4 1 t t
349 4 3 t t
490 10 1 f t
443 7 4 f t
342 4 1 t t
432 7 3 t t
469 8 5 f t