{
  "slug": "services",
  "label": "Services",
  "kind": "collection",
  "fields": [
    {
      "name": "category",
      "label": "Category",
      "type": "select",
      "options": ["photography", "videography", "podcast", "production", "music-video"],
      "required": true
    },
    { "name": "title", "label": "Title", "type": "text", "required": true },
    { "name": "badge", "label": "Badge", "type": "text", "required": true },
    { "name": "headline", "label": "Headline", "type": "text", "required": true },
    { "name": "body", "label": "Body", "type": "textarea", "required": true },
    {
      "name": "posterMediaId",
      "label": "Poster upload / library",
      "type": "media",
      "accept": ["image/jpeg", "image/png", "image/webp", "image/gif"]
    },
    { "name": "posterSrc", "label": "Poster URL (if not uploading)", "type": "url" },
    { "name": "posterAlt", "label": "Poster alt", "type": "text" },
    { "name": "posterWidth", "label": "Poster width", "type": "number" },
    { "name": "posterHeight", "label": "Poster height", "type": "number" },
    { "name": "sort", "label": "Sort order", "type": "number" },
    { "name": "status", "label": "Status", "type": "select", "options": ["published", "draft"], "required": true }
  ],
  "constraints": [
    {
      "type": "exclusive",
      "fields": ["posterMediaId", "posterSrc"],
      "message": "Use either poster upload or poster URL, not both."
    }
  ]
}
