Hey gang, does anyone know how I can define a nanoid field with prisma if I am using planetscale? From the
create-t3-stack
create-t3-stack
example:
model User { id String @id @default(cuid()) name String? email String? @unique emailVerified DateTime? image String? accounts Account[] sessions Session[]}
model User { id String @id @default(cuid()) name String? email String? @unique emailVerified DateTime? image String? accounts Account[] sessions Session[]}
Now let's say I want to generate a shareable URL that points to the user's profile, so I want to save an extra field on this schema similar to the
See prisma/prisma-engines#3556 for context. The missing piece we identified engines-side is migrate support (diffing, special handling of prisma-level defaults re: warnings). Maybe language tools, ...