Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nestjs-booking-system",
"version": "1.1.0",
"version": "1.2.0",
"license": "MIT",
"author": "Michał Strumpf",
"private": true,
Expand Down Expand Up @@ -78,9 +78,6 @@
"typescript": "^5.9.2",
"typescript-eslint": "^8.39.0"
},
"prisma": {
"seed": "ts-node prisma/seed.ts"
},
"jest": {
"moduleFileExtensions": [
"js",
Expand Down
7 changes: 7 additions & 0 deletions prisma.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from "prisma/config";

export default defineConfig({
migrations: {
seed: `ts-node prisma/seed.ts`
}
});
11 changes: 11 additions & 0 deletions prisma/migrations/20250811112036_booking_status/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- AlterEnum
-- This migration adds more than one value to an enum.
-- With PostgreSQL versions 11 and earlier, this is not possible
-- in a single migration. This can be worked around by creating
-- multiple migrations, each migration adding only one value to
-- the enum.


ALTER TYPE "public"."BookingStatus" ADD VALUE 'NO_SHOW';
ALTER TYPE "public"."BookingStatus" ADD VALUE 'EXPIRED';
ALTER TYPE "public"."BookingStatus" ADD VALUE 'COMPLETED';
5 changes: 4 additions & 1 deletion prisma/schema.dbml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,12 @@ Enum UserRole {
}

Enum BookingStatus {
CONFIRMED
PENDING
CONFIRMED
CANCELLED
NO_SHOW
EXPIRED
COMPLETED
}

Enum ServiceStatus {
Expand Down
5 changes: 4 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ enum UserRole {
}

enum BookingStatus {
CONFIRMED
PENDING
CONFIRMED
CANCELLED
NO_SHOW
EXPIRED
COMPLETED
}

enum ServiceStatus {
Expand Down