Skip to content

Add support to @nanoid #923

@dikyarga

Description

@dikyarga

Description and expected behavior

I got error when using @nanoid, @nanoid is supported by Prisma since v4.9.0

sample code:

model Brand {
  id          String      @id @default(nanoid(3))
}

Screenshots

CleanShot 2024-01-03 at 05 07 13@2x

Environment (please complete the following information):

  • ZenStack version: [1.6.0]
  • Prisma version: [5.3.1]
  • Database type: [SQLite]

Additional context

Link to Prisma issue: prisma/prisma#14004

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions