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

usersToGroupsConfig() — drizzle-orm Function Reference

Architecture documentation for the usersToGroupsConfig() function in sqlite-proxy-batch.test.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  65a9b8a6_b1c6_eb0a_ce56_456dc7dc9b47["usersToGroupsConfig()"]
  9091bb68_e7c0_bb6e_97e5_a9d57b06e993["sqlite-proxy-batch.test.ts"]
  65a9b8a6_b1c6_eb0a_ce56_456dc7dc9b47 -->|defined in| 9091bb68_e7c0_bb6e_97e5_a9d57b06e993
  style 65a9b8a6_b1c6_eb0a_ce56_456dc7dc9b47 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

integration-tests/tests/sqlite/sqlite-proxy-batch.test.ts lines 50–59

export const usersToGroupsConfig = relations(usersToGroupsTable, ({ one }) => ({
	group: one(groupsTable, {
		fields: [usersToGroupsTable.groupId],
		references: [groupsTable.id],
	}),
	user: one(usersTable, {
		fields: [usersToGroupsTable.userId],
		references: [usersTable.id],
	}),
}));

Domain

Subdomains

Frequently Asked Questions

What does usersToGroupsConfig() do?
usersToGroupsConfig() is a function in the drizzle-orm codebase, defined in integration-tests/tests/sqlite/sqlite-proxy-batch.test.ts.
Where is usersToGroupsConfig() defined?
usersToGroupsConfig() is defined in integration-tests/tests/sqlite/sqlite-proxy-batch.test.ts at line 50.

Analyze Your Own Codebase

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

Try Supermodel Free