11 lines
369 B
Python
11 lines
369 B
Python
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) |