1234567891011121314151617181920212223242526272829303132 |
- type User {
- id: ID! @unique
- email: String! @unique
- name: String!
- abbreviation: String!
- password: String!
- comments: [Comment]! @relation(name: "CommentAuthor", onDelete: CASCADE)
- }
- type Comment {
- id: ID! @unique
- text: String!
- createdAt: DateTime!
- author: User! @relation(name: "CommentAuthor", onDelete: SET_NULL)
- }
- type Training {
- id: ID! @unique
- title: String!
- content: String!
- createdAt: DateTime!
- trainingDate: DateTime!
- participants: [User]!
- ratings: [Rating]!
- }
- type Rating {
- id: ID! @unique
- user: User!
- value: Int!
- comment: String!
- }
|