Hi, I want to create a schema with a many-to-one association to be part of the key:
I have two entities user and node.
Node should use a combination of the user it belongs to + a start time as key:
User [id]
Node [user_id, start]
I tried adding key: true when registering the association, but it had not effect and even after looking into the source code I could not find anything like that.
Is this not possible yet with this library?
Composite keys might work. Not sure if the key syntax supports it though; You may need to pass an option like id: [user_id, start] but I've never tried it.
Hi, I want to create a schema with a many-to-one association to be part of the key: I have two entities user and node. Node should use a combination of the user it belongs to + a start time as key:
I tried adding
key: true
when registering the association, but it had not effect and even after looking into the source code I could not find anything like that. Is this not possible yet with this library?