feat: added sqlc and binded schema.sql as postgresql's init script

This commit is contained in:
2025-06-14 17:36:19 +03:00
parent 7b03056203
commit db8b7c0372
4 changed files with 64 additions and 1 deletions

2
sqlc/query.sql Normal file
View File

@@ -0,0 +1,2 @@
-- name: CreateUser :one
INSERT INTO user (username, verified, banned, registration_date) VALUES ($1, false, false, NOW()) RETURNING id, username, verified, banned, registration_date;