Files
piaps-student-performance/backend/app/models/otp_model.py

13 lines
260 B
Python

import datetime
from app.schemas.otp_schemas import OTPReadSchema
class OTP:
user_id: int
code: str
created_at: datetime.datetime
def to_read_schema(self) -> OTPReadSchema:
return OTPReadSchema(user_id=self.user_id, code=self.code)