commentsConfig() — drizzle-orm Function Reference
Architecture documentation for the commentsConfig() function in tables-rel.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 15caf389_2a45_7898_4e75_153bb02d47aa["commentsConfig()"] b1dda328_eebf_52f2_97d5_00501c61feeb["tables-rel.ts"] 15caf389_2a45_7898_4e75_153bb02d47aa -->|defined in| b1dda328_eebf_52f2_97d5_00501c61feeb style 15caf389_2a45_7898_4e75_153bb02d47aa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/type-tests/mysql/tables-rel.ts lines 42–45
export const commentsConfig = relations(comments, ({ one }) => ({
post: one(posts, { fields: [comments.postId], references: [posts.id] }),
author: one(users, { fields: [comments.authorId], references: [users.id] }),
}));
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does commentsConfig() do?
commentsConfig() is a function in the drizzle-orm codebase, defined in drizzle-orm/type-tests/mysql/tables-rel.ts.
Where is commentsConfig() defined?
commentsConfig() is defined in drizzle-orm/type-tests/mysql/tables-rel.ts at line 42.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free