feat: otp table
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from sqlalchemy import Column, Integer, String, DateTime
|
||||
|
||||
from database import Base
|
||||
from .CustomBase import CustomBase
|
||||
|
||||
class OTP(Base, CustomBase):
|
||||
__tablename__ = "otp"
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
email = Column(String(255), nullable=False)
|
||||
otp = Column(String(6), nullable=False)
|
||||
expireAt = Column(DateTime, nullable=False)
|
||||
+3
-1
@@ -13,6 +13,7 @@ from .Fcm import Fcm
|
||||
from .BlockedEmail import BlockedEmail
|
||||
from .SignupPricingMaster import SignupPricingMaster
|
||||
from .ClinicFileVerifications import ClinicFileVerifications
|
||||
from .OTP import OTP
|
||||
|
||||
__all__ = [
|
||||
"Users",
|
||||
@@ -29,5 +30,6 @@ __all__ = [
|
||||
"Fcm",
|
||||
"BlockedEmail",
|
||||
"SignupPricingMaster",
|
||||
"ClinicFileVerifications"
|
||||
"ClinicFileVerifications",
|
||||
"OTP"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user