Use uuid.UUID everywhere and have postgres generate ids
This commit is contained in:
@ -5,6 +5,8 @@ package postgres
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
const linkBudgetToUser = `-- name: LinkBudgetToUser :one
|
||||
@ -15,8 +17,8 @@ RETURNING user_id, budget_id
|
||||
`
|
||||
|
||||
type LinkBudgetToUserParams struct {
|
||||
UserID string
|
||||
BudgetID string
|
||||
UserID uuid.UUID
|
||||
BudgetID uuid.UUID
|
||||
}
|
||||
|
||||
func (q *Queries) LinkBudgetToUser(ctx context.Context, arg LinkBudgetToUserParams) (UserBudget, error) {
|
||||
|
Reference in New Issue
Block a user