-- Seed data for the Content Calendar schema, from section 14 of the blueprint. Load after content-calendar.sql. -- Today is Tue 2026-10-13, the date of the spec's worked examples. Team time zone America/Chicago; times are stored in UTC. -- Values section 14 leaves open (draft link URLs, who created each piece and when, submission, approval and publication times) follow the blueprint's working demo. INSERT INTO people (id, name, email, role, active) VALUES ('person_maya', 'Maya Chen', 'maya@yourcompany.com', 'editor', TRUE), ('person_dana', 'Dana Ruiz', 'dana@yourcompany.com', 'editor', TRUE), ('person_jo', 'Jo Park', 'jo@yourcompany.com', 'writer', TRUE), ('person_lee', 'Lee Park', 'lee@yourcompany.com', 'writer', TRUE), ('person_sam', 'Sam Okafor', 'sam@yourcompany.com', 'writer', TRUE), ('person_ana', 'Ana Lima', 'ana@yourcompany.com', 'writer', TRUE); -- The spec gives no seed time zone; America/Chicago is its own example value. Maya Chen is the default reviewer. INSERT INTO settings (id, time_zone, default_reviewer_id, last_digest_on) VALUES (1, 'America/Chicago', 'person_maya', NULL); INSERT INTO channels (id, name, color, active) VALUES ('channel_blog', 'Blog', '#2c5ac9', TRUE), ('channel_newsletter', 'Newsletter', '#1f7a4d', TRUE), ('channel_linkedin', 'LinkedIn', '#0e7490', TRUE), ('channel_x', 'X', '#3f3f46', TRUE), ('channel_youtube', 'YouTube', '#c2410c', TRUE); INSERT INTO campaigns (id, name, starts_on, ends_on, goal, created_by, created_at) VALUES ('campaign_q4_pricing', 'Q4 pricing launch', '2026-10-10', '2026-10-31', 'Explain the new pricing to existing customers before renewals.', 'person_dana', '2026-09-22 15:00:00'), ('campaign_customer_stories', 'Customer stories', '2026-10-01', '2026-11-15', 'One customer story every week.', 'person_maya', '2026-09-08 15:00:00'); -- reminded_for and overdue_notified_for are set by this morning's run of the daily job (section 14). INSERT INTO pieces (id, title, channel_id, owner_id, campaign_id, status, publish_on, draft_url, notes, reviewer_id, submitted_at, approved_by, approved_at, published_at, reminded_for, overdue_notified_for, created_by, created_at, updated_at) VALUES ('piece_how_bluebird_cut', 'How Bluebird cut reporting time in half', 'channel_blog', 'person_jo', 'campaign_customer_stories', 'published', '2026-10-05', 'https://docs.example.com/northwind/how-bluebird-cut-reporting-time-in-half', NULL, 'person_maya', '2026-10-04 20:00:00', 'person_maya', '2026-10-04 20:00:00', '2026-10-05 14:00:00', NULL, NULL, 'person_jo', '2026-09-13 14:00:00', '2026-10-05 14:00:00'), ('piece_september_newsletter', 'September newsletter', 'channel_newsletter', 'person_ana', NULL, 'published', '2026-10-01', 'https://docs.example.com/northwind/september-newsletter', NULL, 'person_maya', '2026-09-30 20:00:00', 'person_maya', '2026-09-30 20:00:00', '2026-10-01 14:00:00', NULL, NULL, 'person_ana', '2026-09-09 14:00:00', '2026-10-01 14:00:00'), ('piece_pricing_teardown_what', 'Pricing teardown: what we changed and why', 'channel_linkedin', 'person_dana', 'campaign_q4_pricing', 'published', '2026-10-11', 'https://docs.example.com/northwind/pricing-teardown-what-we-changed-and-why', NULL, 'person_maya', '2026-10-10 20:00:00', 'person_maya', '2026-10-10 20:00:00', '2026-10-11 14:00:00', NULL, NULL, 'person_dana', '2026-09-29 14:00:00', '2026-10-11 14:00:00'), ('piece_acme_case_study', 'Acme case study video', 'channel_youtube', 'person_sam', 'campaign_customer_stories', 'writing', '2026-10-12', 'https://docs.example.com/northwind/acme-case-study-video', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2026-10-12', 'person_sam', '2026-09-23 14:00:00', '2026-09-23 14:00:00'), ('piece_launch_thread_new', 'Launch thread: new pricing', 'channel_x', 'person_lee', 'campaign_q4_pricing', 'scheduled', '2026-10-13', 'https://docs.example.com/northwind/launch-thread-new-pricing', NULL, 'person_maya', '2026-10-12 20:00:00', 'person_maya', '2026-10-12 20:00:00', NULL, NULL, NULL, 'person_lee', '2026-10-04 14:00:00', '2026-10-12 20:00:00'), ('piece_a_note_from', 'A note from Dana on the pricing change', 'channel_linkedin', 'person_dana', 'campaign_q4_pricing', 'scheduled', '2026-10-14', 'https://docs.example.com/northwind/a-note-from-dana-on-the-pricing-change', NULL, 'person_maya', '2026-10-12 20:00:00', 'person_maya', '2026-10-12 20:00:00', NULL, NULL, NULL, 'person_dana', '2026-10-08 14:00:00', '2026-10-12 20:00:00'), ('piece_ridgeway_onboarding_story', 'Ridgeway onboarding story', 'channel_blog', 'person_lee', 'campaign_customer_stories', 'writing', '2026-10-15', 'https://docs.example.com/northwind/ridgeway-onboarding-story', NULL, NULL, NULL, NULL, NULL, NULL, '2026-10-15', NULL, 'person_lee', '2026-10-03 14:00:00', '2026-10-03 14:00:00'), ('piece_new_pricing_faq', 'New pricing FAQ', 'channel_blog', 'person_jo', 'campaign_q4_pricing', 'in_review', '2026-10-16', 'https://docs.example.com/northwind/new-pricing-faq', NULL, 'person_maya', '2026-10-12 16:00:00', NULL, NULL, NULL, NULL, NULL, 'person_jo', '2026-10-05 14:00:00', '2026-10-12 16:00:00'), ('piece_5_reporting_mistakes', '5 reporting mistakes we see every quarter', 'channel_blog', 'person_jo', NULL, 'writing', '2026-10-17', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'person_jo', '2026-10-07 14:00:00', '2026-10-07 14:00:00'), ('piece_october_newsletter', 'October newsletter', 'channel_newsletter', 'person_ana', NULL, 'in_review', '2026-10-18', 'https://docs.example.com/northwind/october-newsletter', NULL, 'person_maya', '2026-10-11 16:00:00', NULL, NULL, NULL, NULL, NULL, 'person_ana', '2026-10-01 14:00:00', '2026-10-11 16:00:00'), ('piece_olsen_co_from', 'Olsen & Co: from spreadsheets to one dashboard', 'channel_linkedin', 'person_maya', 'campaign_customer_stories', 'scheduled', '2026-10-19', 'https://docs.example.com/northwind/olsen-co-from-spreadsheets-to-one-dashboard', NULL, 'person_dana', '2026-10-12 20:00:00', 'person_dana', '2026-10-12 20:00:00', NULL, NULL, NULL, 'person_maya', '2026-09-28 14:00:00', '2026-10-12 20:00:00'), ('piece_pricing_explainer_video', 'Pricing explainer video', 'channel_youtube', 'person_sam', 'campaign_q4_pricing', 'writing', '2026-10-22', 'https://docs.example.com/northwind/pricing-explainer-video', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'person_sam', '2026-10-06 14:00:00', '2026-10-06 14:00:00'), ('piece_harbor_webinar_recap', 'Harbor webinar recap', 'channel_blog', 'person_ana', NULL, 'scheduled', '2026-10-24', 'https://docs.example.com/northwind/harbor-webinar-recap', NULL, 'person_maya', '2026-10-12 20:00:00', 'person_maya', '2026-10-12 20:00:00', NULL, NULL, NULL, 'person_ana', '2026-10-04 14:00:00', '2026-10-12 20:00:00'), ('piece_kestrel_customer_interview', 'Kestrel customer interview', 'channel_youtube', 'person_sam', 'campaign_customer_stories', 'idea', '2026-11-02', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'person_sam', '2026-10-09 14:00:00', '2026-10-09 14:00:00'), ('piece_pine_labs_integration', 'Pine Labs integration walkthrough', 'channel_blog', 'person_lee', NULL, 'idea', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'person_lee', '2026-09-27 14:00:00', '2026-09-27 14:00:00'), ('piece_year_in_review', 'Year in review thread', 'channel_x', 'person_jo', NULL, 'idea', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'person_jo', '2026-10-12 14:00:00', '2026-10-12 14:00:00'), ('piece_reporting_templates_roundup', 'Reporting templates roundup', 'channel_newsletter', 'person_ana', NULL, 'idea', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'person_ana', '2026-10-02 14:00:00', '2026-10-02 14:00:00'), ('piece_behind_the_scenes', 'Behind the scenes: how we plan content', 'channel_linkedin', 'person_maya', NULL, 'idea', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'person_maya', '2026-09-25 14:00:00', '2026-09-25 14:00:00'), ('piece_data_glossary_for', 'Data glossary for new customers', 'channel_blog', 'person_jo', NULL, 'writing', NULL, 'https://docs.example.com/northwind/data-glossary-for-new-customers', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'person_jo', '2026-09-30 14:00:00', '2026-09-30 14:00:00'); -- The daily job's run at 08:00 team time on the seed day. INSERT INTO activities (id, piece_id, actor_id, type, comment, data, created_at) VALUES ('activity_001', 'piece_ridgeway_onboarding_story', NULL, 'reminded', NULL, NULL, '2026-10-13 13:00:00'), ('activity_002', 'piece_acme_case_study', NULL, 'overdue', NULL, NULL, '2026-10-13 13:00:00'); -- Texts from section 12. INSERT INTO notifications (id, person_id, kind, piece_id, text, created_at, read, emailed_at, error) VALUES ('notification_001', 'person_lee', 'due_soon', 'piece_ridgeway_onboarding_story', '"Ridgeway onboarding story" publishes in 2 days (Thu Oct 15) and is not in review yet.', '2026-10-13 13:00:00', FALSE, NULL, NULL), ('notification_002', 'person_sam', 'overdue', 'piece_acme_case_study', '"Acme case study video" was due Mon Oct 12 and is not published (Writing). Move it to a new date or finish it.', '2026-10-13 13:00:00', FALSE, NULL, NULL);