-- Extend lokasi table to support household attributes
ALTER TABLE lokasi
  ADD COLUMN nama_kk VARCHAR(100) NULL AFTER alamat,
  ADD COLUMN building_type VARCHAR(50) NULL AFTER nama_kk,
  ADD COLUMN rumah_status VARCHAR(50) NULL AFTER building_type,
  ADD COLUMN members INT NULL AFTER rumah_status,
  ADD COLUMN monthly_income DECIMAL(12,2) NULL AFTER members;

-- Remove default 'spbu' if present; set default to NULL
ALTER TABLE lokasi ALTER jenis DROP DEFAULT;
