Skip to content

Commit 88f1115

Browse files
author
Darko Djalevski
authored
Merge pull request #20 from inplayer-org/user-structure
User structure
2 parents 3b4444d + 31313d9 commit 88f1115

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

BankAccount/pkg/entities/user.go

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
package entities
22

3+
import "time"
34

45
type User struct {
5-
Id string `db:"id"`
6-
FullName *FullName `db:"full_name"`
7-
Email string `db:"email"`
8-
PhoneNumber string `db:"phone_number"`
9-
Created string `db:"created_at"`
10-
Updated string `db:"updated_at"`
11-
6+
Id int `db:"id"`
7+
FullName string `db:"full_name"`
8+
Email string `db:"email"`
9+
PhoneNumber string `db:"phone_number"`
10+
CreatedAt time.Time `db:"created_at"`
11+
UpdatedAt time.Time `db:"updated_at"`
1212
}
1313

14-
type FullName struct {
15-
FirstName string
16-
LastName string
17-
}
14+
//type FullName struct {
15+
// FirstName string
16+
// LastName string
17+
//}

0 commit comments

Comments
 (0)