Skip to content

Instantly share code, notes, and snippets.

@cometkim
Created October 17, 2019 04:43
Show Gist options
  • Save cometkim/d21e46b01eaed40095ae8d9f277cbc9f to your computer and use it in GitHub Desktop.
Save cometkim/d21e46b01eaed40095ae8d9f277cbc9f to your computer and use it in GitHub Desktop.
Prisma 1 directive mock declarations
directive @db(name: String!) on FIELD_DEFINITION | OBJECT
directive @relationTable on OBJECT
directive @id on FIELD_DEFINITION
directive @unique on FIELD_DEFINITION
directive @createdAt on FIELD_DEFINITION
directive @updatedAt on FIELD_DEFINITION
directive @default(value: Any) on FIELD_DEFINITION
directive @relation(link: RelationLink! = TABLE, name: String) on FIELD_DEFINITION
enum RelationLink {
INLINE
TABLE
}
scalar Any
scalar DateTime
scalar Json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment