Skip to content

Commit d6bfa79

Browse files
Merge pull request #75 from Ritik574-coder/dbt_branch
creating file stracture for dbt models
2 parents f55e9dc + 13159c4 commit d6bfa79

21 files changed

Lines changed: 481 additions & 299 deletions

.qodo/agents/customers.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
customer_id
2+
title
3+
first_name
4+
last_name
5+
full_name
6+
gender
7+
date_of_birth
8+
age
9+
email
10+
phone
11+
address
12+
city
13+
state
14+
state_abbr
15+
state_full
16+
zip_code
17+
country
18+
region
19+
customer_segment
20+
loyalty_points
21+
is_active
22+
account_created_date
23+
preferred_channel
24+
annual_income_usd
25+
company

.qodo/agents/employees.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
employee_id
2+
first_name
3+
last_name
4+
full_name
5+
email
6+
phone
7+
job_title
8+
department
9+
store_id
10+
store_name
11+
store_city
12+
hire_date
13+
years_employed
14+
annual_salary_usd
15+
commission_rate_pct
16+
is_active
17+
performance_rating
18+
manager_id

.qodo/agents/inventory.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
snapshot_date
2+
product_id
3+
product_name
4+
sku
5+
category
6+
stock_on_hand
7+
stock_reserved
8+
stock_available
9+
reorder_level
10+
unit_cost
11+
unit_price
12+
inventory_value
13+
warehouse_location
14+
store_id

.qodo/agents/products.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
product_id
2+
sku
3+
product_name
4+
brand
5+
category
6+
sub_category
7+
department
8+
base_price_usd
9+
cost_price_usd
10+
gross_margin_pct
11+
weight_kg
12+
is_available
13+
stock_quantity
14+
reorder_level
15+
supplier_name
16+
supplier_country
17+
warranty_years
18+
rating_avg
19+
review_count
20+
launched_date
21+
product_url

.qodo/agents/returns.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
return_id
2+
original_txn_id
3+
original_order_id
4+
customer_id
5+
customer_name
6+
product_id
7+
product_name
8+
quantity_returned
9+
return_date
10+
return_reason
11+
refund_amount
12+
refund_method
13+
return_channel
14+
restocked
15+
return_status
16+
handled_by_emp_id
17+
notes

.qodo/agents/reviews.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
review_id
2+
txn_id
3+
customer_id
4+
customer_name
5+
product_id
6+
product_name
7+
rating
8+
rating_text
9+
review_date
10+
verified_purchase
11+
helpful_votes
12+
review_channel
13+
review_title

.qodo/agents/stores.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
store_id
2+
store_name
3+
store_type
4+
address
5+
city
6+
state
7+
state_full
8+
zip_code
9+
country
10+
region
11+
district
12+
phone
13+
manager_name
14+
opened_date
15+
sq_footage
16+
num_employees
17+
annual_rent_usd
18+
is_active
19+
has_parking
20+
has_cafe

.qodo/agents/transactions.txt

