summaryrefslogtreecommitdiffstats
path: root/backend/database
diff options
context:
space:
mode:
Diffstat (limited to 'backend/database')
-rw-r--r--backend/database/datamodel.graphql8
-rw-r--r--backend/database/prisma.yml2
2 files changed, 9 insertions, 1 deletions
diff --git a/backend/database/datamodel.graphql b/backend/database/datamodel.graphql
index 40dd30c..4620206 100644
--- a/backend/database/datamodel.graphql
+++ b/backend/database/datamodel.graphql
@@ -17,6 +17,14 @@ type User {
website: String
age: Int
resetToken: String
+ resetTokenExpiry: String
+ cart: [CartItem!]!
+}
+
+type CartItem {
+ id: ID! @unique
+ quantity: Int! @default(value: 1)
+ item: Item!
}
type Item {
diff --git a/backend/database/prisma.yml b/backend/database/prisma.yml
index 70e10f4..ce652ef 100644
--- a/backend/database/prisma.yml
+++ b/backend/database/prisma.yml
@@ -1,5 +1,5 @@
# the name for the service (will be part of the service's HTTP endpoint)
-service: sick-fitz
+service: sick-fits
# the cluster and stage the service is deployed to
stage: ${env:PRISMA_STAGE}