Skip to content

Commit

Permalink
✅ Update user model and schema to include is_verify field
Browse files Browse the repository at this point in the history
  • Loading branch information
rapeeza1598 committed May 2, 2024
1 parent 55ee16f commit 93761ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/models/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class User(Base):
phoneNumber = Column(String)
hashed_password = Column(String)
role = Column(String, default="user")
is_active = Column(Boolean, default=True)
is_superuser = Column(Boolean, default=False)
is_active = Column(Boolean, default=False)
is_verify = Column(Boolean, default=False)
created_at = Column(DateTime, default=datetime.datetime.now())

def __init__(self, firstName, lastName, email, phoneNumber, hashed_password, role):
Expand Down
2 changes: 1 addition & 1 deletion app/schemas/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class User(BaseModel):
phoneNumber: str
role: str
is_active: bool
is_superuser: bool
is_verify: bool
created_at: datetime.datetime


Expand Down

0 comments on commit 93761ce

Please sign in to comment.