{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hostinger/main/json-schema/hostinger-agency-hosting-v1-websites-databases-database-collection-schema.json",
  "title": "AgencyHosting.V1.Websites.Databases.DatabaseCollection",
  "description": "Array of [`AgencyHosting.V1.Websites.Databases.DatabaseResource`](#model/agencyhostingv1websitesdatabasesdatabaseresource)",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hostinger-agency-hosting-databases-api-openapi.yml#/components/schemas/AgencyHosting.V1.Websites.Databases.DatabaseCollection",
  "type": "array",
  "items": {
    "$ref": "#/$defs/AgencyHosting.V1.Websites.Databases.DatabaseResource"
  },
  "$defs": {
    "AgencyHosting.V1.Websites.Databases.DatabaseResource": {
      "properties": {
        "name": {
          "description": "Database name.",
          "type": "string"
        },
        "created_at": {
          "description": "Database creation date in ISO 8601 format.",
          "type": "string",
          "format": "date-time"
        },
        "users": {
          "description": "Non-system users that can access the database.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgencyHosting.V1.Websites.Databases.DatabaseUserResource"
          }
        }
      },
      "type": "object"
    },
    "AgencyHosting.V1.Websites.Databases.DatabaseUserResource": {
      "properties": {
        "name": {
          "description": "Database username.",
          "type": "string"
        },
        "host": {
          "description": "Database host the user is allowed to connect from.",
          "type": "string"
        },
        "created_at": {
          "description": "Database user creation date in ISO 8601 format.",
          "type": "string",
          "format": "date-time"
        }
      },
      "type": "object"
    }
  }
}