usersConfig() — drizzle-orm Function Reference
Architecture documentation for the usersConfig() function in mysql.schema.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 96c451c6_46f9_3674_2f25_83ef475fcb9a["usersConfig()"] d2943d45_7405_d988_d45c_daf2caa9d414["mysql.schema.ts"] 96c451c6_46f9_3674_2f25_83ef475fcb9a -->|defined in| d2943d45_7405_d988_d45c_daf2caa9d414 style 96c451c6_46f9_3674_2f25_83ef475fcb9a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
integration-tests/tests/relational/mysql.schema.ts lines 40–48
export const usersConfig = relations(usersTable, ({ one, many }) => ({
invitee: one(usersTable, {
fields: [usersTable.invitedBy],
references: [usersTable.id],
}),
usersToGroups: many(usersToGroupsTable),
posts: many(postsTable),
comments: many(commentsTable),
}));
Domain
Subdomains
Source
Frequently Asked Questions
What does usersConfig() do?
usersConfig() is a function in the drizzle-orm codebase, defined in integration-tests/tests/relational/mysql.schema.ts.
Where is usersConfig() defined?
usersConfig() is defined in integration-tests/tests/relational/mysql.schema.ts at line 40.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free