Skip to content

Commit

Permalink
update jaffle_shop docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Nov 11, 2023
1 parent a239938 commit 5c28fd7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 45 deletions.
7 changes: 7 additions & 0 deletions examples/jaffle_shop/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,19 @@ flowchart TB
%%{init: {"flowchart": {"defaultRenderer": "elk"}} }%%
flowchart TB
subgraph analytics
analytics.finance.kpis(finance.kpis)
analytics.kpis(kpis)
end
subgraph core
core.customers(customers)
core.orders(orders)
end
subgraph staging
staging.customers(customers)
staging.orders(orders)
staging.payments(payments)
end
core.orders --> analytics.finance.kpis
Expand Down
12 changes: 4 additions & 8 deletions examples/jaffle_shop/docs/analytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ SELECT *
FROM analytics.finance__kpis
```

| Column | Type | Description | Unique |
|:--------------------|:---------|:--------------|:---------|
| average_order_value | `DOUBLE` | | |
| total_order_value | `DOUBLE` | | |
| Column | Type | Description | Unique |
|----------|--------|---------------|----------|

### analytics.kpis

Expand All @@ -26,8 +24,6 @@ SELECT *
FROM analytics.kpis
```

| Column | Type | Description | Unique |
|:---------|:----------|:--------------|:---------|
| metric | `VARCHAR` | | |
| value | `BIGINT` | | |
| Column | Type | Description | Unique |
|----------|--------|---------------|----------|

24 changes: 4 additions & 20 deletions examples/jaffle_shop/docs/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,8 @@ SELECT *
FROM core.customers
```

| Column | Type | Description | Unique |
|:------------------------|:----------|:--------------|:---------|
| customer_id | `BIGINT` | ||
| customer_lifetime_value | `DOUBLE` | | |
| first_name | `VARCHAR` | | |
| first_order | `VARCHAR` | | |
| last_name | `VARCHAR` | | |
| most_recent_order | `VARCHAR` | | |
| number_of_orders | `BIGINT` | | |
| Column | Type | Description | Unique |
|----------|--------|---------------|----------|

### core.orders

Expand All @@ -31,15 +24,6 @@ SELECT *
FROM core.orders
```

| Column | Type | Description | Unique |
|:---------------------|:----------|:--------------|:---------|
| amount | `DOUBLE` | | |
| bank_transfer_amount | `DOUBLE` | | |
| coupon_amount | `DOUBLE` | | |
| credit_card_amount | `DOUBLE` | | |
| customer_id | `BIGINT` | | |
| gift_card_amount | `DOUBLE` | | |
| order_date | `VARCHAR` | | |
| order_id | `BIGINT` | | |
| status | `VARCHAR` | | |
| Column | Type | Description | Unique |
|----------|--------|---------------|----------|

23 changes: 6 additions & 17 deletions examples/jaffle_shop/docs/staging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@ SELECT *
FROM staging.customers
```

| Column | Type | Description | Unique |
|:------------|:----------|:--------------|:---------|
| customer_id | `BIGINT` | | |
| first_name | `VARCHAR` | | |
| last_name | `VARCHAR` | | |
| Column | Type | Description | Unique |
|----------|--------|---------------|----------|

### staging.orders

Expand All @@ -32,12 +29,8 @@ SELECT *
FROM staging.orders
```

| Column | Type | Description | Unique |
|:------------|:----------|:--------------|:---------|
| customer_id | `BIGINT` | | |
| order_date | `VARCHAR` | | |
| order_id | `BIGINT` | | |
| status | `VARCHAR` | | |
| Column | Type | Description | Unique |
|----------|--------|---------------|----------|

### staging.payments

Expand All @@ -46,10 +39,6 @@ SELECT *
FROM staging.payments
```

| Column | Type | Description | Unique |
|:---------------|:----------|:--------------|:---------|
| amount | `DOUBLE` | | |
| order_id | `BIGINT` | | |
| payment_id | `BIGINT` | | |
| payment_method | `VARCHAR` | | |
| Column | Type | Description | Unique |
|----------|--------|---------------|----------|

0 comments on commit 5c28fd7

Please sign in to comment.