Converts booking deletion to soft-delete + more robust cancellation (#581)

* Converts booking deletion to soft-delete + more robust cancellation

* Update pages/api/cancel.ts

infer type :)

Co-authored-by: Alex Johansson <[email protected]>

Co-authored-by: Alex Johansson <[email protected]>
Co-authored-by: Bailey Pumfleet <[email protected]>
This commit is contained in:
authored and GitHub committed 2021-09-13 09:57:56 +01:00
1 parent e48318a34b
commit 8ee68e2ace
4 files changed
+49 -19

No files matched your search

@@ -0,0 +1,5 @@
-- CreateEnum
CREATE TYPE "BookingStatus" AS ENUM ('cancelled', 'accepted', 'rejected', 'pending');
-- AlterTable
ALTER TABLE "Booking" ADD COLUMN "status" "BookingStatus" NOT NULL DEFAULT E'accepted';