{
  "$schema": "http://json-schema.org/schema",
  "$id": "NestPrismaSchematics",
  "title": "Prisma Support Schema",
  "type": "object",
  "description": "Add Prisma support to the NestJS application",
  "properties": {
    "datasourceProvider": {
      "type": "string",
      "default": "postgresql",
      "description": "Specifies the datasource provider for prisma init and docker.",
      "enum": ["postgresql", "mysql", "sqlite", "sqlserver", "mongodb"],
      "x-prompt": "Which datasource provider do you want to use for `prisma init`?"
    },
    "addDocker": {
      "type": "boolean",
      "description": "Create a Dockerfile and docker-compose.yaml.",
      "x-prompt": "Do you like to Dockerize your application? (Supports postgresql and mysql)"
    },
    "dockerNodeImageVersion": {
      "type": "string",
      "description": "Node version for the builder and runner image.",
      "default": "16"
    },
    "addPrismaService": {
      "type": "boolean",
      "description": "Create a Prisma service extending the Prisma Client and module."
    },
    "name": {
      "type": "string",
      "description": "The name for the Prisma service extending the Prisma Client and module.",
      "default": "Prisma"
    },
    "prismaVersion": {
      "type": "string",
      "description": "The Prisma version to be installed.",
      "default": "latest"
    },
    "skipInstall": {
      "type": "boolean",
      "description": "Skip installing dependency packages.",
      "default": false
    },
    "skipPrismaInit": {
      "type": "boolean",
      "description": "Skip initializing Prisma.",
      "default": false
    }
  }
}
