Open krishnanvignesh opened 4 years ago
I would like to work on this
I want to confirm what will be the information I will get in POST request? There is a farmer table and adoption table both so below are my confusions on the issue
I would like to contribute! @krishnanvignesh @ritesh-pandey
Let us define a data contract - how will the client and API talk to each other.
Sample:
farmer_name='string',
care_of='string',
collective_name='string'
village_name='string'
...
This will help both teams - frontend and backed - to understand what needs to be built.
I want to confirm what will be the information I will get in POST request? There is a farmer table and adoption table both so below are my confusions on the issue
* Can we get farmer details from farmer table as well, is there is a separate form for it * Are we saving farmer details in farmer table from this adoption form * Will this form data be saved in the adoption table alone
Let us have a single table as of now - adoption
table. All fields will be stored in it.
I would like to contribute! @krishnanvignesh @ritesh-pandey
Adding @mephi007 to this issue after confirming with @Medha08
I want to confirm what will be the information I will get in POST request? There is a farmer table and adoption table both so below are my confusions on the issue
* Can we get farmer details from farmer table as well, is there is a separate form for it * Are we saving farmer details in farmer table from this adoption form * Will this form data be saved in the adoption table alone
Let us have a single table as of now -
adoption
table. All fields will be stored in it.
Just adding my thoughts.
Wouldnt using a single table give us anomalies in case when a farmer has multiple adoptions or vice versa? Adoption and Farmer table look to have n x n mapping , so perhaps a different mapping table could be of help as follows:
Adoption table -Adoption id -Adoption/Video name
Adoption_farmer_mapping -farmer_id (refers Farmer table) -adoption_id (refers Adoption table) -Date of adoption
We can refer the farmer id to fetch Name of farmer, Father's name,Village name,collective name.
@ritesh-pandey thoughts please?
Implement Create adoption wish for a farmer using the below form
Note: Please go through the created endpoints before you start working on this.
Refer: issue #36 https://github.com/Scaler-Community-Projects/NGO-Farmer-Analysis/wiki/Adoption-Form