commentsConfig() — drizzle-orm Function Reference
Architecture documentation for the commentsConfig() function in mysql.schema.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 3552e33d_2d16_8e16_7b46_5dd9e19c7808["commentsConfig()"] d2943d45_7405_d988_d45c_daf2caa9d414["mysql.schema.ts"] 3552e33d_2d16_8e16_7b46_5dd9e19c7808 -->|defined in| d2943d45_7405_d988_d45c_daf2caa9d414 style 3552e33d_2d16_8e16_7b46_5dd9e19c7808 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
integration-tests/tests/relational/mysql.schema.ts lines 114–124
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
Source
Frequently Asked Questions
What does commentsConfig() do?
commentsConfig() is a function in the drizzle-orm codebase, defined in integration-tests/tests/relational/mysql.schema.ts.
Where is commentsConfig() defined?
commentsConfig() is defined in integration-tests/tests/relational/mysql.schema.ts at line 114.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free