🗂
Total Tables
10
core relational tables
🔗
Relationships
9
all via sm_code FK
📍
Primary Key Type
serial
auto-increment on 9 tables
Central Entity
geographic_region
hub of all relationships
Table Inventory
#TablePrimary KeyDashboard
1geographic_regionsm_code int02 Geography
2regional_populationpopulation_id serial03 Population
3Ownershipownership_id serial04 Ownership
4parcelland_id serial05 Land
5regional_cropcrop_id serial06 Crops
6regional_livestocklivestock_id serial06 Livestock
7regional_irrigationirrigation_id serial07 Irrigation
8regional_institutionsinstitution_id serial08 Institutions
9regional_information_accessaccess_id serial08 Info Access
10regional_aquacultureaquaculture_id serial08 Aquaculture
Entity Relationship Map
geographic_regionregional_population1:1 sm_code
geographic_regionOwnership1:1 sm_code
geographic_regionparcel1:1 sm_code
geographic_regionregional_crop1:1 sm_code
geographic_regionregional_livestock1:1 sm_code
geographic_regionregional_irrigation1:1 sm_code
geographic_regionregional_institutions1:1 sm_code
geographic_regionregional_information_access1:1 sm_code
geographic_regionregional_aquaculture1:1 sm_code
Dashboard Coverage Map
DASH 02
Geography
geographic_region · region codes, municipality hierarchy, census year, EA counts
DASH 03
Population & HH
regional_population · total / agricultural populations & household counts
DASH 04
Ownership
Ownership · individual / joint ownership by gender-headed HH types
DASH 05
Land & Parcels
parcel · land use area (ha) and parcel counts by type
DASH 06
Crops & Livestock
regional_crop + regional_livestock · farm households, animal head counts
DASH 07
Irrigation
regional_irrigation · water sources, irrigation methods, payment types
DASH 08
Institutions, Info & Aquaculture
3 tables · institutional holdings, info access sources, fishing / aquaculture
Primary Key
sm_code
integer · sub-municipality code
Hierarchy Levels
2
municipality → sub-municipality
Key Field
no_of_eas
enumeration area count
Joins To
9
all other tables via sm_code
Field Reference — geographic_region
FieldTypeConstraintDescription
sm_codePK integer NOT NULL Unique sub-municipality identifier — used as FK in all 9 related tables
sub_municipality varchar(100) NOT NULL Name of the sub-municipality administrative unit
m_code integer NOT NULL Parent municipality code for geographic grouping / aggregation
municipality varchar(100) NOT NULL Name of the parent municipality
no_of_eas integer nullable Number of enumeration areas within this sub-municipality
census_year integer NOT NULL Year the census data was collected — enables multi-year comparisons
Administrative Hierarchy
LEVEL 1 — MUNICIPALITY
m_code + municipality
Parent administrative unit — aggregate SM codes by m_code to roll up
LEVEL 2 — SUB-MUNICIPALITY
sm_code + sub_municipality
Atomic unit of analysis. PK that joins all census data tables
Key Planning Queries
Count sub-municipalities per municipalityGROUP BY m_code
Total EAs per municipalitySUM(no_of_eas)
Filter by census yearWHERE census_year = ?
Join all census dataON sm_code
Enumeration Areas (EAs)
Municipality A
~85 EAs
Municipality B
~60 EAs
Municipality C
~42 EAs
Municipality D
~30 EAs
* Illustrative distribution — replace with actual aggregated data
Table Fields
6
1 PK + 1 FK + 4 metrics
Household Metrics
2
total & agricultural HH
Population Metrics
2
total & agricultural pop
FK Join
sm_code
links to geographic_region
Field Reference — regional_population
FieldTypeDescription
population_idPKserialAuto-increment primary key
sm_codeFKintegerReferences geographic_region.sm_code
total_householdsintegerTotal number of households in sub-municipality
agricultural_householdsintegerHouseholds engaged in agricultural activities
total_populationintegerTotal registered population count
agricultural_populationintegerPopulation engaged in agricultural activities
Key Derived Indicators
Agricultural HH Rateagricultural_households / total_households
Agricultural Pop Rateagricultural_population / total_population
Avg HH Sizetotal_population / total_households
Non-agricultural HHtotal_households - agricultural_households
Non-agricultural Poptotal_population - agricultural_population
Population Composition (Illustrative)
Agricultural Population (60%)
Non-agricultural Population (40%)
* Illustrative — populate from actual data
Recommended Visualizations
① Choropleth map — total_population by sm_code
② Stacked bar — agricultural vs non-agricultural HH per municipality
③ Scatter plot — total_households vs agricultural_households
④ Ranked table — sm_codes by agricultural dependency ratio
Ownership Categories
2
individual · joint
Gender Dimensions
2
male-headed · female-headed HH
Agri. Breakdown
2
agricultural HH by gender
Total Metrics
6
ownership indicator fields
Field Reference — Ownership
FieldTypeDescription
ownership_idPKserialAuto-increment primary key
sm_codeFKintegerReferences geographic_region
individual_owner_male_headed_householdsintegerHH with individual land ownership, male head
individual_owner_female_headed_householdsintegerHH with individual land ownership, female head
joint_owners_male_headed_householdsintegerHH with joint land ownership, male head
joint_owners_female_headed_householdsintegerHH with joint land ownership, female head
agricultural_male_headed_householdsintegerAgricultural HH with male head
agricultural_female_headed_householdsintegerAgricultural HH with female head
Gender Equity Analysis Framework
INDIVIDUAL OWNERSHIP
Male
Female
JOINT OWNERSHIP
Male
Female
* Illustrative distribution — replace with actual data
Key Derived Indicators
Female ownership share(F_ind + F_joint) / total
Joint ownership rate(M_joint + F_joint) / total
Agricultural HH gender ratioagri_male / agri_female
Female-headed agri shareagri_female / (agri_m + agri_f)
Recommended Visualizations
① Grouped bar — male vs female ownership by sm_code
② Diverging bar — gender equity index across regions
③ Stacked bar — individual vs joint ownership totals
④ Heatmap — female ownership rate by municipality
Land Use Types
9
area + parcel count per type
Area Fields
9
decimal(12,2) — hectares
Count Fields
9
integer parcel counts
Total Fields
20
including PK, FK, totals
Field Reference — parcel (Land Use Categories)
Land Use TypeArea Field (ha)Parcel Count FieldNotes
🌾 Temporary Cropstemporary_crops_area_hatemporary_crop_parcelsSeasonal, annually replanted crops
🌿 Temporary Fallowtemporary_fallow_area_hatemporary_fallow_parcelsResting land in crop rotation cycle
🌱 Temp. Meadows/Pasturestemporary_meadows_pastures_area_hatemporary_meadows_pastures_parcelsShort-term grazing land
🌳 Permanent Cropspermanent_crops_area_hapermanent_crop_parcelsOrchards, vineyards, tree crops
🟢 Perm. Meadows/Pasturespermanent_meadows_pastures_area_hapermanent_meadows_pastures_parcelsLong-term grazing and fodder land
🏚 Farm Buildings/Farmyardsfarm_buildings_farmyards_area_hafarm_buildings_farmyards_parcelsStructures and operational farm areas
🐟 Aquacultureaquaculture_area_haaquaculture_parcelsFish/shrimp ponds and water areas
⬜ Otherother_area_haother_parcelsUnclassified agricultural land
📊 Totalstotal_land_area_hatotal_parcelsAggregate area and parcel count
Land Use Area Distribution (Illustrative)
Temp. Crops
~72%
Perm. Crops
~45%
Perm. Meadows
~38%
Temp. Meadows
~28%
Fallow
~18%
Farm Buildings
~8%
Aquaculture
~5%
Key Derived Indicators & Queries
Avg parcel sizearea_ha / parcel_count
Temp/Perm crop ratiotemp_crops / perm_crops
Fallow ratefallow_area / total_area
Farm infrastructure %buildings_area / total_area
Productive land %(crops + meadows) / total
Recommended Visualizations
① Treemap — land area by use type per region
② Dual-axis bar — area ha vs parcel count comparison
③ Choropleth — total agricultural area by sm_code
④ Stacked area — land use mix across municipalities
Crop HH Categories
5
temp, perm, both, without, 12m
Livestock Species
12
buffalo to ducks tracked
Livestock HH Groups
3
large head, small head, poultry
Poultry Types
4
local, broiler, layer, ducks
Crop Data — regional_crop
Field Reference — regional_crop
FieldTypeDescription
crop_idPKserialAuto-increment PK
sm_codeFKintegerSub-municipality reference
no_of_farm_householdsintegerTotal farm households in the region
households_cultivated_crops_last_12mintegerHH that actively cultivated in past year
households_with_permanent_cropsintegerHH with orchards, tree crops, etc.
households_with_temp_cropsintegerHH with seasonal annual crops
households_with_bothintegerHH with both permanent and temporary crops
households_without_cropsintegerFarm HH with no active crop cultivation
Crop Household Distribution (Illustrative)
Temp Crops Only
~65%
Both Crop Types
~48%
Perm Crops Only
~30%
No Crops
~18%

