Skip to content

Commit 6623a95

Browse files
authored
Merge pull request #41 from michu2k/feature/booking-status
Booking status
2 parents 22fe890 + 0b49e51 commit 6623a95

File tree

5 files changed

+27
-6
lines changed

5 files changed

+27
-6
lines changed

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nestjs-booking-system",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"license": "MIT",
55
"author": "Michał Strumpf",
66
"private": true,
@@ -78,9 +78,6 @@
7878
"typescript": "^5.9.2",
7979
"typescript-eslint": "^8.39.0"
8080
},
81-
"prisma": {
82-
"seed": "ts-node prisma/seed.ts"
83-
},
8481
"jest": {
8582
"moduleFileExtensions": [
8683
"js",

prisma.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from "prisma/config";
2+
3+
export default defineConfig({
4+
migrations: {
5+
seed: `ts-node prisma/seed.ts`
6+
}
7+
});
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-- AlterEnum
2+
-- This migration adds more than one value to an enum.
3+
-- With PostgreSQL versions 11 and earlier, this is not possible
4+
-- in a single migration. This can be worked around by creating
5+
-- multiple migrations, each migration adding only one value to
6+
-- the enum.
7+
8+
9+
ALTER TYPE "public"."BookingStatus" ADD VALUE 'NO_SHOW';
10+
ALTER TYPE "public"."BookingStatus" ADD VALUE 'EXPIRED';
11+
ALTER TYPE "public"."BookingStatus" ADD VALUE 'COMPLETED';

prisma/schema.dbml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,12 @@ Enum UserRole {
8282
}
8383

8484
Enum BookingStatus {
85-
CONFIRMED
8685
PENDING
86+
CONFIRMED
8787
CANCELLED
88+
NO_SHOW
89+
EXPIRED
90+
COMPLETED
8891
}
8992

9093
Enum ServiceStatus {

prisma/schema.prisma

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,12 @@ enum UserRole {
8888
}
8989

9090
enum BookingStatus {
91-
CONFIRMED
9291
PENDING
92+
CONFIRMED
9393
CANCELLED
94+
NO_SHOW
95+
EXPIRED
96+
COMPLETED
9497
}
9598

9699
enum ServiceStatus {

0 commit comments

Comments
 (0)