feat(back-end): email improvements
Some checks failed
Build, Test and Deploy / build-and-push (push) Has been cancelled
Build, Test and Deploy / deploy (push) Has been cancelled
Build, Test and Deploy / test-backend (push) Has been cancelled

This commit is contained in:
2026-02-27 12:09:37 +01:00
parent 6e52988cdd
commit 8e9afbf260
15 changed files with 506 additions and 159 deletions

1
db.sql
View File

@@ -468,6 +468,7 @@ CREATE TABLE IF NOT EXISTS orders
customer_id uuid REFERENCES customers (customer_id),
customer_email text NOT NULL,
customer_phone text,
preferred_language char(2) NOT NULL DEFAULT 'it',
-- Snapshot indirizzo/fatturazione (evita tabella addresses e mantiene storico)
billing_customer_type text NOT NULL CHECK (billing_customer_type IN ('PRIVATE', 'COMPANY')),