This commit is contained in:
seb
2026-07-31 07:22:34 +02:00
parent 02bca8e236
commit bbd69e8c7c
29 changed files with 144 additions and 87 deletions

View File

@@ -42,13 +42,16 @@ WHERE id = @id
export const LIST = `
SELECT
id,
root_category_id AS rootCategoryId,
default_language_id AS languageId,
taxrate AS taxrateId,
reducedtaxrate AS reducedtaxrateId,
taxfreerate AS taxfreerateId
FROM company
c.id,
c.name,
c.root_category_id AS rootCategoryId,
c.default_language_id AS languageId,
c.taxrate,
c.reducedtaxrate,
c.taxfreerate
FROM company c
INNER JOIN companyuser cu ON cu.company_id = c.id
WHERE cu.google_auth_id = @authId
`;
export const DELETE = `