You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am uncertain whether this is by design and not currently supported (in which case my issue would be an enhancement request) or a bug (as there is nothing in the documentation explicitly stating that multi-level nested structs are not supported for the embed tag).
The text was updated successfully, but these errors were encountered:
When embedding structs, I have been following this guide: https://bun.uptrace.dev/guide/models.html#embedding-structs
This works great and enables to have concatenated column names given the struct as follows (per official example):
producing the following table:
However, when attempting to create multi-level nested struct embeds like so:
bun produces the following table:
which is ambiguous as to which permission is going to be persisted as part of the model (Users, Profiles, Roles?).
I would have expected bun to produce the following table:
I am uncertain whether this is by design and not currently supported (in which case my issue would be an enhancement request) or a bug (as there is nothing in the documentation explicitly stating that multi-level nested structs are not supported for the embed tag).
The text was updated successfully, but these errors were encountered: