-- Seed data for the NPS Surveys schema, from section 14 of the blueprint. Load after nps-surveys.sql. -- Today is Thursday 2026-10-15 in America/New_York. Only the people, tags and the four named contacts are loaded; see seedNote on the page for what is left out. -- Contact created_at values and the unsubscribe time of Cara Diaz are stand-ins: the spec gives neither. INSERT INTO settings (id, company_name, from_name, from_email, question, follow_up_question, send_time, daily_send_limit, throttle_days, company_domain, sending_enabled, time_zone, product_name) VALUES (1, 'Tally & Co', NULL, NULL, 'How likely are you to recommend Tally to a friend or colleague?', 'What''s the main reason for your score?', '10:00', 100, 90, 'tallyco.example', FALSE, 'America/New_York', 'Tally'); INSERT INTO people (id, name, email, role, active) VALUES ('person_grace', 'Grace Kim', 'grace@tallyco.example', 'admin', TRUE), ('person_omar', 'Omar Ali', 'omar@tallyco.example', 'member', TRUE), ('person_priya', 'Priya Nair', 'priya@tallyco.example', 'member', TRUE); -- Last surveyed 95 and 60 days before 2026-10-15, at the 10:00 New York send time (14:00 UTC). INSERT INTO contacts (id, email, name, company, plan, account_owner_id, created_at, unsubscribed_at, unsubscribe_reason, last_surveyed_at) VALUES ('contact_ana', 'ana@acmebooks.example', 'Ana Lopez', 'Acme Books', 'Pro', 'person_omar', '2026-01-01 00:00:00', NULL, NULL, '2026-07-12 14:00:00'), ('contact_ben', 'ben@bluebird.example', 'Ben Cole', 'Bluebird Ltd', 'Starter', 'person_priya', '2026-01-01 00:00:00', NULL, NULL, '2026-08-16 14:00:00'), ('contact_cara', 'cara@pinelabs.example', 'Cara Diaz', 'Pine Labs', 'Pro', 'person_omar', '2026-01-01 00:00:00', '2026-06-01 00:00:00', NULL, NULL), ('contact_dev', 'dev@tallyco.example', 'Dev Shah', 'Tally & Co', 'Pro', NULL, '2026-01-01 00:00:00', NULL, NULL, NULL); INSERT INTO tags (id, name) VALUES ('tag_export', 'Export'), ('tag_pricing', 'Pricing'), ('tag_bank_feeds', 'Bank feeds');