Update schema_classes.py
Browse files- schema_classes.py +11 -1
schema_classes.py
CHANGED
|
@@ -22,6 +22,10 @@ class Trial(BaseModel):
|
|
| 22 |
description: str = Field(..., title="Description", description="A description of this trial")
|
| 23 |
treatments: List[Treatment] = Field(..., title="Treatments", description="A list of different treatments (strips or blocks with the same conditions applied) performed by the partner")
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
#################################################################################
|
| 26 |
|
| 27 |
# These are the necessary components that make up the Interactions
|
|
@@ -42,6 +46,12 @@ class Interactions(BaseModel):
|
|
| 42 |
nextSteps: List[str] = Field(..., title="Next Steps", description="List of individual next steps derived from the interaction")
|
| 43 |
summary: str = Field(..., title="Summary", description="Summary of the interaction")
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
#################################################################################
|
| 46 |
|
| 47 |
# These are the components for Farm Activities, Fields, and Plantings
|
|
@@ -113,7 +123,7 @@ class FarmActivities(BaseModel):
|
|
| 113 |
description: str = Field(..., title="Description", description="The description of the agricultural field.")
|
| 114 |
plantings: List[Planting] = Field(..., title="Plantings", description="All of the plantings which have occurred on this field.")
|
| 115 |
|
| 116 |
-
# These are extra for the modular approach
|
| 117 |
class FarmActivitiesLite(BaseModel):
|
| 118 |
name: str = Field(..., title="Name", description="The name of the agricultural field.")
|
| 119 |
description: str = Field(..., title="Description", description="The description of the agricultural field.")
|
|
|
|
| 22 |
description: str = Field(..., title="Description", description="A description of this trial")
|
| 23 |
treatments: List[Treatment] = Field(..., title="Treatments", description="A list of different treatments (strips or blocks with the same conditions applied) performed by the partner")
|
| 24 |
|
| 25 |
+
class TrialLite(BaseModel):
|
| 26 |
+
name: str = Field(..., title="Name", description="The name of this trial")
|
| 27 |
+
description: str = Field(..., title="Description", description="A description of this trial")
|
| 28 |
+
|
| 29 |
#################################################################################
|
| 30 |
|
| 31 |
# These are the necessary components that make up the Interactions
|
|
|
|
| 46 |
nextSteps: List[str] = Field(..., title="Next Steps", description="List of individual next steps derived from the interaction")
|
| 47 |
summary: str = Field(..., title="Summary", description="Summary of the interaction")
|
| 48 |
|
| 49 |
+
class InteractionsLite(BaseModel):
|
| 50 |
+
date: str = Field(..., title="Date of current interaction", description="Date of the interaction")
|
| 51 |
+
nextMeeting: str = Field(..., title="Date of next meeting", description="Proposed date of the next future interaction")
|
| 52 |
+
nextSteps: List[str] = Field(..., title="Next Steps", description="List of individual next steps derived from the interaction")
|
| 53 |
+
summary: str = Field(..., title="Summary", description="Summary of the interaction")
|
| 54 |
+
|
| 55 |
#################################################################################
|
| 56 |
|
| 57 |
# These are the components for Farm Activities, Fields, and Plantings
|
|
|
|
| 123 |
description: str = Field(..., title="Description", description="The description of the agricultural field.")
|
| 124 |
plantings: List[Planting] = Field(..., title="Plantings", description="All of the plantings which have occurred on this field.")
|
| 125 |
|
| 126 |
+
# These are extra for the modular approach (step-wise)
|
| 127 |
class FarmActivitiesLite(BaseModel):
|
| 128 |
name: str = Field(..., title="Name", description="The name of the agricultural field.")
|
| 129 |
description: str = Field(..., title="Description", description="The description of the agricultural field.")
|