| 1 | \set dev '00000000-0000-0000-0000-000000000001' |
| 2 | begin; |
| 3 | |
| 4 | insert into venues (city_id, name, address, owner_id) |
| 5 | select id, v.name, v.addr, :'dev' from cities, (values |
| 6 | ('The Southside Ballroom (Sample)', 'Bronzeville, Chicago, IL'), |
| 7 | ('The Lakefront Ballroom (Sample)', 'Hyde Park, Chicago, IL') |
| 8 | ) as v(name, addr) where slug = 'chicago'; |
| 9 | |
| 10 | insert into venues (city_id, name, address, owner_id) |
| 11 | select id, v.name, v.addr, :'dev' from cities, (values |
| 12 | ('The Peachtree Room (Sample)', 'Old Fourth Ward, Atlanta, GA') |
| 13 | ) as v(name, addr) where slug = 'atlanta'; |
| 14 | |
| 15 | insert into venues (city_id, name, address, owner_id) |
| 16 | select id, v.name, v.addr, :'dev' from cities, (values |
| 17 | ('The Riverfront Hall (Sample)', 'Rivertown, Detroit, MI') |
| 18 | ) as v(name, addr) where slug = 'detroit'; |
| 19 | |
| 20 | insert into events (city_id, title, type, description, starts_at, is_live, live_url, is_promoted, owner_id) |
| 21 | select id, e.title, e.type::event_type, e.descr, e.ts::timestamptz, e.live, e.lurl, e.promo, :'dev' |
| 22 | from cities, (values |
| 23 | ('Friday Night Smooth Set', 'set', |
| 24 | 'Weekly grown folks'' steppers set on the South Side. Live DJ, dress code in effect.', |
| 25 | '2026-07-10 21:00', true, 'https://www.youtube.com/watch?v=M3SlJHI_zYU', false), |
| 26 | ('World Steppers Weekend', 'weekender', |
| 27 | 'Three-day Chicago steppin'' weekender: sets, workshops, and a contest. Hotel block open now.', |
| 28 | '2026-08-14 18:00', false, null, true), |
| 29 | ('Saturday Steppin'' Contest', 'competition', |
| 30 | 'Open floor contest judged on timing, turns, and smoothness.', |
| 31 | '2026-09-05 19:30', false, null, false), |
| 32 | ('Steppin'' Against Domestic Violence', 'special', |
| 33 | 'A benefit set raising awareness and funds for domestic violence survivors. All proceeds donated.', |
| 34 | '2026-07-26 17:00', false, null, false) |
| 35 | ) as e(title, type, descr, ts, live, lurl, promo) where slug = 'chicago'; |
| 36 | |
| 37 | insert into events (city_id, title, type, description, starts_at, owner_id) |
| 38 | select id, e.title, e.type::event_type, e.descr, e.ts::timestamptz, :'dev' from cities, (values |
| 39 | ('Sunday Steppers Social', 'social', 'Laid-back Sunday set for steppers visiting or based in the ATL.', '2026-07-19 18:00') |
| 40 | ) as e(title, type, descr, ts) where slug = 'atlanta'; |
| 41 | |
| 42 | insert into events (city_id, title, type, description, starts_at, owner_id) |
| 43 | select id, e.title, e.type::event_type, e.descr, e.ts::timestamptz, :'dev' from cities, (values |
| 44 | ('Rivertown Steppers Set', 'set', 'Detroit''s monthly steppin'' set with a guest Chicago DJ.', '2026-07-25 21:00') |
| 45 | ) as e(title, type, descr, ts) where slug = 'detroit'; |
| 46 | |
| 47 | insert into djs (city_id, name, bio, owner_id) |
| 48 | select id, t.n, t.b, :'dev' from cities, (values |
| 49 | ('DJ Smooth Glide', 'South Side steppers'' DJ, smooth soul and steppin'' cuts.'), |
| 50 | ('DJ Eight Count', 'Keeps the floor on the count all night.') |
| 51 | ) t(n, b) where slug = 'chicago'; |
| 52 | insert into djs (city_id, name, bio, owner_id) |
| 53 | select id, 'DJ Peachtree Steppin''', 'Atlanta''s go-to for Chicago-style sets.', :'dev' from cities where slug = 'atlanta'; |
| 54 | |
| 55 | insert into promoters (city_id, name, bio, owner_id) |
| 56 | select id, t.n, t.b, :'dev' from cities, (values |
| 57 | ('Glideline Events', 'Throwing South Side sets and weekenders since the 90s.'), |
| 58 | ('South Side Smooth Productions', 'Sets, contests, and the annual steppers weekend.') |
| 59 | ) t(n, b) where slug = 'chicago'; |
| 60 | insert into promoters (city_id, name, bio, owner_id) |
| 61 | select id, 'ATL Steppers Connection', 'Bringing Chicago steppin'' to the ATL.', :'dev' from cities where slug = 'atlanta'; |
| 62 | |
| 63 | insert into stepping_groups (city_id, name, bio, owner_id) |
| 64 | select id, g.name, g.bio, :'dev' from cities, (values |
| 65 | ('Smooth Steppers Society', 'Longtime South Side steppin'' crew, sets and classes citywide.'), |
| 66 | ('The Glideline Steppers', 'Community group keeping Chicago steppin'' culture moving.') |
| 67 | ) as g(name, bio) where slug = 'chicago'; |
| 68 | insert into stepping_groups (city_id, name, bio, owner_id) |
| 69 | select id, 'The Rivertown Steppers', 'Detroit''s home for Chicago-style steppin''.', :'dev' |
| 70 | from cities where slug = 'detroit'; |
| 71 | |
| 72 | insert into instructors (city_id, name, bio, owner_id) |
| 73 | select id, t.n, t.b, :'dev' from cities, (values |
| 74 | ('Coach Renee', 'Beginner lessons on the South Side. Group classes Tuesdays, privates by appointment.'), |
| 75 | ('Mr. Williams', 'Footwork and turn work for intermediate and advanced steppers.') |
| 76 | ) t(n, b) where slug = 'chicago'; |
| 77 | insert into instructors (city_id, name, bio, owner_id) |
| 78 | select id, 'Coach Dee', 'Chicago-style fundamentals for steppers in the ATL.', :'dev' |
| 79 | from cities where slug = 'atlanta'; |
| 80 | |
| 81 | insert into classes (city_id, title, instructor, schedule, is_free, owner_id) |
| 82 | select id, c.title, c.inst, c.sched, c.free, :'dev' from cities, (values |
| 83 | ('Beginner Chicago Steppin''', 'Coach Renee', 'Tuesdays 7:00pm', false), |
| 84 | ('Intermediate Footwork & Turns', 'Mr. Williams', 'Thursdays 7:30pm', false), |
| 85 | ('Free Community Steppin'' Practice', 'Smooth Steppers Society', 'Sundays 4:00pm', true) |
| 86 | ) as c(title, inst, sched, free) where slug = 'chicago'; |
| 87 | |
| 88 | insert into travel_places (city_id, category, name, address) |
| 89 | select id, t.cat::travel_category, t.name, t.addr from cities, (values |
| 90 | ('event_center', 'The Southside Ballroom (Sample)', 'Bronzeville, Chicago, IL'), |
| 91 | ('event_center', 'The Lakefront Ballroom (Sample)', 'Hyde Park, Chicago, IL'), |
| 92 | ('hotel', 'The Convention Way Hotel (Sample)', 'Near South Side, Chicago, IL'), |
| 93 | ('hotel', 'The Park Row Hotel (Sample)', 'Hyde Park, Chicago, IL'), |
| 94 | ('restaurant', 'The Corner Kitchen (Sample)', 'Bronzeville, Chicago, IL'), |
| 95 | ('restaurant', 'The South Side Smokehouse (Sample)', 'Chatham, Chicago, IL'), |
| 96 | ('mall', 'The State Street Shops (Sample)', 'The Loop, Chicago, IL'), |
| 97 | ('attraction', 'The Heritage Museum (Sample)', 'Washington Park, Chicago, IL'), |
| 98 | ('entertainment', 'The Rhythm Lounge (Sample)', 'South Loop, Chicago, IL'), |
| 99 | ('hospital', 'South Side Medical Center (Sample)', 'Hyde Park, Chicago, IL') |
| 100 | ) as t(cat, name, addr) where slug = 'chicago'; |
| 101 | |
| 102 | insert into travel_places (city_id, category, name, address) |
| 103 | select id, t.cat::travel_category, t.name, t.addr from cities, (values |
| 104 | ('event_center', 'The Peachtree Room (Sample)', 'Old Fourth Ward, Atlanta, GA'), |
| 105 | ('hotel', 'The Downtown Atlanta Hotel (Sample)', 'Downtown, Atlanta, GA'), |
| 106 | ('restaurant', 'The Westside Kitchen (Sample)', 'Castleberry Hill, Atlanta, GA'), |
| 107 | ('attraction', 'The Downtown Park Commons (Sample)', 'Downtown, Atlanta, GA'), |
| 108 | ('hospital', 'Downtown Atlanta Medical Center (Sample)', 'Downtown, Atlanta, GA') |
| 109 | ) as t(cat, name, addr) where slug = 'atlanta'; |
| 110 | |
| 111 | insert into videos (city_id, title, embed_url, platform, owner_id) |
| 112 | select id, v.title, v.url, v.plat::video_platform, :'dev' from cities, (values |
| 113 | ('Chicago Steppin Is Freedom on the Dance Floor', 'https://www.youtube.com/watch?v=M3SlJHI_zYU', 'youtube'), |
| 114 | ('The History of Chicago Steppin', 'https://www.youtube.com/watch?v=9UEqba30cCE', 'youtube'), |
| 115 | ('Gliding Moves of the South Side Scene', 'https://www.youtube.com/watch?v=-Y4iTvplmmQ', 'youtube') |
| 116 | ) as v(title, url, plat) where slug = 'chicago'; |
| 117 | |
| 118 | insert into videos (city_id, title, embed_url, platform, owner_id) |
| 119 | select id, 'Chicago Steppin'' Lesson Breakdown', 'https://www.youtube.com/watch?v=HUbSuIPJiKc', 'youtube', :'dev' |
| 120 | from cities where slug = 'atlanta'; |
| 121 | |
| 122 | insert into comments (subject_type, subject_id, body, owner_id) |
| 123 | select 'event', id, 'Who all coming out Friday? The floor was packed last week.', :'dev' |
| 124 | from events where title = 'Friday Night Smooth Set' limit 1; |
| 125 | |
| 126 | insert into comments (subject_type, subject_id, body, owner_id) |
| 127 | select 'event', id, 'Good cause and a good time. We will be there.', :'dev' |
| 128 | from events where title = 'Steppin'' Against Domestic Violence' limit 1; |
| 129 | |
| 130 | insert into ticket_types (event_id, name, price_cents, capacity, owner_id) |
| 131 | select e.id, t.name, t.cents, t.cap, :'dev' |
| 132 | from events e, (values |
| 133 | ('Weekend Pass', 7500, 200), |
| 134 | ('Single Night', 2500, NULL) |
| 135 | ) as t(name, cents, cap) |
| 136 | where e.title = 'World Steppers Weekend'; |
| 137 | |
| 138 | insert into ticket_types (event_id, name, price_cents, owner_id) |
| 139 | select id, 'Cover', 1500, :'dev' from events where title = 'Friday Night Smooth Set'; |
| 140 | |
| 141 | insert into sponsors (city_id, name, blurb, link_url, status) |
| 142 | select id, 'Smooth Threads (Sample)', 'Steppers-sharp menswear on 79th', 'https://example.com', 'active' |
| 143 | from cities where slug = 'chicago'; |
| 144 | |
| 145 | insert into vendors (city_id, name, description, category, link_url, owner_id) |
| 146 | select id, v.n, v.d, v.c, v.l, :'dev' from cities, (values |
| 147 | ('Sample Vendor: Stepping Shoes', 'Demo listing. Comfortable soles built for a long night on the floor.', 'Footwear', 'https://example.com'), |
| 148 | ('Sample Vendor: Sharp Shades', 'Demo listing. Frames for stepping sharp and coming clean.', 'Accessories', NULL) |
| 149 | ) as v(n, d, c, l) where slug = 'chicago'; |
| 150 | |
| 151 | insert into vendors (city_id, event_id, name, description, category, owner_id) |
| 152 | select c.id, e.id, 'Sample Vendor: Weekend Boutique', 'Demo listing. Purses and accessories, this event only.', 'Accessories', :'dev' |
| 153 | from cities c |
| 154 | join events e on e.city_id = c.id and e.title = 'World Steppers Weekend' |
| 155 | where c.slug = 'chicago'; |
| 156 | |
| 157 | commit; |
| 158 | select 'venues' c, count(*) n from venues |
| 159 | union all select 'events', count(*) from events |
| 160 | union all select 'travel', count(*) from travel_places |
| 161 | union all select 'videos', count(*) from videos |
| 162 | union all select 'instructors', count(*) from instructors |
| 163 | union all select 'comments', count(*) from comments; |