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

commentLikesConfig() — drizzle-orm Function Reference

Architecture documentation for the commentLikesConfig() function in mysql.schema.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  dd4adfc2_9b80_52cc_7710_7d64f6088d5a["commentLikesConfig()"]
  d2943d45_7405_d988_d45c_daf2caa9d414["mysql.schema.ts"]
  dd4adfc2_9b80_52cc_7710_7d64f6088d5a -->|defined in| d2943d45_7405_d988_d45c_daf2caa9d414
  style dd4adfc2_9b80_52cc_7710_7d64f6088d5a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

integration-tests/tests/relational/mysql.schema.ts lines 138–147

export const commentLikesConfig = relations(commentLikesTable, ({ one }) => ({
	comment: one(commentsTable, {
		fields: [commentLikesTable.commentId],
		references: [commentsTable.id],
	}),
	author: one(usersTable, {
		fields: [commentLikesTable.creator],
		references: [usersTable.id],
	}),
}));

Domain

Subdomains

Frequently Asked Questions

What does commentLikesConfig() do?
commentLikesConfig() is a function in the drizzle-orm codebase, defined in integration-tests/tests/relational/mysql.schema.ts.
Where is commentLikesConfig() defined?
commentLikesConfig() is defined in integration-tests/tests/relational/mysql.schema.ts at line 138.

Analyze Your Own Codebase

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

Try Supermodel Free