{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/movementors-com/json-schema/movementors-com-user-schema.json",
  "title": "User",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/movementors-com-openapi.json#/components/schemas/User",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "image": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "type": "string",
      "enum": [
        "CLIENT",
        "TEACHER",
        "STUDIO",
        "ADMIN"
      ]
    },
    "languagePreference": {
      "type": "string"
    },
    "currencyPreference": {
      "type": "string"
    },
    "onboardingComplete": {
      "type": "boolean"
    },
    "teacherProfile": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "profileImageUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "subscriptionTier": {
          "type": "string",
          "enum": [
            "FREE",
            "PRO",
            "PREMIUM"
          ]
        },
        "onboardingStatus": {
          "type": "string"
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "slug",
        "displayName",
        "profileImageUrl",
        "subscriptionTier",
        "onboardingStatus",
        "city",
        "country"
      ]
    },
    "studioProfile": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "businessName": {
          "type": "string"
        },
        "logoUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "subscriptionTier": {
          "type": "string",
          "enum": [
            "FREE",
            "PRO",
            "PREMIUM"
          ]
        },
        "onboardingStatus": {
          "type": "string"
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "slug",
        "businessName",
        "logoUrl",
        "subscriptionTier",
        "onboardingStatus",
        "city",
        "country"
      ]
    }
  },
  "required": [
    "id",
    "email",
    "name",
    "image",
    "type",
    "onboardingComplete"
  ]
}