admin: add delete user with confirmation dialog
This commit is contained in:
@@ -7,6 +7,9 @@ SELECT * FROM user WHERE username = ? LIMIT 1;
|
||||
-- name: ListUsers :many
|
||||
SELECT * FROM user ORDER BY created_at DESC;
|
||||
|
||||
-- name: DeleteUser :exec
|
||||
DELETE FROM user WHERE id = ?;
|
||||
|
||||
-- name: CreateUser :one
|
||||
INSERT INTO user (id, username, password_hash)
|
||||
VALUES (?, ?, ?)
|
||||
|
||||
Reference in New Issue
Block a user