# DatabaseUpdate

> The DatabaseUpdate object in the Guv API.

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `plan` | [DatabasePlanId](/docs/api/objects/database-plan-id/) |  |
| `storage_gb` | integer | Grow only. |
| `pitr_days` | integer | Shortening retention always needs human approval. |
| `extensions` | array of string |  |
| `maintenance_window` | string |  |
| `masking` | [MaskingRules](/docs/api/objects/masking-rules/) |  |
| `pooling` | boolean |  |
| `public_access` | object | Exposing a database publicly always needs human approval and an IP allowlist on Hobby. |

\* always present

## Example

```json
{
  "plan": "starter",
  "storage_gb": 1,
  "pitr_days": 1,
  "extensions": [
    "string"
  ],
  "maintenance_window": "string",
  "masking": {
    "clients.full_name": "fake_name",
    "clients.nhs_number": null,
    "clients.date_of_birth": "shift_days(±30)",
    "carers.email": "hash_email"
  },
  "pooling": false,
  "public_access": {
    "enabled": false,
    "allow_ips": [
      "string"
    ]
  }
}
```

## Used by

- [Change plan, storage, extensions, masking or access](/docs/api/databases/#change-plan-storage-extensions-masking-or-access)
