2020-04-10 04:40:22 +02:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
|
2020-07-05 01:02:57 +02:00
|
|
|
package db
|
2020-04-10 04:40:22 +02:00
|
|
|
|
|
|
|
import (
|
2020-04-20 05:02:55 +02:00
|
|
|
"database/sql"
|
2020-04-10 04:40:22 +02:00
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/google/uuid"
|
|
|
|
)
|
|
|
|
|
2022-05-06 23:41:52 +02:00
|
|
|
type AccessToken struct {
|
|
|
|
Token string `json:"token"`
|
2021-04-29 04:32:19 +02:00
|
|
|
UserID uuid.UUID `json:"user_id"`
|
|
|
|
ExpiresAt time.Time `json:"expires_at"`
|
2022-05-06 23:41:52 +02:00
|
|
|
CreatedAt time.Time `json:"created_at"`
|
2020-06-21 00:49:11 +02:00
|
|
|
}
|
|
|
|
|
2020-04-10 04:40:22 +02:00
|
|
|
type UserAccount struct {
|
2022-05-06 23:41:52 +02:00
|
|
|
UserID uuid.UUID `json:"user_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
Fullname string `json:"fullname"`
|
|
|
|
Username string `json:"username"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
PasswordHash string `json:"password_hash"`
|
|
|
|
AvatarUrl sql.NullString `json:"avatar_url"`
|
2020-04-10 04:40:22 +02:00
|
|
|
}
|