Lines changed: 208 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
Transactions
2+
-
3+
transaction_id PK int
4+
order_id int INDEX
5+
order_line_number int
6+
order_date date
7+
order_year int
8+
order_month int
9+
order_month_name string
10+
order_quarter string
11+
order_day_of_week string
12+
ship_date date
13+
delivery_date date
14+
15+
customer_id FK int
16+
customer_full_name string
17+
customer_first_name string
18+
customer_last_name string
19+
customer_email string
20+
customer_phone string
21+
customer_city string
22+
customer_state string
23+
customer_zip string
24+
customer_region string
25+
customer_segment string
26+
customer_gender string
27+
customer_age int
28+
customer_age_group string
29+
30+
product_id int
31+
product_name string
32+
sku string UNIQUE
33+
brand string
34+
category string
35+
sub_category string
36+
department string
37+
38+
quantity_ordered int
39+
unit_list_price decimal
40+
discount_pct decimal
41+
unit_selling_price decimal
42+
line_total_before_tax decimal
43+
tax_rate_pct decimal
44+
tax_amount decimal
45+
line_total_with_tax decimal
46+
47+
store_id int
48+
store_name string
49+
store_city string
50+
store_state string
51+
store_region string
52+
store_type string
53+
54+
employee_id int
55+
employee_name string
56+
employee_job_title string
57+
58+
promo_id int
59+
promo_name string
60+
61+
sales_channel string
62+
payment_method string
63+
shipping_method string
64+
order_status string
65+
is_returned boolean
66+
67+
cost_price decimal
68+
gross_profit decimal
69+
70+
data_source string
71+
record_created_ts timestamp
72+
last_modified_ts timestamp
73+
74+
75+
76+
# CUSTOMER TABLE DIGRAM
77+
Customer as c
78+
-
79+
customer_id PK int
80+
title string
81+
first_name string
82+
last_name string
83+
full_name string INDEX
84+
gender string
85+
date_of_birth date
86+
age int
87+
email string UNIQUE
88+
phone string
89+
address string
90+
city string
91+
state string
92+
state_abbr string
93+
state_full string
94+
zip_code string
95+
country string
96+
region string
97+
customer_segment string
98+
loyalty_points int
99+
is_active boolean
100+
account_created_date date
101+
preferred_channel string
102+
annual_income_usd decimal
103+
company string
104+
105+
Transactions
106+
-
107+
transaction_id PK int
108+
order_id int INDEX
109+
order_line_number int
110+
order_date date
111+
order_year int
112+
order_month int
113+
order_month_name string
114+
order_quarter string
115+
order_day_of_week string
116+
ship_date date
117+
delivery_date date
118+
customer_id int FK >- Customer.customer_id
119+
customer_full_name string
120+
customer_first_name string
121+
customer_last_name string
122+
customer_email string
123+
customer_phone string
124+
customer_city string
125+
customer_state string
126+
customer_zip string
127+
customer_region string
128+
customer_segment string
129+
customer_gender string
130+
customer_age int
131+
customer_age_group string
132+
product_id int
133+
product_name string
134+
sku string UNIQUE
135+
brand string
136+
category string
137+
sub_category string
138+
department string
139+
quantity_ordered int
140+
unit_list_price decimal
141+
discount_pct decimal
142+
unit_selling_price decimal
143+
line_total_before_tax decimal
144+
tax_rate_pct decimal
145+
tax_amount decimal
146+
line_total_with_tax decimal
147+
store_id int
148+
store_name string
149+
store_city string
150+
store_state string
151+
store_region string
152+
store_type string
153+
employee_id int
154+
employee_name string
155+
employee_job_title string
156+
promo_id int
157+
promo_name string
158+
sales_channel string
159+
payment_method string
160+
shipping_method string
161+
order_status string
162+
is_returned boolean
163+
cost_price decimal
164+
gross_profit decimal
165+
data_source string
166+
record_created_ts timestamp
167+
last_modified_ts timestamp
168+
169+
170+
# Modify this code to update the DB schema diagram.
171+
# To reset the sample schema, replace everything with
172+
# two dots ('..' - without quotes).
173+
174+
Customer
175+
-
176+
CustomerID PK int
177+
Name string INDEX
178+
Address1 string
179+
Address2 NULL string
180+
Address3 NULL string
181+
182+
Order
183+
-
184+
OrderID PK int
185+
CustomerID int FK >- Customer.CustomerID
186+
TotalAmount money
187+
OrderStatusID int FK >- os.OrderStatusID
188+
189+
OrderLine as ol
190+
----
191+
OrderLineID PK int
192+
OrderID int FK >- Order.OrderID
193+
ProductID int FK >- p.ProductID
194+
Quantity int
195+
196+
# Table documentation comment 1 (try the PDF/RTF export)
197+
Product as p # Table documentation comment 2
198+
------------
199+
ProductID PK int
200+
# Field documentation comment 1
201+
# Field documentation comment 2
202+
Name varchar(200) UNIQUE # Field documentation comment 3
203+
Price money
204+
205+
OrderStatus as os
206+
----
207+
OrderStatusID PK int
208+
Name UNIQUE string

0 commit comments

Comments
 (0)