Mapped column name and relation with the original name
Hi, I am taking over an old project and have found an issue, I'm not sure if I should file it as a bug: I have two MySql tables here is the oversimplified version:
events- id- artistartists- id
events- id- artistartists- id
In my drizzle schema I have mapped the events table this way:
This results in an error when I query the table using
{with: { artist: true}
{with: { artist: true}
It throws
Duplicate column name 'artist'
Duplicate column name 'artist'
If I simply use a different name for the relation everything works as expected. I just wanted to know wether this is expected or if I should post it as an issue.