✨ Support Inline References
dbdiagram.io now supports Inline References for foreign keys (Inline Relationships)
Syntax
field_name type [ref: > other_table.field_name]
Examples
Table posts {
id integer [primary key]
user_id integer [ref: > users.id] // many-to-one
}
// or this
Table users {
id integer [ref: < posts.user_id, ref: < reviews.user_id] // one to many
}