feat: find users related to specific admin repo
This commit is contained in:
@ -1,6 +1,9 @@
|
||||
-- name: FindAllUsers :many
|
||||
SELECT * FROM users;
|
||||
|
||||
-- name: FindAdminUsers :many
|
||||
SELECT * FROM users WHERE created_by = $1;
|
||||
|
||||
-- name: InsertUser :one
|
||||
INSERT INTO users (
|
||||
email, full_name, password_hash, is_admin, created_by
|
||||
|
Reference in New Issue
Block a user