{
  "kind": "collectionType",
  "collectionName": "blogs",
  "info": {
    "singularName": "blog",
    "pluralName": "blogs",
    "displayName": "Blog",
    "description": "Blog posts with relational author & editor links to admin::user, media cover images, and job designations."
  },
  "options": {
    "draftAndPublish": true
  },
  "attributes": {
    "title": {
      "type": "string",
      "required": true
    },
    "slug": {
      "type": "uid",
      "targetField": "title",
      "required": true
    },
    "category": {
      "type": "enumeration",
      "enum": [
        "AI & Data",
        "Industrial IoT",
        "AR/VR & Immersive Tech",
        "Operation Technology"
      ],
      "required": true
    },
    "excerpt": {
      "type": "text",
      "required": true
    },
    "content": {
      "type": "richtext",
      "required": true
    },
    "coverImage": {
      "type": "media",
      "multiple": false,
      "required": false,
      "allowedTypes": [
        "images"
      ]
    },
    "approvalStatus": {
      "type": "enumeration",
      "enum": [
        "Draft",
        "Pending Review",
        "In Review",
        "Needs Revision",
        "Approved",
        "Published",
        "Unpublished"
      ],
      "default": "Draft",
      "required": true
    },
    "authorName": {
      "type": "string"
    },
    "author": {
      "type": "relation",
      "relation": "oneToOne",
      "target": "admin::user"
    },
    "authorDesignation": {
      "type": "string"
    },
    "editorName": {
      "type": "string"
    },
    "editor": {
      "type": "relation",
      "relation": "oneToOne",
      "target": "admin::user"
    },
    "editorDesignation": {
      "type": "string"
    },
    "reviewNotes": {
      "type": "text"
    },
    "approvalDate": {
      "type": "date"
    },
    "readTime": {
      "type": "string",
      "default": "5 min read"
    },
    "publishDate": {
      "type": "date"
    },
    "tags": {
      "type": "json"
    },
    "metaTitle": {
      "type": "string"
    },
    "metaDescription": {
      "type": "text"
    },
    "keywords": {
      "type": "string"
    },
    "canonicalURL": {
      "type": "string"
    },
    "ogImage": {
      "type": "media",
      "multiple": false,
      "required": false,
      "allowedTypes": [
        "images"
      ]
    }
  }
}
