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
  41090262_b021_4a9d_00a8_82ad2de54580["getUsersTable()"]
  caa15051_4c2c_cd8b_fcc3_001b783b7336["tables.ts"]
  41090262_b021_4a9d_00a8_82ad2de54580 -->|defined in| caa15051_4c2c_cd8b_fcc3_001b783b7336
  style 41090262_b021_4a9d_00a8_82ad2de54580 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/type-tests/geldb/tables.ts lines 783–788

	const getUsersTable = <TSchema extends string>(schemaName: TSchema) => {
		return gelSchema(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/geldb/tables.ts.
Where is getUsersTable() defined?
getUsersTable() is defined in drizzle-orm/type-tests/geldb/tables.ts at line 783.

Analyze Your Own Codebase

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

Try Supermodel Free