Codewise
Courses
My learning
Ideas
Leaderboard
YouTube
Courses
My learning
Ideas
Leaderboard
YouTube
Sign in
internal/auth/authdb/models.go · Payments Backend: Go Microservices | Codewise
Payments Backend: Go Microservices
payments
/
internal
/
auth
/
authdb
/
models.go
main
models.go
32 lines, 538 B
Raw
1
// Code generated by sqlc. DO NOT EDIT.
2
// versions:
3
// sqlc v1.31.1
4
5
package
authdb
6
7
import
(
8
"
time
"
9
10
"
github.com/google/uuid
"
11
"
github.com/jackc/pgx/v5/pgtype
"
12
)
13
14
type
RefreshToken
struct
{
15
ID
uuid
.
UUID
16
UserID
uuid
.
UUID
17
TokenHash []
byte
18
FamilyID
uuid
.
UUID
19
ParentID
*
uuid
.
UUID
20
RotatedAt
pgtype
.
Timestamptz
21
RevokedAt
pgtype
.
Timestamptz
22
ExpiresAt
time
.
Time
23
CreatedAt
time
.
Time
24
}
25
26
type
User
struct
{
27
ID
uuid
.
UUID
28
Email
string
29
PasswordHash
string
30
CreatedAt
time
.
Time
31
Roles []
string
32
}