diff options
Diffstat (limited to 'backend/database/datamodel.graphql')
| -rw-r--r-- | backend/database/datamodel.graphql | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/backend/database/datamodel.graphql b/backend/database/datamodel.graphql new file mode 100644 index 0000000..605e242 --- /dev/null +++ b/backend/database/datamodel.graphql @@ -0,0 +1,26 @@ +type Post { + id: ID! @unique + createdAt: DateTime! + updatedAt: DateTime! + isPublished: Boolean! @default(value: "false") + title: String! + text: String! + author: User! +} + +type User { + id: ID! @unique + email: String! @unique + password: String! + name: String! + posts: [Post!]! + website: String + age: Int +} + +type Item { + id: ID! @unique + title: String! + description: String! + price: Int! +} |
