Skip to main content
← Back to index page

πŸ”Œ Support Many-to-many Relationships

dbdocs now supports Many-to-many Relationships!

When drawing the many-to-many relationship, you no longer need to create an associative (join) table. Instead, just define it directly, such as:

Table books {
id int [pk]
...
}

Table authors {
id int [pk]
...
}

Ref books_authors: books.id <> authors.id // many-to-many

For more DBML syntax updates, please check out our docs!