Update app/schemas.py
This commit is contained in:
parent
6a5d9e5f8e
commit
1fc3e9ffa1
1 changed files with 3 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ class CustomerBase(BaseModel):
|
|||
preferred_contact_method: Optional[str] = None
|
||||
|
||||
class Customer(CustomerBase):
|
||||
customer_id: str # now a string
|
||||
customer_id: str
|
||||
class Config:
|
||||
orm_mode = True
|
||||
|
||||
|
|
@ -32,14 +32,14 @@ class Customer(CustomerBase):
|
|||
# Account Schemas
|
||||
# -----------------------
|
||||
class AccountBase(BaseModel):
|
||||
customer_id: str # now a string
|
||||
customer_id: str
|
||||
account_type: str
|
||||
open_date: date
|
||||
balance: float
|
||||
branch_id: Optional[int] = None
|
||||
|
||||
class Account(AccountBase):
|
||||
account_id: str # now a string
|
||||
account_id: str
|
||||
account_number: str
|
||||
class Config:
|
||||
orm_mode = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue