HomeE-commerceOnline Store

Online Store

Complete e-commerce platform with product variants, cart, orders, reviews, and payment processing

SchemaVerse
E-commercePostgreSQLE-commerceNormalizedREST API
4
0
0
online-store.dbml
14 tables|20 relations

About this Schema

Overview

A comprehensive e-commerce database schema modeling a modern online store like Shopify or WooCommerce. Supports product catalogs with variants, shopping cart functionality, order processing, customer reviews, and payment integration.

Key Design Decisions

  • Product Variants: Separate tables for products and variants to handle size/color/material combinations
  • Cart Persistence: Shopping cart items stored in database for logged-in users
  • Order Workflow: Status tracking from pending through shipped to delivered
  • Review System: Customer feedback with star ratings and moderation

Tables

15 tables covering products, inventory, cart, orders, payments, reviews, and customer management. Includes proper foreign key relationships and indexes for common queries like product browsing and order history.

Comments

Sign in to comment on this schema

Loading comments...