{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yunqi/json-schema/yunqi-user-create-request-schema.json",
  "title": "UserCreateRequest",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yunqi-user-management-api-openapi.yml#/components/schemas/UserCreateRequest",
  "type": "object",
  "required": [
    "name",
    "phone"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Login/user name. Required."
    },
    "realName": {
      "type": "string",
      "description": "Real name. Defaults to `name` when omitted."
    },
    "displayName": {
      "type": "string",
      "description": "Display name. Defaults to `name` when omitted."
    },
    "email": {
      "type": "string",
      "description": "Email address (optional)."
    },
    "phone": {
      "type": "string",
      "description": "Phone number. Required (NOT NULL downstream)."
    },
    "title": {
      "type": "string",
      "description": "Job title. Accepted but not currently persisted downstream (the resolved account-api model has no setter for it).\n"
    },
    "comment": {
      "type": "string",
      "description": "Remark. Accepted but not currently persisted downstream (the resolved account-api model has no setter for it).\n"
    },
    "status": {
      "type": "integer",
      "format": "int32",
      "description": "User status (tinyint). Defaults to 0 (active) when omitted."
    },
    "type": {
      "type": "integer",
      "format": "int32",
      "description": "User type (tinyint). Defaults to 0 (normal user) when omitted."
    },
    "encryptedPassword": {
      "type": "string",
      "description": "RSA-encrypted (Base64) raw password. Decrypted with the configured private key, then stored as a salted MD5 hash. Optional.\n"
    },
    "credentialId": {
      "type": "string",
      "description": "Credential id. Accepted but not currently persisted downstream (the resolved account-api model has no compatible setter).\n"
    }
  }
}