Spaces:
Runtime error
Runtime error
Update models.py
Browse files
models.py
CHANGED
|
@@ -1,6 +1,12 @@
|
|
| 1 |
from pydantic import BaseModel, EmailStr, Field, validator
|
| 2 |
from typing import List, Optional
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# === Trainer Models ===
|
| 5 |
class InitializeBotResponse(BaseModel):
|
| 6 |
bot_id: str
|
|
|
|
| 1 |
from pydantic import BaseModel, EmailStr, Field, validator
|
| 2 |
from typing import List, Optional
|
| 3 |
|
| 4 |
+
class ContactMessage(BaseModel):
|
| 5 |
+
first_name: str = Field(..., min_length=1, max_length=50)
|
| 6 |
+
last_name: str = Field(..., min_length=1, max_length=50)
|
| 7 |
+
email: EmailStr
|
| 8 |
+
message: str = Field(..., min_length=1, max_length=1000)
|
| 9 |
+
|
| 10 |
# === Trainer Models ===
|
| 11 |
class InitializeBotResponse(BaseModel):
|
| 12 |
bot_id: str
|