feat: Add name field to storage space and create dedicated storage page
This commit is contained in:
parent
699dca3328
commit
9d2f8e27c5
6 changed files with 255 additions and 115 deletions
|
@ -56,17 +56,17 @@ INSERT INTO pictures (user_id, storagespace_id, object_id, event_id, check_in_id
|
|||
VALUES (?, ?, ?, ?, ?, ?, ?, ?);
|
||||
|
||||
-- name: GetAllStorageSpaces :many
|
||||
SELECT id, parent, location FROM storagespace;
|
||||
SELECT id, parent, location, name FROM storagespace;
|
||||
|
||||
-- name: GetStorageSpaceByID :one
|
||||
SELECT id, parent, location FROM storagespace WHERE id = ?;
|
||||
SELECT id, parent, location, name FROM storagespace WHERE id = ?;
|
||||
|
||||
-- name: GetChildStorageSpaces :many
|
||||
SELECT id, parent, location FROM storagespace WHERE parent = ?;
|
||||
SELECT id, parent, location, name 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 (?, ?);
|
||||
INSERT INTO storagespace (parent, location, name) VALUES (?, ?, ?);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue