diff --git a/app/models/users.py b/app/models/users.py index 9b07003..1fb4af1 100644 --- a/app/models/users.py +++ b/app/models/users.py @@ -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): diff --git a/app/schemas/user.py b/app/schemas/user.py index fd7fd9c..def9f97 100644 --- a/app/schemas/user.py +++ b/app/schemas/user.py @@ -18,7 +18,7 @@ class User(BaseModel): phoneNumber: str role: str is_active: bool - is_superuser: bool + is_verify: bool created_at: datetime.datetime