feat: implement SEO improvements, listing profiles, service images, and towns serviced
This commit is contained in:
13
migrate_towns_serviced.sql
Normal file
13
migrate_towns_serviced.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
CREATE TABLE IF NOT EXISTS listing_towns (
|
||||
id SERIAL PRIMARY KEY,
|
||||
listing_id INTEGER NOT NULL REFERENCES listings(id) ON DELETE CASCADE,
|
||||
town VARCHAR(100) NOT NULL,
|
||||
UNIQUE(listing_id, town)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS service_listing_towns (
|
||||
id SERIAL PRIMARY KEY,
|
||||
service_listing_id INTEGER NOT NULL REFERENCES service_listings(id) ON DELETE CASCADE,
|
||||
town VARCHAR(100) NOT NULL,
|
||||
UNIQUE(service_listing_id, town)
|
||||
);
|
||||
Reference in New Issue
Block a user