{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A comment on an Arabica record (brew, bean, roaster, grinder, brewer, or another comment)",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "description": "Timestamp when the comment was created",
            "format": "datetime",
            "type": "string"
          },
          "parent": {
            "description": "Optional parent comment reference for replies",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "subject": {
            "description": "The AT-URI and CID of the record being commented on",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "text": {
            "description": "The comment text content",
            "maxGraphemes": 300,
            "maxLength": 1000,
            "type": "string"
          }
        },
        "required": [
          "subject",
          "text",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "social.arabica.alpha.comment",
  "lexicon": 1
}
