UNPKG

prisma-util

Version:

Prisma Util is an easy to use tool that merges multiple Prisma schema files, allows extending of models, resolves naming conflicts both manually and automatically and provides easy access to Prisma commands and timing reports. It's mostly a plug-and-play

12 lines (11 loc) 397 B
import Enum from "./enum.js"; import Model from "./model.js"; /** Abstract Creator that Model and Enum extend. */ export default abstract class AbstractCreator { /** Create a new model. */ abstract model(name: string): Model; /** Create a new enum. */ abstract enum(name: string): Enum; /** Build the schema into a string that can be parsed. */ abstract build(): string; }