# Enrollments

> Programs of steps per organization, and enrollments of a party, a member or any subject in them with step progress and completion. Onboarding checklists run on it.

- Category: Collaboration
- Module: `enrollments`
- Modes: `managed`, `custom`
- Docs: https://bettersupabase.com/docs/blocks/enrollments
- Page: https://bettersupabase.com/blocks/enrollments

## Install

```bash
npx better-supabase add enrollments
```

The command also installs `updated-at`, `tenant`, `access`.

## Configure

Add the block to `better-supabase.config.ts`:

```ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  blocks: {
    // Required by enrollments; add installs them too.
    "updated-at": {},
    tenant: {},
    access: {},
    // Modes: "managed", "custom". The default is "managed".
    enrollments: { mode: "managed" },
  },
});
```

## Client

The block has no React entry yet. Its server-side TypeScript is in `better-supabase/blocks/enrollments`.

## Events

- `enrollment.cancelled`
- `enrollment.completed`
- `enrollment.created`
- `enrollment.step_completed`
- `enrollment_program.deleted`
- `enrollment_program.saved`

## Related blocks

Requires: [tenant](https://bettersupabase.com/blocks/tenant.md), [access](https://bettersupabase.com/blocks/access.md)

Works with: [outbox](https://bettersupabase.com/blocks/outbox.md), [audit](https://bettersupabase.com/blocks/audit.md)
