YetAnotherToDoList/graph/model/models_gen.go

81 lines
2.1 KiB
Go

// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package model
type NewRefreshToken struct {
TokenName *string `json:"tokenName,omitempty"`
}
type NewRole struct {
RoleName string `json:"roleName"`
IsAdmin bool `json:"isAdmin"`
IsUserCreator bool `json:"isUserCreator"`
}
type NewTodo struct {
Text string `json:"text"`
UserID string `json:"userId"`
}
type NewUser struct {
UserName string `json:"userName"`
FullName *string `json:"fullName,omitempty"`
Password string `json:"password"`
}
type RefreshToken struct {
ID string `json:"id"`
ExpiryDate int `json:"expiryDate"`
TokenName *string `json:"tokenName,omitempty"`
Selector *string `json:"selector,omitempty"`
Token *string `json:"token,omitempty"`
UserID string `json:"userId"`
}
type RelationRoleUser struct {
User *User `json:"user"`
UserIsRoleManager bool `json:"userIsRoleManager"`
}
type RelationUserRole struct {
Role *Role `json:"role"`
UserIsRoleManager bool `json:"userIsRoleManager"`
}
type Role struct {
ID string `json:"id"`
RoleName string `json:"roleName"`
IsAdmin bool `json:"isAdmin"`
IsUserCreator bool `json:"isUserCreator"`
RoleMembers []*RelationRoleUser `json:"roleMembers"`
}
type UpdateRefreshToken struct {
TokenName *string `json:"tokenName,omitempty"`
}
type UpdateRole struct {
RoleName *string `json:"roleName,omitempty"`
IsAdmin *bool `json:"isAdmin,omitempty"`
IsUserCreator *bool `json:"isUserCreator,omitempty"`
}
type UpdateTodo struct {
Text *string `json:"text,omitempty"`
Done *bool `json:"done,omitempty"`
}
type UpdateUser struct {
UserName *string `json:"userName,omitempty"`
FullName *string `json:"fullName,omitempty"`
Password *string `json:"password,omitempty"`
}
type User struct {
ID string `json:"id"`
UserName string `json:"userName"`
FullName *string `json:"fullName,omitempty"`
Todos []*Todo `json:"todos"`
Roles []*RelationUserRole `json:"roles"`
}