{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "User",
  "description": "A platform user.",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bluecart/refs/heads/main/json-schema/bluecart-user-schema.json",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64",
      "example": 3001
    },
    "firstName": {
      "type": "string",
      "example": "Alex"
    },
    "lastName": {
      "type": "string",
      "example": "Morgan"
    },
    "email": {
      "type": "string",
      "format": "email",
      "example": "alex.morgan@distributor.example"
    },
    "enabled": {
      "type": "boolean",
      "example": true
    },
    "notify": {
      "type": "boolean",
      "example": true
    },
    "role": {
      "type": "string",
      "example": "Admin"
    },
    "phone": {
      "type": "string",
      "example": "+15555550123"
    },
    "reportsTo": {
      "type": "integer",
      "format": "int64",
      "example": 3000
    },
    "notificationTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "OrderPlaced",
        "OrderShipped"
      ]
    },
    "creationDateTime": {
      "type": "string",
      "format": "date-time",
      "example": "2026-06-02T14:30:00Z"
    },
    "lastUpdateDateTime": {
      "type": "string",
      "format": "date-time",
      "example": "2026-06-02T15:00:00Z"
    }
  }
}