{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UsersEnrollment",
  "title": "UsersEnrollment",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "id": {
      "type": "string",
      "description": "ID of this enrollment."
    },
    "status": {
      "$ref": "#/components/schemas/UserEnrollmentStatusEnum"
    },
    "type": {
      "type": "string",
      "description": "Type of enrollment."
    },
    "name": {
      "type": "string",
      "description": "Name of enrollment (usually phone number).",
      "maxLength": 20
    },
    "identifier": {
      "type": "string",
      "description": "Device identifier (usually phone identifier) of this enrollment."
    },
    "phone_number": {
      "type": "string",
      "description": "Phone number for this enrollment."
    },
    "auth_method": {
      "$ref": "#/components/schemas/UserEnrollmentAuthMethodEnum"
    },
    "enrolled_at": {
      "type": "string",
      "description": "Start date and time of this enrollment.",
      "format": "date-time"
    },
    "last_auth": {
      "type": "string",
      "description": "Last authentication date and time of this enrollment.",
      "format": "date-time"
    }
  }
}