WIP: Add conditional questions - backend models and schemas updated
This commit is contained in:
@@ -97,6 +97,8 @@ class QuestionBase(BaseModel):
|
||||
allow_photos: bool = True
|
||||
max_photos: int = 3
|
||||
requires_comment_on_fail: bool = False
|
||||
parent_question_id: Optional[int] = None
|
||||
show_if_answer: Optional[str] = None
|
||||
|
||||
class QuestionCreate(QuestionBase):
|
||||
checklist_id: int
|
||||
@@ -113,6 +115,7 @@ class Question(QuestionBase):
|
||||
from_attributes = True
|
||||
|
||||
|
||||
|
||||
# Inspection Schemas
|
||||
class InspectionBase(BaseModel):
|
||||
or_number: Optional[str] = None
|
||||
|
||||
Reference in New Issue
Block a user