Moved entity id's to int64 that the sql driver returns
This commit is contained in:
parent
029710ad31
commit
5b2ff607b9
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user