This commit is contained in:
seb
2026-07-31 00:35:02 +02:00
parent a47c598f76
commit fdd9e684d8
10 changed files with 169 additions and 2 deletions

View File

@@ -20,3 +20,14 @@ INSERT INTO category (parent_id, sort)
OUTPUT INSERTED.id
VALUES (@parentId, @sort)
`;
export const UPDATE_PARENT_ID = `
UPDATE category
SET parent_id = @parentId
WHERE id = @id
`;
export const DELETE = `
DELETE FROM category
WHERE id = @id
`;