---
url: "https://vueda.dev/v3/reference/api/js/utils/columnMappings.md"
title: "utils/columnMappings"
---

# utils/columnMappings

## Overview

Default mappings from DRF serializer field types to list column adapter components. Mirrors `fieldMappings.js` (which maps types to form widgets). Resolved via the shared `getTypeMapping` helper, keyed `typeSerializer -> typeModel`.

Boolean types resolve to `ColumnBoolean`; date/time/datetime types resolve to
`ColumnDateTime`; duration types resolve to `ColumnDuration`; `JSON` resolves to
`ColumnJson`; file and image types resolve to `ColumnFile`; foreign-key relations
resolve to `ColumnModelLink`. Any unmapped type falls back to `ColumnText`,
reproducing the historical plain-text cell.

## Properties

### columnMappings {#columnMappings}

Type: `object`

Source: `client/lib/utils/columnMappings.js:23`

## Methods

- [mergeColumnMappings](/v3/reference/api/js/utils/columnMappings/functions/mergeColumnMappings.md) - Deep-merge custom column mappings into the defaults.

## Types

### [ColumnMappingEntry](/v3/reference/api/js/utils/columnMappings/types/ColumnMappingEntry.md)

## Source

`client/lib/utils/columnMappings.js:1`
