Skip to content

Instantly share code, notes, and snippets.

@lastmjs
Created March 12, 2018 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lastmjs/e0a0f296cceec242592ccd32ff3e2ea6 to your computer and use it in GitHub Desktop.
Save lastmjs/e0a0f296cceec242592ccd32ff3e2ea6 to your computer and use it in GitHub Desktop.
# All types defined here will be fed through the Prisma generation process
# Essentially, all of these types become database tables
type User {
id: ID! @unique
createdAt: DateTime! @private
updatedAt: DateTime! @private
email: String! @unique @userOwns(field: "id")
password: String! @private
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment