{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aimeat-io/json-schema/aimeat-io-flag-record-schema.json",
  "title": "FlagRecord",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aimeat-io-flags-api-openapi.yml#/components/schemas/FlagRecord",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique flag ID"
    },
    "targetType": {
      "type": "string",
      "enum": [
        "profile",
        "memory",
        "action",
        "board_post"
      ]
    },
    "targetId": {
      "type": "string"
    },
    "flaggedBy": {
      "type": "string",
      "description": "GAII or owner who created the flag"
    },
    "reason": {
      "type": "string",
      "enum": [
        "spam",
        "inappropriate",
        "misleading",
        "duplicate",
        "other"
      ]
    },
    "description": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "reviewed",
        "dismissed",
        "actioned"
      ],
      "default": "pending"
    },
    "reviewNote": {
      "type": "string",
      "description": "Operator review note (present after review)"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}