Replies: 1 comment
-
I ended up just adding a column per each table that will have a vendor id. I think this is just the simplest approach which do not overcomplicate queries later on. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a table to which I need to add external provider IDs. I was hoping to set a field to JSON and defining it as the struct I will be passing it. And I thought rel would do the marshaling for me when storing it.
But when I do a FindAll it tries to load this information as associated records, which fail to load. I was hoping it would marshal/unmarshal for me. Because preloading this data normally is a tad painful. Since it's 1 -> many.
It this a possible use-case or should I just split them into separate tables and have references back and forth?
For context:
Beta Was this translation helpful? Give feedback.
All reactions