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

bookAuthorsConfig() — drizzle-orm Function Reference

Architecture documentation for the bookAuthorsConfig() function in tables.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  c74e9ce5_f7b4_461c_4a3c_5920aff4bf55["bookAuthorsConfig()"]
  931dc543_40fe_480a_552e_6df25afd3185["tables.ts"]
  c74e9ce5_f7b4_461c_4a3c_5920aff4bf55 -->|defined in| 931dc543_40fe_480a_552e_6df25afd3185
  style c74e9ce5_f7b4_461c_4a3c_5920aff4bf55 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

integration-tests/tests/relational/tables.ts lines 60–63

export const bookAuthorsConfig = relations(bookAuthors, ({ one }) => ({
	book: one(books, { fields: [bookAuthors.bookId], references: [books.id] }),
	author: one(users, { fields: [bookAuthors.authorId], references: [users.id] }),
}));

Domain

Subdomains

Frequently Asked Questions

What does bookAuthorsConfig() do?
bookAuthorsConfig() is a function in the drizzle-orm codebase, defined in integration-tests/tests/relational/tables.ts.
Where is bookAuthorsConfig() defined?
bookAuthorsConfig() is defined in integration-tests/tests/relational/tables.ts at line 60.

Analyze Your Own Codebase

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

Try Supermodel Free