feat: add profile_picture field to user table

This commit is contained in:
2025-05-24 17:17:16 +02:00
parent b6d365cc48
commit 9b0de4512b
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,11 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE users
ADD profile_picture TEXT;
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
ALTER TABLE users
DROP COLUMN profile_picture;
-- +goose StatementEnd

View File

@ -14,3 +14,8 @@ SELECT * FROM users WHERE email = $1 LIMIT 1;
-- name: FindUserId :one -- name: FindUserId :one
SELECT * FROM users WHERE id = $1 LIMIT 1; SELECT * FROM users WHERE id = $1 LIMIT 1;
-- name: UpdateProfilePicture :exec
UPDATE users
SET profile_picture = $1
WHERE id = $2;