Initial commit: VoIdeaAI - voice-first AI idea assistant
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
"""Feedback schemas for VoIdea API."""
|
||||
|
||||
from datetime import datetime
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class FeedbackCreate(BaseModel):
|
||||
text: str = Field(min_length=1, max_length=5000)
|
||||
page_url: Optional[str] = Field(None, max_length=512)
|
||||
|
||||
|
||||
class FeedbackResponse(BaseModel):
|
||||
id: str
|
||||
user_id: Optional[str] = None
|
||||
text: str
|
||||
page_url: Optional[str] = None
|
||||
status: str = "new"
|
||||
created_at: datetime
|
||||
updated_at: datetime
|
||||
|
||||
|
||||
class FeedbackUpdate(BaseModel):
|
||||
status: str = Field(default="read", description="new | read | replied | done")
|
||||
Reference in New Issue
Block a user