FlowDiagram
39 templates

Database & ER models templates

Entity relationship diagrams from Mermaid, SQL DDL or DBML. Every one opens as a real, editable diagram — restyle it, extend it and export it as your own. See also the database schema diagram tool.

All 39 database & er models templates

suppliers supplier_ban… materials cost_centers

Procure-to-Pay (P2P) data model

Suppliers, requisitions, purchase orders, goods receipts, supplier invoices and payments, with the three-way match (PO, receipt, invoice) visible in the keys. Modelled on how ERPs such as SAP MM/FI and Oracle Purchasing structure it.

SQL DDL
customers customer_sit… products price_lists

Order-to-Cash (O2C) data model

Customers, credit limits, quotes, sales orders, deliveries, billing documents, receivables and cash application — the SD/AR side of an ERP, from quote to reconciled cash.

SQL DDL
plants materials boms bom_items

Plan-to-Produce data model

Demand forecasts, master production schedule, MRP planned orders, bills of materials, routings, production orders, confirmations and quality results — the PP/MES side of manufacturing.

SQL DDL
company_codes gl_accounts ledgers fiscal_perio…

Record-to-Report (R2R) data model

Company codes, chart of accounts, ledgers, fiscal periods, journal entries, intercompany, reconciliations, consolidation and financial statement mapping — the general-ledger and close model behind SAP FI/CO or Oracle GL.

SQL DDL
products parts part_revisio… product_stru…

Product Lifecycle Management (PLM) data model

Products, parts, revisions, engineering BOMs, CAD documents, change requests and change orders, suppliers, compliance and lifecycle states — the model behind Teamcenter, Windchill or Arena-style PLM.

SQL DDL
locations products customers transport_la…

Supply Chain Planning (SCP) data model

Locations, transport lanes, sourcing rules, demand plans, inventory policies, supply plans, capacity constraints and scenarios — the model behind IBP, Kinaxis or o9-style planning tools.

SQL DDL
CUSTOMER ADDRESS ORDER ORDER_ITEM

Order schema (ER diagram)

Crow's-foot relationships and typed columns.

Mermaid
customers addresses categories products

Orders schema from CREATE TABLE

Paste DDL you already have — keys and crow’s feet come across.

SQL DDL
dim_customer dim_product dim_date dim_store

Snowflake star schema

A fact table and its dimensions, in Snowflake types.

SQL DDL
users organizations org_members projects

SaaS project schema (DBML)

If your schema lives in DBML already, it comes straight across.

DBML
authors categories posts post_revisio…

Blog / CMS schema

Posts, authors, categories and tags with a many-to-many join table.

SQL DDL
products suppliers product_supp… warehouses

Inventory & warehouse schema

Products, warehouses and stock levels per location.

DBML
users posts media follows

Social app schema (users, posts, follows)

A self-referencing follows table alongside posts and likes.

SQL DDL
accounts plans prices subscriptions

SaaS subscription billing schema

Accounts, plans, prices, subscriptions, invoices, line items and payments — the core of any subscription billing system.

SQL DDL
hotels room_types rooms rate_plans

Hotel reservation schema

Hotels, room types, rooms, rates, guests, reservations and stays — the data model behind a property management system.

SQL DDL
users courses modules lessons

Learning management system schema

Courses, modules, lessons, enrolments, quizzes and progress tracking for an e-learning platform.

DBML
departments positions employees compensation

HR information system schema

Employees, departments, positions, managers, compensation history, time off and reviews.

SQL DDL
customers products accounts transactions

Core banking schema

Customers, accounts, double-entry transactions, cards, loans and statements for a retail bank or fintech.

SQL DDL
USER SELLER_PROFI… CATEGORY LISTING

Two-sided marketplace ER diagram

Buyers, sellers, listings, orders, reviews, payouts and disputes in Mermaid ER form.

Mermaid
users companies contacts leads

CRM schema

Companies, contacts, leads, deals, pipeline stages, activities and owners — a Salesforce/HubSpot-style data model.

DBML
workspaces users projects sprints

Project management tool schema

Workspaces, projects, tasks with subtasks, assignees, labels, comments and time tracking — a Jira/Asana-style model.

SQL DDL
restaurants menu_items customers addresses

Food delivery app schema

Restaurants, menus, customers, orders, couriers and delivery tracking for a DoorDash-style app.

SQL DDL
policyholders products policies coverages

Insurance policy & claims schema

Policyholders, policies, coverages, premiums, claims, claim payments and adjusters.

SQL DDL
organizations sites device_models firmware_ver…

IoT device management schema

Organisations, sites, devices, firmware, telemetry rollups, alerts and commands.

DBML
venues sections seats events

Event ticketing schema

Venues, seating, events, ticket types, orders, tickets and check-ins for a Ticketmaster-style platform.

SQL DDL
AUTHOR BOOK BOOK_AUTHOR PUBLISHER

Library management ER diagram

Books, authors, copies, members, loans, holds and fines as a Mermaid ER diagram.

Mermaid
products bom_lines work_centers work_orders

Manufacturing execution (MES) schema

Products, bills of materials, work centres, work orders, operations, lots and quality inspections.

SQL DDL
tenants users roles permissions

Multi-tenant RBAC permissions schema

Tenants, users, roles, permissions, groups, resource grants and audit log for fine-grained access control.

DBML
practitioners availability patients services

Clinic scheduling & billing schema

Practitioners, availability, appointments, services, invoices and insurance claims for a clinic.

SQL DDL
hub_customer hub_order hub_product link_custome…

Data Vault 2.0 model

Hubs, links and satellites for customers, orders and products — the modelling pattern for auditable enterprise warehouses.

SQL DDL
agencies agents properties listings

Real estate listings schema

Agencies, agents, properties, listings, photos, viewings, offers and saved searches.

DBML
users documents document_ver… audit_events

Audit trail & soft-delete pattern

A reusable pattern: versioned rows, change history, soft deletes and an append-only audit log around core entities.

SQL DDL
RIDER DRIVER VEHICLE TRIP

Ride-hailing platform ER diagram

Riders, drivers, vehicles, trips, fares, payments, ratings and surge zones in Mermaid ER form.

Mermaid
customers categories products coupons

E-commerce store with reviews & coupons schema

Customers, products, categories, orders, order items, product reviews, coupons and coupon redemptions for an online store.

SQL DDL
airports aircraft flights fares

Airline reservation schema

Airports, aircraft, flights, fares, passengers, bookings, tickets and seat assignments behind an airline reservation system.

SQL DDL
staff dining_tables reservations menu_items

Restaurant POS & reservations schema

Tables, reservations, menu items, modifiers, checks, check items and payments for a full-service restaurant point-of-sale system.

SQL DDL
plans accounts subscriptions profiles

Video streaming subscriptions schema (DBML)

Accounts, profiles, plans, subscriptions, titles, episodes and watch history for a Netflix-style streaming service.

DBML
companies recruiters jobs candidates

Job board & applicant tracking schema (DBML)

Companies, recruiters, job postings, candidates, applications, interviews and offers for a job board with a built-in applicant tracking system.

DBML
members membership_p… memberships trainers

Gym membership & classes schema (DBML)

Members, membership plans, memberships, trainers, class types, scheduled classes, bookings and check-ins for a fitness club.

DBML

Other template categories