[
  {
    "type": "create_table",
    "description": "Create base taskGroups table if not exists",
    "database": "{{store}}",
    "check_query": "SHOW TABLES LIKE 'taskGroups'",
    "sql": "CREATE TABLE `taskGroups` (`id` int(10) unsigned NOT NULL AUTO_INCREMENT, `groupName` varchar(60) DEFAULT NULL, PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci"
  },
  {
    "type": "create_table",
    "description": "Create base tasks table if not exists",
    "database": "{{store}}",
    "check_query": "SHOW TABLES LIKE 'tasks'",
    "sql": "CREATE TABLE `tasks` (`id` int(10) unsigned NOT NULL AUTO_INCREMENT, `taskName` varchar(60) DEFAULT NULL, `comment` varchar(500) DEFAULT NULL, `taskGroup` int(10) unsigned DEFAULT NULL, `recurOn` varchar(60) DEFAULT 'SUN MON TUE WED THU FRI SAT', PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci"
  },
  {
    "type": "insert",
    "description": "Seed default task groups (Opening and Closing) if table is empty",
    "database": "{{store}}",
    "check_query": "SELECT 1 FROM taskGroups LIMIT 1",
    "sql": "INSERT INTO taskGroups (groupName) VALUES ('Opening'), ('Closing')"
  }
]
