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" import "time"
type UserEntity struct { type UserEntity struct {
Id int Id int64
CreatedAt time.Time CreatedAt time.Time
LastUpdated time.Time LastUpdated time.Time
Name string Name string
@ -12,8 +12,8 @@ type UserEntity struct {
} }
type RefreshTokenEntity struct { type RefreshTokenEntity struct {
Id int Id int64
Username string Username string
Token string Token string
ExpiresAt time.Time ExpiresAt time.Time
CreatedAt time.Time CreatedAt time.Time
@ -21,7 +21,7 @@ type RefreshTokenEntity struct {
} }
type RecipeEntity struct { type RecipeEntity struct {
Id int32 Id int64
CreatedAt time.Time CreatedAt time.Time
LastUpdated time.Time LastUpdated time.Time
Title string Title string

View File

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