# Like

**Kind:** Database Model

**Source:** [`atloria-monorepo/apps/parser-orchestrator/test/fixtures/sample-projects/fullstack-nextjs-nestjs/backend/prisma/schema.prisma`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/parser-orchestrator/test/fixtures/sample-projects/fullstack-nextjs-nestjs/backend/prisma/schema.prisma#L93)

Like on a post

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `String` | ✓ | PK |
| `postId` | `String` | ✓ |  |
| `userId` | `String` | ✓ |  |
| `createdAt` | `DateTime` | ✓ |  |

## Diagram

```mermaid
erDiagram
    Like {
        id String [PK]
        postId String
        userId String
        createdAt DateTime
    }
    Like ||--|| Post : "postId"
    Like ||--|| User : "userId"
```

## Relationships

- BELONGS_TO → `Post`
- BELONGS_TO → `User`

## Referenced By

- `User` (HAS_MANY)
- `Post` (HAS_MANY)
