-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels_gen.go
129 lines (106 loc) · 3.94 KB
/
models_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package gigachad
import (
"github.com/sahidrahman404/gigachad-api/ent"
"github.com/sahidrahman404/gigachad-api/ent/schema/pksuid"
"github.com/sahidrahman404/gigachad-api/ent/schema/schematype"
"github.com/sahidrahman404/gigachad-api/ent/user"
)
type ActivateUserInput struct {
TokenPlainText string `json:"tokenPlainText"`
}
type ActivateUserResult struct {
TokenPlainText string `json:"tokenPlainText"`
}
type ActivationTokenInput struct {
Email string `json:"email"`
}
type AuthenticationToken struct {
User *ent.User `json:"user"`
TokenPlainText string `json:"tokenPlainText"`
}
type CreateExerciseInput struct {
Name string `json:"name"`
Image *schematype.Image `json:"image,omitempty"`
HowTo *string `json:"howTo,omitempty"`
MusclesGroupIDs []pksuid.ID `json:"musclesGroupIDs,omitempty"`
ExerciseTypeIDs []pksuid.ID `json:"exerciseTypeIDs,omitempty"`
}
type CreateMusclesGroupInput struct {
Name string `json:"name"`
Image *schematype.Image `json:"image"`
}
type CreateRoutineWithChildrenInput struct {
Name string `json:"name"`
Reminders []*schematype.Reminder `json:"reminders,omitempty"`
RoutineExercises []*RoutineExerciseInput `json:"routineExercises,omitempty"`
}
type CreateWorkoutLogInput struct {
Sets []*schematype.Set `json:"sets"`
ExerciseID pksuid.ID `json:"exerciseID"`
}
type CreateWorkoutWithChildrenInput struct {
Name string `json:"name"`
Volume float64 `json:"volume"`
Duration string `json:"duration"`
Sets int `json:"sets"`
Image *schematype.Image `json:"image,omitempty"`
Description *string `json:"description,omitempty"`
WorkoutLogs []*CreateWorkoutLogInput `json:"workoutLogs,omitempty"`
}
type DeleteExerciseInput struct {
ID pksuid.ID `json:"id"`
}
type DeleteRoutineInput struct {
ID pksuid.ID `json:"id"`
}
type LoginInput struct {
Email string `json:"email"`
Password string `json:"password"`
}
type ResetPasswordInput struct {
Email string `json:"email"`
}
type ResetUserPasswordInput struct {
Password string `json:"password"`
TokenPlainText string `json:"tokenPlainText"`
}
type ResetUserPasswordResult struct {
Password string `json:"password"`
TokenPlainText string `json:"tokenPlainText"`
}
type RoutineExerciseInput struct {
RestTime *string `json:"restTime,omitempty"`
Sets []*schematype.Set `json:"sets,omitempty"`
ExerciseName string `json:"exerciseName"`
ExerciseID pksuid.ID `json:"exerciseID"`
}
type Style struct {
Width *string `json:"width,omitempty"`
Height *string `json:"height,omitempty"`
MaxWidth *string `json:"maxWidth,omitempty"`
MaxHeight *string `json:"maxHeight,omitempty"`
AspectRatio *string `json:"aspectRatio,omitempty"`
}
type UpdateExerciseInput struct {
ID pksuid.ID `json:"id"`
Name string `json:"name"`
Image *schematype.Image `json:"image,omitempty"`
HowTo *string `json:"howTo,omitempty"`
MusclesGroupIDs []pksuid.ID `json:"musclesGroupIDs,omitempty"`
ExerciseTypeIDs []pksuid.ID `json:"exerciseTypeIDs,omitempty"`
}
type UpdateRoutineReminderInput struct {
ID *string `json:"id,omitempty"`
Reminders []*schematype.Reminder `json:"reminders,omitempty"`
}
type UpdateRoutineWithChildrenInput struct {
ID pksuid.ID `json:"id"`
Name string `json:"name"`
Reminders *UpdateRoutineReminderInput `json:"reminders,omitempty"`
RoutineExercises []*RoutineExerciseInput `json:"routineExercises,omitempty"`
}
type UpdateUserProfileInput struct {
Name string `json:"name"`
Unit user.Unit `json:"unit"`
}