Key Derived Indicators
Active cultivation ratecultivated_12m / farm_HH
Perm crop adoption(perm + both) / farm_HH
Monoculture ratetemp_only / farm_HH
Livestock Data — regional_livestock
Field Reference — regional_livestock
FieldTypeCategory
livestock_idPKserial
sm_codeFKinteger
no_households_owning_livestockintegerHH Summary
no_households_with_large_head_livestockintegerHH Summary
no_households_with_small_head_livestockintegerHH Summary
no_households_with_poultryintegerHH Summary
buffalointegerLarge Livestock
cattle_cowintegerLarge Livestock
dairy_cowintegerLarge Livestock
horsesintegerLarge Livestock
goatsintegerSmall Livestock
sheepintegerSmall Livestock
dairy_sheepintegerSmall Livestock
pigsintegerSmall Livestock
rabbitsintegerSmall Livestock
chicken_localintegerPoultry
chicken_broilerintegerPoultry
chicken_layerintegerPoultry
ducksintegerPoultry
Livestock Species Groups
LARGE
buffalo
cattle_cow
dairy_cow
horses
SMALL
goats
sheep
dairy_sheep
pigs
rabbits
POULTRY
chicken_local
chicken_broiler
chicken_layer
ducks
Key Derived Indicators
Livestock ownership rateHH_livestock / total_farm_HH
Dairy intensitydairy_cow + dairy_sheep
Total poultry countSUM(chicken_* + ducks)
Large vs small ratioSUM(large) / SUM(small)
Livestock diversificationCount non-zero species
Recommended Visualizations
① Bubble map — total livestock heads by sm_code
② Species comparison bar — headcounts across regions
③ Radar chart — livestock diversity by municipality
④ Grouped bar — crop type HH mix per sub-municipality
Water Source Types
5
surface, underground, mixed, municipal, other
Irrigation Methods
6
natural flow to drip
Payment Types
4
free, by area, by volume, other
Total Fields
17
excluding PK and FK
Field Reference — regional_irrigation
FieldTypeCategoryDescription
irrigation_idPKserialAuto-increment PK
sm_codeFKintegerSub-municipality reference
households_with_irrigationintegerSummaryTotal HH using any irrigation
surface_waterintegerWater SourceRivers, lakes, streams
underground_waterintegerWater SourceWells, boreholes
mixed_waterintegerWater SourceCombination of sources
municipal_water_supplyintegerWater SourceMunicipal piped supply
other_water_sourceintegerWater SourceRainwater harvest, etc.
natural_flowintegerMethodGravity-fed natural channels
channel_irrigationintegerMethodConstructed channels/canals
pump_irrigationintegerMethodMotorized pump systems
manual_irrigationintegerMethodHand watering, bucket
sprinkler_irrigationintegerMethodOverhead sprinkler systems
drip_irrigationintegerMethodPrecision drip/trickle systems
other_irrigation_methodintegerMethodOther unspecified methods
payment_own_waterintegerPaymentSelf-owned water source
payment_free_of_chargeintegerPaymentNo charge for water access
payment_by_areaintegerPaymentCharged per hectare irrigated
payment_by_volumeintegerPaymentCharged per unit volume used
payment_otherintegerPaymentOther payment arrangement
Water Sources (Illustrative)
Surface Water
70%
Underground
50%
Municipal
25%
Mixed
20%
Other
8%
Irrigation Methods (Illustrative)
Pump
65%
Channel
55%
Natural Flow
40%
Manual
28%
Sprinkler
15%
Drip
10%
Key Indicators
Irrigation adoption rateirrigated_HH / farm_HH
Modern method share(drip+sprinkler) / total
Surface water dependencysurface / total_HH
Paid water rate(area+volume) / total
Free water accessfree_of_charge / total
Institutions — regional_institutions
Institution Types
4
corp, coop, govt, religious/NGO
Area Field
decimal(12,2)
institutional agri area (ha)
Count Fields
6
total + farm + 4 type counts
FK
sm_code
→ geographic_region
Field Reference — regional_institutions
FieldTypeDescription
institution_idPKserialAuto-increment PK
sm_codeFKintegerSub-municipality reference
total_institutionsintegerAll registered institutions in area
total_farm_institutionsintegerInstitutions with agricultural holdings
total_area_institutional_agri_holdingsdecimal(12,2)Total ha of institutionally held agricultural land
corporationintegerCorporate-owned farm institutions
cooperativeintegerAgricultural cooperatives
governmentintegerGovernment-owned farm institutions
religious_nonprofitintegerReligious bodies and non-profit organizations
Institution Type Mix (Illustrative)
Corporations (40%)
Cooperatives (30%)
Government (20%)
Religious/Nonprofit (10%)
Information Access — regional_information_access
Field Reference — regional_information_access
FieldTypeDescription
access_idPKserial
sm_codeFKintegerSub-municipality reference
households_accessed_agri_infointegerHH that accessed any agricultural information
source_governmentintegerGovernment extension services
source_radiointegerAgricultural radio programs
source_televisionintegerTV broadcasts and programs
source_journal_newspapersintegerPrint media and journals
source_internetintegerOnline sources and websites
source_other_farmersintegerPeer farmer knowledge sharing
source_ngointegerNGO-provided information
source_membership_associationsintegerFarmer associations and cooperatives
source_otherintegerOther unspecified sources
Info Source Reach (Illustrative)
Govt Extension
72%
Other Farmers
68%
Radio
55%
TV
45%
Internet
38%
Associations
30%
NGOs
20%
Print Media
15%
Aquaculture & Fishing — regional_aquaculture
Field Reference — regional_aquaculture
FieldTypeCategoryDescription
aquaculture_idPKserial
sm_codeFKinteger
households_fishingintegerHH SummaryHH engaged in fishing activities
households_aquacultureintegerHH SummaryHH with aquaculture operations
vessel_motorized_owned_solelyintegerVesselsSolely-owned motorized boats
vessel_motorized_jointly_ownedintegerVesselsJointly-owned motorized boats
vessel_motorized_lentintegerVesselsBorrowed/rented motorized boats
vessel_non_motorized_owned_solelyintegerVesselsSolely-owned non-motorized boats
vessel_non_motorized_jointly_ownedintegerVesselsJointly-owned non-motorized boats
vessel_non_motorized_lentintegerVesselsBorrowed/rented non-motorized
vessel_none_usedintegerVesselsFishing without any vessel
purpose_home_consumption_socialintegerPurposeSubsistence and social fishing
purpose_home_consumption_occasional_saleintegerPurposeMostly subsistence with some sales
purpose_mainly_for_saleintegerPurposeCommercial fishing operations
Vessel Ownership Types
⚡ MOTORIZED
Solely owned
Jointly owned
Lent/borrowed
🚣 NON-MOTORIZED
Solely owned
Jointly owned
Lent/borrowed
Fishing Purpose Distribution (Illustrative)
Subsistence only
55%
Mixed use
35%
Mainly commercial
20%
Key Derived Indicators
Commercial fishing ratemainly_for_sale / HH_fishing
Vessel ownership rate1 - vessel_none / total
Motorization ratemotorized / all_vessels
Aquaculture vs fishingHH_aqua / HH_fishing