Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Real-Time Order Tracking with Status Updates and ETA + ORDER BACKEND #273

Merged
merged 6 commits into from
Nov 9, 2024

Conversation

shubhagarwal1
Copy link
Contributor

FIX: #267

Real-Time Order Tracking with Status Updates and ETA

Overview

This module introduces real-time order tracking, allowing customers to:

  • Place Orders: Create new orders with a specified ETA.
  • Track Order Status: Monitor the current status of their orders.
  • View Estimated Time of Arrival (ETA): Receive real-time updates on when to expect delivery.

Prisma Schema Changes

Order Model

The Order model tracks customer orders with details such as the dish ordered, the order status, and the ETA.

model Order {
  id                     String   @id @default(uuid()) @map("_id")
  customerId             String
  customer               Customer @relation(fields: [customerId], references: [id])
  
  dishId                 String
  dish                   Dish     @relation(fields: [dishId], references: [id])
  
  status                 OrderStatus @default(PENDING)
  estimatedTimeOfArrival DateTime

  createdAt              DateTime @default(now())
  updatedAt              DateTime @updatedAt
}

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Thank you for contributing to this project, your support is much appreciated.

Stay awesome! 😎

@Vimall03 Vimall03 merged commit 3376bfd into Vimall03:main Nov 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Real-Time Order Tracking with Status Updates and ETA
2 participants