most of the website
This commit is contained in:
23
migrations/001_create_tables.sql
Normal file
23
migrations/001_create_tables.sql
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
-- 001_create_tables.sql
|
||||
CREATE TABLE users (
|
||||
id BIGSERIAL PRIMARY KEY,
|
||||
email TEXT NOT NULL UNIQUE,
|
||||
created_at TIMESTAMPTZ DEFAULT now()
|
||||
);
|
||||
|
||||
CREATE TABLE services (
|
||||
id BIGSERIAL PRIMARY KEY,
|
||||
name TEXT NOT NULL,
|
||||
description TEXT,
|
||||
price_cents INT NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE bookings (
|
||||
id BIGSERIAL PRIMARY KEY,
|
||||
user_id BIGINT REFERENCES users(id),
|
||||
service_id BIGINT REFERENCES services(id),
|
||||
event_date DATE NOT NULL,
|
||||
notes TEXT,
|
||||
created_at TIMESTAMPTZ DEFAULT now()
|
||||
);
|
||||
2
migrations/002_add_service_image_url.sql
Normal file
2
migrations/002_add_service_image_url.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE bookings
|
||||
ADD COLUMN address TEXT;
|
||||
2
migrations/003_add_created_at_services.sql
Normal file
2
migrations/003_add_created_at_services.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE services
|
||||
ADD COLUMN created_at TIMESTAMPTZ;
|
||||
2
migrations/004_add_status_at_bookings.sql
Normal file
2
migrations/004_add_status_at_bookings.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE bookings
|
||||
ADD COLUMN status TEXT;
|
||||
6
migrations/005_create_gallery_photos.sql
Normal file
6
migrations/005_create_gallery_photos.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
CREATE TABLE gallery_photos (
|
||||
id BIGSERIAL PRIMARY KEY,
|
||||
image_url TEXT NOT NULL,
|
||||
caption TEXT,
|
||||
created_at TIMESTAMPTZ DEFAULT now()
|
||||
);
|
||||
2
migrations/006_add_show_on_home.sql
Normal file
2
migrations/006_add_show_on_home.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE gallery_photos
|
||||
ADD COLUMN show_on_home BOOLEAN DEFAULT false;
|
||||
7
migrations/007_insert_sample_services.sql
Normal file
7
migrations/007_insert_sample_services.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
INSERT INTO services (name, description, price_cents, created_at) VALUES
|
||||
('Balloon Arch Package', 'Stunning balloon arch perfect for entrances, photo backdrops, or focal points. Includes setup and teardown. Available in various color schemes to match your event theme.', 25000, now()),
|
||||
('Balloon Bouquet Set', 'Collection of elegant balloon bouquets to decorate tables, corners, or walkways. Includes 5-10 bouquets depending on venue size.', 15000, now()),
|
||||
('Custom Balloon Display', 'Fully customized balloon installation designed specifically for your event. Includes consultation, design, setup, and teardown. Perfect for unique themes and special requests.', 45000, now()),
|
||||
('Table Centerpiece Package', 'Beautiful centerpieces for all your tables. Choose from balloon arrangements, floral accents, or themed decorations. Minimum 10 tables.', 30000, now()),
|
||||
('Backdrop & Photo Booth Setup', 'Professional backdrop installation with coordinating decorations. Perfect for photo opportunities and creating memorable moments. Includes props if requested.', 35000, now()),
|
||||
('Full Event Decoration', 'Complete decoration service for your entire venue. Includes consultation, theme design, all decorations, setup, and teardown. Let us handle everything!', 75000, now());
|
||||
10
migrations/008_insert_photos_to_gallery.sql
Normal file
10
migrations/008_insert_photos_to_gallery.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
INSERT INTO gallery_photos (image_url,caption,created_at,show_on_home) VALUES
|
||||
('https://drive.google.com/uc?export=view&id=1N2BWgxh6HpPSHqY0_OKqYleUpB5tx6kQ','Balloons for any occassion',now(), true),
|
||||
('https://drive.google.com/uc?export=view&id=1g8ynNWk4K9gHEyt9-CWc-CFwkX_I7-fX', 'We do balloons for any event',now(), true),
|
||||
('https://drive.google.com/uc?export=view&id=1pCYP_6smYNYhW603u7xqnNxLNkrRGvIY','We do custom plaques',now(), false),
|
||||
('https://drive.google.com/uc?export=view&id=1NGdOpd7k8uBOQ-cp8C1ifv5vzojXi7wi','We do birthdays, weddings, anniversaries and more',now(), true),
|
||||
('https://drive.google.com/uc?export=view&id=1saL8DmdwGBpKOtGLuFccji890qiitZhZ','',now(), false),
|
||||
('https://drive.google.com/uc?export=view&id=1hcbl4hBJY_n4G9qIKROdnT7K2XoG-DG2','',now(), false),
|
||||
('https://drive.google.com/uc?export=view&id=1dkXJR-J2TwB62QjsTNtpD9RznAU9k2qf','',now(), true),
|
||||
('https://drive.google.com/uc?export=view&id=1vm9z1_WokjkeIgUt2z1KCsCJJDZgUkO-','',now(), true);
|
||||
1
migrations/009_clear_gallery_photos.sql
Normal file
1
migrations/009_clear_gallery_photos.sql
Normal file
@@ -0,0 +1 @@
|
||||
DELETE FROM gallery_photos;
|
||||
1
migrations/010_add_ory_identity_id.sql
Normal file
1
migrations/010_add_ory_identity_id.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE users ADD COLUMN ory_identity_id TEXT UNIQUE;
|
||||
Reference in New Issue
Block a user