@@ -8,13 +8,13 @@ async function insertAllFormData() {
8
8
9
9
// 1 . Insert into forms
10
10
const [formResult] = await connection .execute (
11
- ` INSERT INTO forms (
12
- form_type, farmer_name, age, mobile, district, block, panchayat, hamlet,
11
+ ` INSERT INTO forms (
12
+ farmer_name, age, mobile, district, block, panchayat, hamlet,
13
13
id_type, id_number, gender, spouse, type_of_households, h_members,
14
14
hh_occupation, special_catog, caste, house_owner, type_of_house,
15
15
drinking_water, potability, domestic_water, toilet_avail, toilet_cond,
16
- household_education, user_id, created_at, lat, lon, status
17
- ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )` ,
16
+ household_education, user_id, created_at, lat, lon, status, form_type
17
+ ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)` ,
18
18
[2 , ' FARMER_NAME' , ' AGE' , 9876543210 , ' DISTRICT' , ' BLOCK' , ' PANCHAYAT' , ' HAMLET' ,
19
19
' ID_TYPE' , ' ID_NUMBER' , ' GENDER' , ' SPOUSE' , ' HOUSEHOLD_TYPE' , 5 ,
20
20
' OCCUPATION' , ' SPECIAL_CAT' , ' CASTE' , ' OWNER' , ' HOUSE_TYPE' ,
0 commit comments