feat: Add API endpoint to create storage spaces

This commit is contained in:
garionion (aider) 2025-02-28 21:46:13 +01:00
parent 081020b809
commit 699dca3328
2 changed files with 71 additions and 0 deletions

View file

@ -67,3 +67,6 @@ SELECT id, parent, location FROM storagespace WHERE parent = ?;
-- name: GetObjectsByStorageID :many
SELECT id, storagespace_id, name, description, serialnumber, created
FROM objects WHERE storagespace_id = ?;
-- name: CreateStorageSpace :exec
INSERT INTO storagespace (parent, location) VALUES (?, ?);