fix datatypes, add poster image
This commit is contained in:
parent
05e7abf77f
commit
cd80cafab9
4 changed files with 5 additions and 3 deletions
|
@ -1 +1,3 @@
|
||||||
# LF5 Database Project
|
# LF5 Database Project
|
||||||
|
|
||||||
|

|
4
erd.dbml
4
erd.dbml
|
@ -16,7 +16,7 @@ Table Customer {
|
||||||
|
|
||||||
Table Order {
|
Table Order {
|
||||||
id string [primary key]
|
id string [primary key]
|
||||||
customer Customer
|
customer_id string
|
||||||
invoice_amount integer
|
invoice_amount integer
|
||||||
order_date timestamp
|
order_date timestamp
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ Table OrderContainsIngredients {
|
||||||
quantity integer
|
quantity integer
|
||||||
}
|
}
|
||||||
|
|
||||||
Ref: Order.customer > Customer.id
|
Ref: Order.customer_id > Customer.id
|
||||||
Ref: SupplierContainsIngredients.supplier > Supplier.id
|
Ref: SupplierContainsIngredients.supplier > Supplier.id
|
||||||
Ref: SupplierContainsIngredients.ingredient > Ingredient.id
|
Ref: SupplierContainsIngredients.ingredient > Ingredient.id
|
||||||
Ref: OrderContainsIngredients.order > Order.id
|
Ref: OrderContainsIngredients.order > Order.id
|
||||||
|
|
|
@ -21,7 +21,7 @@ class Customer:
|
||||||
@dataclass
|
@dataclass
|
||||||
class Order:
|
class Order:
|
||||||
id: str
|
id: str
|
||||||
customer: Customer.id
|
customer_id: Customer.id
|
||||||
invoice_amount: int
|
invoice_amount: int
|
||||||
order_date: str # Assuming timestamp as a string for simplicity
|
order_date: str # Assuming timestamp as a string for simplicity
|
||||||
|
|
||||||
|
|
BIN
poster/dbms.png
Normal file
BIN
poster/dbms.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 261 KiB |
Loading…
Add table
Reference in a new issue