# AuditLog

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

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `String` | ✓ | PK |
| `orgId` | `String` | ✓ |  |
| `userId` | `String` | ✓ |  |
| `action` | `String` | ✓ |  |
| `resource` | `String` | ✓ |  |
| `metadata` | `Json` | - |  |
| `ipAddress` | `String` | - |  |
| `userAgent` | `String` | - |  |
| `createdAt` | `DateTime` | ✓ |  |

## Diagram

```mermaid
erDiagram
    AuditLog {
        id String [PK]
        orgId String
        userId String
        action String
        resource String
        metadata Json?
        ipAddress String?
        userAgent String?
        createdAt DateTime
    }
```
