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

cities2() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ebb83efa_e305_e630_bc4d_1d772f8acad8["cities2()"]
  caa15051_4c2c_cd8b_fcc3_001b783b7336["tables.ts"]
  ebb83efa_e305_e630_bc4d_1d772f8acad8 -->|defined in| caa15051_4c2c_cd8b_fcc3_001b783b7336
  style ebb83efa_e305_e630_bc4d_1d772f8acad8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/type-tests/geldb/tables.ts lines 676–681

	const cities2 = gelTable('cities_table', ({ text, integer }) => ({
		id: integer('id').primaryKey(),
		name: text('name').notNull().primaryKey(),
		role: text('role').$type<'admin' | 'user'>().default('user').notNull(),
		population: integer('population').default(0),
	}));

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free