mobility icon indicating copy to clipboard operation
mobility copied to clipboard

Allow composite foreign keys

Open mival opened this issue 1 year ago • 0 comments

Context

Using table backend on active record (postgres)

Expected Behavior

In translation method allow usage of compound foreign key, eg. article_type, article_id to eliminate usage extra unique column

Actual Behavior

Method crash on

  1. symbolizing keys
  2. joining table

Possible Fix

  1. check foreign key option for array, symbolize each item
  2. check foreign key option for array create JOIN with AND SQL

mival avatar Dec 04 '23 17:12 mival