Skip to main content

Type Alias: DeleteAllergenDtoPayload

@arolariu/website


@arolariu/website / types/invoices/Allergen / DeleteAllergenDtoPayload

Type Alias: DeleteAllergenDtoPayload

DeleteAllergenDtoPayload = object

Defined in: types/invoices/Allergen.ts:136

DTO payload for deleting an allergen entry.

Remarks

Allergens are identified by name for deletion since they don't have a separate GUID identifier. The name must exactly match the existing allergen entry (case-sensitive).

Cascade Behavior: Deleting an allergen removes it from the master list but does NOT remove references from products. Products retain historical allergen data for audit purposes.

Example

const deletePayload: DeleteAllergenDtoPayload = {
name: "Gluten"
};

See

Allergen for the entity being deleted

Properties

name

readonly name: string

Defined in: types/invoices/Allergen.ts:138

The name of the allergen.

// was this page useful?