{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/car-gene-com/json-schema/car-gene-com-invitation-schema.json",
  "title": "Invitation",
  "description": "招待。**token は招待を出せる人 (運営・その店の管理者) にだけ返す**\n(リンクを写すため)",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/car-gene-com-admin-users-api-openapi.yml#/components/schemas/Invitation",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "shop_id": {
      "type": "string",
      "title": "Shop Id"
    },
    "shop_name": {
      "type": "string",
      "title": "Shop Name"
    },
    "email": {
      "type": "string",
      "title": "Email"
    },
    "role": {
      "type": "string",
      "enum": [
        "owner",
        "staff"
      ],
      "title": "Role"
    },
    "token": {
      "type": "string",
      "title": "Token"
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "expired",
        "accepted",
        "revoked"
      ],
      "title": "Status"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "title": "Expires At"
    },
    "accepted_at": {
      "type": "string",
      "format": "date-time",
      "title": "Accepted At"
    },
    "accepted_email": {
      "type": "string",
      "title": "Accepted Email"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "shop_id",
    "shop_name",
    "email",
    "role",
    "token",
    "status",
    "expires_at",
    "created_at"
  ]
}