create foreign key-ish relationship between synth namespaces #428
Replies: 1 comment
-
looks like my root issue is known and being worked on here: #270 |
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
-
Hi there, I have a situation where I want to generate uuids on an object in namespace
A
collectionuser
.I then want to be able to reference those values in namespace
B
collectionuser_info
to make sureB.user_info.user_uuid
is unique and matches a real value inA.user.uuid
Is it possible to create this relationship with the
same_as
type andref
property?An alternative approach I see is to supply both UUID generators from a datasource (json file is fine) so I can control the UUID values closely, but as the db column types are
uuid
that can't be done without casting from the strings in the json file. Is there a way to configure a cast on thedatasource
type? Or even provide a parameter to thestring
type when its configured asuuid
(I like that less than casting from datasource, but hey)I know its a bit unorthodox, but wanted to raise the questions anyway as I think they might have some value. Thanks for reading!
Beta Was this translation helpful? Give feedback.
All reactions