Spaces:
Sleeping
Sleeping
File size: 754 Bytes
2cd3d4e | 1 2 3 4 5 6 7 8 9 10 11 12 13 | from pydantic import BaseModel, EmailStr, Field
from datetime import datetime
class CustomerRegister(BaseModel):
"""
Pydantic model for customer registration request payload.
"""
email: EmailStr = Field(..., description="The email address of the customer")
mobile: str = Field(..., description="The 10-digit mobile number of the customer")
status: str = Field("pending-verification", description="The status of the customer account")
email_ver_code: str = Field(..., description="The email verification code")
mobile_ver_code: str = Field(..., description="The mobile verification code")
created_at: datetime = Field(default_factory=datetime.now, description="The timestamp when the customer was created") |