# Flow

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

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `String` | ✓ | PK |
| `name` | `String` | ✓ |  |
| `description` | `String` | - |  |
| `projectId` | `String` | ✓ |  |
| `steps` | `Json` | ✓ |  |
| `version` | `Int` | ✓ |  |
| `createdAt` | `DateTime` | ✓ |  |
| `updatedAt` | `DateTime` | ✓ |  |

## Diagram

```mermaid
erDiagram
    Flow {
        id String [PK]
        name String
        description String?
        projectId String
        steps Json
        version Int
        createdAt DateTime
        updatedAt DateTime
    }
    Flow ||--|| Project : ""
```

## Relationships

- HAS_ONE → `Project`
