Initial commit of Descrybe v2 without local scratch artifacts.

Drop one-shot tmp/axe scripts and agent i18n scratch so the Gitea tree is deployable.
This commit is contained in:
2026-08-09 22:47:43 +02:00
commit 8580c996c3
1285 changed files with 325780 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
-- name: GetCompanyByID :one
SELECT * FROM companies WHERE id = $1 LIMIT 1;
-- name: GetCompanyByLegacyID :one
SELECT * FROM companies WHERE legacy_company_id = $1 LIMIT 1;
-- name: CreateCompany :one
INSERT INTO companies (name, language, legacy_company_id)
VALUES ($1, $2, $3)
RETURNING *;
-- name: UpdateCompany :one
UPDATE companies
SET name = COALESCE($2, name),
language = COALESCE($3, language),
merge_products_by_gtin = COALESCE($4, merge_products_by_gtin),
updated_at = now()
WHERE id = $1
RETURNING *;
-- name: GetCompanySettings :one
SELECT * FROM company_settings WHERE company_id = $1 LIMIT 1;
-- name: UpsertCompanySettings :one
INSERT INTO company_settings (company_id, settings, updated_at)
VALUES ($1, $2, now())
ON CONFLICT (company_id) DO UPDATE
SET settings = EXCLUDED.settings, updated_at = now()
RETURNING *;