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:
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';
|
||||
Reference in new issue
Block a user