-
Notifications
You must be signed in to change notification settings - Fork 291
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
Static Host Catalog #51
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're on the right track. we should discuss the interfaces of iam.Resource and iam.Clonable -> perhaps they need to move into internal/db?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
// static_host_catalog_id is the public_id of the owning | ||
// static_host_catalog and must be set. | ||
// @inject_tag: gorm:"not_null" | ||
string static_host_catalog_id = 6; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we were using join tables for this kind of thing rather than embedding?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A join table is normally used only for many-to-many relationships. In this case, a host catalog can have many host sets but a host set can only belong to one host catalog. So this is the normal way to do that.
I would appreciate early feedback from everyone!
TODO