Use PostgreSQL JSONB fields to store foreign ids on your models.
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool