summaryrefslogtreecommitdiffstats
path: root/graphcool-old/project.graphcool
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-01-30 12:39:31 -0500
committerWes Bos <wesbos@gmail.com>2018-01-30 12:39:31 -0500
commit0a1648bf47490b312169c531aeb51ef4725e8d2e (patch)
treea9c3dd7b50bc8dd563d9efeee3eeafaca1b3019a /graphcool-old/project.graphcool
parent0f1b9240bbd05b377e868faf78b89b509a3d7537 (diff)
Saying goodbye to graphcool
Diffstat (limited to 'graphcool-old/project.graphcool')
-rw-r--r--graphcool-old/project.graphcool52
1 files changed, 52 insertions, 0 deletions
diff --git a/graphcool-old/project.graphcool b/graphcool-old/project.graphcool
new file mode 100644
index 0000000..193c9eb
--- /dev/null
+++ b/graphcool-old/project.graphcool
@@ -0,0 +1,52 @@
+# project: cj5xz8szs28930145gct82bdj
+# version: 69
+
+type File implements Node {
+ 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 implements Node {
+ 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 implements Node {
+ 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 implements Node {
+ 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")
+} \ No newline at end of file