How to define polymorphic associations in a model?

Hi, I have a question related to polymorphic associations.

Let’s say my relational database has two models:

•	Comment
•	message
•	asset_id (uuid)
•	asset_type

and two Models (Video and Image).

A Comment can be associated with either a Video or an Image.

Using Metabase, I would like to set up my Comment model to understand that this is a polymorphic association. It seems that polymorphic associations are not natively supported. How could this be achieved?

Correct metabase doesn't work well with this kind of structure. You might find some hacks in comments here Support polymorphic foreign key relationships · Issue #1708 · metabase/metabase · GitHub