DROP INDEX IF EXISTS idx_applications_status;
DROP INDEX IF EXISTS idx_applications_job_seeker_id;
DROP INDEX IF EXISTS idx_applications_job_id;
DROP INDEX IF EXISTS idx_jobs_status;
DROP INDEX IF EXISTS idx_jobs_company_id;
DROP TABLE IF EXISTS applications;
DROP TABLE IF EXISTS jobs;

ALTER TABLE company_profiles
    DROP COLUMN IF EXISTS business_type,
    DROP COLUMN IF EXISTS gst_number,
    DROP COLUMN IF EXISTS contact_name,
    DROP COLUMN IF EXISTS contact_email,
    DROP COLUMN IF EXISTS contact_phone,
    DROP COLUMN IF EXISTS address_line1,
    DROP COLUMN IF EXISTS city,
    DROP COLUMN IF EXISTS state,
    DROP COLUMN IF EXISTS country,
    DROP COLUMN IF EXISTS postal_code,
    DROP COLUMN IF EXISTS status,
    DROP COLUMN IF EXISTS free_job_slots,
    DROP COLUMN IF EXISTS purchased_job_slots,
    DROP COLUMN IF EXISTS free_contact_views,
    DROP COLUMN IF EXISTS purchased_contact_views;
