taskcafe/internal/db/models.go

28 lines
663 B
Go
Raw Normal View History

2020-04-10 04:40:22 +02:00
// Code generated by sqlc. DO NOT EDIT.
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"`
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-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
}