integer
id
varchar
name
text
notes
customer
integer
id
numeric(19,4)
total
integer
bakery_id
integer
customer_id
timestamp
placed_at
order
integer
id
varchar
name
json
contact_details
integer
bakery_id
baker
integer
id
varchar
name
numeric(19,4)
price
integer
bakery_id
boolean
gluten_free
uuid
serial
cake
integer
id
varchar
name
double precision
profit_margin
bakery
integer
id
numeric(19,4)
price
integer
quantity
integer
order_id
integer
cake_id
lineitem
integer
cake_id
integer
baker_id
cakes_bakers
bakery_id:id
bakery_id:id
bakery_id:id
customer_id:id
cake_id:id
baker_id:id
order_id:id
cake_id:id