# ProjectAccessPolicy

**Kind:** Database Model

**Source:** [`atloria-monorepo/libs/database/prisma/schema.prisma`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/database/prisma/schema.prisma#L2275)

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `String` | ✓ | PK |
| `projectId` | `String` | ✓ | unique |
| `mode` | `ProjectAccessMode` | ✓ |  |
| `passwordHash` | `String` | - |  |
| `allowedEmailDomains` | `String[]` | ✓ |  |
| `ssoEnabled` | `Boolean` | ✓ |  |
| `audienceVisibility` | `Json` | - |  |

## Diagram

```mermaid
erDiagram
    ProjectAccessPolicy {
        id String [PK]
        projectId String [UNIQUE]
        mode ProjectAccessMode
        passwordHash String?
        allowedEmailDomains String[]
        ssoEnabled Boolean
        audienceVisibility Json?
    }
```
