{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/copyright01-com/json-schema/copyright01-com-user-schema.json",
  "title": "User",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/copyright01-com-openapi.yml#/components/schemas/User",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "plan": {
      "type": "string",
      "enum": [
        "free",
        "pack",
        "subscription"
      ],
      "description": "Current plan: free (3 deposits), pack (purchased credits), subscription (30/month)"
    },
    "deposits_count": {
      "type": "integer",
      "description": "Total deposits created"
    },
    "deposits_remaining": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Credits remaining (null = unlimited for subscribers)"
    },
    "storage_used": {
      "type": "integer",
      "description": "Storage used in bytes"
    },
    "storage_quota": {
      "type": "integer",
      "description": "Storage quota in bytes"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}