[
  {
    "type": "insert",
    "description": "Seed default transactional chat templates for Two-Way SMS Chat",
    "database": "{{store}}",
    "check_query": "SELECT COUNT(*) as count FROM chat_templates WHERE is_system = 1 AND typeNum = '{{typeNum}}'",
    "check_condition": "count = 0",
    "sql": "INSERT INTO `chat_templates` (`typeNum`, `short_name`, `content`, `category`, `character_count`, `sms_segment_count`, `is_active`, `is_system`, `sort_order`, `created_at`) VALUES\n('{{typeNum}}', 'Buy Ready', 'Hi {{customer_name}}, your buy {{buy_number}} is ready for pickup!', 'transactional', 60, 1, 1, 1, 1, NOW()),\n('{{typeNum}}', 'Pickup Reminder', 'Hi {{customer_name}}, reminder: your buy {{buy_number}} is ready at {{store_name}}.', 'transactional', 78, 1, 1, 1, 2, NOW()),\n('{{typeNum}}', 'Store Hours', 'We''re open today until {{store_hours}}. See you soon!', 'transactional', 52, 1, 1, 1, 3, NOW()),\n('{{typeNum}}', 'Thanks for Visiting', 'Thanks for visiting {{store_name}} today! Questions about your buy? Reply here.', 'initial_contact', 82, 1, 1, 1, 4, NOW()),\n('{{typeNum}}', 'Follow Up', 'Hi {{customer_name}}, just checking in on your recent visit. How can we help?', 'follow_up', 73, 1, 1, 1, 5, NOW())"
  }
]
