{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "JewelryBusiness",
  "description": "Canonical data contract schema for jewelry businesses on the multi-business platform",
  "type": "object",
  "required": ["slug", "brand", "contact", "showroom"],
  "properties": {
    "slug": {
      "type": "string",
      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
      "description": "Unique URL slug identifier (e.g. 'png-jewellers', 'gokul', 'tanishq-demo')"
    },
    "status": {
      "type": "string",
      "enum": ["draft", "published"],
      "default": "published"
    },
    "brand": {
      "type": "object",
      "required": ["name", "shortName"],
      "properties": {
        "name": { "type": "string" },
        "shortName": { "type": "string" },
        "tagline": { "type": "string" },
        "estYear": { "type": "string" },
        "logoInitial": { "type": "string" },
        "logoSub": { "type": "string" },
        "metaDescription": { "type": "string" },
        "bisHallmarkId": { "type": "string" },
        "footerTagline": { "type": "string" },
        "copyright": { "type": "string" },
        "defaultTheme": {
          "type": "string",
          "enum": ["temple-gold", "royal-emerald", "rose-gold", "midnight-solitaire", "heritage-ruby"],
          "default": "temple-gold"
        }
      }
    },
    "contact": {
      "type": "object",
      "required": ["phone", "whatsappNumber"],
      "properties": {
        "phone": { "type": "string" },
        "phoneFull": { "type": "string" },
        "whatsappNumber": { "type": "string" },
        "email": { "type": "string" },
        "openingHours": { "type": "string" },
        "openDays": { "type": "string" }
      }
    },
    "showroom": {
      "type": "object",
      "required": ["name", "addressLine1", "city"],
      "properties": {
        "name": { "type": "string" },
        "addressLine1": { "type": "string" },
        "addressLine2": { "type": "string" },
        "addressFull": { "type": "string" },
        "landmark": { "type": "string" },
        "city": { "type": "string" },
        "state": { "type": "string" },
        "pincode": { "type": "string" },
        "googleMapsUrl": { "type": "string" },
        "valetNote": { "type": "string" }
      }
    },
    "secondaryShowroom": {
      "type": "object",
      "properties": {
        "enabled": { "type": "boolean" },
        "name": { "type": "string" },
        "area": { "type": "string" },
        "city": { "type": "string" }
      }
    },
    "social": {
      "type": "object",
      "properties": {
        "instagram": { "type": "string" },
        "instagramUrl": { "type": "string" },
        "facebook": { "type": "string" },
        "facebookUrl": { "type": "string" },
        "youtube": { "type": "string" },
        "youtubeUrl": { "type": "string" }
      }
    },
    "about": {
      "type": "object",
      "properties": {
        "founderName": { "type": "string" },
        "founderTitle": { "type": "string" },
        "origin": { "type": "string" },
        "storyShort": { "type": "string" },
        "storyLong": { "type": "string" },
        "founderQuote": { "type": "string" },
        "craftNote": { "type": "string" },
        "craftsmanTitle": { "type": "string" },
        "craftsmanNote": { "type": "string" },
        "heritagePill": { "type": "string" },
        "heritageHallmarkTag": { "type": "string" }
      }
    },
    "stats": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["value", "label"],
        "properties": {
          "value": { "type": "string" },
          "label": { "type": "string" }
        }
      }
    },
    "reviews": {
      "type": "object",
      "properties": {
        "googleRating": { "type": "string" },
        "googleReviewCount": { "type": "string" },
        "googleReviewUrl": { "type": "string" }
      }
    },
    "announcementBar": {
      "type": "array",
      "items": { "type": "string" }
    },
    "whatsappMessages": {
      "type": "object",
      "properties": {
        "hero": { "type": "string" },
        "bridal": { "type": "string" },
        "general": { "type": "string" },
        "showroom": { "type": "string" }
      }
    },
    "theme": {
      "type": "object",
      "properties": {
        "name": { "type": "string" },
        "primary": { "type": "string" },
        "secondary": { "type": "string" },
        "accent": { "type": "string" }
      }
    },
    "products": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "testimonials": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
