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

commentsConfig() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

integration-tests/tests/sqlite/sqlite-proxy-batch.test.ts lines 88–98

export const commentsConfig = relations(commentsTable, ({ one, many }) => ({
	post: one(postsTable, {
		fields: [commentsTable.postId],
		references: [postsTable.id],
	}),
	author: one(usersTable, {
		fields: [commentsTable.creator],
		references: [usersTable.id],
	}),
	likes: many(commentLikesTable),
}));

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free