This commit is contained in:
seb
2026-10-22 23:30:15 +02:00
parent e9b4ac5d79
commit d6e5da93cb
9 changed files with 42 additions and 1 deletions

View File

@@ -222,6 +222,12 @@ SET unit_id = @unitId, unitamount = @unitamount, updated_at = SYSUTCDATETIME()
WHERE id = @articleId
`;
export const TOUCH_UPDATED_AT = `
UPDATE article
SET updated_at = SYSUTCDATETIME()
WHERE id = @articleId
`;
export const CREATE = `
INSERT INTO article (company_id, sku, unit_id, unitamount, weight, track_stock)
OUTPUT INSERTED.id