import { * } from 'sruja.ai/stdlib'

Customer = person "Customer" {
  description "Browses products and places orders"
}

Platform = system "E-Commerce Platform" {
  description "E-commerce storefront and core backend services"

  WebApp = container "Storefront & Admin" {
    technology "Next.js, TypeScript"
    description "The user-facing application."
  }

  API = container "Core API" {
    technology "Rust, Axum"
    description "REST API handling business logic."
  }

  Database = database "Primary DB" {
    technology "PostgreSQL 15"
    description "Stores orders, products, and users."
  }

  WebApp -> API "JSON/HTTPS"
  API -> Database "SQL/TCP"
}

Customer -> Platform "Uses"
