18 lines
2.1 KiB
SQL
18 lines
2.1 KiB
SQL
-- Create schemes table
|
|
CREATE TABLE IF NOT EXISTS schemes (
|
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
|
name VARCHAR(255) NOT NULL,
|
|
description TEXT,
|
|
eligibility TEXT,
|
|
benefits TEXT,
|
|
how_to_apply TEXT,
|
|
url VARCHAR(255),
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
|
|
-- Seed data for schemes
|
|
INSERT INTO schemes (name, description, eligibility, benefits, how_to_apply, url) VALUES
|
|
('Pradhan Mantri Fasal Bima Yojana (PMFBY)', 'An insurance service for farmers for their yields.', 'All farmers including sharecroppers and tenant farmers growing notified crops in the notified areas are eligible.', 'Provides comprehensive insurance coverage against failure of the crop thus helping in stabilising the income of the farmers.', 'Farmers can apply through their bank, PACS, or CSC centres. They need to fill the form and submit the required documents like land records, sowing declaration, and identity proof.', '#'),
|
|
('Kisan Credit Card (KCC)', 'A credit scheme to provide affordable credit for farmers.', 'All farmers-individuals/joint borrowers who are owner cultivators are eligible. Tenant farmers, oral lessees & sharecroppers are also eligible.', 'Access to credit at a lower rate of interest, with a flexible repayment schedule. It also provides a credit limit for a period of 5 years.', 'Visit the nearest bank branch and fill out the KCC application form. Submit it with the necessary documents like land documents, crop details, and identity proof.', '#'),
|
|
('Jalyukt Shivar Abhiyan', 'A water conservation scheme to make Maharashtra a drought-free state.', 'The scheme is primarily for villages in the rain-fed areas of Maharashtra.', 'Increased water availability for irrigation, which leads to higher crop yields and improved farmer income. It also helps in recharging groundwater levels.', 'The scheme is implemented by the state government. Farmers can participate in the planning and implementation of water conservation structures in their villages through Gram Sabhas.', '#')
|
|
ON DUPLICATE KEY UPDATE name=name; -- Avoid re-inserting duplicates if script is run again |