📜  prisma orm type import - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:58.552000             🧑  作者: Mango

代码示例1
Given a prisma schema like this:

enum UserCategory {
  BASIC
  ADMIN
}

Import the enum as a type as follows:

import { UserCategory } from '@prisma/client'