Hi, running into an issue in Drizzle Studio that I think might be related to schema inference or mis
👋 Hey team running into an issue in Drizzle Studio that I think might be related to schema inference or missing relational metadata.
Error ID: 5ff9d1f25b504f2f840a72c3cfdda507
There is not enough information to infer relation "public.events.agenda"
This came up while working with a local instance of Drizzle Studio connected to a Postgres database. I have events and agenda tables — the latter includes an event_id column that should reference events.id, but the relation isn’t being inferred by Studio. This happens when trying to navigate or visualize relations in the UI.
Schema-wise, I’m using Drizzle ORM, and I suspect the issue is due to a missing references() call on the foreign key. Here’s the relevant part of the schema:


2 Replies
Hey @Nabeel Rahman ! It looks like it's related to multiple relations between the same two tables.
Try adding
relationName
where needed.
https://orm.drizzle.team/docs/relations#disambiguating-relationsDrizzle ORM - Relations
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
yeah, it was same issue, i had resolved, thanks