blob: 65d9aec2781877b3acfef977e61a39eeaae5ddcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
enum Permission {
ADMIN
USER
ITEMCREATE
ITEMUPDATE
ITEMDELETE
PERMISSIONUPDATE
}
type User {
id: ID! @unique
name: String!
email: String! @unique
password: String!
resetToken: Float
resetTokenExpiry: String
permissions: [Permission]
}
type Item {
id: ID! @unique
title: String!
description: String!
image: String
largeImage: String
price: Int!
# createAt: DateTime!
# updatedAt: DateTime!
# user: User!
}
|