regen with sqlc 1.6.0

This commit is contained in:
Aaron Bieber 2021-01-17 15:50:56 -07:00
parent e5ad1e3fb3
commit dde07cb315

View File

@ -5,6 +5,7 @@ package db
import ( import (
"context" "context"
"encoding/json"
"time" "time"
"github.com/google/uuid" "github.com/google/uuid"
@ -22,7 +23,7 @@ RETURNING user_id, created_at, first_name, last_name, username, email, token, to
` `
type AuthUserParams struct { type AuthUserParams struct {
Crypt interface{} `json:"crypt"` Crypt string `json:"crypt"`
Username string `json:"username"` Username string `json:"username"`
} }
@ -309,13 +310,13 @@ WHERE user_id = $1 and
type SimilarEntriesParams struct { type SimilarEntriesParams struct {
UserID int64 `json:"user_id"` UserID int64 `json:"user_id"`
Similarity interface{} `json:"similarity"` Similarity string `json:"similarity"`
} }
type SimilarEntriesRow struct { type SimilarEntriesRow struct {
EntryID uuid.UUID `json:"entry_id"` EntryID uuid.UUID `json:"entry_id"`
Similarity interface{} `json:"similarity"` Similarity float32 `json:"similarity"`
Headline interface{} `json:"headline"` Headline json.RawMessage `json:"headline"`
Title string `json:"title"` Title string `json:"title"`
} }