# Class PrimaryKey

- Defined in node_modules/.pnpm/drizzle-orm@0.44.6_@cloudflare+workers-types@4.20251014.0_@opentelemetry+api@1.9.0_@typ_31a6f5ca8f102af87864dd251ed08d88/node_modules/drizzle-orm/sqlite-core/primary-keys.d.ts:26

##### Index

### Constructors

constructor

### Properties

columns
name?
table
[entityKind]

### Methods

getName

## Constructors

### constructor

- new PrimaryKey(
  table: SQLiteTable,
  columns: SQLiteColumn<ColumnBaseConfig<ColumnDataType, string>, {}, {}>[],
  name?: string,
  ): PrimaryKey

  #### Parameters

  - table: SQLiteTable
  - columns: SQLiteColumn<ColumnBaseConfig<ColumnDataType, string>, {}, {}>[]
  - `Optional` name: string

  #### Returns PrimaryKey

  - Defined in node_modules/.pnpm/drizzle-orm@0.44.6_@cloudflare+workers-types@4.20251014.0_@opentelemetry+api@1.9.0_@typ_31a6f5ca8f102af87864dd251ed08d88/node_modules/drizzle-orm/sqlite-core/primary-keys.d.ts:31

## Properties

### `Readonly` columns

columns: SQLiteColumn<ColumnBaseConfig<ColumnDataType, string>, {}, {}>[]

- Defined in node_modules/.pnpm/drizzle-orm@0.44.6_@cloudflare+workers-types@4.20251014.0_@opentelemetry+api@1.9.0_@typ_31a6f5ca8f102af87864dd251ed08d88/node_modules/drizzle-orm/sqlite-core/primary-keys.d.ts:29

### `Optional` `Readonly` name

name?: string

- Defined in node_modules/.pnpm/drizzle-orm@0.44.6_@cloudflare+workers-types@4.20251014.0_@opentelemetry+api@1.9.0_@typ_31a6f5ca8f102af87864dd251ed08d88/node_modules/drizzle-orm/sqlite-core/primary-keys.d.ts:30

### `Readonly` table

table: SQLiteTable

- Defined in node_modules/.pnpm/drizzle-orm@0.44.6_@cloudflare+workers-types@4.20251014.0_@opentelemetry+api@1.9.0_@typ_31a6f5ca8f102af87864dd251ed08d88/node_modules/drizzle-orm/sqlite-core/primary-keys.d.ts:27

### `Static` `Readonly`[entityKind]

"[entityKind]": string

- Defined in node_modules/.pnpm/drizzle-orm@0.44.6_@cloudflare+workers-types@4.20251014.0_@opentelemetry+api@1.9.0_@typ_31a6f5ca8f102af87864dd251ed08d88/node_modules/drizzle-orm/sqlite-core/primary-keys.d.ts:28

## Methods

### getName

- getName(): string

  #### Returns string

  - Defined in node_modules/.pnpm/drizzle-orm@0.44.6_@cloudflare+workers-types@4.20251014.0_@opentelemetry+api@1.9.0_@typ_31a6f5ca8f102af87864dd251ed08d88/node_modules/drizzle-orm/sqlite-core/primary-keys.d.ts:32