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
  1283b609_039b_4b9f_3a60_21e6595c45fe["ColumnsWithTable"]
  5ab311c5_4977_231c_634b_5190e6ed4054["foreign-keys.ts"]
  1283b609_039b_4b9f_3a60_21e6595c45fe -->|defined in| 5ab311c5_4977_231c_634b_5190e6ed4054
  style 1283b609_039b_4b9f_3a60_21e6595c45fe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

type ColumnsWithTable<
	TTableName extends string,
	TColumns extends MySqlColumn[],
> = { [Key in keyof TColumns]: AnyMySqlColumn<{ 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/mysql-core/foreign-keys.ts.
Where is ColumnsWithTable defined?
ColumnsWithTable is defined in drizzle-orm/src/mysql-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