1
0

models_gen.go 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. // Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
  2. package model
  3. type AuthPayload struct {
  4. Token string `json:"token"`
  5. User *User `json:"user"`
  6. }
  7. type Channel struct {
  8. ID string `json:"id"`
  9. Participants []*User `json:"participants"`
  10. CreatedAt string `json:"createdAt"`
  11. UpdatedAt string `json:"updatedAt"`
  12. }
  13. type Message struct {
  14. ID string `json:"id"`
  15. ConversationID string `json:"conversationId"`
  16. SenderID string `json:"senderId"`
  17. Sender *User `json:"sender"`
  18. Content string `json:"content"`
  19. SentAt string `json:"sentAt"`
  20. CreatedAt string `json:"createdAt"`
  21. UpdatedAt string `json:"updatedAt"`
  22. }
  23. type Mutation struct {
  24. }
  25. type NewChannel struct {
  26. Participants []string `json:"participants"`
  27. }
  28. type NewMessage struct {
  29. ConversationID string `json:"conversationId"`
  30. SenderID string `json:"senderId"`
  31. Content string `json:"content"`
  32. }
  33. type NewNote struct {
  34. Title string `json:"title"`
  35. Content string `json:"content"`
  36. UserID string `json:"userId"`
  37. ServiceID string `json:"serviceId"`
  38. }
  39. type NewPermission struct {
  40. Code string `json:"code"`
  41. Description string `json:"description"`
  42. }
  43. type NewRole struct {
  44. Name string `json:"name"`
  45. Description string `json:"description"`
  46. Permissions []string `json:"permissions"`
  47. }
  48. type NewService struct {
  49. Name string `json:"name"`
  50. Description *string `json:"description,omitempty"`
  51. CreatedByID string `json:"createdById"`
  52. Participants []string `json:"participants"`
  53. }
  54. type NewTask struct {
  55. Title string `json:"title"`
  56. Content string `json:"content"`
  57. CreatedByID string `json:"createdById"`
  58. AssigneeID *string `json:"assigneeId,omitempty"`
  59. StatusID *string `json:"statusId,omitempty"`
  60. DueDate *string `json:"dueDate,omitempty"`
  61. Priority string `json:"priority"`
  62. }
  63. type NewTaskStatus struct {
  64. Code string `json:"code"`
  65. Label string `json:"label"`
  66. }
  67. type NewUser struct {
  68. Email string `json:"email"`
  69. Password string `json:"password"`
  70. Roles []string `json:"roles"`
  71. }
  72. type Note struct {
  73. ID string `json:"id"`
  74. Title string `json:"title"`
  75. Content string `json:"content"`
  76. UserID string `json:"userId"`
  77. User *User `json:"user"`
  78. ServiceID string `json:"serviceId"`
  79. Service *Service `json:"service"`
  80. CreatedAt string `json:"createdAt"`
  81. UpdatedAt string `json:"updatedAt"`
  82. }
  83. type Permission struct {
  84. ID string `json:"id"`
  85. Code string `json:"code"`
  86. Description string `json:"description"`
  87. }
  88. type Query struct {
  89. }
  90. type Role struct {
  91. ID string `json:"id"`
  92. Name string `json:"name"`
  93. Description string `json:"description"`
  94. Permissions []*Permission `json:"permissions"`
  95. }
  96. type Service struct {
  97. ID string `json:"id"`
  98. Name string `json:"name"`
  99. Description *string `json:"description,omitempty"`
  100. CreatedByID string `json:"createdById"`
  101. CreatedBy *User `json:"createdBy"`
  102. Participants []*User `json:"participants"`
  103. Tasks []*Task `json:"tasks"`
  104. CreatedAt string `json:"createdAt"`
  105. UpdatedAt string `json:"updatedAt"`
  106. }
  107. type Subscription struct {
  108. }
  109. type Task struct {
  110. ID string `json:"id"`
  111. Title string `json:"title"`
  112. Content string `json:"content"`
  113. CreatedByID string `json:"createdById"`
  114. CreatedBy *User `json:"createdBy"`
  115. AssigneeID *string `json:"assigneeId,omitempty"`
  116. Assignee *User `json:"assignee,omitempty"`
  117. StatusID *string `json:"statusId,omitempty"`
  118. Status *TaskStatus `json:"status,omitempty"`
  119. DueDate *string `json:"dueDate,omitempty"`
  120. Priority string `json:"priority"`
  121. CreatedAt string `json:"createdAt"`
  122. UpdatedAt string `json:"updatedAt"`
  123. }
  124. type TaskStatus struct {
  125. ID string `json:"id"`
  126. Code string `json:"code"`
  127. Label string `json:"label"`
  128. Tasks []*Task `json:"tasks"`
  129. CreatedAt string `json:"createdAt"`
  130. UpdatedAt string `json:"updatedAt"`
  131. }
  132. type UpdateChannelInput struct {
  133. Participants []string `json:"participants"`
  134. }
  135. type UpdateMessageInput struct {
  136. ConversationID *string `json:"conversationId,omitempty"`
  137. SenderID *string `json:"senderId,omitempty"`
  138. Content *string `json:"content,omitempty"`
  139. }
  140. type UpdateNoteInput struct {
  141. Title *string `json:"title,omitempty"`
  142. Content *string `json:"content,omitempty"`
  143. UserID *string `json:"userId,omitempty"`
  144. ServiceID *string `json:"serviceId,omitempty"`
  145. }
  146. type UpdatePermissionInput struct {
  147. Code *string `json:"code,omitempty"`
  148. Description *string `json:"description,omitempty"`
  149. }
  150. type UpdateRoleInput struct {
  151. Name *string `json:"name,omitempty"`
  152. Description *string `json:"description,omitempty"`
  153. Permissions []string `json:"permissions"`
  154. }
  155. type UpdateServiceInput struct {
  156. Name *string `json:"name,omitempty"`
  157. Description *string `json:"description,omitempty"`
  158. CreatedByID *string `json:"createdById,omitempty"`
  159. Participants []string `json:"participants"`
  160. }
  161. type UpdateTaskInput struct {
  162. Title *string `json:"title,omitempty"`
  163. Content *string `json:"content,omitempty"`
  164. CreatedByID *string `json:"createdById,omitempty"`
  165. AssigneeID *string `json:"assigneeId,omitempty"`
  166. StatusID *string `json:"statusId,omitempty"`
  167. DueDate *string `json:"dueDate,omitempty"`
  168. Priority *string `json:"priority,omitempty"`
  169. }
  170. type UpdateTaskStatusInput struct {
  171. Code *string `json:"code,omitempty"`
  172. Label *string `json:"label,omitempty"`
  173. }
  174. type UpdateUserInput struct {
  175. Email *string `json:"email,omitempty"`
  176. Password *string `json:"password,omitempty"`
  177. Roles []string `json:"roles"`
  178. }
  179. type User struct {
  180. ID string `json:"id"`
  181. Email string `json:"email"`
  182. Password string `json:"password"`
  183. Roles []*Role `json:"roles"`
  184. CreatedAt string `json:"createdAt"`
  185. UpdatedAt string `json:"updatedAt"`
  186. }