Testys commited on
Commit
784bc54
1 Parent(s): c4b968b

Update orders/schemas.py

Browse files
Files changed (1) hide show
  1. orders/schemas.py +2 -3
orders/schemas.py CHANGED
@@ -1,6 +1,5 @@
1
  from pydantic import BaseModel
2
 
3
-
4
  class MealBase(BaseModel):
5
  name: str
6
  description: str
@@ -26,8 +25,8 @@ class OrderCreate(OrderBase):
26
 
27
  class Order(OrderBase):
28
  id: int
29
- user_id = int
30
- meal_id = int
31
 
32
  class Config:
33
  orm_mode = True
 
1
  from pydantic import BaseModel
2
 
 
3
  class MealBase(BaseModel):
4
  name: str
5
  description: str
 
25
 
26
  class Order(OrderBase):
27
  id: int
28
+ user_id: int # Corrected type annotation
29
+ meal_id: int # Corrected type annotation
30
 
31
  class Config:
32
  orm_mode = True