Skip to content

Commit

Permalink
Updated Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
joey-tsai committed Sep 25, 2023
1 parent c9eee10 commit b348f5c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions api/src/model/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type ExampleGiftInput struct {

type User struct {
gorm.Model
Email string `binding:"required, email"`
FirstName string `binding:"required"`
LastName string `binding:"required"`
Password string `binding:"required" valid:"length(6|20)"`
Email string `binding:"email"`
FirstName string
LastName string
Password string `valid:"length(6|20)"`
}

type UserInput struct {
Expand All @@ -30,7 +30,7 @@ type UserInput struct {

type Customer struct {
gorm.Model
UserID uint `binding:"required"`
UserID uint
//GiftCollections []ExampleGiftCollection
//GiftRequests []ExampleGiftRequests
}
Expand All @@ -43,7 +43,7 @@ type CustomerInput struct {

type Admin struct {
gorm.Model
UserID uint `binding:"required"`
UserID uint
}

type AdminInput struct {
Expand Down

0 comments on commit b348f5c

Please sign in to comment.