# SlackIntegration

**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#L2172)

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `String` | ✓ | PK |
| `projectId` | `String` | ✓ |  |
| `organizationId` | `String` | ✓ |  |
| `agentId` | `String` | - |  |
| `workspaceId` | `String` | ✓ |  |
| `teamName` | `String` | ✓ |  |
| `botToken` | `String` | ✓ |  |
| `appId` | `String` | - |  |
| `isEnabled` | `Boolean` | ✓ |  |
| `createdAt` | `DateTime` | ✓ |  |
| `updatedAt` | `DateTime` | ✓ |  |

## Diagram

```mermaid
erDiagram
    SlackIntegration {
        id String [PK]
        projectId String
        organizationId String
        agentId String?
        workspaceId String
        teamName String
        botToken String
        appId String?
        isEnabled Boolean
        createdAt DateTime
        updatedAt DateTime
    }
    SlackIntegration ||--|| Project : ""
    SlackIntegration ||--|| Organization : ""
    SlackIntegration ||--|| SupportAgentConfig : ""
```

## Relationships

- HAS_ONE → `Project`
- HAS_ONE → `Organization`
- HAS_ONE → `SupportAgentConfig`
