{
  "lexicon": 1,
  "id": "org.cannadb.breeder",
  "defs": {
    "main": {
      "type": "record",
      "description": "A breeder identity claim describing a cannabis breeder or seed company. Trust is determined by the publisher DID's relationship to the subject (a record published from a handle matching the breeder's domain is treated as the authoritative self-claim); third-party-attributed records are typically displaced when the breeder publishes their own.",
      "key": "tid",
      "record": {
        "type": "object",
        "required": ["name", "createdAt"],
        "properties": {
          "name": {
            "type": "string",
            "description": "Primary common name of the breeder, e.g., \"Seed Junky Genetics\"."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Client-declared timestamp when this record was originally created."
          },
          "founded": {
            "type": "integer",
            "description": "Year the breeder was founded."
          },
          "region": {
            "type": "string",
            "description": "Primary region of operation, e.g., \"Humboldt County, California\"."
          },
          "website": {
            "type": "string",
            "format": "uri",
            "description": "Informational website URL. No link-rot guarantee — display only."
          },
          "description": {
            "type": "string",
            "description": "Markdown-formatted free-form description of the breeder."
          },
          "logo": {
            "type": "blob",
            "description": "Logo image for the breeder. Accepts common web image formats; capped at 500 KB since logos are typically small icons.",
            "accept": ["image/png", "image/jpeg", "image/webp"],
            "maxSize": 500000
          },
          "socialLinks": {
            "type": "array",
            "description": "Social-media or external presence links for the breeder.",
            "items": {
              "type": "ref",
              "ref": "#socialLink",
              "description": "A single platform-tagged URL entry."
            }
          }
        }
      }
    },
    "socialLink": {
      "type": "object",
      "description": "A platform-tagged URL pointing to the breeder's profile or presence on an external service.",
      "required": ["platform", "url"],
      "properties": {
        "platform": {
          "type": "string",
          "description": "Free-form platform identifier, e.g., \"instagram\", \"twitter\", \"youtube\"."
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "URL to the breeder's profile or content on this platform."
        }
      }
    }
  }
}
