10 / case study
HarvestLink
A farm-to-market platform where UAE farmers record harvests, market buyers request produce, and farmers reserve stock until delivery is confirmed. Built with Streamlit and MySQL, with FittonAI, a LangChain and Gemini assistant that answers plain-English questions through role-scoped, read-only SQL.

- category
- Full-stack / Databases
- with
- COSC 444 Database Systems, Khalifa University
- year
- 2026
- role
- Lead developer, team of 3
- tools
- Python · Streamlit · MySQL · LangChain · Gemini
- links
- github
why this exists
Local produce moves between farms and markets through calls and spreadsheets, so buyers can't see what is available and farmers can't see what is wanted. The system had to keep stock correct while farmers, buyers and administrators change the same records, and let people ask questions about those records without writing SQL or seeing other accounts' data.
how it came together
- 01Designed a 15-table MySQL schema for farms, crop cycles, harvest lots, market requests, allocations and deliveries, and calculated stock on hand, reserved and available from stock movements
- 02Built role-based Streamlit pages for farmers, market buyers and administrators, with ownership checks, Argon2id password hashing, an audit timeline and transaction locking in the key inventory operations
- 03Added FittonAI, which turns plain-English questions into a single read-only SELECT, swaps every table for a server-written subquery limited to the signed-in account's records, and shows the supporting records and SQL with each answer
what came out of it
A working educational prototype on fictional demo data, covering the full flow from harvest to request, reservation and confirmed delivery, with phone layouts, tested with valid and invalid cases for each role. It does not connect to government systems or real UAE food inventories.