Moved entity id's to int64 that the sql driver returns

This commit is contained in:
James Tombleson 2024-04-21 08:58:32 -07:00
parent 029710ad31
commit 5b2ff607b9
2 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ package domain
import "time"
type UserEntity struct {
Id int
Id int64
CreatedAt time.Time
LastUpdated time.Time
Name string
@ -12,8 +12,8 @@ type UserEntity struct {
}
type RefreshTokenEntity struct {
Id int
Username string
Id int64
Username string
Token string
ExpiresAt time.Time
CreatedAt time.Time
@ -21,7 +21,7 @@ type RefreshTokenEntity struct {
}
type RecipeEntity struct {
Id int32
Id int64
CreatedAt time.Time
LastUpdated time.Time
Title string

View File

@ -133,7 +133,7 @@ func (ur UserRepository) processRows(rows *sql.Rows) []domain.UserEntity {
items := []domain.UserEntity{}
for rows.Next() {
var id int
var id int64
var name string
var hash string
var createdAt time.Time