There is some missing information in the current schema to allow customers to order directly from the kiosk. We need to add serve type and contact information. Let's expand the schema to add these features.
Let's understand the new schema additions:
🍽️ServeType: An enum defining how the customer wants their order - for here, take out, or delivery
📱phone: Customer's phone number with validation using isPhoneNumber for pickup notifications
📋LightIcecreamOrder: Updated to include serveType for display in order lists and dashboards
Next, we need to add dictionary entries for the new fields and enum values:
Next, let's add serveType and phone selection to the order form template.
Finally, let's display serveType on the order card to clearly show whether the customer's order is for here or take out, etc.