moved the project to this repository

This commit is contained in:
Timmelmann
2026-08-08 14:38:42 +02:00
commit 33e8a53dc1
12 changed files with 678 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
-- name: CreateUser :one
INSERT INTO users (id, created_at, updated_at, name, api_key)
VALUES ($1, $2, $3, $4, encode(sha256(random()::text::bytea), 'hex'))
RETURNING *;
-- name: GetUser :one
SELECT * FROM users WHERE api_key = $1;