Home / Function/ getUsersTable() — drizzle-orm Function Reference

getUsersTable() — drizzle-orm Function Reference

Architecture documentation for the getUsersTable() function in tables.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  2754d51b_95de_fd6b_e7ba_89a0593291a9["getUsersTable()"]
  998b0a13_62af_9408_d100_2bb61b49b6b9["tables.ts"]
  2754d51b_95de_fd6b_e7ba_89a0593291a9 -->|defined in| 998b0a13_62af_9408_d100_2bb61b49b6b9
  style 2754d51b_95de_fd6b_e7ba_89a0593291a9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/type-tests/pg/tables.ts lines 1088–1093

	const getUsersTable = <TSchema extends string>(schemaName: TSchema) => {
		return pgSchema(schemaName).table('users', {
			id: integer('id').primaryKey(),
			name: text('name').notNull(),
		});
	};

Domain

Subdomains

Frequently Asked Questions

What does getUsersTable() do?
getUsersTable() is a function in the drizzle-orm codebase, defined in drizzle-orm/type-tests/pg/tables.ts.
Where is getUsersTable() defined?
getUsersTable() is defined in drizzle-orm/type-tests/pg/tables.ts at line 1088.

Analyze Your Own Codebase

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

Try Supermodel Free