feat: Add email field to end_customers table and UI screens
All checks were successful
Staging Build / build (push) Successful in 2m36s

This commit is contained in:
DanielS
2026-06-25 02:29:33 +02:00
parent b9e6559bff
commit b537ca50cf
7 changed files with 38 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ export type EndCustomerFormData = {
street?: string
zip?: string
city?: string
email?: string
}
// ─── Lesen ───────────────────────────────────────────────────────────────────
@@ -72,6 +73,7 @@ export async function createEndCustomer(formData: EndCustomerFormData): Promise<
street: formData.street || null,
zip: formData.zip || null,
city: formData.city || null,
email: formData.email || null,
}])
.select()
.single()
@@ -101,6 +103,7 @@ export async function updateEndCustomer(id: string, formData: EndCustomerFormDat
street: formData.street || null,
zip: formData.zip || null,
city: formData.city || null,
email: formData.email || null,
})
.eq('id', id)
@@ -134,6 +137,7 @@ export async function anonymizeEndCustomer(id: string): Promise<void> {
street: null,
zip: null,
city: null,
email: null,
is_anonymized: true,
})
.eq('id', id)