Skip to content

Commit

Permalink
feat: add new team type struct
Browse files Browse the repository at this point in the history
  • Loading branch information
OtavioSC committed Aug 8, 2023
1 parent d7a3ed8 commit 393b0d7
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion schemas/teams.go
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
package schemas
package schemas

import (
"time"

"gorm.io/gorm"
)

type Team struct {
gorm.Model
Name string
}

type TeamResponse struct {
ID uint `json:"id"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt time.Time `json:"deteledAt,omitempty"`
Name string `json:"name"`
}

0 comments on commit 393b0d7

Please sign in to comment.