summaryrefslogtreecommitdiffstats
path: root/backend/database
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-02-13 17:04:00 -0500
committerWes Bos <wesbos@gmail.com>2018-02-13 17:04:00 -0500
commita09b01abf7c03e6b7e43f2175e5a34501808821b (patch)
tree21ae6feb1d9ac1a07f045dffc24db406e2a4183b /backend/database
parentfa3ec3299b3fa33e5a699683beb96cfa4e6dd51d (diff)
omg it works
Diffstat (limited to 'backend/database')
-rw-r--r--backend/database/datamodel.graphql8
1 files changed, 8 insertions, 0 deletions
diff --git a/backend/database/datamodel.graphql b/backend/database/datamodel.graphql
index ed70892..940fb6f 100644
--- a/backend/database/datamodel.graphql
+++ b/backend/database/datamodel.graphql
@@ -20,6 +20,8 @@ type User {
resetToken: String
resetTokenExpiry: String
cart: [CartItem!]!
+ createdAt: DateTime!
+ updatedAt: DateTime!
}
type CartItem {
@@ -27,6 +29,8 @@ type CartItem {
quantity: Int! @default(value: 1)
item: Item! # Relationship to an Item
user: User! # Relationship to a user
+ createdAt: DateTime!
+ updatedAt: DateTime!
}
type Item {
@@ -35,6 +39,8 @@ type Item {
description: String!
image: String
price: Int!
+ createdAt: DateTime!
+ updatedAt: DateTime!
}
type Order {
@@ -42,5 +48,7 @@ type Order {
items: [Item!]!
total: Int!
user: User!
+ createdAt: DateTime!
+ updatedAt: DateTime!
charge: String!
} \ No newline at end of file