// https://dbdiagram.io/d/ // Kraut&RĂ¼ben ERD Table Customer { id string [primary key] address_id string first_name string last_name string birth_date timestamp email string phone string } Table Order { id string [primary key] customer_id string invoice_amount float order_date timestamp } Table Ingredient { id string [primary key] designation string stock integer net_price float unit string carbonhydrates float calories integer protein float } Table Supplier { id string [primary key] address_id string email string phone string supplier_name string } Table Recipe { id string [primary key] preperation_time integer name string description string instructions string } Table Address { id string [primary key] city string street string house_number string postal_code integer } Table RecipeContainsIngredients { recipe string [primary key] ingredient string [primary key] amount integer } Table SupplierContainsIngredients { supplier string [primary key] ingredient string [primary key] delivery_cost float delivery_time integer } Table OrderContainsIngredients { order string [primary key] ingredient string [primary key] quantity integer } Ref: Order.customer_id > Customer.id Ref: Address.id - Customer.address_id Ref: Address.id - Supplier.address_id Ref: SupplierContainsIngredients.supplier > Supplier.id Ref: SupplierContainsIngredients.ingredient > Ingredient.id Ref: OrderContainsIngredients.order > Order.id Ref: OrderContainsIngredients.ingredient > Ingredient.id Ref: RecipeContainsIngredients.recipe > Recipe.id Ref: RecipeContainsIngredients.ingredient > Ingredient.id