# Wallet PocketBase setup

PocketBase collections should be initialized through its API/migration format rather than direct SQLite SQL. The bootstrap script creates the auth collection, document collection, file collection, and per-user access rules.

From the project root:

```bash
PB_URL=https://data.cal3.dev \
PB_AUTH_COLLECTION=users \
PB_ADMIN_EMAIL=admin@example.com \
PB_ADMIN_PASSWORD='your-admin-password' \
node scripts/bootstrap-pocketbase.mjs
```

The script is idempotent for existing collections. It does not modify the existing Auth collection or print/store credentials. Profile fields live in `wallet_profiles`.
