# Post

**Kind:** Database Model

**Source:** [`atloria-monorepo/apps/database-parser/test/fixtures/user.entity.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/database-parser/test/fixtures/user.entity.ts#L67)

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `uuid` | ✓ | PK |
| `title` | `varchar` | ✓ |  |
| `content` | `text` | - |  |
| `published` | `boolean` | ✓ |  |
| `authorId` | `uuid` | ✓ |  |
| `createdAt` | `timestamp` | ✓ |  |
| `updatedAt` | `timestamp` | ✓ |  |

## Diagram

```mermaid
erDiagram
    Post {
        id uuid [PK, AUTO]
        title varchar
        content text?
        published boolean
        authorId uuid
        createdAt timestamp
        updatedAt timestamp
    }
    Post }o--|| User : "authorId"
```

## Relationships

- BELONGS_TO → `User`

## Referenced By

- `User` (HAS_MANY)
