feat: Add API endpoint to create storage spaces
This commit is contained in:
parent
081020b809
commit
699dca3328
2 changed files with 71 additions and 0 deletions
|
@ -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 (?, ?);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue