# Category

**Kind:** Interface

**Source:** [`atloria-monorepo/packages/types/src/models/category.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/types/src/models/category.ts#L5)

Category model
Used for organizing documents into folders and hierarchical structures

## Properties

| Property | Type |
|---|---|
| `id` | `string` |
| `name` | `string` |
| `slug` | `string` |
| `description` | `string | null` |
| `icon` | `string | null` |
| `color` | `string | null` |
| `order` | `number` |
| `parentId` | `string | null` |
| `parent` | `Category | null` |
| `children` | `Category[]` |
| `defaultDocId` | `string | null` |
| `projectId` | `string` |
| `createdAt` | `Date` |
| `updatedAt` | `Date` |
| `_count` | `{
    documents: number;
  }` |
