feat: staff management apis
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from sqlalchemy import Column, Integer, String
|
||||
from database import Base
|
||||
from .CustomBase import CustomBase
|
||||
|
||||
|
||||
class ResetPasswordTokens(Base, CustomBase):
|
||||
__tablename__ = "reset_password_tokens"
|
||||
id = Column(Integer, primary_key=True)
|
||||
email = Column(String)
|
||||
token = Column(String)
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ class Users(Base, CustomBase):
|
||||
clinicRole = Column(Enum(ClinicUserRoles), nullable=True)
|
||||
userType = Column(Enum(UserType), nullable=True)
|
||||
profile_pic = Column(String, nullable=True)
|
||||
mobile = Column(String)
|
||||
mobile = Column(String, nullable=True)
|
||||
|
||||
# Notification relationships
|
||||
sent_notifications = relationship("Notifications", foreign_keys="Notifications.sender_id", back_populates="sender")
|
||||
|
||||
+3
-1
@@ -14,6 +14,7 @@ from .BlockedEmail import BlockedEmail
|
||||
from .SignupPricingMaster import SignupPricingMaster
|
||||
from .ClinicFileVerifications import ClinicFileVerifications
|
||||
from .OTP import OTP
|
||||
from .ResetPasswordTokens import ResetPasswordTokens
|
||||
|
||||
__all__ = [
|
||||
"Users",
|
||||
@@ -31,5 +32,6 @@ __all__ = [
|
||||
"BlockedEmail",
|
||||
"SignupPricingMaster",
|
||||
"ClinicFileVerifications",
|
||||
"OTP"
|
||||
"OTP",
|
||||
"ResetPasswordTokens"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user