-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature request
Is your feature request related to a problem? Please describe.
Currently, Prisma
uuid(7)
isn't supported.
model Agency {
id String @id @default(uuid(7)) @db.Char(36)
name String @unique
active Boolean @default(true)
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @updatedAt @map("updated_at")
users User[]
@@map("agency")
}
~/Sites/nestjs (master)$ npx @snaplet/seed init prisma/seed
Welcome to @snaplet/seed! Snaplet Seed populates your database with realistic, production-like mock data ✨
✔ Installed the dependencies: `@snaplet/copycat`
✔ Seed configuration saved to file:///Users/user/Sites/nestjs/prisma/seed/seed.config.ts
✖ Database analysis failed
GetConfigError: Prisma schema validation - (get-config wasm)
Error code: P1012
error: Error parsing attribute "@default": The `uuid` function does not take any argument. Consider changing this default to `uuid()`.
--> schema.prisma:11
|
10 | model Agency {
11 | id String @id @default(uuid(7)) @db.Char(36)
Describe the solution you'd like
I'd like the uuid version 7
support.
Describe alternatives you've considered
I don't see a way around this.
Additional context
Installed dependencies:
"@nestjs/common": "^10.4.1",
"@nestjs/core": "^10.4.1",
"@nestjs/mapped-types": "*",
"@nestjs/platform-express": "^10.4.1",
"@nestjs/swagger": "^7.4.0",
"@nestjs/typeorm": "^10.0.2",
"prisma": "^5.19.0"
"@prisma/client": "^5.19.0",
"@nestjs/cli": "^10.4.4",
"@nestjs/schematics": "^10.1.4",
"@nestjs/testing": "^10.4.1"
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request