summaryrefslogtreecommitdiffstats
path: root/backend/database
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-04-12 16:31:01 -0400
committerWes Bos <wesbos@gmail.com>2018-04-12 16:31:01 -0400
commit97b6de6aa437f7a913a33b9e6aa18a919faf2caf (patch)
tree431e12a535baf1d2ad59601ee7c5e8084ae7a263 /backend/database
parentd22616d5a675f5a381c741784333151255713b45 (diff)
a whole bunch of things that should be in their own commits
Diffstat (limited to 'backend/database')
-rw-r--r--backend/database/datamodel.graphql1
-rw-r--r--backend/database/prisma.yml4
-rw-r--r--backend/database/seed.graphql24
3 files changed, 0 insertions, 29 deletions
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