Skip to main content

farms

This model represents a farm entity with its basic information, features, statistics, and production targets. The structure allows for both basic farm management and advanced features like production tracking and area calculations.

Both Farms and Organizations follow the same structure. They are in reality both Organizations.

Farm Object

FieldValue ExampleTypeDescriptionHow it Can Be Used
id"2b289a5a-62d2-40a8-8d8f-0b63951a863d"String (UUID)Unique identifier for the farmReference specific farms
name"Ohta Farm"StringFarm nameDisplay and identification
emailnullString | nullContact emailCommunication and notifications
address""StringPhysical addressLocation and shipping info
phone"+819056043283"StringContact number with country codeCommunication and SMS notifications
descriptionnullString | nullFarm descriptionAdditional information
slug"black-flower-9"StringURL-friendly identifierURL routing and friendly links
preview_uri"https://maps.googleapis.com/maps/api/staticmap?..."StringGoogle Maps static image URLVisual map preview
created_at"2022-01-12T02:12:32Z"String (ISO 8601)Creation timestampAudit trail
updated_at"2022-12-25T04:32:32Z"String (ISO 8601)Last update timestampTrack modifications
location{ type: "Point", coordinates: [...] }ObjectGeographic location informationSpatial data management
location.type"Point"StringGeoJSON typeSpatial data formatting
location.coordinates[101.496012131774, 14.5184707338978]Array[Number][longitude, latitude]Geolocation and mapping
features{ production_graphs: true }ObjectFeature flags for the farmFeature management
features.production_graphstrueBooleanEnable/disable production graphsFeature flag management
production_targets{}ObjectProduction goals and targetsPlanning and goal setting

Location Object

FieldValue ExampleTypeDescriptionHow it Can Be Used
type"Point"StringGeoJSON typeSpatial data formatting
coordinates[101.496012131774, 14.5184707338978]Array[Number][longitude, latitude]Geolocation and mapping

Features Object

FieldValue ExampleTypeDescriptionHow it Can Be Used
production_graphstrueBooleanEnable/disable production graphsFeature flag management

Production Targets Object

FieldValue ExampleTypeDescriptionHow it Can Be Used
prod_targets{}ObjectProduction goals and targetsPlanning and goal setting