add update queries
This commit is contained in:
parent
bf14e74520
commit
908aac5ae9
@ -1074,3 +1074,9 @@ VALUES ($1, $2, $3, $4, $5) RETURNING id;
|
||||
|
||||
-- name: GetAllTgAccounts :many
|
||||
SELECT * FROM tgAccounts WHERE Deleted = false;
|
||||
|
||||
-- name: UpdateStatusTg :exec
|
||||
UPDATE tgAccounts SET Status = $1 WHERE id = $2;
|
||||
|
||||
-- name: SoftDeleteTgAccount :exec
|
||||
UPDATE tgAccounts SET Deleted = true WHERE id = $1;
|
Loading…
Reference in New Issue
Block a user