diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-09-13 14:18:56 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-09-13 14:18:56 -0400 |
| commit | 8a5825d52271d712ec7c8348447d433067e13ef2 (patch) | |
| tree | ba07c218c1b2d4e59c154f2059b69fd858ae65fe /finished-application/backend/prisma | |
| parent | b0d25a9ad3cc1df2fcc11ddb84e4603b94520b09 (diff) | |
DONE
Diffstat (limited to 'finished-application/backend/prisma')
| -rw-r--r-- | finished-application/backend/prisma/datamodel.graphql | 66 | ||||
| -rw-r--r-- | finished-application/backend/prisma/prisma.yml | 6 |
2 files changed, 0 insertions, 72 deletions
diff --git a/finished-application/backend/prisma/datamodel.graphql b/finished-application/backend/prisma/datamodel.graphql deleted file mode 100644 index 8b19125..0000000 --- a/finished-application/backend/prisma/datamodel.graphql +++ /dev/null @@ -1,66 +0,0 @@ -enum Permission { - ADMIN - USER - ITEMCREATE - ITEMUPDATE - ITEMDELETE - PERMISSIONUPDATE -} - -type User { - id: ID! @unique - email: String! @unique - password: String! - name: String! - orders: [Order!]! - resetToken: String - resetTokenExpiry: String - cart: [CartItem!]! - createdAt: DateTime! - updatedAt: DateTime! - permissions: [Permission!]! -} - -type CartItem { - id: ID! @unique - quantity: Int! @default(value: 1) - item: Item! # Relationship to an Item - user: User! # Relationship to a user - createdAt: DateTime! - updatedAt: DateTime! -} - -type Item { - id: ID! @unique - title: String! - description: String! - image: String - largeImage: String - price: Int! - createdAt: DateTime! - updatedAt: DateTime! - user: User! # Relationship to a user -} - -type OrderItem { - id: ID! @unique - title: String! - description: String! - image: String - largeImage: String - price: Int! - createdAt: DateTime! - updatedAt: DateTime! - quantity: Int! @default(value: 1) - user: User -} - -type Order { - id: ID! @unique - items: [OrderItem!]! - total: Int! - user: User! - createdAt: DateTime! - updatedAt: DateTime! - charge: String! -} diff --git a/finished-application/backend/prisma/prisma.yml b/finished-application/backend/prisma/prisma.yml deleted file mode 100644 index 2940bab..0000000 --- a/finished-application/backend/prisma/prisma.yml +++ /dev/null @@ -1,6 +0,0 @@ -datamodel: datamodel.graphql -endpoint: ${env:PRISMA_ENDPOINT} -secret: ${env:PRISMA_SECRET} -hooks: - post-deploy: - - graphql get-schema -p prisma |
