diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-02-09 13:31:39 -0500 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-02-09 13:31:39 -0500 |
| commit | e0d0baa75ec0bf617f91b6cd779305d4009cae12 (patch) | |
| tree | 00eb968f49c6586cbc4367053887d0c5e68471b2 /backend/database | |
| parent | 19c9683e2126c68cb9d231293162c756d69c51fb (diff) | |
🆒
Diffstat (limited to 'backend/database')
| -rw-r--r-- | backend/database/datamodel.graphql | 8 | ||||
| -rw-r--r-- | backend/database/prisma.yml | 2 |
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} |
