{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dreamfactory/refs/heads/main/json-schema/dreamfactory-user.json",
  "title": "DreamFactory User",
  "description": "A user account in a DreamFactory instance, representing a non-admin consumer who authenticates via email and password and is governed by role-based access control.",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Unique identifier for the user."
    },
    "name": {
      "type": "string",
      "description": "Display name of the user."
    },
    "first_name": {
      "type": "string",
      "description": "First name of the user."
    },
    "last_name": {
      "type": "string",
      "description": "Last name of the user."
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Email address used for login."
    },
    "is_active": {
      "type": "boolean",
      "description": "Whether the user account is active."
    },
    "phone": {
      "type": "string",
      "description": "Phone number of the user."
    },
    "created_date": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the user was created."
    },
    "last_modified_date": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the user was last modified."
    }
  },
  "required": [
    "email",
    "name"
  ]
}
