auth-service / app /models /customer.py
Prabha-AIMLOPS's picture
Upload 24 files
2cd3d4e verified
raw
history blame contribute delete
754 Bytes
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")