Release 202507061859

This commit is contained in:
pluja
2025-07-06 18:59:23 +00:00
parent 7a294cb0a1
commit 28b84a7d9b
11 changed files with 120 additions and 61 deletions

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Service" ADD COLUMN "commentSectionMessage" TEXT;

View File

@@ -407,6 +407,7 @@ model Service {
affiliatedUsers ServiceUser[] @relation("ServiceUsers")
strictCommentingEnabled Boolean @default(false)
commentSectionMessage String?
@@index([listedAt])
@@index([approvedAt])

View File

@@ -721,6 +721,7 @@ const generateFakeService = (users: User[]) => {
{ probability: 0.33 }
),
strictCommentingEnabled: faker.datatype.boolean(0.33333),
commentSectionMessage: faker.helpers.maybe(() => faker.lorem.paragraph(), { probability: 0.3 }),
} as const satisfies Prisma.ServiceCreateInput
}