feat: implement SEO improvements, listing profiles, service images, and towns serviced

This commit is contained in:
2026-03-08 15:12:53 -04:00
parent 6c95a7d201
commit da22c4f19a
31 changed files with 1921 additions and 42 deletions

View File

@@ -0,0 +1,24 @@
-- Migration: Add service_listings table
-- Run this against the fuelprices database to enable the service companies feature.
--
-- psql -h 192.168.1.204 -U <user> -d fuelprices -f migrate_service_listings.sql
CREATE TABLE IF NOT EXISTS service_listings (
id SERIAL PRIMARY KEY,
company_name VARCHAR(255) NOT NULL,
is_active BOOLEAN DEFAULT true,
twenty_four_hour BOOLEAN DEFAULT false,
emergency_service BOOLEAN DEFAULT false,
town VARCHAR(100),
county_id INTEGER NOT NULL,
phone VARCHAR(20),
website VARCHAR(255),
email VARCHAR(255),
description TEXT,
licensed_insured BOOLEAN DEFAULT false,
service_area VARCHAR(255),
years_experience INTEGER,
user_id INTEGER NOT NULL,
created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
last_edited TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP
);