|
|
@@ -5,15 +5,15 @@ from pydantic import BaseModel, EmailStr, Field |
|
|
|
|
|
|
|
|
|
|
|
class UserCreate(BaseModel): |
|
|
|
email: EmailStr |
|
|
|
password: str = Field(..., min_length=7, max_length=20) |
|
|
|
name: str = Field(..., min_length=3, max_length=50) |
|
|
|
middlename: str = Field(None, min_length=3, max_length=50) |
|
|
|
lastname: str = Field(..., min_length=3, max_length=50) |
|
|
|
phone: str = Field(..., min_length=12, max_length=12) |
|
|
|
birthdate: datetime = Field(...) |
|
|
|
email: EmailStr = Field(...) |
|
|
|
role: str = Field(..., min_length=3, max_length=50) |
|
|
|
Email: EmailStr |
|
|
|
Password: str = Field(..., min_length=7, max_length=20) |
|
|
|
Name: str = Field(..., min_length=3, max_length=50) |
|
|
|
MiddleName: str = Field(None, min_length=3, max_length=50) |
|
|
|
LastName: str = Field(..., min_length=3, max_length=50) |
|
|
|
ContactNumber: str = Field(..., min_length=12, max_length=12) |
|
|
|
BirthDate: datetime = Field(...) |
|
|
|
Email: EmailStr = Field(...) |
|
|
|
Role: str = Field(..., min_length=3, max_length=50) |
|
|
|
|
|
|
|
|
|
|
|
class ShowUser(BaseModel): |
|
|
|