Versions in this module Expand all Collapse all v1 v1.0.0 Jul 8, 2021 Changes in this version + type Answer string + const AnswerA + const AnswerB + const AnswerC + const AnswerD + func (answer *Answer) UnmarshalGQL(v interface{}) error + func (answer Answer) IsValid() bool + func (answer Answer) MarshalGQL(w io.Writer) + func (answer Answer) String() string + type Profession struct + CreatedAt time.Time + Description string + ID int + Name string + Slug string + func (p *Profession) BeforeInsert(ctx context.Context) (context.Context, error) + func (p *Profession) BeforeUpdate(ctx context.Context) (context.Context, error) + type ProfessionFilter struct + CreatedAt time.Time + CreatedAtGT time.Time + CreatedAtGTE time.Time + CreatedAtLT time.Time + CreatedAtLTE time.Time + DescriptionIEQ string + DescriptionMATCH string + ID []int + IDNEQ []int + Name []string + NameIEQ string + NameMATCH string + NameNEQ []string + QualificationID []int + Slug []string + SlugNEQ []string + func (f *ProfessionFilter) Where(q *orm.Query) (*orm.Query, error) + func (f *ProfessionFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error) + type ProfessionInput struct + Description *string + Name *string + func (input *ProfessionInput) ApplyUpdate(q *orm.Query) (*orm.Query, error) + func (input *ProfessionInput) IsEmpty() bool + func (input *ProfessionInput) Sanitize() *ProfessionInput + func (input *ProfessionInput) ToProfession() *Profession + type Qualification struct + Code string + CreatedAt time.Time + Description string + Formula string + ID int + Name string + Slug string + func (q *Qualification) BeforeInsert(ctx context.Context) (context.Context, error) + func (q *Qualification) BeforeUpdate(ctx context.Context) (context.Context, error) + type QualificationFilter struct + Code []string + CodeIEQ string + CodeMATCH string + CodeNEQ []string + CreatedAt time.Time + CreatedAtGT time.Time + CreatedAtGTE time.Time + CreatedAtLT time.Time + CreatedAtLTE time.Time + DescriptionIEQ string + DescriptionMATCH string + Formula []string + FormulaNEQ []string + ID []int + IDNEQ []int + Name []string + NameIEQ string + NameMATCH string + NameNEQ []string + Or *QualificationFilterOr + ProfessionID []int + Slug []string + SlugNEQ []string + func (f *QualificationFilter) Where(q *orm.Query) (*orm.Query, error) + func (f *QualificationFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error) + type QualificationFilterOr struct + CodeIEQ string + CodeMATCH string + NameIEQ string + NameMATCH string + func (f *QualificationFilterOr) WhereWithAlias(q *orm.Query, alias string) *orm.Query + type QualificationInput struct + AssociateProfession []int + Code *string + Description *string + DissociateProfession []int + Formula *string + Name *string + func (input *QualificationInput) ApplyUpdate(q *orm.Query) (*orm.Query, error) + func (input *QualificationInput) HasBasicDataToUpdate() bool + func (input *QualificationInput) IsEmpty() bool + func (input *QualificationInput) Sanitize() *QualificationInput + func (input *QualificationInput) ToQualification() *Qualification + type QualificationToProfession struct + ID int + Profession *Profession + ProfessionID int + Qualification *Qualification + QualificationID int + type Question struct + AnswerA string + AnswerAImage string + AnswerB string + AnswerBImage string + AnswerC string + AnswerCImage string + AnswerD string + AnswerDImage string + Content string + CorrectAnswer Answer + CreatedAt time.Time + Explanation string + From string + ID int + Image string + Qualification *Qualification + QualificationID int + UpdatedAt time.Time + func (q *Question) BeforeInsert(ctx context.Context) (context.Context, error) + type QuestionFilter struct + ContentIEQ string + ContentMATCH string + CreatedAt time.Time + CreatedAtGT time.Time + CreatedAtGTE time.Time + CreatedAtLT time.Time + CreatedAtLTE time.Time + From []string + ID []int + IDNEQ []int + QualificationFilter *QualificationFilter + QualificationID []int + QualificationIDNEQ []int + func (f *QuestionFilter) Where(q *orm.Query) (*orm.Query, error) + func (f *QuestionFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error) + type QuestionInput struct + AnswerA *string + AnswerAImage *graphql.Upload + AnswerB *string + AnswerBImage *graphql.Upload + AnswerC *string + AnswerCImage *graphql.Upload + AnswerD *string + AnswerDImage *graphql.Upload + Content *string + CorrectAnswer *Answer + DeleteAnswerAImage *bool + DeleteAnswerBImage *bool + DeleteAnswerCImage *bool + DeleteAnswerDImage *bool + DeleteImage *bool + Explanation *string + From *string + Image *graphql.Upload + QualificationID *int + func (input *QuestionInput) ApplyUpdate(q *orm.Query) (*orm.Query, error) + func (input *QuestionInput) HasBasicDataToUpdate() bool + func (input *QuestionInput) IsEmpty() bool + func (input *QuestionInput) Sanitize() *QuestionInput + func (input *QuestionInput) ToQuestion() *Question + type Role string + const RoleAdmin + const RoleUser + func (role *Role) UnmarshalGQL(v interface{}) error + func (role Role) IsValid() bool + func (role Role) MarshalGQL(w io.Writer) + func (role Role) String() string + type User struct + Activated *bool + ActivationToken string + ActivationTokenGeneratedAt time.Time + CreatedAt time.Time + DisplayName string + Email string + ID int + Password string + ResetPasswordToken string + ResetPasswordTokenGeneratedAt time.Time + Role Role + func (u *User) BeforeInsert(ctx context.Context) (context.Context, error) + func (u *User) CompareHashAndPassword(password string) error + type UserFilter struct + Activated *bool + CreatedAt time.Time + CreatedAtGT time.Time + CreatedAtGTE time.Time + CreatedAtLT time.Time + CreatedAtLTE time.Time + DisplayName []string + DisplayNameIEQ string + DisplayNameMATCH string + DisplayNameNEQ []string + Email []string + EmailIEQ string + EmailMATCH string + EmailNEQ []string + ID []int + IDNEQ []int + Or *UserFilterOr + Role []Role + RoleNEQ []Role + func (f *UserFilter) Where(q *orm.Query) (*orm.Query, error) + func (f *UserFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error) + type UserFilterOr struct + DisplayNameIEQ string + DisplayNameMATCH string + EmailIEQ string + EmailMATCH string + func (f *UserFilterOr) WhereWithAlias(q *orm.Query, alias string) *orm.Query + type UserInput struct + Activated *bool + DisplayName *string + Email *string + Password *string + Role *Role + func (input *UserInput) ApplyUpdate(q *orm.Query) (*orm.Query, error) + func (input *UserInput) IsEmpty() bool + func (input *UserInput) Sanitize() *UserInput + func (input *UserInput) ToUser() *User