Back to Support Center

Data Models

Comprehensive documentation of Kisan AI's data models and relationships.

Farm

Core farm entity with location and configuration

FieldTypeDescription
iduuidUnique identifier
namestringFarm name
locationobjectGeographical coordinates
sizenumberTotal area in hectares
created_attimestampCreation timestamp

Field

Individual farm fields or plots

FieldTypeDescription
iduuidUnique identifier
farm_iduuidReference to farm
namestringField name
areanumberField size in hectares
soil_typestringSoil classification

Crop

Crop data and growth metrics

FieldTypeDescription
iduuidUnique identifier
field_iduuidReference to field
typestringCrop variety
planting_datedateDate planted
expected_harvestdateExpected harvest date

Relationships

Farm to Fields

One-to-many relationship between farms and their fields

farm_id references farms(id)

Field to Crops

One-to-many relationship between fields and crops

field_id references fields(id)

Ready to Start Building?

Explore our API documentation to start integrating with Kisan AI.