diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-08-14 15:39:34 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-08-14 15:39:34 -0400 |
| commit | ee09df7dee16a7b44711159c60c54cc9365be35e (patch) | |
| tree | f44bfca6d65c0082ca267300c33ff8186a713ec0 /stepped-solutions/33/backend/datamodel.graphql | |
| parent | a07aad867cdfc3d5f270be25e571901af500f625 (diff) | |
stepped
Diffstat (limited to 'stepped-solutions/33/backend/datamodel.graphql')
| -rwxr-xr-x | stepped-solutions/33/backend/datamodel.graphql | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/stepped-solutions/33/backend/datamodel.graphql b/stepped-solutions/33/backend/datamodel.graphql new file mode 100755 index 0000000..e9b8009 --- /dev/null +++ b/stepped-solutions/33/backend/datamodel.graphql @@ -0,0 +1,28 @@ +enum Permission { + ADMIN + USER + ITEMCREATE + ITEMUPDATE + ITEMDELETE + PERMISSIONUPDATE +} + +type User { + id: ID! @unique + name: String! + email: String! @unique + password: String! + resetToken: String + resetTokenExpiry: String + permissions: [Permission] +} + +type Item { + id: ID! @unique + title: String! + description: String! + image: String + largeImage: String + price: Int! + user: User! +} |
