SchemaHand · schema handoff

Schema diagram with editable notes

Tables and relationships from your SQL. Scroll inside the diagram to explore a large schema.

Edit table and column notes below, then save a new copy. Names, columns and relationships stay unchanged.

Relationships

Editable notes

Open a table to edit its notes. Changes stay in this browser until you save a new copy.

app.customers

People and companies who buy from us.

ColumnTypeNotes
idINTEGERprimary key
full_nameVARCHAR
emailTEXTUnique email address used for login.
statusVARCHAR
created_atTIMESTAMP WITHOUT TIME ZONE

app.addresses

ColumnTypeNotes
idINTEGERprimary key
customer_idINTEGERlinks to customers
line1VARCHAR
cityVARCHAR
postal_codeVARCHAR

app.categories

ColumnTypeNotes
idINTEGERprimary key
nameVARCHAR
parent_category_idINTEGER

app.suppliers

ColumnTypeNotes
idINTEGERprimary key
nameVARCHAR
activeBOOLEAN

app.products

Items we sell to customers.

ColumnTypeNotes
idINTEGERprimary key
skuVARCHAR
nameVARCHAR
priceNUMERIC
category_idINTEGER
supplier_idINTEGERlinks to suppliers

app.orders

ColumnTypeNotes
idINTEGERprimary key
customer_idINTEGER
billing_address_idINTEGERlinks to addresses
shipping_address_idINTEGERlinks to addresses
order_dateDATE
total_amountNUMERIC

app.order_items

ColumnTypeNotes
order_idINTEGERprimary key
product_idINTEGERprimary key, links to products
quantityINTEGER
unit_priceNUMERIC

app.payments

ColumnTypeNotes
idINTEGERprimary key
order_idINTEGERlinks to orders
amountNUMERIC
methodVARCHAR
paid_atTIMESTAMP WITHOUT TIME ZONE

app.invoices

ColumnTypeNotes
idINTEGERprimary key
order_idINTEGER
customer_idINTEGER
issued_atTIMESTAMP WITHOUT TIME ZONE
total_amountNUMERIC

app.inventory

ColumnTypeNotes
idINTEGERprimary key
product_idINTEGERlinks to products
warehouseVARCHAR
quantity_on_handINTEGER

audit.login_events

ColumnTypeNotes
idINTEGERprimary key
customer_idINTEGER
user_agentTEXTRaw browser string, kept only for fraud checks.
happened_atTIMESTAMP WITHOUT TIME ZONE

audit.change_log

ColumnTypeNotes
idINTEGERprimary key
customer_idINTEGER
table_nameVARCHAR
changed_atTIMESTAMP WITHOUT TIME ZONE