Skip to content

Tray

Properties

Name Type Description Notes
tray_barcode str [optional]
tray_id int [optional]
tray_info str [optional]
tray_status str [optional]
tray_status_changed datetime [optional]
tray_type_id int [optional]

1:1 Relationships

All the listed relationships are available as properties on the model instance

Name Model Linked Via
tray_type TrayType tray_type_id

Implicit Relationships

All the listed relationships are available as properties on the model instance

Name Model API Operation Parameter
tray_profile TrayProfile TrayApi TrayID->id
scales_mapping ScalesMapping TrayApi TrayID->id
plants List[Plant] PlantApi TrayID->id
plant_reference_weights List[PlantWeightReference] ScalesApi TrayID->id
system_logs List[SystemLog] SystemLogApi TrayID->id

Parameterized Relationships

All the listed relationships are available as methods on the model instance.

Parameters written in bold are taken automatically from the model instance, when calling the method you have to supply the non-bold parameters

Name Model API Operation Parameters
tray_profile_used_by_daterange List[TrayProfile] TrayApi TrayProfileUsedTray TrayID->id, start->start, stop->stop
tray_profile_used_at_time List[TrayProfile] TrayApi TrayProfileToDateTray TrayID->id, var_date->var_date
plants_by_daterange List[Plant] PlantApi PlantTrayProfileTray TrayID->id, start->start, stop->stop
plant_reference_weights_at_time List[PlantWeightReference] ScalesApi ScalesWeightReferenceToDateTray TrayID->id, date->date
system_logs_by_daterange List[SystemLog] SystemLogApi SystemLogDateTray TrayID->id, start->start, stop->stop
## Example
from plantscreen.models.tray import Tray

# TODO update the JSON string below
json = "{}"
# create an instance of Tray from a JSON string
tray_instance = Tray.from_json(json)
# print the JSON string representation of the object
print(Tray.to_json())

# convert the object into a dict
tray_dict = tray_instance.to_dict()
# create an instance of Tray from a dict
tray_from_dict = Tray.from_dict(tray_dict)

Back to API Endpoints Back to Models [Back to README]