Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .qodo/agents/customers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
customer_id
title
first_name
last_name
full_name
gender
date_of_birth
age
email
phone
address
city
state
state_abbr
state_full
zip_code
country
region
customer_segment
loyalty_points
is_active
account_created_date
preferred_channel
annual_income_usd
company
18 changes: 18 additions & 0 deletions .qodo/agents/employees.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
employee_id
first_name
last_name
full_name
email
phone
job_title
department
store_id
store_name
store_city
hire_date
years_employed
annual_salary_usd
commission_rate_pct
is_active
performance_rating
manager_id
14 changes: 14 additions & 0 deletions .qodo/agents/inventory.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
snapshot_date
product_id
product_name
sku
category
stock_on_hand
stock_reserved
stock_available
reorder_level
unit_cost
unit_price
inventory_value
warehouse_location
store_id
21 changes: 21 additions & 0 deletions .qodo/agents/products.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
product_id
sku
product_name
brand
category
sub_category
department
base_price_usd
cost_price_usd
gross_margin_pct
weight_kg
is_available
stock_quantity
reorder_level
supplier_name
supplier_country
warranty_years
rating_avg
review_count
launched_date
product_url
17 changes: 17 additions & 0 deletions .qodo/agents/returns.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
return_id
original_txn_id
original_order_id
customer_id
customer_name
product_id
product_name
quantity_returned
return_date
return_reason
refund_amount
refund_method
return_channel
restocked
return_status
handled_by_emp_id
notes
13 changes: 13 additions & 0 deletions .qodo/agents/reviews.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
review_id
txn_id
customer_id
customer_name
product_id
product_name
rating
rating_text
review_date
verified_purchase
helpful_votes
review_channel
review_title
20 changes: 20 additions & 0 deletions .qodo/agents/stores.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
store_id
store_name
store_type
address
city
state
state_full
zip_code
country
region
district
phone
manager_name
opened_date
sq_footage
num_employees
annual_rent_usd
is_active
has_parking
has_cafe
208 changes: 208 additions & 0 deletions .qodo/agents/transactions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
Transactions
-
transaction_id PK int
order_id int INDEX
order_line_number int
order_date date
order_year int
order_month int
order_month_name string
order_quarter string
order_day_of_week string
ship_date date
delivery_date date

customer_id FK int
customer_full_name string
customer_first_name string
customer_last_name string
customer_email string
customer_phone string
customer_city string
customer_state string
customer_zip string
customer_region string
customer_segment string
customer_gender string
customer_age int
customer_age_group string

product_id int
product_name string
sku string UNIQUE
brand string
category string
sub_category string
department string

quantity_ordered int
unit_list_price decimal
discount_pct decimal
unit_selling_price decimal
line_total_before_tax decimal
tax_rate_pct decimal
tax_amount decimal
line_total_with_tax decimal

store_id int
store_name string
store_city string
store_state string
store_region string
store_type string

employee_id int
employee_name string
employee_job_title string

promo_id int
promo_name string

sales_channel string
payment_method string
shipping_method string
order_status string
is_returned boolean

cost_price decimal
gross_profit decimal

data_source string
record_created_ts timestamp
last_modified_ts timestamp



# CUSTOMER TABLE DIGRAM
Customer as c
-
customer_id PK int
title string
first_name string
last_name string
full_name string INDEX
gender string
date_of_birth date
age int
email string UNIQUE
phone string
address string
city string
state string
state_abbr string
state_full string
zip_code string
country string
region string
customer_segment string
loyalty_points int
is_active boolean
account_created_date date
preferred_channel string
annual_income_usd decimal
company string

Transactions
-
transaction_id PK int
order_id int INDEX
order_line_number int
order_date date
order_year int
order_month int
order_month_name string
order_quarter string
order_day_of_week string
ship_date date
delivery_date date
customer_id int FK >- Customer.customer_id
customer_full_name string
customer_first_name string
customer_last_name string
customer_email string
customer_phone string
customer_city string
customer_state string
customer_zip string
customer_region string
customer_segment string
customer_gender string
customer_age int
customer_age_group string
product_id int
product_name string
sku string UNIQUE
brand string
category string
sub_category string
department string
quantity_ordered int
unit_list_price decimal
discount_pct decimal
unit_selling_price decimal
line_total_before_tax decimal
tax_rate_pct decimal
tax_amount decimal
line_total_with_tax decimal
store_id int
store_name string
store_city string
store_state string
store_region string
store_type string
employee_id int
employee_name string
employee_job_title string
promo_id int
promo_name string
sales_channel string
payment_method string
shipping_method string
order_status string
is_returned boolean
cost_price decimal
gross_profit decimal
data_source string
record_created_ts timestamp
last_modified_ts timestamp


# Modify this code to update the DB schema diagram.
# To reset the sample schema, replace everything with
# two dots ('..' - without quotes).

Customer
-
CustomerID PK int
Name string INDEX
Address1 string
Address2 NULL string
Address3 NULL string

Order
-
OrderID PK int
CustomerID int FK >- Customer.CustomerID
TotalAmount money
OrderStatusID int FK >- os.OrderStatusID

OrderLine as ol
----
OrderLineID PK int
OrderID int FK >- Order.OrderID
ProductID int FK >- p.ProductID
Quantity int

# Table documentation comment 1 (try the PDF/RTF export)
Product as p # Table documentation comment 2
------------
ProductID PK int
# Field documentation comment 1
# Field documentation comment 2
Name varchar(200) UNIQUE # Field documentation comment 3
Price money

OrderStatus as os
----
OrderStatusID PK int
Name UNIQUE string
Loading