This commit is contained in:
seb
2026-07-31 00:20:20 +02:00
parent 6bdac7e543
commit af8ef0a788
23 changed files with 421 additions and 123 deletions

View File

@@ -14,3 +14,9 @@ SELECT id, parent_id, sort
FROM tree
ORDER BY sort, id
`;
export const CREATE = `
INSERT INTO category (parent_id, sort)
OUTPUT INSERTED.id
VALUES (@parentId, @sort)
`;