{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scylladb/json-schema/scylladb-account-schema.json",
  "title": "Account",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scylladb-account-api-openapi.yml#/components/schemas/Account",
  "x-public": true,
  "properties": {
    "accountId": {
      "description": "ID of the account",
      "type": "integer"
    },
    "accountStatus": {
      "description": "Status of the account",
      "enum": [
        "ACTIVE",
        "INACTIVE",
        "DELETED"
      ],
      "type": "string"
    },
    "role": {
      "description": "Defines user role within the account",
      "enum": [
        "ADMIN",
        "MAINTAINER",
        "VIEWER"
      ],
      "type": "string"
    },
    "userAccountStatus": {
      "description": "User account status",
      "enum": [
        "ACTIVE",
        "INACTIVE",
        "DELETED"
      ],
      "type": "string"
    },
    "name": {
      "description": "Account name",
      "type": "string"
    },
    "userId": {
      "description": "ID of the user",
      "type": "integer"
    }
  },
  "type": "object"
}