X Tutup
Skip to content

WIP refactor!: gorm V2#644

Open
remyoster wants to merge 7 commits intopathwar:masterfrom
remyoster:dev/roster/gorm_v2
Open

WIP refactor!: gorm V2#644
remyoster wants to merge 7 commits intopathwar:masterfrom
remyoster:dev/roster/gorm_v2

Conversation

@remyoster
Copy link

@remyoster remyoster commented Mar 11, 2021

No description provided.

@moul
Copy link
Member

moul commented Mar 11, 2021

except for the few comments, it looks very good!

@remyoster remyoster force-pushed the dev/roster/gorm_v2 branch 3 times, most recently from 9f7081f to 501c021 Compare March 12, 2021 13:25
@remyoster remyoster force-pushed the dev/roster/gorm_v2 branch from 501c021 to 7854dee Compare March 12, 2021 13:29
Comment on lines +189 to +193
// belongs to
int64 user_id = 200 [(gogoproto.customname) = "UserID", (gogoproto.moretags) = "gorm:\"index\""];
User user = 201 [(gogoproto.moretags) = "gorm:\"foreignKey:UserID;references:ID\""];
// has one
User active_user = 202 [(gogoproto.moretags) = "gorm:\"foreignKey:ActiveTeamMemberID;references:ID\""];
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ForeignKey constraint fails here -> need to investigate or
maybe need to rethink the model association and use a enum to mark a team_member as the active one ?

@remyoster remyoster force-pushed the dev/roster/gorm_v2 branch 2 times, most recently from 8ed5714 to 73d0b40 Compare March 31, 2021 09:36
@moul moul mentioned this pull request Apr 15, 2021
@Z-a-r-a-k-i Z-a-r-a-k-i mentioned this pull request Apr 25, 2021
@moul moul force-pushed the dev/roster/gorm_v2 branch from d081dbc to ebcd571 Compare June 27, 2021 10:28
@trafico-bot trafico-bot bot added the 🚧 WIP Still work-in-progress, please don't review and don't merge label Jun 27, 2021
@moul-bot moul-bot force-pushed the dev/roster/gorm_v2 branch 2 times, most recently from a35ed7a to baec25f Compare February 4, 2022 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change 🚧 WIP Still work-in-progress, please don't review and don't merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

X Tutup