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 0ea42be3_79e8_c678_be3c_5afdf6ab175f["cities2()"] 998b0a13_62af_9408_d100_2bb61b49b6b9["tables.ts"] 0ea42be3_79e8_c678_be3c_5afdf6ab175f -->|defined in| 998b0a13_62af_9408_d100_2bb61b49b6b9 style 0ea42be3_79e8_c678_be3c_5afdf6ab175f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/type-tests/pg/tables.ts lines 969–974
const cities2 = pgTable('cities_table', ({ serial, text, integer }) => ({
id: serial('id').primaryKey(),
name: text('name').notNull().primaryKey(),
role: text('role', { enum: ['admin', 'user'] }).default('user').notNull(),
population: integer('population').default(0),
}));
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does cities2() do?
cities2() is a function in the drizzle-orm codebase, defined in drizzle-orm/type-tests/pg/tables.ts.
Where is cities2() defined?
cities2() is defined in drizzle-orm/type-tests/pg/tables.ts at line 969.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free