Home / Type/ ColumnsWithTable Type — drizzle-orm Architecture

ColumnsWithTable Type — drizzle-orm Architecture

Architecture documentation for the ColumnsWithTable type/interface in foreign-keys.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  5a81af3d_a8e1_dc19_51af_64c99a4b6574["ColumnsWithTable"]
  b9d8b4e3_8c35_6c97_3af0_a74313048074["foreign-keys.ts"]
  5a81af3d_a8e1_dc19_51af_64c99a4b6574 -->|defined in| b9d8b4e3_8c35_6c97_3af0_a74313048074
  style 5a81af3d_a8e1_dc19_51af_64c99a4b6574 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/foreign-keys.ts lines 93–96

type ColumnsWithTable<
	TTableName extends string,
	TColumns extends PgColumn[],
> = { [Key in keyof TColumns]: AnyPgColumn<{ tableName: TTableName }> };

Frequently Asked Questions

What is the ColumnsWithTable type?
ColumnsWithTable is a type/interface in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/foreign-keys.ts.
Where is ColumnsWithTable defined?
ColumnsWithTable is defined in drizzle-orm/src/pg-core/foreign-keys.ts at line 93.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free