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

userRelations() — drizzle-orm Function Reference

Architecture documentation for the userRelations() function in gel-ext.test.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  b8154b26_f358_7515_6089_b489a0e57c4a["userRelations()"]
  420ed34c_6b16_edc7_54c0_6d31aba86b76["gel-ext.test.ts"]
  b8154b26_f358_7515_6089_b489a0e57c4a -->|defined in| 420ed34c_6b16_edc7_54c0_6d31aba86b76
  style b8154b26_f358_7515_6089_b489a0e57c4a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

integration-tests/tests/gel/gel-ext.test.ts lines 47–49

export const userRelations = relations(user, ({ one }) => ({
	identity: one(identityInExtauth, { references: [identityInExtauth.id], fields: [user.identityId] }),
}));

Domain

Subdomains

Frequently Asked Questions

What does userRelations() do?
userRelations() is a function in the drizzle-orm codebase, defined in integration-tests/tests/gel/gel-ext.test.ts.
Where is userRelations() defined?
userRelations() is defined in integration-tests/tests/gel/gel-ext.test.ts at line 47.

Analyze Your Own Codebase

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

Try Supermodel Free