Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. type Calendar @model {
  2. id: ID!
  3. name: String!
  4. months: [Month] @connection
  5. }
  6.  
  7. type Month @model {
  8. id: ID!
  9. number: Int!
  10. days: [Day] @connection
  11. calendar: Calendar @connection
  12. }
  13.  
  14. type Day @model {
  15. id: ID!
  16. number: Int!
  17. reservation: [Reservation] @connection
  18. month: Month @connection
  19. }
  20.  
  21. type Reservation @model {
  22. id: ID!
  23. hour: Int!
  24. client: Client! @connection
  25. day: Day @connection
  26. }
  27.  
  28. type Client @model @key(fields: ["id", "email"]) {
  29. id: ID!
  30. email: String!
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement