File tree Expand file tree Collapse file tree
src/config/databases/ecommerce Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- []
1+ [
2+ {
3+ "source" : " vendors" ,
4+ "sourceKey" : " id" ,
5+ "target" : " items" ,
6+ "targetKey" : " vendor_id" ,
7+ "relation" : " hasMany"
8+ },
9+ {
10+ "source" : " categories" ,
11+ "sourceKey" : " id" ,
12+ "target" : " items" ,
13+ "targetKey" : " category_id" ,
14+ "relation" : " hasMany"
15+ },
16+ {
17+ "source" : " items" ,
18+ "sourceKey" : " id" ,
19+ "target" : " reviews" ,
20+ "targetKey" : " item_id" ,
21+ "relation" : " hasMany"
22+ },
23+ {
24+ "source" : " users" ,
25+ "sourceKey" : " id" ,
26+ "target" : " reviews" ,
27+ "targetKey" : " user_id" ,
28+ "relation" : " hasMany"
29+ },
30+ {
31+ "source" : " items" ,
32+ "sourceKey" : " id" ,
33+ "target" : " carts_items" ,
34+ "targetKey" : " item_id" ,
35+ "relation" : " hasMany"
36+ },
37+ {
38+ "source" : " carts" ,
39+ "sourceKey" : " id" ,
40+ "target" : " carts_items" ,
41+ "targetKey" : " cart_id" ,
42+ "relation" : " hasMany"
43+ },
44+ {
45+ "source" : " users" ,
46+ "sourceKey" : " id" ,
47+ "target" : " carts" ,
48+ "targetKey" : " user_id" ,
49+ "relation" : " hasMany"
50+ },
51+ {
52+ "source" : " carts" ,
53+ "sourceKey" : " id" ,
54+ "target" : " returns" ,
55+ "targetKey" : " cart_id" ,
56+ "relation" : " hasOne"
57+ },
58+ {
59+ "source" : " items" ,
60+ "sourceKey" : " id" ,
61+ "target" : " returns" ,
62+ "targetKey" : " item_id" ,
63+ "relation" : " hasOne"
64+ },
65+ {
66+ "source" : " carts" ,
67+ "sourceKey" : " id" ,
68+ "target" : " purchases" ,
69+ "targetKey" : " cart_id" ,
70+ "relation" : " hasOne"
71+ },
72+ {
73+ "source" : " discount_codes" ,
74+ "sourceKey" : " code" ,
75+ "target" : " purchases" ,
76+ "targetKey" : " discount_code" ,
77+ "relation" : " hasOne"
78+ }
79+ ]
Original file line number Diff line number Diff line change 11{
22 "public.carts" : {
3- "x" : 0 ,
4- "y" : 0
3+ "x" : 672 ,
4+ "y" : 368
55 },
66 "public.carts_items" : {
7- "x" : 300 ,
8- "y" : 0
7+ "x" : 464 ,
8+ "y" : 560
99 },
1010 "public.categories" : {
11- "x" : 600 ,
12- "y" : 0
11+ "x" : -160 ,
12+ "y" : 496
1313 },
1414 "public.discount_codes" : {
15- "x" : 0 ,
16- "y" : 450
15+ "x" : 1136 ,
16+ "y" : 336
1717 },
1818 "public.items" : {
19- "x" : 300 ,
20- "y" : 450
19+ "x" : 112 ,
20+ "y" : 608
2121 },
2222 "public.purchases" : {
23- "x" : 600 ,
24- "y" : 450
23+ "x" : 896 ,
24+ "y" : 160
2525 },
2626 "public.returns" : {
27- "x" : 0 ,
28- "y" : 900
27+ "x" : 400 ,
28+ "y" : 288
2929 },
3030 "public.reviews" : {
31- "x" : 300 ,
32- "y" : 900
31+ "x" : 400 ,
32+ "y" : 800
3333 },
3434 "public.users" : {
35- "x" : 600 ,
36- "y" : 900
35+ "x" : 688 ,
36+ "y" : 720
3737 },
3838 "public.vendors" : {
39- "x" : 0 ,
40- "y" : 1350
39+ "x" : -160 ,
40+ "y" : 848
4141 }
42- }
42+ }
Original file line number Diff line number Diff line change 55 "columns" : [
66 {
77 "name" : " id" ,
8+ "key" : true ,
89 "description" : " " ,
910 "type" : " bigint"
1011 },
1920 "type" : " timestamp"
2021 }
2122 ]
22- }
23+ }
Original file line number Diff line number Diff line change 55 "columns" : [
66 {
77 "name" : " id" ,
8+ "key" : true ,
89 "description" : " " ,
910 "type" : " bigint"
1011 },
2425 "type" : " timestamp"
2526 }
2627 ]
27- }
28+ }
Original file line number Diff line number Diff line change 55 "columns" : [
66 {
77 "name" : " id" ,
8+ "key" : true ,
89 "description" : " " ,
910 "type" : " bigint"
1011 },
3435 "type" : " timestamp"
3536 }
3637 ]
37- }
38+ }
Original file line number Diff line number Diff line change 55 "columns" : [
66 {
77 "name" : " id" ,
8+ "key" : true ,
89 "description" : " " ,
910 "type" : " bigint"
1011 },
3940 "type" : " timestamp"
4041 }
4142 ]
42- }
43+ }
Original file line number Diff line number Diff line change 55 "columns" : [
66 {
77 "name" : " id" ,
8+ "key" : true ,
89 "description" : " " ,
910 "type" : " bigint"
1011 },
3940 "type" : " bigint"
4041 }
4142 ]
42- }
43+ }
Original file line number Diff line number Diff line change 55 "columns" : [
66 {
77 "name" : " id" ,
8+ "key" : true ,
89 "description" : " " ,
910 "type" : " bigint"
1011 },
2930 "type" : " timestamp"
3031 }
3132 ]
32- }
33+ }
Original file line number Diff line number Diff line change 55 "columns" : [
66 {
77 "name" : " id" ,
8+ "key" : true ,
89 "description" : " " ,
910 "type" : " bigint"
1011 },
3435 "type" : " text"
3536 }
3637 ]
37- }
38+ }
Original file line number Diff line number Diff line change 55 "columns" : [
66 {
77 "name" : " id" ,
8+ "key" : true ,
89 "description" : " " ,
910 "type" : " bigint"
1011 },
3940 "type" : " timestamp"
4041 }
4142 ]
42- }
43+ }
You can’t perform that action at this time.
0 commit comments