Spaces:
Sleeping
Sleeping
| 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") |