Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Calendar @model {
- id: ID!
- name: String!
- months: [Month] @connection
- }
- type Month @model {
- id: ID!
- number: Int!
- days: [Day] @connection
- calendar: Calendar @connection
- }
- type Day @model {
- id: ID!
- number: Int!
- reservation: [Reservation] @connection
- month: Month @connection
- }
- type Reservation @model {
- id: ID!
- hour: Int!
- client: Client! @connection
- day: Day @connection
- }
- type Client @model @key(fields: ["id", "email"]) {
- id: ID!
- email: String!
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement