Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add embeddedIndexPrefix in addition to embeddedPrefix #5060

Closed
dorfire opened this issue Feb 9, 2022 · 2 comments
Closed

Add embeddedIndexPrefix in addition to embeddedPrefix #5060

dorfire opened this issue Feb 9, 2022 · 2 comments
Assignees
Labels
type:feature_request feature request

Comments

@dorfire
Copy link

dorfire commented Feb 9, 2022

Describe the feature

Currently, GORM supports embedding structs, which prepends a prefix to all COLUMN names.
I'd like to be able to embed a struct and also utilize its indices.

Motivation

I'd like to also create multiple indices from the embedded struct, for each table, but keep all column names identical.

@github-actions github-actions bot added the type:feature_request feature request label Feb 9, 2022
@ronisec
Copy link

ronisec commented May 18, 2022

Any update on this?

@jinzhu
Copy link
Member

jinzhu commented May 18, 2022

end up with #5269

@jinzhu jinzhu closed this as completed May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature_request feature request
Projects
None yet
Development

No branches or pull requests

3 participants