[
  {
    "type": "insert",
    "description": "Add default 'Default On-Site' location for stores with no backstock locations",
    "database": "{{store}}",
    "check_query": "SELECT 1 FROM bsLocations LIMIT 1",
    "sql": "INSERT INTO bsLocations (name, onsite) VALUES ('Default On-Site', 1)"
  },
  {
    "type": "insert",
    "description": "Add default 'Custom Tag' category for stores with no custom tags",
    "database": "{{store}}",
    "check_query": "SELECT 1 FROM bsCategories LIMIT 1",
    "sql": "INSERT INTO bsCategories (name, color) VALUES ('Custom Tag', '6366f1')"
  },
  {
    "type": "insert",
    "description": "Add default empty bin in on-site location for stores with no bins",
    "database": "{{store}}",
    "check_query": "SELECT 1 FROM bsBins WHERE deleted = 0 LIMIT 1",
    "sql": "INSERT INTO bsBins (name, location, dateCreated, ageDate, deleted) VALUES ('Bin #1', (SELECT id FROM bsLocations WHERE onsite = 1 ORDER BY id LIMIT 1), NOW(), NOW(), 0)"
  }
]
