---
title: "Type Alias FieldSchema"
url: "https://www.metabase.com/docs/latest/embedding/sdk/api/FieldSchema"
version: "65"
---

> For the complete documentation index, see [llms.txt](https://www.metabase.com/docs/llms.txt).

# Type Alias FieldSchema

```ts
type FieldSchema = SchemaColumn & {
  fieldId?: number;
  id?: string | number;
  sourceFieldId?: number;
  tableId?: number;
  type: "column";
};
```

Metadata for a generated table field.

## Type Declaration

| Name             | Type                 |
| :--------------- | :------------------- |
| `fieldId?`       | `number`             |
| `id?`            | `string` \| `number` |
| `sourceFieldId?` | `number`             |
| `tableId?`       | `number`             |
| `type`           | `"column"`           |
