From e747974ed9c027f47e1e07a6ddde76b45b92f187 Mon Sep 17 00:00:00 2001 From: hilfe Date: Thu, 8 Feb 2024 21:25:05 +0100 Subject: [PATCH] adjust erm --- erd.dbml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/erd.dbml b/erd.dbml index ed47831..2cf5365 100644 --- a/erd.dbml +++ b/erd.dbml @@ -3,7 +3,7 @@ Table Customer { id string [primary key] - address_id string + address string first_name string last_name string birth_date timestamp @@ -13,7 +13,7 @@ Table Customer { Table Order { id string [primary key] - customer_id string + customer string invoice_amount float order_date timestamp } @@ -24,22 +24,22 @@ Table Ingredient { stock integer net_price float unit string - carbonhydrates float + carbohydrates float calories integer protein float } Table Supplier { id string [primary key] - address_id string + address string email string phone string - supplier_name string + name string } Table Recipe { id string [primary key] - preperation_time integer + preparation_time integer name string description string instructions string @@ -50,7 +50,7 @@ Table Address { city string street string house_number string - postal_code integer + postal_code string } Table RecipeContainsIngredients { @@ -72,9 +72,9 @@ Table OrderContainsIngredients { quantity integer } -Ref: Order.customer_id > Customer.id -Ref: Address.id - Customer.address_id -Ref: Address.id - Supplier.address_id +Ref: Order.customer > Customer.id +Ref: Address.id - Customer.address +Ref: Address.id - Supplier.address Ref: SupplierContainsIngredients.supplier > Supplier.id Ref: SupplierContainsIngredients.ingredient > Ingredient.id Ref: OrderContainsIngredients.order > Order.id