Added Functionality To PowerItem Endpoint

TODO: Change "addMultiple" to not require a map. That only exists so I could import easily from my old project.
This commit is contained in:
Annika Merris 2024-01-28 13:57:25 -05:00
parent d52d9968ba
commit 1420b14565
7 changed files with 373 additions and 95 deletions

View file

@ -14,6 +14,24 @@ SELECT
FROM
powerItem;
-- GetAllByType finds all items of a specific type.
-- name: GetAllByType :many
SELECT
id,
itemType,
iconURL,
itemName,
minItemPower,
maxItemPower,
rarity,
origin,
tooltip,
isEventItem
FROM
powerItem
WHERE
itemType = pggen.arg('itemType');
-- FindByID finds items by the ID
-- name: FindByID :one
SELECT