# samethereal/diamond-dental architecture

> Architecture diagram of the GitHub repository samethereal/diamond-dental, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/samethereal/diamond-dental
- Repository: https://github.com/samethereal/diamond-dental

## Overview

Diamond Dental is a clinic storefront for curated dental-care packages and standalone oral-care products, with staff portals linked from the landing page. The advertised customer journey is browsing, reserving stock for clinic pickup, then paying in person. The source tree and sampled code show only the landing page and shared Prisma setup; catalog, reservation, pickup, payment, and staff behavior are described by the landing-page copy or linked routes, not inspected implementation. The data model’s details are likewise unavailable.

Main entry points: [`src/app/page.tsx`](https://github.com/samethereal/diamond-dental/blob/main/src/app/page.tsx) (Landing Page), [`src/app`](https://github.com/samethereal/diamond-dental/tree/main/src/app) (Stock Reservation), [`src/lib/prisma.ts`](https://github.com/samethereal/diamond-dental/blob/main/src/lib/prisma.ts) (Prisma Client), [`src/app/layout.tsx`](https://github.com/samethereal/diamond-dental/blob/main/src/app/layout.tsx) (App Layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_home["Landing Page<br/>[page.tsx]"]
  node_layout["App Layout<br/>[layout.tsx]"]
  node_clerk["Clerk Portal"]
  node_admin["Admin Dashboard"]
end

subgraph group_commerce["Commerce Journey"]
  node_packages["Package Catalog"]
  node_products["Product Catalog"]
  node_reservation["Stock Reservation"]
  node_pickup["Clinic Pickup"]
  node_payment["In-Person Payment"]
end

subgraph group_persistence["Persistence"]
  node_prisma["Prisma Client<br/>[prisma.ts]"]
  node_schema["Data Model<br/>[schema.prisma]"]
end

node_customer(("Customer"))
node_staff(("Clinic Staff"))

node_customer -->|"opens"| node_home
node_home -->|"renders within"| node_layout
node_home -->|"links to"| node_packages
node_home -->|"links to"| node_products
node_home -->|"links to"| node_clerk
node_home -->|"links to"| node_admin
node_customer -->|"browses"| node_packages
node_customer -->|"browses"| node_products
node_customer -->|"reserves stock"| node_reservation
node_reservation -->|"holds for pickup"| node_pickup
node_customer -->|"collects at"| node_pickup
node_customer -->|"pays in person"| node_payment
node_staff -->|"uses"| node_clerk
node_staff -->|"uses"| node_admin
node_prisma -->|"uses model"| node_schema

click node_home "https://github.com/samethereal/diamond-dental/blob/main/src/app/page.tsx"
click node_layout "https://github.com/samethereal/diamond-dental/blob/main/src/app/layout.tsx"
click node_packages "https://github.com/samethereal/diamond-dental/tree/main/src/app"
click node_products "https://github.com/samethereal/diamond-dental/tree/main/src/app"
click node_reservation "https://github.com/samethereal/diamond-dental/tree/main/src/app"
click node_pickup "https://github.com/samethereal/diamond-dental/tree/main/src/app"
click node_payment "https://github.com/samethereal/diamond-dental/tree/main/src/app"
click node_clerk "https://github.com/samethereal/diamond-dental/tree/main/src/app"
click node_admin "https://github.com/samethereal/diamond-dental/tree/main/src/app"
click node_prisma "https://github.com/samethereal/diamond-dental/blob/main/src/lib/prisma.ts"
click node_schema "https://github.com/samethereal/diamond-dental/blob/main/prisma/schema.prisma"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_layout,node_clerk,node_admin toneBlue
class node_packages,node_products,node_reservation,node_pickup,node_payment toneAmber
class node_prisma,node_schema toneMint
class node_customer,node_staff toneIndigo
```

## Components

### Storefront

- [Landing Page](https://github.com/samethereal/diamond-dental/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [App Layout](https://github.com/samethereal/diamond-dental/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Clerk Portal](https://github.com/samethereal/diamond-dental/tree/main/src/app): `src/app`
- [Admin Dashboard](https://github.com/samethereal/diamond-dental/tree/main/src/app): `src/app`

### Commerce Journey

- [Package Catalog](https://github.com/samethereal/diamond-dental/tree/main/src/app): `src/app`
- [Product Catalog](https://github.com/samethereal/diamond-dental/tree/main/src/app): `src/app`
- [Stock Reservation](https://github.com/samethereal/diamond-dental/tree/main/src/app): `src/app`
- [Clinic Pickup](https://github.com/samethereal/diamond-dental/tree/main/src/app): `src/app`
- [In-Person Payment](https://github.com/samethereal/diamond-dental/tree/main/src/app): `src/app`

### Persistence

- [Prisma Client](https://github.com/samethereal/diamond-dental/blob/main/src/lib/prisma.ts): `src/lib/prisma.ts`
- [Data Model](https://github.com/samethereal/diamond-dental/blob/main/prisma/schema.prisma): `prisma/schema.prisma`

### Other components

- **Customer**
- **Clinic Staff**

## Connections

- Customer → Landing Page: opens
- Landing Page → App Layout: renders within
- Landing Page → Package Catalog: links to
- Landing Page → Product Catalog: links to
- Landing Page → Clerk Portal: links to
- Landing Page → Admin Dashboard: links to
- Customer → Package Catalog: browses
- Customer → Product Catalog: browses
- Customer → Stock Reservation: reserves stock
- Stock Reservation → Clinic Pickup: holds for pickup
- Customer → Clinic Pickup: collects at
- Customer → In-Person Payment: pays in person
- Clinic Staff → Clerk Portal: uses
- Clinic Staff → Admin Dashboard: uses
- Prisma Client → Data Model: uses model
