summaryrefslogtreecommitdiffstats
path: root/graphcool-old/types.graphql
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-01-30 12:41:01 -0500
committerWes Bos <wesbos@gmail.com>2018-01-30 12:41:01 -0500
commitcd0b07b3adb36fb5ec098f9e511ab45d774fee7b (patch)
treea203e5010219ccea1acc6bbd2c0a4bcfa0a78615 /graphcool-old/types.graphql
parent0a1648bf47490b312169c531aeb51ef4725e8d2e (diff)
Move to Prisma Backend
Diffstat (limited to 'graphcool-old/types.graphql')
-rw-r--r--graphcool-old/types.graphql56
1 files changed, 0 insertions, 56 deletions
diff --git a/graphcool-old/types.graphql b/graphcool-old/types.graphql
deleted file mode 100644
index dcdd690..0000000
--- a/graphcool-old/types.graphql
+++ /dev/null
@@ -1,56 +0,0 @@
-# The following types define the data model of the example service
-# based on which the GraphQL API is generated
-
-type File @model {
- contentType: String!
- createdAt: DateTime!
- id: ID! @isUnique
- item: Item @relation(name: "Photo")
- name: String!
- secret: String! @isUnique
- size: Int!
- updatedAt: DateTime!
- url: String! @isUnique
-}
-
-type Item @model {
- createdAt: DateTime!
- description: String!
- fullPrice: Int
- id: ID! @isUnique
- image: File @relation(name: "Photo")
- order: Order @relation(name: "OrderOnItem")
- price: Int
- title: String!
- updatedAt: DateTime!
- user: User @relation(name: "CartItems")
-}
-
-type Order @model {
- amount: Int
- charge: String
- createdAt: DateTime!
- id: ID! @isUnique
- item: Item @relation(name: "OrderOnItem")
- token: String
- updatedAt: DateTime!
- user: User @relation(name: "OrderOnUser")
-}
-
-type User @model {
- createdAt: DateTime!
- email: String @isUnique
- id: ID! @isUnique
- isVerified: Boolean! @defaultValue(value: false)
- orders: [Order!]! @relation(name: "OrderOnUser")
- password: String
- secret: String @isUnique
- updatedAt: DateTime!
- auth0UserId: String @isUnique
- name: String!
- cart: [Item!]! @relation(name: "CartItems")
- level: Int
-}
-
-
-