Skip to content

Commit

Permalink
Merge pull request #206 from NetSepio/rushikesh-auth
Browse files Browse the repository at this point in the history
update user table
  • Loading branch information
Rushikeshnimkar authored Oct 12, 2024
2 parents 68a5dbb + a33039c commit 1c2db0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/authenticate/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type AuthenticateRequest struct {
Message string `json:"message" binding:"omitempty"`
AccessToken string `json:"accessToken" binding:"omitempty"`
IdToken string `json:"idToken" binding:"omitempty"` // to be pass in bearer token [ AUTHORIZATION KEY ]
ChainName string `json:"chain_name" binding:"required"`
ChainName string `json:"chainName" binding:"required"`
}
type AuthenticateRequestNoSign struct {
FlowId string `json:"flowId" binding:"required"`
Expand Down
1 change: 1 addition & 0 deletions models/Migrate/migrate_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type User struct {
Country string
Feedbacks []UserFeedback
EmailId string `gorm:"type:text;unique"`
ChainName string `json:"chainName,omitempty"`
}

// TODO: Make relations for field `relatedRoleId`
Expand Down
1 change: 1 addition & 0 deletions models/User.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type User struct {
Country string `json:"country,omitempty"`
Feedbacks []UserFeedback `gorm:"foreignkey:UserId" json:"userFeedbacks"`
EmailId *string `json:"emailId,omitempty"`
ChainName string `json:"chainName,omitempty"`
}

type TStripePiType string
Expand Down

0 comments on commit 1c2db0c

Please sign in to comment.