From 97b6de6aa437f7a913a33b9e6aa18a919faf2caf Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Thu, 12 Apr 2018 16:31:01 -0400 Subject: a whole bunch of things that should be in their own commits --- backend/database/datamodel.graphql | 1 - backend/database/prisma.yml | 4 ---- backend/database/seed.graphql | 24 ------------------------ 3 files changed, 29 deletions(-) delete mode 100644 backend/database/seed.graphql (limited to 'backend/database') diff --git a/backend/database/datamodel.graphql b/backend/database/datamodel.graphql index 43ae403..9465524 100644 --- a/backend/database/datamodel.graphql +++ b/backend/database/datamodel.graphql @@ -5,7 +5,6 @@ enum Permission { ITEMUPDATE ITEMDELETE PERMISSIONUPDATE - NUKE } type User { diff --git a/backend/database/prisma.yml b/backend/database/prisma.yml index 8f4cbe1..9782b52 100644 --- a/backend/database/prisma.yml +++ b/backend/database/prisma.yml @@ -11,10 +11,6 @@ disableAuth: true # the file path pointing to your data model datamodel: datamodel.graphql -# uncomment the following two lines to seed your service with initial data -# seed: -# import: seed.graphql - # cluster: ${env:PRISMA_CLUSTER} # cluster: local diff --git a/backend/database/seed.graphql b/backend/database/seed.graphql deleted file mode 100644 index 5779328..0000000 --- a/backend/database/seed.graphql +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - createUser(data: { - email: "developer@example.com" - password: "$2a$10$hACwQ5/HQI6FhbIISOUVeusy3sKyUDhSq36fF5d/54aAdiygJPFzm" # plaintext password: "nooneknows" - name: "Sarah" - posts: { - create: [{ - title: "Hello World" - text: "This is my first blog post ever!" - isPublished: true - }, { - title: "My Second Post" - text: "My first post was good, but this one is better!" - isPublished: true - }, { - title: "Solving World Hunger" - text: "This is a draft..." - isPublished: false - }] - } - }) { - id - } -} \ No newline at end of file -- cgit v1.3