feat: find users related to specific admin repo

This commit is contained in:
2025-06-06 11:58:20 +02:00
parent 34c152a459
commit ed33d03fda
2 changed files with 40 additions and 0 deletions

View File

@ -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