---
title: CKDatabase.Scope.public
framework: cloudkit
role: symbol
role_heading: Case
path: cloudkit/ckdatabase/scope/public
---

# CKDatabase.Scope.public

The public database.

## Declaration

```swift
case `public`
```

## Discussion

Discussion Records in a public database: By default are world readable, owner writable. Can be locked down by Roles, a process done in the Developer Portal, a web interface.  Roles are not present in the client API. Are visible to the application developer via the Developer Portal. Do not contribute to the owner’s iCloud account storage quota.

## See Also

### Database Scopes

- [CKDatabase.Scope.private](cloudkit/ckdatabase/scope/private.md)
- [CKDatabase.Scope.shared](cloudkit/ckdatabase/scope/shared.md)
