Versions in this module Expand all Collapse all v0 v0.1.5 Apr 30, 2022 v0.1.4 Apr 30, 2022 v0.1.3 Apr 30, 2022 v0.1.2 Apr 30, 2022 v0.1.1 Apr 29, 2022 v0.1.0 Apr 29, 2022 v0.0.9 Apr 27, 2022 v0.0.8 Apr 27, 2022 v0.0.7 Apr 27, 2022 v0.0.6 Apr 27, 2022 v0.0.5 Apr 26, 2022 v0.0.4 Apr 25, 2022 v0.0.3 Apr 25, 2022 v0.0.2 Apr 24, 2022 v0.0.1 Apr 22, 2022 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeBadge + const TypeChallenge + const TypePrediction + const TypeProof + const TypeUser + const TypeUserSession + func IsConstraintError(err error) bool + func IsNotFound(err error) bool + func IsNotLoaded(err error) bool + func IsNotSingular(err error) bool + func IsValidationError(err error) bool + func MaskNotFound(err error) error + func NewContext(parent context.Context, c *Client) context.Context + func NewTxContext(parent context.Context, tx *Tx) context.Context + type AggregateFunc func(*sql.Selector) string + func As(fn AggregateFunc, end string) AggregateFunc + func Count() AggregateFunc + func Max(field string) AggregateFunc + func Mean(field string) AggregateFunc + func Min(field string) AggregateFunc + func Sum(field string) AggregateFunc + type Badge struct + Active bool + CreateTime time.Time + Edges BadgeEdges + ID int + Meta map[string]interface{} + Type string + UpdateTime time.Time + func (b *Badge) QueryUsers() *UserQuery + func (b *Badge) String() string + func (b *Badge) Unwrap() *Badge + func (b *Badge) Update() *BadgeUpdateOne + type BadgeClient struct + func NewBadgeClient(c config) *BadgeClient + func (c *BadgeClient) Create() *BadgeCreate + func (c *BadgeClient) CreateBulk(builders ...*BadgeCreate) *BadgeCreateBulk + func (c *BadgeClient) Delete() *BadgeDelete + func (c *BadgeClient) DeleteOne(b *Badge) *BadgeDeleteOne + func (c *BadgeClient) DeleteOneID(id int) *BadgeDeleteOne + func (c *BadgeClient) Get(ctx context.Context, id int) (*Badge, error) + func (c *BadgeClient) GetX(ctx context.Context, id int) *Badge + func (c *BadgeClient) Hooks() []Hook + func (c *BadgeClient) Query() *BadgeQuery + func (c *BadgeClient) QueryUsers(b *Badge) *UserQuery + func (c *BadgeClient) Update() *BadgeUpdate + func (c *BadgeClient) UpdateOne(b *Badge) *BadgeUpdateOne + func (c *BadgeClient) UpdateOneID(id int) *BadgeUpdateOne + func (c *BadgeClient) Use(hooks ...Hook) + type BadgeCreate struct + func (bc *BadgeCreate) AddUserIDs(ids ...uuid.UUID) *BadgeCreate + func (bc *BadgeCreate) AddUsers(u ...*User) *BadgeCreate + func (bc *BadgeCreate) Exec(ctx context.Context) error + func (bc *BadgeCreate) ExecX(ctx context.Context) + func (bc *BadgeCreate) Mutation() *BadgeMutation + func (bc *BadgeCreate) Save(ctx context.Context) (*Badge, error) + func (bc *BadgeCreate) SaveX(ctx context.Context) *Badge + func (bc *BadgeCreate) SetActive(b bool) *BadgeCreate + func (bc *BadgeCreate) SetCreateTime(t time.Time) *BadgeCreate + func (bc *BadgeCreate) SetMeta(m map[string]interface{}) *BadgeCreate + func (bc *BadgeCreate) SetNillableActive(b *bool) *BadgeCreate + func (bc *BadgeCreate) SetNillableCreateTime(t *time.Time) *BadgeCreate + func (bc *BadgeCreate) SetNillableUpdateTime(t *time.Time) *BadgeCreate + func (bc *BadgeCreate) SetType(s string) *BadgeCreate + func (bc *BadgeCreate) SetUpdateTime(t time.Time) *BadgeCreate + type BadgeCreateBulk struct + func (bcb *BadgeCreateBulk) Exec(ctx context.Context) error + func (bcb *BadgeCreateBulk) ExecX(ctx context.Context) + func (bcb *BadgeCreateBulk) Save(ctx context.Context) ([]*Badge, error) + func (bcb *BadgeCreateBulk) SaveX(ctx context.Context) []*Badge + type BadgeDelete struct + func (bd *BadgeDelete) Exec(ctx context.Context) (int, error) + func (bd *BadgeDelete) ExecX(ctx context.Context) int + func (bd *BadgeDelete) Where(ps ...predicate.Badge) *BadgeDelete + type BadgeDeleteOne struct + func (bdo *BadgeDeleteOne) Exec(ctx context.Context) error + func (bdo *BadgeDeleteOne) ExecX(ctx context.Context) + type BadgeEdges struct + Users []*User + func (e BadgeEdges) UsersOrErr() ([]*User, error) + type BadgeGroupBy struct + func (bgb *BadgeGroupBy) Aggregate(fns ...AggregateFunc) *BadgeGroupBy + func (bgb *BadgeGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (bgb *BadgeGroupBy) BoolX(ctx context.Context) bool + func (bgb *BadgeGroupBy) Bools(ctx context.Context) ([]bool, error) + func (bgb *BadgeGroupBy) BoolsX(ctx context.Context) []bool + func (bgb *BadgeGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (bgb *BadgeGroupBy) Float64X(ctx context.Context) float64 + func (bgb *BadgeGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (bgb *BadgeGroupBy) Float64sX(ctx context.Context) []float64 + func (bgb *BadgeGroupBy) Int(ctx context.Context) (_ int, err error) + func (bgb *BadgeGroupBy) IntX(ctx context.Context) int + func (bgb *BadgeGroupBy) Ints(ctx context.Context) ([]int, error) + func (bgb *BadgeGroupBy) IntsX(ctx context.Context) []int + func (bgb *BadgeGroupBy) Scan(ctx context.Context, v interface{}) error + func (bgb *BadgeGroupBy) ScanX(ctx context.Context, v interface{}) + func (bgb *BadgeGroupBy) String(ctx context.Context) (_ string, err error) + func (bgb *BadgeGroupBy) StringX(ctx context.Context) string + func (bgb *BadgeGroupBy) Strings(ctx context.Context) ([]string, error) + func (bgb *BadgeGroupBy) StringsX(ctx context.Context) []string + type BadgeMutation struct + func (m *BadgeMutation) Active() (r bool, exists bool) + func (m *BadgeMutation) AddField(name string, value ent.Value) error + func (m *BadgeMutation) AddUserIDs(ids ...uuid.UUID) + func (m *BadgeMutation) AddedEdges() []string + func (m *BadgeMutation) AddedField(name string) (ent.Value, bool) + func (m *BadgeMutation) AddedFields() []string + func (m *BadgeMutation) AddedIDs(name string) []ent.Value + func (m *BadgeMutation) ClearEdge(name string) error + func (m *BadgeMutation) ClearField(name string) error + func (m *BadgeMutation) ClearMeta() + func (m *BadgeMutation) ClearUsers() + func (m *BadgeMutation) ClearedEdges() []string + func (m *BadgeMutation) ClearedFields() []string + func (m *BadgeMutation) CreateTime() (r time.Time, exists bool) + func (m *BadgeMutation) EdgeCleared(name string) bool + func (m *BadgeMutation) Field(name string) (ent.Value, bool) + func (m *BadgeMutation) FieldCleared(name string) bool + func (m *BadgeMutation) Fields() []string + func (m *BadgeMutation) GetType() (r string, exists bool) + func (m *BadgeMutation) ID() (id int, exists bool) + func (m *BadgeMutation) IDs(ctx context.Context) ([]int, error) + func (m *BadgeMutation) Meta() (r map[string]interface{}, exists bool) + func (m *BadgeMutation) MetaCleared() bool + func (m *BadgeMutation) OldActive(ctx context.Context) (v bool, err error) + func (m *BadgeMutation) OldCreateTime(ctx context.Context) (v time.Time, err error) + func (m *BadgeMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *BadgeMutation) OldMeta(ctx context.Context) (v map[string]interface{}, err error) + func (m *BadgeMutation) OldType(ctx context.Context) (v string, err error) + func (m *BadgeMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error) + func (m *BadgeMutation) Op() Op + func (m *BadgeMutation) RemoveUserIDs(ids ...uuid.UUID) + func (m *BadgeMutation) RemovedEdges() []string + func (m *BadgeMutation) RemovedIDs(name string) []ent.Value + func (m *BadgeMutation) RemovedUsersIDs() (ids []uuid.UUID) + func (m *BadgeMutation) ResetActive() + func (m *BadgeMutation) ResetCreateTime() + func (m *BadgeMutation) ResetEdge(name string) error + func (m *BadgeMutation) ResetField(name string) error + func (m *BadgeMutation) ResetMeta() + func (m *BadgeMutation) ResetType() + func (m *BadgeMutation) ResetUpdateTime() + func (m *BadgeMutation) ResetUsers() + func (m *BadgeMutation) SetActive(b bool) + func (m *BadgeMutation) SetCreateTime(t time.Time) + func (m *BadgeMutation) SetField(name string, value ent.Value) error + func (m *BadgeMutation) SetMeta(value map[string]interface{}) + func (m *BadgeMutation) SetType(s string) + func (m *BadgeMutation) SetUpdateTime(t time.Time) + func (m *BadgeMutation) Type() string + func (m *BadgeMutation) UpdateTime() (r time.Time, exists bool) + func (m *BadgeMutation) UsersCleared() bool + func (m *BadgeMutation) UsersIDs() (ids []uuid.UUID) + func (m *BadgeMutation) Where(ps ...predicate.Badge) + func (m BadgeMutation) Client() *Client + func (m BadgeMutation) Tx() (*Tx, error) + type BadgeQuery struct + func (bq *BadgeQuery) All(ctx context.Context) ([]*Badge, error) + func (bq *BadgeQuery) AllX(ctx context.Context) []*Badge + func (bq *BadgeQuery) Clone() *BadgeQuery + func (bq *BadgeQuery) Count(ctx context.Context) (int, error) + func (bq *BadgeQuery) CountX(ctx context.Context) int + func (bq *BadgeQuery) Exist(ctx context.Context) (bool, error) + func (bq *BadgeQuery) ExistX(ctx context.Context) bool + func (bq *BadgeQuery) First(ctx context.Context) (*Badge, error) + func (bq *BadgeQuery) FirstID(ctx context.Context) (id int, err error) + func (bq *BadgeQuery) FirstIDX(ctx context.Context) int + func (bq *BadgeQuery) FirstX(ctx context.Context) *Badge + func (bq *BadgeQuery) GroupBy(field string, fields ...string) *BadgeGroupBy + func (bq *BadgeQuery) IDs(ctx context.Context) ([]int, error) + func (bq *BadgeQuery) IDsX(ctx context.Context) []int + func (bq *BadgeQuery) Limit(limit int) *BadgeQuery + func (bq *BadgeQuery) Offset(offset int) *BadgeQuery + func (bq *BadgeQuery) Only(ctx context.Context) (*Badge, error) + func (bq *BadgeQuery) OnlyID(ctx context.Context) (id int, err error) + func (bq *BadgeQuery) OnlyIDX(ctx context.Context) int + func (bq *BadgeQuery) OnlyX(ctx context.Context) *Badge + func (bq *BadgeQuery) Order(o ...OrderFunc) *BadgeQuery + func (bq *BadgeQuery) QueryUsers() *UserQuery + func (bq *BadgeQuery) Select(fields ...string) *BadgeSelect + func (bq *BadgeQuery) Unique(unique bool) *BadgeQuery + func (bq *BadgeQuery) Where(ps ...predicate.Badge) *BadgeQuery + func (bq *BadgeQuery) WithUsers(opts ...func(*UserQuery)) *BadgeQuery + type BadgeSelect struct + func (bs *BadgeSelect) Bool(ctx context.Context) (_ bool, err error) + func (bs *BadgeSelect) BoolX(ctx context.Context) bool + func (bs *BadgeSelect) Bools(ctx context.Context) ([]bool, error) + func (bs *BadgeSelect) BoolsX(ctx context.Context) []bool + func (bs *BadgeSelect) Float64(ctx context.Context) (_ float64, err error) + func (bs *BadgeSelect) Float64X(ctx context.Context) float64 + func (bs *BadgeSelect) Float64s(ctx context.Context) ([]float64, error) + func (bs *BadgeSelect) Float64sX(ctx context.Context) []float64 + func (bs *BadgeSelect) Int(ctx context.Context) (_ int, err error) + func (bs *BadgeSelect) IntX(ctx context.Context) int + func (bs *BadgeSelect) Ints(ctx context.Context) ([]int, error) + func (bs *BadgeSelect) IntsX(ctx context.Context) []int + func (bs *BadgeSelect) Scan(ctx context.Context, v interface{}) error + func (bs *BadgeSelect) ScanX(ctx context.Context, v interface{}) + func (bs *BadgeSelect) String(ctx context.Context) (_ string, err error) + func (bs *BadgeSelect) StringX(ctx context.Context) string + func (bs *BadgeSelect) Strings(ctx context.Context) ([]string, error) + func (bs *BadgeSelect) StringsX(ctx context.Context) []string + type BadgeUpdate struct + func (bu *BadgeUpdate) AddUserIDs(ids ...uuid.UUID) *BadgeUpdate + func (bu *BadgeUpdate) AddUsers(u ...*User) *BadgeUpdate + func (bu *BadgeUpdate) ClearMeta() *BadgeUpdate + func (bu *BadgeUpdate) ClearUsers() *BadgeUpdate + func (bu *BadgeUpdate) Exec(ctx context.Context) error + func (bu *BadgeUpdate) ExecX(ctx context.Context) + func (bu *BadgeUpdate) Mutation() *BadgeMutation + func (bu *BadgeUpdate) RemoveUserIDs(ids ...uuid.UUID) *BadgeUpdate + func (bu *BadgeUpdate) RemoveUsers(u ...*User) *BadgeUpdate + func (bu *BadgeUpdate) Save(ctx context.Context) (int, error) + func (bu *BadgeUpdate) SaveX(ctx context.Context) int + func (bu *BadgeUpdate) SetActive(b bool) *BadgeUpdate + func (bu *BadgeUpdate) SetMeta(m map[string]interface{}) *BadgeUpdate + func (bu *BadgeUpdate) SetNillableActive(b *bool) *BadgeUpdate + func (bu *BadgeUpdate) SetUpdateTime(t time.Time) *BadgeUpdate + func (bu *BadgeUpdate) Where(ps ...predicate.Badge) *BadgeUpdate + type BadgeUpdateOne struct + func (buo *BadgeUpdateOne) AddUserIDs(ids ...uuid.UUID) *BadgeUpdateOne + func (buo *BadgeUpdateOne) AddUsers(u ...*User) *BadgeUpdateOne + func (buo *BadgeUpdateOne) ClearMeta() *BadgeUpdateOne + func (buo *BadgeUpdateOne) ClearUsers() *BadgeUpdateOne + func (buo *BadgeUpdateOne) Exec(ctx context.Context) error + func (buo *BadgeUpdateOne) ExecX(ctx context.Context) + func (buo *BadgeUpdateOne) Mutation() *BadgeMutation + func (buo *BadgeUpdateOne) RemoveUserIDs(ids ...uuid.UUID) *BadgeUpdateOne + func (buo *BadgeUpdateOne) RemoveUsers(u ...*User) *BadgeUpdateOne + func (buo *BadgeUpdateOne) Save(ctx context.Context) (*Badge, error) + func (buo *BadgeUpdateOne) SaveX(ctx context.Context) *Badge + func (buo *BadgeUpdateOne) Select(field string, fields ...string) *BadgeUpdateOne + func (buo *BadgeUpdateOne) SetActive(b bool) *BadgeUpdateOne + func (buo *BadgeUpdateOne) SetMeta(m map[string]interface{}) *BadgeUpdateOne + func (buo *BadgeUpdateOne) SetNillableActive(b *bool) *BadgeUpdateOne + func (buo *BadgeUpdateOne) SetUpdateTime(t time.Time) *BadgeUpdateOne + type Badges []*Badge + type Challenge struct + Content string + CreateTime time.Time + Description string + Edges ChallengeEdges + EndTime time.Time + ID uuid.UUID + Outcome *bool + Published bool + StartTime time.Time + Type challenge.Type + UpdateTime time.Time + func (c *Challenge) QueryAuthor() *UserQuery + func (c *Challenge) QueryPredictions() *PredictionQuery + func (c *Challenge) QueryProofs() *ProofQuery + func (c *Challenge) String() string + func (c *Challenge) Unwrap() *Challenge + func (c *Challenge) Update() *ChallengeUpdateOne + type ChallengeClient struct + func NewChallengeClient(c config) *ChallengeClient + func (c *ChallengeClient) Create() *ChallengeCreate + func (c *ChallengeClient) CreateBulk(builders ...*ChallengeCreate) *ChallengeCreateBulk + func (c *ChallengeClient) Delete() *ChallengeDelete + func (c *ChallengeClient) DeleteOne(ch *Challenge) *ChallengeDeleteOne + func (c *ChallengeClient) DeleteOneID(id uuid.UUID) *ChallengeDeleteOne + func (c *ChallengeClient) Get(ctx context.Context, id uuid.UUID) (*Challenge, error) + func (c *ChallengeClient) GetX(ctx context.Context, id uuid.UUID) *Challenge + func (c *ChallengeClient) Hooks() []Hook + func (c *ChallengeClient) Query() *ChallengeQuery + func (c *ChallengeClient) QueryAuthor(ch *Challenge) *UserQuery + func (c *ChallengeClient) QueryPredictions(ch *Challenge) *PredictionQuery + func (c *ChallengeClient) QueryProofs(ch *Challenge) *ProofQuery + func (c *ChallengeClient) Update() *ChallengeUpdate + func (c *ChallengeClient) UpdateOne(ch *Challenge) *ChallengeUpdateOne + func (c *ChallengeClient) UpdateOneID(id uuid.UUID) *ChallengeUpdateOne + func (c *ChallengeClient) Use(hooks ...Hook) + type ChallengeCreate struct + func (cc *ChallengeCreate) AddPredictionIDs(ids ...uuid.UUID) *ChallengeCreate + func (cc *ChallengeCreate) AddPredictions(p ...*Prediction) *ChallengeCreate + func (cc *ChallengeCreate) AddProofIDs(ids ...uuid.UUID) *ChallengeCreate + func (cc *ChallengeCreate) AddProofs(p ...*Proof) *ChallengeCreate + func (cc *ChallengeCreate) Exec(ctx context.Context) error + func (cc *ChallengeCreate) ExecX(ctx context.Context) + func (cc *ChallengeCreate) Mutation() *ChallengeMutation + func (cc *ChallengeCreate) Save(ctx context.Context) (*Challenge, error) + func (cc *ChallengeCreate) SaveX(ctx context.Context) *Challenge + func (cc *ChallengeCreate) SetAuthor(u *User) *ChallengeCreate + func (cc *ChallengeCreate) SetAuthorID(id uuid.UUID) *ChallengeCreate + func (cc *ChallengeCreate) SetContent(s string) *ChallengeCreate + func (cc *ChallengeCreate) SetCreateTime(t time.Time) *ChallengeCreate + func (cc *ChallengeCreate) SetDescription(s string) *ChallengeCreate + func (cc *ChallengeCreate) SetEndTime(t time.Time) *ChallengeCreate + func (cc *ChallengeCreate) SetID(u uuid.UUID) *ChallengeCreate + func (cc *ChallengeCreate) SetNillableAuthorID(id *uuid.UUID) *ChallengeCreate + func (cc *ChallengeCreate) SetNillableCreateTime(t *time.Time) *ChallengeCreate + func (cc *ChallengeCreate) SetNillableDescription(s *string) *ChallengeCreate + func (cc *ChallengeCreate) SetNillableID(u *uuid.UUID) *ChallengeCreate + func (cc *ChallengeCreate) SetNillableOutcome(b *bool) *ChallengeCreate + func (cc *ChallengeCreate) SetNillablePublished(b *bool) *ChallengeCreate + func (cc *ChallengeCreate) SetNillableType(c *challenge.Type) *ChallengeCreate + func (cc *ChallengeCreate) SetNillableUpdateTime(t *time.Time) *ChallengeCreate + func (cc *ChallengeCreate) SetOutcome(b bool) *ChallengeCreate + func (cc *ChallengeCreate) SetPublished(b bool) *ChallengeCreate + func (cc *ChallengeCreate) SetStartTime(t time.Time) *ChallengeCreate + func (cc *ChallengeCreate) SetType(c challenge.Type) *ChallengeCreate + func (cc *ChallengeCreate) SetUpdateTime(t time.Time) *ChallengeCreate + type ChallengeCreateBulk struct + func (ccb *ChallengeCreateBulk) Exec(ctx context.Context) error + func (ccb *ChallengeCreateBulk) ExecX(ctx context.Context) + func (ccb *ChallengeCreateBulk) Save(ctx context.Context) ([]*Challenge, error) + func (ccb *ChallengeCreateBulk) SaveX(ctx context.Context) []*Challenge + type ChallengeDelete struct + func (cd *ChallengeDelete) Exec(ctx context.Context) (int, error) + func (cd *ChallengeDelete) ExecX(ctx context.Context) int + func (cd *ChallengeDelete) Where(ps ...predicate.Challenge) *ChallengeDelete + type ChallengeDeleteOne struct + func (cdo *ChallengeDeleteOne) Exec(ctx context.Context) error + func (cdo *ChallengeDeleteOne) ExecX(ctx context.Context) + type ChallengeEdges struct + Author *User + Predictions []*Prediction + Proofs []*Proof + func (e ChallengeEdges) AuthorOrErr() (*User, error) + func (e ChallengeEdges) PredictionsOrErr() ([]*Prediction, error) + func (e ChallengeEdges) ProofsOrErr() ([]*Proof, error) + type ChallengeGroupBy struct + func (cgb *ChallengeGroupBy) Aggregate(fns ...AggregateFunc) *ChallengeGroupBy + func (cgb *ChallengeGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (cgb *ChallengeGroupBy) BoolX(ctx context.Context) bool + func (cgb *ChallengeGroupBy) Bools(ctx context.Context) ([]bool, error) + func (cgb *ChallengeGroupBy) BoolsX(ctx context.Context) []bool + func (cgb *ChallengeGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (cgb *ChallengeGroupBy) Float64X(ctx context.Context) float64 + func (cgb *ChallengeGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (cgb *ChallengeGroupBy) Float64sX(ctx context.Context) []float64 + func (cgb *ChallengeGroupBy) Int(ctx context.Context) (_ int, err error) + func (cgb *ChallengeGroupBy) IntX(ctx context.Context) int + func (cgb *ChallengeGroupBy) Ints(ctx context.Context) ([]int, error) + func (cgb *ChallengeGroupBy) IntsX(ctx context.Context) []int + func (cgb *ChallengeGroupBy) Scan(ctx context.Context, v interface{}) error + func (cgb *ChallengeGroupBy) ScanX(ctx context.Context, v interface{}) + func (cgb *ChallengeGroupBy) String(ctx context.Context) (_ string, err error) + func (cgb *ChallengeGroupBy) StringX(ctx context.Context) string + func (cgb *ChallengeGroupBy) Strings(ctx context.Context) ([]string, error) + func (cgb *ChallengeGroupBy) StringsX(ctx context.Context) []string + type ChallengeMutation struct + func (m *ChallengeMutation) AddField(name string, value ent.Value) error + func (m *ChallengeMutation) AddPredictionIDs(ids ...uuid.UUID) + func (m *ChallengeMutation) AddProofIDs(ids ...uuid.UUID) + func (m *ChallengeMutation) AddedEdges() []string + func (m *ChallengeMutation) AddedField(name string) (ent.Value, bool) + func (m *ChallengeMutation) AddedFields() []string + func (m *ChallengeMutation) AddedIDs(name string) []ent.Value + func (m *ChallengeMutation) AuthorCleared() bool + func (m *ChallengeMutation) AuthorID() (id uuid.UUID, exists bool) + func (m *ChallengeMutation) AuthorIDs() (ids []uuid.UUID) + func (m *ChallengeMutation) ClearAuthor() + func (m *ChallengeMutation) ClearDescription() + func (m *ChallengeMutation) ClearEdge(name string) error + func (m *ChallengeMutation) ClearField(name string) error + func (m *ChallengeMutation) ClearOutcome() + func (m *ChallengeMutation) ClearPredictions() + func (m *ChallengeMutation) ClearProofs() + func (m *ChallengeMutation) ClearedEdges() []string + func (m *ChallengeMutation) ClearedFields() []string + func (m *ChallengeMutation) Content() (r string, exists bool) + func (m *ChallengeMutation) CreateTime() (r time.Time, exists bool) + func (m *ChallengeMutation) Description() (r string, exists bool) + func (m *ChallengeMutation) DescriptionCleared() bool + func (m *ChallengeMutation) EdgeCleared(name string) bool + func (m *ChallengeMutation) EndTime() (r time.Time, exists bool) + func (m *ChallengeMutation) Field(name string) (ent.Value, bool) + func (m *ChallengeMutation) FieldCleared(name string) bool + func (m *ChallengeMutation) Fields() []string + func (m *ChallengeMutation) GetType() (r challenge.Type, exists bool) + func (m *ChallengeMutation) ID() (id uuid.UUID, exists bool) + func (m *ChallengeMutation) IDs(ctx context.Context) ([]uuid.UUID, error) + func (m *ChallengeMutation) OldContent(ctx context.Context) (v string, err error) + func (m *ChallengeMutation) OldCreateTime(ctx context.Context) (v time.Time, err error) + func (m *ChallengeMutation) OldDescription(ctx context.Context) (v string, err error) + func (m *ChallengeMutation) OldEndTime(ctx context.Context) (v time.Time, err error) + func (m *ChallengeMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *ChallengeMutation) OldOutcome(ctx context.Context) (v *bool, err error) + func (m *ChallengeMutation) OldPublished(ctx context.Context) (v bool, err error) + func (m *ChallengeMutation) OldStartTime(ctx context.Context) (v time.Time, err error) + func (m *ChallengeMutation) OldType(ctx context.Context) (v challenge.Type, err error) + func (m *ChallengeMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error) + func (m *ChallengeMutation) Op() Op + func (m *ChallengeMutation) Outcome() (r bool, exists bool) + func (m *ChallengeMutation) OutcomeCleared() bool + func (m *ChallengeMutation) PredictionsCleared() bool + func (m *ChallengeMutation) PredictionsIDs() (ids []uuid.UUID) + func (m *ChallengeMutation) ProofsCleared() bool + func (m *ChallengeMutation) ProofsIDs() (ids []uuid.UUID) + func (m *ChallengeMutation) Published() (r bool, exists bool) + func (m *ChallengeMutation) RemovePredictionIDs(ids ...uuid.UUID) + func (m *ChallengeMutation) RemoveProofIDs(ids ...uuid.UUID) + func (m *ChallengeMutation) RemovedEdges() []string + func (m *ChallengeMutation) RemovedIDs(name string) []ent.Value + func (m *ChallengeMutation) RemovedPredictionsIDs() (ids []uuid.UUID) + func (m *ChallengeMutation) RemovedProofsIDs() (ids []uuid.UUID) + func (m *ChallengeMutation) ResetAuthor() + func (m *ChallengeMutation) ResetContent() + func (m *ChallengeMutation) ResetCreateTime() + func (m *ChallengeMutation) ResetDescription() + func (m *ChallengeMutation) ResetEdge(name string) error + func (m *ChallengeMutation) ResetEndTime() + func (m *ChallengeMutation) ResetField(name string) error + func (m *ChallengeMutation) ResetOutcome() + func (m *ChallengeMutation) ResetPredictions() + func (m *ChallengeMutation) ResetProofs() + func (m *ChallengeMutation) ResetPublished() + func (m *ChallengeMutation) ResetStartTime() + func (m *ChallengeMutation) ResetType() + func (m *ChallengeMutation) ResetUpdateTime() + func (m *ChallengeMutation) SetAuthorID(id uuid.UUID) + func (m *ChallengeMutation) SetContent(s string) + func (m *ChallengeMutation) SetCreateTime(t time.Time) + func (m *ChallengeMutation) SetDescription(s string) + func (m *ChallengeMutation) SetEndTime(t time.Time) + func (m *ChallengeMutation) SetField(name string, value ent.Value) error + func (m *ChallengeMutation) SetID(id uuid.UUID) + func (m *ChallengeMutation) SetOutcome(b bool) + func (m *ChallengeMutation) SetPublished(b bool) + func (m *ChallengeMutation) SetStartTime(t time.Time) + func (m *ChallengeMutation) SetType(c challenge.Type) + func (m *ChallengeMutation) SetUpdateTime(t time.Time) + func (m *ChallengeMutation) StartTime() (r time.Time, exists bool) + func (m *ChallengeMutation) Type() string + func (m *ChallengeMutation) UpdateTime() (r time.Time, exists bool) + func (m *ChallengeMutation) Where(ps ...predicate.Challenge) + func (m ChallengeMutation) Client() *Client + func (m ChallengeMutation) Tx() (*Tx, error) + type ChallengeQuery struct + func (cq *ChallengeQuery) All(ctx context.Context) ([]*Challenge, error) + func (cq *ChallengeQuery) AllX(ctx context.Context) []*Challenge + func (cq *ChallengeQuery) Clone() *ChallengeQuery + func (cq *ChallengeQuery) Count(ctx context.Context) (int, error) + func (cq *ChallengeQuery) CountX(ctx context.Context) int + func (cq *ChallengeQuery) Exist(ctx context.Context) (bool, error) + func (cq *ChallengeQuery) ExistX(ctx context.Context) bool + func (cq *ChallengeQuery) First(ctx context.Context) (*Challenge, error) + func (cq *ChallengeQuery) FirstID(ctx context.Context) (id uuid.UUID, err error) + func (cq *ChallengeQuery) FirstIDX(ctx context.Context) uuid.UUID + func (cq *ChallengeQuery) FirstX(ctx context.Context) *Challenge + func (cq *ChallengeQuery) GroupBy(field string, fields ...string) *ChallengeGroupBy + func (cq *ChallengeQuery) IDs(ctx context.Context) ([]uuid.UUID, error) + func (cq *ChallengeQuery) IDsX(ctx context.Context) []uuid.UUID + func (cq *ChallengeQuery) Limit(limit int) *ChallengeQuery + func (cq *ChallengeQuery) Offset(offset int) *ChallengeQuery + func (cq *ChallengeQuery) Only(ctx context.Context) (*Challenge, error) + func (cq *ChallengeQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error) + func (cq *ChallengeQuery) OnlyIDX(ctx context.Context) uuid.UUID + func (cq *ChallengeQuery) OnlyX(ctx context.Context) *Challenge + func (cq *ChallengeQuery) Order(o ...OrderFunc) *ChallengeQuery + func (cq *ChallengeQuery) QueryAuthor() *UserQuery + func (cq *ChallengeQuery) QueryPredictions() *PredictionQuery + func (cq *ChallengeQuery) QueryProofs() *ProofQuery + func (cq *ChallengeQuery) Select(fields ...string) *ChallengeSelect + func (cq *ChallengeQuery) Unique(unique bool) *ChallengeQuery + func (cq *ChallengeQuery) Where(ps ...predicate.Challenge) *ChallengeQuery + func (cq *ChallengeQuery) WithAuthor(opts ...func(*UserQuery)) *ChallengeQuery + func (cq *ChallengeQuery) WithPredictions(opts ...func(*PredictionQuery)) *ChallengeQuery + func (cq *ChallengeQuery) WithProofs(opts ...func(*ProofQuery)) *ChallengeQuery + type ChallengeSelect struct + func (cs *ChallengeSelect) Bool(ctx context.Context) (_ bool, err error) + func (cs *ChallengeSelect) BoolX(ctx context.Context) bool + func (cs *ChallengeSelect) Bools(ctx context.Context) ([]bool, error) + func (cs *ChallengeSelect) BoolsX(ctx context.Context) []bool + func (cs *ChallengeSelect) Float64(ctx context.Context) (_ float64, err error) + func (cs *ChallengeSelect) Float64X(ctx context.Context) float64 + func (cs *ChallengeSelect) Float64s(ctx context.Context) ([]float64, error) + func (cs *ChallengeSelect) Float64sX(ctx context.Context) []float64 + func (cs *ChallengeSelect) Int(ctx context.Context) (_ int, err error) + func (cs *ChallengeSelect) IntX(ctx context.Context) int + func (cs *ChallengeSelect) Ints(ctx context.Context) ([]int, error) + func (cs *ChallengeSelect) IntsX(ctx context.Context) []int + func (cs *ChallengeSelect) Scan(ctx context.Context, v interface{}) error + func (cs *ChallengeSelect) ScanX(ctx context.Context, v interface{}) + func (cs *ChallengeSelect) String(ctx context.Context) (_ string, err error) + func (cs *ChallengeSelect) StringX(ctx context.Context) string + func (cs *ChallengeSelect) Strings(ctx context.Context) ([]string, error) + func (cs *ChallengeSelect) StringsX(ctx context.Context) []string + type ChallengeUpdate struct + func (cu *ChallengeUpdate) AddPredictionIDs(ids ...uuid.UUID) *ChallengeUpdate + func (cu *ChallengeUpdate) AddPredictions(p ...*Prediction) *ChallengeUpdate + func (cu *ChallengeUpdate) AddProofIDs(ids ...uuid.UUID) *ChallengeUpdate + func (cu *ChallengeUpdate) AddProofs(p ...*Proof) *ChallengeUpdate + func (cu *ChallengeUpdate) ClearAuthor() *ChallengeUpdate + func (cu *ChallengeUpdate) ClearDescription() *ChallengeUpdate + func (cu *ChallengeUpdate) ClearOutcome() *ChallengeUpdate + func (cu *ChallengeUpdate) ClearPredictions() *ChallengeUpdate + func (cu *ChallengeUpdate) ClearProofs() *ChallengeUpdate + func (cu *ChallengeUpdate) Exec(ctx context.Context) error + func (cu *ChallengeUpdate) ExecX(ctx context.Context) + func (cu *ChallengeUpdate) Mutation() *ChallengeMutation + func (cu *ChallengeUpdate) RemovePredictionIDs(ids ...uuid.UUID) *ChallengeUpdate + func (cu *ChallengeUpdate) RemovePredictions(p ...*Prediction) *ChallengeUpdate + func (cu *ChallengeUpdate) RemoveProofIDs(ids ...uuid.UUID) *ChallengeUpdate + func (cu *ChallengeUpdate) RemoveProofs(p ...*Proof) *ChallengeUpdate + func (cu *ChallengeUpdate) Save(ctx context.Context) (int, error) + func (cu *ChallengeUpdate) SaveX(ctx context.Context) int + func (cu *ChallengeUpdate) SetAuthor(u *User) *ChallengeUpdate + func (cu *ChallengeUpdate) SetAuthorID(id uuid.UUID) *ChallengeUpdate + func (cu *ChallengeUpdate) SetContent(s string) *ChallengeUpdate + func (cu *ChallengeUpdate) SetDescription(s string) *ChallengeUpdate + func (cu *ChallengeUpdate) SetEndTime(t time.Time) *ChallengeUpdate + func (cu *ChallengeUpdate) SetNillableAuthorID(id *uuid.UUID) *ChallengeUpdate + func (cu *ChallengeUpdate) SetNillableDescription(s *string) *ChallengeUpdate + func (cu *ChallengeUpdate) SetNillableOutcome(b *bool) *ChallengeUpdate + func (cu *ChallengeUpdate) SetNillablePublished(b *bool) *ChallengeUpdate + func (cu *ChallengeUpdate) SetOutcome(b bool) *ChallengeUpdate + func (cu *ChallengeUpdate) SetPublished(b bool) *ChallengeUpdate + func (cu *ChallengeUpdate) SetStartTime(t time.Time) *ChallengeUpdate + func (cu *ChallengeUpdate) SetUpdateTime(t time.Time) *ChallengeUpdate + func (cu *ChallengeUpdate) Where(ps ...predicate.Challenge) *ChallengeUpdate + type ChallengeUpdateOne struct + func (cuo *ChallengeUpdateOne) AddPredictionIDs(ids ...uuid.UUID) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) AddPredictions(p ...*Prediction) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) AddProofIDs(ids ...uuid.UUID) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) AddProofs(p ...*Proof) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) ClearAuthor() *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) ClearDescription() *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) ClearOutcome() *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) ClearPredictions() *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) ClearProofs() *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) Exec(ctx context.Context) error + func (cuo *ChallengeUpdateOne) ExecX(ctx context.Context) + func (cuo *ChallengeUpdateOne) Mutation() *ChallengeMutation + func (cuo *ChallengeUpdateOne) RemovePredictionIDs(ids ...uuid.UUID) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) RemovePredictions(p ...*Prediction) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) RemoveProofIDs(ids ...uuid.UUID) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) RemoveProofs(p ...*Proof) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) Save(ctx context.Context) (*Challenge, error) + func (cuo *ChallengeUpdateOne) SaveX(ctx context.Context) *Challenge + func (cuo *ChallengeUpdateOne) Select(field string, fields ...string) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) SetAuthor(u *User) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) SetAuthorID(id uuid.UUID) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) SetContent(s string) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) SetDescription(s string) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) SetEndTime(t time.Time) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) SetNillableAuthorID(id *uuid.UUID) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) SetNillableDescription(s *string) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) SetNillableOutcome(b *bool) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) SetNillablePublished(b *bool) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) SetOutcome(b bool) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) SetPublished(b bool) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) SetStartTime(t time.Time) *ChallengeUpdateOne + func (cuo *ChallengeUpdateOne) SetUpdateTime(t time.Time) *ChallengeUpdateOne + type Challenges []*Challenge + type Client struct + Badge *BadgeClient + Challenge *ChallengeClient + Prediction *PredictionClient + Proof *ProofClient + Schema *migrate.Schema + User *UserClient + UserSession *UserSessionClient + func FromContext(ctx context.Context) *Client + func NewClient(opts ...Option) *Client + func Open(driverName, dataSourceName string, options ...Option) (*Client, error) + func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) + func (c *Client) Close() error + func (c *Client) Debug() *Client + func (c *Client) Tx(ctx context.Context) (*Tx, error) + func (c *Client) Use(hooks ...Hook) + type CommitFunc func(context.Context, *Tx) error + func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error + type CommitHook func(Committer) Committer + type Committer interface + Commit func(context.Context, *Tx) error + type ConstraintError struct + func (e *ConstraintError) Unwrap() error + func (e ConstraintError) Error() string + type Hook = ent.Hook + type MutateFunc = ent.MutateFunc + type Mutation = ent.Mutation + type Mutator = ent.Mutator + type NotFoundError struct + func (e *NotFoundError) Error() string + type NotLoadedError struct + func (e *NotLoadedError) Error() string + type NotSingularError struct + func (e *NotSingularError) Error() string + type Op = ent.Op + type Option func(*config) + func Debug() Option + func Driver(driver dialect.Driver) Option + func Log(fn func(...interface{})) Option + type OrderFunc func(*sql.Selector) + func Asc(fields ...string) OrderFunc + func Desc(fields ...string) OrderFunc + type Policy = ent.Policy + type Prediction struct + CreateTime time.Time + Edges PredictionEdges + ID uuid.UUID + Meta map[string]interface{} + Prognosis bool + UpdateTime time.Time + func (pr *Prediction) QueryChallenge() *ChallengeQuery + func (pr *Prediction) QueryUser() *UserQuery + func (pr *Prediction) String() string + func (pr *Prediction) Unwrap() *Prediction + func (pr *Prediction) Update() *PredictionUpdateOne + type PredictionClient struct + func NewPredictionClient(c config) *PredictionClient + func (c *PredictionClient) Create() *PredictionCreate + func (c *PredictionClient) CreateBulk(builders ...*PredictionCreate) *PredictionCreateBulk + func (c *PredictionClient) Delete() *PredictionDelete + func (c *PredictionClient) DeleteOne(pr *Prediction) *PredictionDeleteOne + func (c *PredictionClient) DeleteOneID(id uuid.UUID) *PredictionDeleteOne + func (c *PredictionClient) Get(ctx context.Context, id uuid.UUID) (*Prediction, error) + func (c *PredictionClient) GetX(ctx context.Context, id uuid.UUID) *Prediction + func (c *PredictionClient) Hooks() []Hook + func (c *PredictionClient) Query() *PredictionQuery + func (c *PredictionClient) QueryChallenge(pr *Prediction) *ChallengeQuery + func (c *PredictionClient) QueryUser(pr *Prediction) *UserQuery + func (c *PredictionClient) Update() *PredictionUpdate + func (c *PredictionClient) UpdateOne(pr *Prediction) *PredictionUpdateOne + func (c *PredictionClient) UpdateOneID(id uuid.UUID) *PredictionUpdateOne + func (c *PredictionClient) Use(hooks ...Hook) + type PredictionCreate struct + func (pc *PredictionCreate) Exec(ctx context.Context) error + func (pc *PredictionCreate) ExecX(ctx context.Context) + func (pc *PredictionCreate) Mutation() *PredictionMutation + func (pc *PredictionCreate) Save(ctx context.Context) (*Prediction, error) + func (pc *PredictionCreate) SaveX(ctx context.Context) *Prediction + func (pc *PredictionCreate) SetChallenge(c *Challenge) *PredictionCreate + func (pc *PredictionCreate) SetChallengeID(id uuid.UUID) *PredictionCreate + func (pc *PredictionCreate) SetCreateTime(t time.Time) *PredictionCreate + func (pc *PredictionCreate) SetID(u uuid.UUID) *PredictionCreate + func (pc *PredictionCreate) SetMeta(m map[string]interface{}) *PredictionCreate + func (pc *PredictionCreate) SetNillableCreateTime(t *time.Time) *PredictionCreate + func (pc *PredictionCreate) SetNillableID(u *uuid.UUID) *PredictionCreate + func (pc *PredictionCreate) SetNillableUpdateTime(t *time.Time) *PredictionCreate + func (pc *PredictionCreate) SetPrognosis(b bool) *PredictionCreate + func (pc *PredictionCreate) SetUpdateTime(t time.Time) *PredictionCreate + func (pc *PredictionCreate) SetUser(u *User) *PredictionCreate + func (pc *PredictionCreate) SetUserID(id uuid.UUID) *PredictionCreate + type PredictionCreateBulk struct + func (pcb *PredictionCreateBulk) Exec(ctx context.Context) error + func (pcb *PredictionCreateBulk) ExecX(ctx context.Context) + func (pcb *PredictionCreateBulk) Save(ctx context.Context) ([]*Prediction, error) + func (pcb *PredictionCreateBulk) SaveX(ctx context.Context) []*Prediction + type PredictionDelete struct + func (pd *PredictionDelete) Exec(ctx context.Context) (int, error) + func (pd *PredictionDelete) ExecX(ctx context.Context) int + func (pd *PredictionDelete) Where(ps ...predicate.Prediction) *PredictionDelete + type PredictionDeleteOne struct + func (pdo *PredictionDeleteOne) Exec(ctx context.Context) error + func (pdo *PredictionDeleteOne) ExecX(ctx context.Context) + type PredictionEdges struct + Challenge *Challenge + User *User + func (e PredictionEdges) ChallengeOrErr() (*Challenge, error) + func (e PredictionEdges) UserOrErr() (*User, error) + type PredictionGroupBy struct + func (pgb *PredictionGroupBy) Aggregate(fns ...AggregateFunc) *PredictionGroupBy + func (pgb *PredictionGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (pgb *PredictionGroupBy) BoolX(ctx context.Context) bool + func (pgb *PredictionGroupBy) Bools(ctx context.Context) ([]bool, error) + func (pgb *PredictionGroupBy) BoolsX(ctx context.Context) []bool + func (pgb *PredictionGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (pgb *PredictionGroupBy) Float64X(ctx context.Context) float64 + func (pgb *PredictionGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (pgb *PredictionGroupBy) Float64sX(ctx context.Context) []float64 + func (pgb *PredictionGroupBy) Int(ctx context.Context) (_ int, err error) + func (pgb *PredictionGroupBy) IntX(ctx context.Context) int + func (pgb *PredictionGroupBy) Ints(ctx context.Context) ([]int, error) + func (pgb *PredictionGroupBy) IntsX(ctx context.Context) []int + func (pgb *PredictionGroupBy) Scan(ctx context.Context, v interface{}) error + func (pgb *PredictionGroupBy) ScanX(ctx context.Context, v interface{}) + func (pgb *PredictionGroupBy) String(ctx context.Context) (_ string, err error) + func (pgb *PredictionGroupBy) StringX(ctx context.Context) string + func (pgb *PredictionGroupBy) Strings(ctx context.Context) ([]string, error) + func (pgb *PredictionGroupBy) StringsX(ctx context.Context) []string + type PredictionMutation struct + func (m *PredictionMutation) AddField(name string, value ent.Value) error + func (m *PredictionMutation) AddedEdges() []string + func (m *PredictionMutation) AddedField(name string) (ent.Value, bool) + func (m *PredictionMutation) AddedFields() []string + func (m *PredictionMutation) AddedIDs(name string) []ent.Value + func (m *PredictionMutation) ChallengeCleared() bool + func (m *PredictionMutation) ChallengeID() (id uuid.UUID, exists bool) + func (m *PredictionMutation) ChallengeIDs() (ids []uuid.UUID) + func (m *PredictionMutation) ClearChallenge() + func (m *PredictionMutation) ClearEdge(name string) error + func (m *PredictionMutation) ClearField(name string) error + func (m *PredictionMutation) ClearMeta() + func (m *PredictionMutation) ClearUser() + func (m *PredictionMutation) ClearedEdges() []string + func (m *PredictionMutation) ClearedFields() []string + func (m *PredictionMutation) CreateTime() (r time.Time, exists bool) + func (m *PredictionMutation) EdgeCleared(name string) bool + func (m *PredictionMutation) Field(name string) (ent.Value, bool) + func (m *PredictionMutation) FieldCleared(name string) bool + func (m *PredictionMutation) Fields() []string + func (m *PredictionMutation) ID() (id uuid.UUID, exists bool) + func (m *PredictionMutation) IDs(ctx context.Context) ([]uuid.UUID, error) + func (m *PredictionMutation) Meta() (r map[string]interface{}, exists bool) + func (m *PredictionMutation) MetaCleared() bool + func (m *PredictionMutation) OldCreateTime(ctx context.Context) (v time.Time, err error) + func (m *PredictionMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *PredictionMutation) OldMeta(ctx context.Context) (v map[string]interface{}, err error) + func (m *PredictionMutation) OldPrognosis(ctx context.Context) (v bool, err error) + func (m *PredictionMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error) + func (m *PredictionMutation) Op() Op + func (m *PredictionMutation) Prognosis() (r bool, exists bool) + func (m *PredictionMutation) RemovedEdges() []string + func (m *PredictionMutation) RemovedIDs(name string) []ent.Value + func (m *PredictionMutation) ResetChallenge() + func (m *PredictionMutation) ResetCreateTime() + func (m *PredictionMutation) ResetEdge(name string) error + func (m *PredictionMutation) ResetField(name string) error + func (m *PredictionMutation) ResetMeta() + func (m *PredictionMutation) ResetPrognosis() + func (m *PredictionMutation) ResetUpdateTime() + func (m *PredictionMutation) ResetUser() + func (m *PredictionMutation) SetChallengeID(id uuid.UUID) + func (m *PredictionMutation) SetCreateTime(t time.Time) + func (m *PredictionMutation) SetField(name string, value ent.Value) error + func (m *PredictionMutation) SetID(id uuid.UUID) + func (m *PredictionMutation) SetMeta(value map[string]interface{}) + func (m *PredictionMutation) SetPrognosis(b bool) + func (m *PredictionMutation) SetUpdateTime(t time.Time) + func (m *PredictionMutation) SetUserID(id uuid.UUID) + func (m *PredictionMutation) Type() string + func (m *PredictionMutation) UpdateTime() (r time.Time, exists bool) + func (m *PredictionMutation) UserCleared() bool + func (m *PredictionMutation) UserID() (id uuid.UUID, exists bool) + func (m *PredictionMutation) UserIDs() (ids []uuid.UUID) + func (m *PredictionMutation) Where(ps ...predicate.Prediction) + func (m PredictionMutation) Client() *Client + func (m PredictionMutation) Tx() (*Tx, error) + type PredictionQuery struct + func (pq *PredictionQuery) All(ctx context.Context) ([]*Prediction, error) + func (pq *PredictionQuery) AllX(ctx context.Context) []*Prediction + func (pq *PredictionQuery) Clone() *PredictionQuery + func (pq *PredictionQuery) Count(ctx context.Context) (int, error) + func (pq *PredictionQuery) CountX(ctx context.Context) int + func (pq *PredictionQuery) Exist(ctx context.Context) (bool, error) + func (pq *PredictionQuery) ExistX(ctx context.Context) bool + func (pq *PredictionQuery) First(ctx context.Context) (*Prediction, error) + func (pq *PredictionQuery) FirstID(ctx context.Context) (id uuid.UUID, err error) + func (pq *PredictionQuery) FirstIDX(ctx context.Context) uuid.UUID + func (pq *PredictionQuery) FirstX(ctx context.Context) *Prediction + func (pq *PredictionQuery) GroupBy(field string, fields ...string) *PredictionGroupBy + func (pq *PredictionQuery) IDs(ctx context.Context) ([]uuid.UUID, error) + func (pq *PredictionQuery) IDsX(ctx context.Context) []uuid.UUID + func (pq *PredictionQuery) Limit(limit int) *PredictionQuery + func (pq *PredictionQuery) Offset(offset int) *PredictionQuery + func (pq *PredictionQuery) Only(ctx context.Context) (*Prediction, error) + func (pq *PredictionQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error) + func (pq *PredictionQuery) OnlyIDX(ctx context.Context) uuid.UUID + func (pq *PredictionQuery) OnlyX(ctx context.Context) *Prediction + func (pq *PredictionQuery) Order(o ...OrderFunc) *PredictionQuery + func (pq *PredictionQuery) QueryChallenge() *ChallengeQuery + func (pq *PredictionQuery) QueryUser() *UserQuery + func (pq *PredictionQuery) Select(fields ...string) *PredictionSelect + func (pq *PredictionQuery) Unique(unique bool) *PredictionQuery + func (pq *PredictionQuery) Where(ps ...predicate.Prediction) *PredictionQuery + func (pq *PredictionQuery) WithChallenge(opts ...func(*ChallengeQuery)) *PredictionQuery + func (pq *PredictionQuery) WithUser(opts ...func(*UserQuery)) *PredictionQuery + type PredictionSelect struct + func (ps *PredictionSelect) Bool(ctx context.Context) (_ bool, err error) + func (ps *PredictionSelect) BoolX(ctx context.Context) bool + func (ps *PredictionSelect) Bools(ctx context.Context) ([]bool, error) + func (ps *PredictionSelect) BoolsX(ctx context.Context) []bool + func (ps *PredictionSelect) Float64(ctx context.Context) (_ float64, err error) + func (ps *PredictionSelect) Float64X(ctx context.Context) float64 + func (ps *PredictionSelect) Float64s(ctx context.Context) ([]float64, error) + func (ps *PredictionSelect) Float64sX(ctx context.Context) []float64 + func (ps *PredictionSelect) Int(ctx context.Context) (_ int, err error) + func (ps *PredictionSelect) IntX(ctx context.Context) int + func (ps *PredictionSelect) Ints(ctx context.Context) ([]int, error) + func (ps *PredictionSelect) IntsX(ctx context.Context) []int + func (ps *PredictionSelect) Scan(ctx context.Context, v interface{}) error + func (ps *PredictionSelect) ScanX(ctx context.Context, v interface{}) + func (ps *PredictionSelect) String(ctx context.Context) (_ string, err error) + func (ps *PredictionSelect) StringX(ctx context.Context) string + func (ps *PredictionSelect) Strings(ctx context.Context) ([]string, error) + func (ps *PredictionSelect) StringsX(ctx context.Context) []string + type PredictionUpdate struct + func (pu *PredictionUpdate) ClearChallenge() *PredictionUpdate + func (pu *PredictionUpdate) ClearMeta() *PredictionUpdate + func (pu *PredictionUpdate) ClearUser() *PredictionUpdate + func (pu *PredictionUpdate) Exec(ctx context.Context) error + func (pu *PredictionUpdate) ExecX(ctx context.Context) + func (pu *PredictionUpdate) Mutation() *PredictionMutation + func (pu *PredictionUpdate) Save(ctx context.Context) (int, error) + func (pu *PredictionUpdate) SaveX(ctx context.Context) int + func (pu *PredictionUpdate) SetChallenge(c *Challenge) *PredictionUpdate + func (pu *PredictionUpdate) SetChallengeID(id uuid.UUID) *PredictionUpdate + func (pu *PredictionUpdate) SetMeta(m map[string]interface{}) *PredictionUpdate + func (pu *PredictionUpdate) SetUpdateTime(t time.Time) *PredictionUpdate + func (pu *PredictionUpdate) SetUser(u *User) *PredictionUpdate + func (pu *PredictionUpdate) SetUserID(id uuid.UUID) *PredictionUpdate + func (pu *PredictionUpdate) Where(ps ...predicate.Prediction) *PredictionUpdate + type PredictionUpdateOne struct + func (puo *PredictionUpdateOne) ClearChallenge() *PredictionUpdateOne + func (puo *PredictionUpdateOne) ClearMeta() *PredictionUpdateOne + func (puo *PredictionUpdateOne) ClearUser() *PredictionUpdateOne + func (puo *PredictionUpdateOne) Exec(ctx context.Context) error + func (puo *PredictionUpdateOne) ExecX(ctx context.Context) + func (puo *PredictionUpdateOne) Mutation() *PredictionMutation + func (puo *PredictionUpdateOne) Save(ctx context.Context) (*Prediction, error) + func (puo *PredictionUpdateOne) SaveX(ctx context.Context) *Prediction + func (puo *PredictionUpdateOne) Select(field string, fields ...string) *PredictionUpdateOne + func (puo *PredictionUpdateOne) SetChallenge(c *Challenge) *PredictionUpdateOne + func (puo *PredictionUpdateOne) SetChallengeID(id uuid.UUID) *PredictionUpdateOne + func (puo *PredictionUpdateOne) SetMeta(m map[string]interface{}) *PredictionUpdateOne + func (puo *PredictionUpdateOne) SetUpdateTime(t time.Time) *PredictionUpdateOne + func (puo *PredictionUpdateOne) SetUser(u *User) *PredictionUpdateOne + func (puo *PredictionUpdateOne) SetUserID(id uuid.UUID) *PredictionUpdateOne + type Predictions []*Prediction + type Proof struct + Content string + CreateTime time.Time + Edges ProofEdges + ID uuid.UUID + Link string + Meta map[string]interface{} + UpdateTime time.Time + func (pr *Proof) QueryChallenge() *ChallengeQuery + func (pr *Proof) String() string + func (pr *Proof) Unwrap() *Proof + func (pr *Proof) Update() *ProofUpdateOne + type ProofClient struct + func NewProofClient(c config) *ProofClient + func (c *ProofClient) Create() *ProofCreate + func (c *ProofClient) CreateBulk(builders ...*ProofCreate) *ProofCreateBulk + func (c *ProofClient) Delete() *ProofDelete + func (c *ProofClient) DeleteOne(pr *Proof) *ProofDeleteOne + func (c *ProofClient) DeleteOneID(id uuid.UUID) *ProofDeleteOne + func (c *ProofClient) Get(ctx context.Context, id uuid.UUID) (*Proof, error) + func (c *ProofClient) GetX(ctx context.Context, id uuid.UUID) *Proof + func (c *ProofClient) Hooks() []Hook + func (c *ProofClient) Query() *ProofQuery + func (c *ProofClient) QueryChallenge(pr *Proof) *ChallengeQuery + func (c *ProofClient) Update() *ProofUpdate + func (c *ProofClient) UpdateOne(pr *Proof) *ProofUpdateOne + func (c *ProofClient) UpdateOneID(id uuid.UUID) *ProofUpdateOne + func (c *ProofClient) Use(hooks ...Hook) + type ProofCreate struct + func (pc *ProofCreate) Exec(ctx context.Context) error + func (pc *ProofCreate) ExecX(ctx context.Context) + func (pc *ProofCreate) Mutation() *ProofMutation + func (pc *ProofCreate) Save(ctx context.Context) (*Proof, error) + func (pc *ProofCreate) SaveX(ctx context.Context) *Proof + func (pc *ProofCreate) SetChallenge(c *Challenge) *ProofCreate + func (pc *ProofCreate) SetChallengeID(id uuid.UUID) *ProofCreate + func (pc *ProofCreate) SetContent(s string) *ProofCreate + func (pc *ProofCreate) SetCreateTime(t time.Time) *ProofCreate + func (pc *ProofCreate) SetID(u uuid.UUID) *ProofCreate + func (pc *ProofCreate) SetLink(s string) *ProofCreate + func (pc *ProofCreate) SetMeta(m map[string]interface{}) *ProofCreate + func (pc *ProofCreate) SetNillableCreateTime(t *time.Time) *ProofCreate + func (pc *ProofCreate) SetNillableID(u *uuid.UUID) *ProofCreate + func (pc *ProofCreate) SetNillableUpdateTime(t *time.Time) *ProofCreate + func (pc *ProofCreate) SetUpdateTime(t time.Time) *ProofCreate + type ProofCreateBulk struct + func (pcb *ProofCreateBulk) Exec(ctx context.Context) error + func (pcb *ProofCreateBulk) ExecX(ctx context.Context) + func (pcb *ProofCreateBulk) Save(ctx context.Context) ([]*Proof, error) + func (pcb *ProofCreateBulk) SaveX(ctx context.Context) []*Proof + type ProofDelete struct + func (pd *ProofDelete) Exec(ctx context.Context) (int, error) + func (pd *ProofDelete) ExecX(ctx context.Context) int + func (pd *ProofDelete) Where(ps ...predicate.Proof) *ProofDelete + type ProofDeleteOne struct + func (pdo *ProofDeleteOne) Exec(ctx context.Context) error + func (pdo *ProofDeleteOne) ExecX(ctx context.Context) + type ProofEdges struct + Challenge *Challenge + func (e ProofEdges) ChallengeOrErr() (*Challenge, error) + type ProofGroupBy struct + func (pgb *ProofGroupBy) Aggregate(fns ...AggregateFunc) *ProofGroupBy + func (pgb *ProofGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (pgb *ProofGroupBy) BoolX(ctx context.Context) bool + func (pgb *ProofGroupBy) Bools(ctx context.Context) ([]bool, error) + func (pgb *ProofGroupBy) BoolsX(ctx context.Context) []bool + func (pgb *ProofGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (pgb *ProofGroupBy) Float64X(ctx context.Context) float64 + func (pgb *ProofGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (pgb *ProofGroupBy) Float64sX(ctx context.Context) []float64 + func (pgb *ProofGroupBy) Int(ctx context.Context) (_ int, err error) + func (pgb *ProofGroupBy) IntX(ctx context.Context) int + func (pgb *ProofGroupBy) Ints(ctx context.Context) ([]int, error) + func (pgb *ProofGroupBy) IntsX(ctx context.Context) []int + func (pgb *ProofGroupBy) Scan(ctx context.Context, v interface{}) error + func (pgb *ProofGroupBy) ScanX(ctx context.Context, v interface{}) + func (pgb *ProofGroupBy) String(ctx context.Context) (_ string, err error) + func (pgb *ProofGroupBy) StringX(ctx context.Context) string + func (pgb *ProofGroupBy) Strings(ctx context.Context) ([]string, error) + func (pgb *ProofGroupBy) StringsX(ctx context.Context) []string + type ProofMutation struct + func (m *ProofMutation) AddField(name string, value ent.Value) error + func (m *ProofMutation) AddedEdges() []string + func (m *ProofMutation) AddedField(name string) (ent.Value, bool) + func (m *ProofMutation) AddedFields() []string + func (m *ProofMutation) AddedIDs(name string) []ent.Value + func (m *ProofMutation) ChallengeCleared() bool + func (m *ProofMutation) ChallengeID() (id uuid.UUID, exists bool) + func (m *ProofMutation) ChallengeIDs() (ids []uuid.UUID) + func (m *ProofMutation) ClearChallenge() + func (m *ProofMutation) ClearEdge(name string) error + func (m *ProofMutation) ClearField(name string) error + func (m *ProofMutation) ClearMeta() + func (m *ProofMutation) ClearedEdges() []string + func (m *ProofMutation) ClearedFields() []string + func (m *ProofMutation) Content() (r string, exists bool) + func (m *ProofMutation) CreateTime() (r time.Time, exists bool) + func (m *ProofMutation) EdgeCleared(name string) bool + func (m *ProofMutation) Field(name string) (ent.Value, bool) + func (m *ProofMutation) FieldCleared(name string) bool + func (m *ProofMutation) Fields() []string + func (m *ProofMutation) ID() (id uuid.UUID, exists bool) + func (m *ProofMutation) IDs(ctx context.Context) ([]uuid.UUID, error) + func (m *ProofMutation) Link() (r string, exists bool) + func (m *ProofMutation) Meta() (r map[string]interface{}, exists bool) + func (m *ProofMutation) MetaCleared() bool + func (m *ProofMutation) OldContent(ctx context.Context) (v string, err error) + func (m *ProofMutation) OldCreateTime(ctx context.Context) (v time.Time, err error) + func (m *ProofMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *ProofMutation) OldLink(ctx context.Context) (v string, err error) + func (m *ProofMutation) OldMeta(ctx context.Context) (v map[string]interface{}, err error) + func (m *ProofMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error) + func (m *ProofMutation) Op() Op + func (m *ProofMutation) RemovedEdges() []string + func (m *ProofMutation) RemovedIDs(name string) []ent.Value + func (m *ProofMutation) ResetChallenge() + func (m *ProofMutation) ResetContent() + func (m *ProofMutation) ResetCreateTime() + func (m *ProofMutation) ResetEdge(name string) error + func (m *ProofMutation) ResetField(name string) error + func (m *ProofMutation) ResetLink() + func (m *ProofMutation) ResetMeta() + func (m *ProofMutation) ResetUpdateTime() + func (m *ProofMutation) SetChallengeID(id uuid.UUID) + func (m *ProofMutation) SetContent(s string) + func (m *ProofMutation) SetCreateTime(t time.Time) + func (m *ProofMutation) SetField(name string, value ent.Value) error + func (m *ProofMutation) SetID(id uuid.UUID) + func (m *ProofMutation) SetLink(s string) + func (m *ProofMutation) SetMeta(value map[string]interface{}) + func (m *ProofMutation) SetUpdateTime(t time.Time) + func (m *ProofMutation) Type() string + func (m *ProofMutation) UpdateTime() (r time.Time, exists bool) + func (m *ProofMutation) Where(ps ...predicate.Proof) + func (m ProofMutation) Client() *Client + func (m ProofMutation) Tx() (*Tx, error) + type ProofQuery struct + func (pq *ProofQuery) All(ctx context.Context) ([]*Proof, error) + func (pq *ProofQuery) AllX(ctx context.Context) []*Proof + func (pq *ProofQuery) Clone() *ProofQuery + func (pq *ProofQuery) Count(ctx context.Context) (int, error) + func (pq *ProofQuery) CountX(ctx context.Context) int + func (pq *ProofQuery) Exist(ctx context.Context) (bool, error) + func (pq *ProofQuery) ExistX(ctx context.Context) bool + func (pq *ProofQuery) First(ctx context.Context) (*Proof, error) + func (pq *ProofQuery) FirstID(ctx context.Context) (id uuid.UUID, err error) + func (pq *ProofQuery) FirstIDX(ctx context.Context) uuid.UUID + func (pq *ProofQuery) FirstX(ctx context.Context) *Proof + func (pq *ProofQuery) GroupBy(field string, fields ...string) *ProofGroupBy + func (pq *ProofQuery) IDs(ctx context.Context) ([]uuid.UUID, error) + func (pq *ProofQuery) IDsX(ctx context.Context) []uuid.UUID + func (pq *ProofQuery) Limit(limit int) *ProofQuery + func (pq *ProofQuery) Offset(offset int) *ProofQuery + func (pq *ProofQuery) Only(ctx context.Context) (*Proof, error) + func (pq *ProofQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error) + func (pq *ProofQuery) OnlyIDX(ctx context.Context) uuid.UUID + func (pq *ProofQuery) OnlyX(ctx context.Context) *Proof + func (pq *ProofQuery) Order(o ...OrderFunc) *ProofQuery + func (pq *ProofQuery) QueryChallenge() *ChallengeQuery + func (pq *ProofQuery) Select(fields ...string) *ProofSelect + func (pq *ProofQuery) Unique(unique bool) *ProofQuery + func (pq *ProofQuery) Where(ps ...predicate.Proof) *ProofQuery + func (pq *ProofQuery) WithChallenge(opts ...func(*ChallengeQuery)) *ProofQuery + type ProofSelect struct + func (ps *ProofSelect) Bool(ctx context.Context) (_ bool, err error) + func (ps *ProofSelect) BoolX(ctx context.Context) bool + func (ps *ProofSelect) Bools(ctx context.Context) ([]bool, error) + func (ps *ProofSelect) BoolsX(ctx context.Context) []bool + func (ps *ProofSelect) Float64(ctx context.Context) (_ float64, err error) + func (ps *ProofSelect) Float64X(ctx context.Context) float64 + func (ps *ProofSelect) Float64s(ctx context.Context) ([]float64, error) + func (ps *ProofSelect) Float64sX(ctx context.Context) []float64 + func (ps *ProofSelect) Int(ctx context.Context) (_ int, err error) + func (ps *ProofSelect) IntX(ctx context.Context) int + func (ps *ProofSelect) Ints(ctx context.Context) ([]int, error) + func (ps *ProofSelect) IntsX(ctx context.Context) []int + func (ps *ProofSelect) Scan(ctx context.Context, v interface{}) error + func (ps *ProofSelect) ScanX(ctx context.Context, v interface{}) + func (ps *ProofSelect) String(ctx context.Context) (_ string, err error) + func (ps *ProofSelect) StringX(ctx context.Context) string + func (ps *ProofSelect) Strings(ctx context.Context) ([]string, error) + func (ps *ProofSelect) StringsX(ctx context.Context) []string + type ProofUpdate struct + func (pu *ProofUpdate) ClearChallenge() *ProofUpdate + func (pu *ProofUpdate) ClearMeta() *ProofUpdate + func (pu *ProofUpdate) Exec(ctx context.Context) error + func (pu *ProofUpdate) ExecX(ctx context.Context) + func (pu *ProofUpdate) Mutation() *ProofMutation + func (pu *ProofUpdate) Save(ctx context.Context) (int, error) + func (pu *ProofUpdate) SaveX(ctx context.Context) int + func (pu *ProofUpdate) SetChallenge(c *Challenge) *ProofUpdate + func (pu *ProofUpdate) SetChallengeID(id uuid.UUID) *ProofUpdate + func (pu *ProofUpdate) SetMeta(m map[string]interface{}) *ProofUpdate + func (pu *ProofUpdate) SetUpdateTime(t time.Time) *ProofUpdate + func (pu *ProofUpdate) Where(ps ...predicate.Proof) *ProofUpdate + type ProofUpdateOne struct + func (puo *ProofUpdateOne) ClearChallenge() *ProofUpdateOne + func (puo *ProofUpdateOne) ClearMeta() *ProofUpdateOne + func (puo *ProofUpdateOne) Exec(ctx context.Context) error + func (puo *ProofUpdateOne) ExecX(ctx context.Context) + func (puo *ProofUpdateOne) Mutation() *ProofMutation + func (puo *ProofUpdateOne) Save(ctx context.Context) (*Proof, error) + func (puo *ProofUpdateOne) SaveX(ctx context.Context) *Proof + func (puo *ProofUpdateOne) Select(field string, fields ...string) *ProofUpdateOne + func (puo *ProofUpdateOne) SetChallenge(c *Challenge) *ProofUpdateOne + func (puo *ProofUpdateOne) SetChallengeID(id uuid.UUID) *ProofUpdateOne + func (puo *ProofUpdateOne) SetMeta(m map[string]interface{}) *ProofUpdateOne + func (puo *ProofUpdateOne) SetUpdateTime(t time.Time) *ProofUpdateOne + type Proofs []*Proof + type Query = ent.Query + type RollbackFunc func(context.Context, *Tx) error + func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error + type RollbackHook func(Rollbacker) Rollbacker + type Rollbacker interface + Rollback func(context.Context, *Tx) error + type Tx struct + Badge *BadgeClient + Challenge *ChallengeClient + Prediction *PredictionClient + Proof *ProofClient + User *UserClient + UserSession *UserSessionClient + func TxFromContext(ctx context.Context) *Tx + func (tx *Tx) Client() *Client + func (tx *Tx) Commit() error + func (tx *Tx) OnCommit(f CommitHook) + func (tx *Tx) OnRollback(f RollbackHook) + func (tx *Tx) Rollback() error + type User struct + Admin bool + CreateTime time.Time + Edges UserEdges + Email string + ID uuid.UUID + Locale user.Locale + Meta map[string]interface{} + Name string + PasswordHash string + Picture string + UpdateTime time.Time + func (u *User) QueryBadges() *BadgeQuery + func (u *User) QueryChallenges() *ChallengeQuery + func (u *User) QueryPredictions() *PredictionQuery + func (u *User) QuerySessions() *UserSessionQuery + func (u *User) String() string + func (u *User) Unwrap() *User + func (u *User) Update() *UserUpdateOne + type UserClient struct + func NewUserClient(c config) *UserClient + func (c *UserClient) Create() *UserCreate + func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk + func (c *UserClient) Delete() *UserDelete + func (c *UserClient) DeleteOne(u *User) *UserDeleteOne + func (c *UserClient) DeleteOneID(id uuid.UUID) *UserDeleteOne + func (c *UserClient) Get(ctx context.Context, id uuid.UUID) (*User, error) + func (c *UserClient) GetX(ctx context.Context, id uuid.UUID) *User + func (c *UserClient) Hooks() []Hook + func (c *UserClient) Query() *UserQuery + func (c *UserClient) QueryBadges(u *User) *BadgeQuery + func (c *UserClient) QueryChallenges(u *User) *ChallengeQuery + func (c *UserClient) QueryPredictions(u *User) *PredictionQuery + func (c *UserClient) QuerySessions(u *User) *UserSessionQuery + func (c *UserClient) Update() *UserUpdate + func (c *UserClient) UpdateOne(u *User) *UserUpdateOne + func (c *UserClient) UpdateOneID(id uuid.UUID) *UserUpdateOne + func (c *UserClient) Use(hooks ...Hook) + type UserCreate struct + func (uc *UserCreate) AddBadgeIDs(ids ...int) *UserCreate + func (uc *UserCreate) AddBadges(b ...*Badge) *UserCreate + func (uc *UserCreate) AddChallengeIDs(ids ...uuid.UUID) *UserCreate + func (uc *UserCreate) AddChallenges(c ...*Challenge) *UserCreate + func (uc *UserCreate) AddPredictionIDs(ids ...uuid.UUID) *UserCreate + func (uc *UserCreate) AddPredictions(p ...*Prediction) *UserCreate + func (uc *UserCreate) AddSessionIDs(ids ...int) *UserCreate + func (uc *UserCreate) AddSessions(u ...*UserSession) *UserCreate + func (uc *UserCreate) Exec(ctx context.Context) error + func (uc *UserCreate) ExecX(ctx context.Context) + func (uc *UserCreate) Mutation() *UserMutation + func (uc *UserCreate) Save(ctx context.Context) (*User, error) + func (uc *UserCreate) SaveX(ctx context.Context) *User + func (uc *UserCreate) SetAdmin(b bool) *UserCreate + func (uc *UserCreate) SetCreateTime(t time.Time) *UserCreate + func (uc *UserCreate) SetEmail(s string) *UserCreate + func (uc *UserCreate) SetID(u uuid.UUID) *UserCreate + func (uc *UserCreate) SetLocale(u user.Locale) *UserCreate + func (uc *UserCreate) SetMeta(m map[string]interface{}) *UserCreate + func (uc *UserCreate) SetName(s string) *UserCreate + func (uc *UserCreate) SetNillableAdmin(b *bool) *UserCreate + func (uc *UserCreate) SetNillableCreateTime(t *time.Time) *UserCreate + func (uc *UserCreate) SetNillableID(u *uuid.UUID) *UserCreate + func (uc *UserCreate) SetNillableLocale(u *user.Locale) *UserCreate + func (uc *UserCreate) SetNillablePicture(s *string) *UserCreate + func (uc *UserCreate) SetNillableUpdateTime(t *time.Time) *UserCreate + func (uc *UserCreate) SetPasswordHash(s string) *UserCreate + func (uc *UserCreate) SetPicture(s string) *UserCreate + func (uc *UserCreate) SetUpdateTime(t time.Time) *UserCreate + type UserCreateBulk struct + func (ucb *UserCreateBulk) Exec(ctx context.Context) error + func (ucb *UserCreateBulk) ExecX(ctx context.Context) + func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) + func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User + type UserDelete struct + func (ud *UserDelete) Exec(ctx context.Context) (int, error) + func (ud *UserDelete) ExecX(ctx context.Context) int + func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete + type UserDeleteOne struct + func (udo *UserDeleteOne) Exec(ctx context.Context) error + func (udo *UserDeleteOne) ExecX(ctx context.Context) + type UserEdges struct + Badges []*Badge + Challenges []*Challenge + Predictions []*Prediction + Sessions []*UserSession + func (e UserEdges) BadgesOrErr() ([]*Badge, error) + func (e UserEdges) ChallengesOrErr() ([]*Challenge, error) + func (e UserEdges) PredictionsOrErr() ([]*Prediction, error) + func (e UserEdges) SessionsOrErr() ([]*UserSession, error) + type UserGroupBy struct + func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy + func (ugb *UserGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (ugb *UserGroupBy) BoolX(ctx context.Context) bool + func (ugb *UserGroupBy) Bools(ctx context.Context) ([]bool, error) + func (ugb *UserGroupBy) BoolsX(ctx context.Context) []bool + func (ugb *UserGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (ugb *UserGroupBy) Float64X(ctx context.Context) float64 + func (ugb *UserGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (ugb *UserGroupBy) Float64sX(ctx context.Context) []float64 + func (ugb *UserGroupBy) Int(ctx context.Context) (_ int, err error) + func (ugb *UserGroupBy) IntX(ctx context.Context) int + func (ugb *UserGroupBy) Ints(ctx context.Context) ([]int, error) + func (ugb *UserGroupBy) IntsX(ctx context.Context) []int + func (ugb *UserGroupBy) Scan(ctx context.Context, v interface{}) error + func (ugb *UserGroupBy) ScanX(ctx context.Context, v interface{}) + func (ugb *UserGroupBy) String(ctx context.Context) (_ string, err error) + func (ugb *UserGroupBy) StringX(ctx context.Context) string + func (ugb *UserGroupBy) Strings(ctx context.Context) ([]string, error) + func (ugb *UserGroupBy) StringsX(ctx context.Context) []string + type UserMutation struct + func (m *UserMutation) AddBadgeIDs(ids ...int) + func (m *UserMutation) AddChallengeIDs(ids ...uuid.UUID) + func (m *UserMutation) AddField(name string, value ent.Value) error + func (m *UserMutation) AddPredictionIDs(ids ...uuid.UUID) + func (m *UserMutation) AddSessionIDs(ids ...int) + func (m *UserMutation) AddedEdges() []string + func (m *UserMutation) AddedField(name string) (ent.Value, bool) + func (m *UserMutation) AddedFields() []string + func (m *UserMutation) AddedIDs(name string) []ent.Value + func (m *UserMutation) Admin() (r bool, exists bool) + func (m *UserMutation) BadgesCleared() bool + func (m *UserMutation) BadgesIDs() (ids []int) + func (m *UserMutation) ChallengesCleared() bool + func (m *UserMutation) ChallengesIDs() (ids []uuid.UUID) + func (m *UserMutation) ClearBadges() + func (m *UserMutation) ClearChallenges() + func (m *UserMutation) ClearEdge(name string) error + func (m *UserMutation) ClearField(name string) error + func (m *UserMutation) ClearMeta() + func (m *UserMutation) ClearPicture() + func (m *UserMutation) ClearPredictions() + func (m *UserMutation) ClearSessions() + func (m *UserMutation) ClearedEdges() []string + func (m *UserMutation) ClearedFields() []string + func (m *UserMutation) CreateTime() (r time.Time, exists bool) + func (m *UserMutation) EdgeCleared(name string) bool + func (m *UserMutation) Email() (r string, exists bool) + func (m *UserMutation) Field(name string) (ent.Value, bool) + func (m *UserMutation) FieldCleared(name string) bool + func (m *UserMutation) Fields() []string + func (m *UserMutation) ID() (id uuid.UUID, exists bool) + func (m *UserMutation) IDs(ctx context.Context) ([]uuid.UUID, error) + func (m *UserMutation) Locale() (r user.Locale, exists bool) + func (m *UserMutation) Meta() (r map[string]interface{}, exists bool) + func (m *UserMutation) MetaCleared() bool + func (m *UserMutation) Name() (r string, exists bool) + func (m *UserMutation) OldAdmin(ctx context.Context) (v bool, err error) + func (m *UserMutation) OldCreateTime(ctx context.Context) (v time.Time, err error) + func (m *UserMutation) OldEmail(ctx context.Context) (v string, err error) + func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *UserMutation) OldLocale(ctx context.Context) (v user.Locale, err error) + func (m *UserMutation) OldMeta(ctx context.Context) (v map[string]interface{}, err error) + func (m *UserMutation) OldName(ctx context.Context) (v string, err error) + func (m *UserMutation) OldPasswordHash(ctx context.Context) (v string, err error) + func (m *UserMutation) OldPicture(ctx context.Context) (v string, err error) + func (m *UserMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error) + func (m *UserMutation) Op() Op + func (m *UserMutation) PasswordHash() (r string, exists bool) + func (m *UserMutation) Picture() (r string, exists bool) + func (m *UserMutation) PictureCleared() bool + func (m *UserMutation) PredictionsCleared() bool + func (m *UserMutation) PredictionsIDs() (ids []uuid.UUID) + func (m *UserMutation) RemoveBadgeIDs(ids ...int) + func (m *UserMutation) RemoveChallengeIDs(ids ...uuid.UUID) + func (m *UserMutation) RemovePredictionIDs(ids ...uuid.UUID) + func (m *UserMutation) RemoveSessionIDs(ids ...int) + func (m *UserMutation) RemovedBadgesIDs() (ids []int) + func (m *UserMutation) RemovedChallengesIDs() (ids []uuid.UUID) + func (m *UserMutation) RemovedEdges() []string + func (m *UserMutation) RemovedIDs(name string) []ent.Value + func (m *UserMutation) RemovedPredictionsIDs() (ids []uuid.UUID) + func (m *UserMutation) RemovedSessionsIDs() (ids []int) + func (m *UserMutation) ResetAdmin() + func (m *UserMutation) ResetBadges() + func (m *UserMutation) ResetChallenges() + func (m *UserMutation) ResetCreateTime() + func (m *UserMutation) ResetEdge(name string) error + func (m *UserMutation) ResetEmail() + func (m *UserMutation) ResetField(name string) error + func (m *UserMutation) ResetLocale() + func (m *UserMutation) ResetMeta() + func (m *UserMutation) ResetName() + func (m *UserMutation) ResetPasswordHash() + func (m *UserMutation) ResetPicture() + func (m *UserMutation) ResetPredictions() + func (m *UserMutation) ResetSessions() + func (m *UserMutation) ResetUpdateTime() + func (m *UserMutation) SessionsCleared() bool + func (m *UserMutation) SessionsIDs() (ids []int) + func (m *UserMutation) SetAdmin(b bool) + func (m *UserMutation) SetCreateTime(t time.Time) + func (m *UserMutation) SetEmail(s string) + func (m *UserMutation) SetField(name string, value ent.Value) error + func (m *UserMutation) SetID(id uuid.UUID) + func (m *UserMutation) SetLocale(u user.Locale) + func (m *UserMutation) SetMeta(value map[string]interface{}) + func (m *UserMutation) SetName(s string) + func (m *UserMutation) SetPasswordHash(s string) + func (m *UserMutation) SetPicture(s string) + func (m *UserMutation) SetUpdateTime(t time.Time) + func (m *UserMutation) Type() string + func (m *UserMutation) UpdateTime() (r time.Time, exists bool) + func (m *UserMutation) Where(ps ...predicate.User) + func (m UserMutation) Client() *Client + func (m UserMutation) Tx() (*Tx, error) + type UserQuery struct + func (uq *UserQuery) All(ctx context.Context) ([]*User, error) + func (uq *UserQuery) AllX(ctx context.Context) []*User + func (uq *UserQuery) Clone() *UserQuery + func (uq *UserQuery) Count(ctx context.Context) (int, error) + func (uq *UserQuery) CountX(ctx context.Context) int + func (uq *UserQuery) Exist(ctx context.Context) (bool, error) + func (uq *UserQuery) ExistX(ctx context.Context) bool + func (uq *UserQuery) First(ctx context.Context) (*User, error) + func (uq *UserQuery) FirstID(ctx context.Context) (id uuid.UUID, err error) + func (uq *UserQuery) FirstIDX(ctx context.Context) uuid.UUID + func (uq *UserQuery) FirstX(ctx context.Context) *User + func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy + func (uq *UserQuery) IDs(ctx context.Context) ([]uuid.UUID, error) + func (uq *UserQuery) IDsX(ctx context.Context) []uuid.UUID + func (uq *UserQuery) Limit(limit int) *UserQuery + func (uq *UserQuery) Offset(offset int) *UserQuery + func (uq *UserQuery) Only(ctx context.Context) (*User, error) + func (uq *UserQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error) + func (uq *UserQuery) OnlyIDX(ctx context.Context) uuid.UUID + func (uq *UserQuery) OnlyX(ctx context.Context) *User + func (uq *UserQuery) Order(o ...OrderFunc) *UserQuery + func (uq *UserQuery) QueryBadges() *BadgeQuery + func (uq *UserQuery) QueryChallenges() *ChallengeQuery + func (uq *UserQuery) QueryPredictions() *PredictionQuery + func (uq *UserQuery) QuerySessions() *UserSessionQuery + func (uq *UserQuery) Select(fields ...string) *UserSelect + func (uq *UserQuery) Unique(unique bool) *UserQuery + func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery + func (uq *UserQuery) WithBadges(opts ...func(*BadgeQuery)) *UserQuery + func (uq *UserQuery) WithChallenges(opts ...func(*ChallengeQuery)) *UserQuery + func (uq *UserQuery) WithPredictions(opts ...func(*PredictionQuery)) *UserQuery + func (uq *UserQuery) WithSessions(opts ...func(*UserSessionQuery)) *UserQuery + type UserSelect struct + func (us *UserSelect) Bool(ctx context.Context) (_ bool, err error) + func (us *UserSelect) BoolX(ctx context.Context) bool + func (us *UserSelect) Bools(ctx context.Context) ([]bool, error) + func (us *UserSelect) BoolsX(ctx context.Context) []bool + func (us *UserSelect) Float64(ctx context.Context) (_ float64, err error) + func (us *UserSelect) Float64X(ctx context.Context) float64 + func (us *UserSelect) Float64s(ctx context.Context) ([]float64, error) + func (us *UserSelect) Float64sX(ctx context.Context) []float64 + func (us *UserSelect) Int(ctx context.Context) (_ int, err error) + func (us *UserSelect) IntX(ctx context.Context) int + func (us *UserSelect) Ints(ctx context.Context) ([]int, error) + func (us *UserSelect) IntsX(ctx context.Context) []int + func (us *UserSelect) Scan(ctx context.Context, v interface{}) error + func (us *UserSelect) ScanX(ctx context.Context, v interface{}) + func (us *UserSelect) String(ctx context.Context) (_ string, err error) + func (us *UserSelect) StringX(ctx context.Context) string + func (us *UserSelect) Strings(ctx context.Context) ([]string, error) + func (us *UserSelect) StringsX(ctx context.Context) []string + type UserSession struct + Active bool + CreateTime time.Time + Edges UserSessionEdges + ID int + IP string + LastActivity time.Time + Meta map[string]interface{} + Sid string + UpdateTime time.Time + UserAgent string + func (us *UserSession) QueryUser() *UserQuery + func (us *UserSession) String() string + func (us *UserSession) Unwrap() *UserSession + func (us *UserSession) Update() *UserSessionUpdateOne + type UserSessionClient struct + func NewUserSessionClient(c config) *UserSessionClient + func (c *UserSessionClient) Create() *UserSessionCreate + func (c *UserSessionClient) CreateBulk(builders ...*UserSessionCreate) *UserSessionCreateBulk + func (c *UserSessionClient) Delete() *UserSessionDelete + func (c *UserSessionClient) DeleteOne(us *UserSession) *UserSessionDeleteOne + func (c *UserSessionClient) DeleteOneID(id int) *UserSessionDeleteOne + func (c *UserSessionClient) Get(ctx context.Context, id int) (*UserSession, error) + func (c *UserSessionClient) GetX(ctx context.Context, id int) *UserSession + func (c *UserSessionClient) Hooks() []Hook + func (c *UserSessionClient) Query() *UserSessionQuery + func (c *UserSessionClient) QueryUser(us *UserSession) *UserQuery + func (c *UserSessionClient) Update() *UserSessionUpdate + func (c *UserSessionClient) UpdateOne(us *UserSession) *UserSessionUpdateOne + func (c *UserSessionClient) UpdateOneID(id int) *UserSessionUpdateOne + func (c *UserSessionClient) Use(hooks ...Hook) + type UserSessionCreate struct + func (usc *UserSessionCreate) Exec(ctx context.Context) error + func (usc *UserSessionCreate) ExecX(ctx context.Context) + func (usc *UserSessionCreate) Mutation() *UserSessionMutation + func (usc *UserSessionCreate) Save(ctx context.Context) (*UserSession, error) + func (usc *UserSessionCreate) SaveX(ctx context.Context) *UserSession + func (usc *UserSessionCreate) SetActive(b bool) *UserSessionCreate + func (usc *UserSessionCreate) SetCreateTime(t time.Time) *UserSessionCreate + func (usc *UserSessionCreate) SetIP(s string) *UserSessionCreate + func (usc *UserSessionCreate) SetLastActivity(t time.Time) *UserSessionCreate + func (usc *UserSessionCreate) SetMeta(m map[string]interface{}) *UserSessionCreate + func (usc *UserSessionCreate) SetNillableActive(b *bool) *UserSessionCreate + func (usc *UserSessionCreate) SetNillableCreateTime(t *time.Time) *UserSessionCreate + func (usc *UserSessionCreate) SetNillableLastActivity(t *time.Time) *UserSessionCreate + func (usc *UserSessionCreate) SetNillableUpdateTime(t *time.Time) *UserSessionCreate + func (usc *UserSessionCreate) SetSid(s string) *UserSessionCreate + func (usc *UserSessionCreate) SetUpdateTime(t time.Time) *UserSessionCreate + func (usc *UserSessionCreate) SetUser(u *User) *UserSessionCreate + func (usc *UserSessionCreate) SetUserAgent(s string) *UserSessionCreate + func (usc *UserSessionCreate) SetUserID(id uuid.UUID) *UserSessionCreate + type UserSessionCreateBulk struct + func (uscb *UserSessionCreateBulk) Exec(ctx context.Context) error + func (uscb *UserSessionCreateBulk) ExecX(ctx context.Context) + func (uscb *UserSessionCreateBulk) Save(ctx context.Context) ([]*UserSession, error) + func (uscb *UserSessionCreateBulk) SaveX(ctx context.Context) []*UserSession + type UserSessionDelete struct + func (usd *UserSessionDelete) Exec(ctx context.Context) (int, error) + func (usd *UserSessionDelete) ExecX(ctx context.Context) int + func (usd *UserSessionDelete) Where(ps ...predicate.UserSession) *UserSessionDelete + type UserSessionDeleteOne struct + func (usdo *UserSessionDeleteOne) Exec(ctx context.Context) error + func (usdo *UserSessionDeleteOne) ExecX(ctx context.Context) + type UserSessionEdges struct + User *User + func (e UserSessionEdges) UserOrErr() (*User, error) + type UserSessionGroupBy struct + func (usgb *UserSessionGroupBy) Aggregate(fns ...AggregateFunc) *UserSessionGroupBy + func (usgb *UserSessionGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (usgb *UserSessionGroupBy) BoolX(ctx context.Context) bool + func (usgb *UserSessionGroupBy) Bools(ctx context.Context) ([]bool, error) + func (usgb *UserSessionGroupBy) BoolsX(ctx context.Context) []bool + func (usgb *UserSessionGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (usgb *UserSessionGroupBy) Float64X(ctx context.Context) float64 + func (usgb *UserSessionGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (usgb *UserSessionGroupBy) Float64sX(ctx context.Context) []float64 + func (usgb *UserSessionGroupBy) Int(ctx context.Context) (_ int, err error) + func (usgb *UserSessionGroupBy) IntX(ctx context.Context) int + func (usgb *UserSessionGroupBy) Ints(ctx context.Context) ([]int, error) + func (usgb *UserSessionGroupBy) IntsX(ctx context.Context) []int + func (usgb *UserSessionGroupBy) Scan(ctx context.Context, v interface{}) error + func (usgb *UserSessionGroupBy) ScanX(ctx context.Context, v interface{}) + func (usgb *UserSessionGroupBy) String(ctx context.Context) (_ string, err error) + func (usgb *UserSessionGroupBy) StringX(ctx context.Context) string + func (usgb *UserSessionGroupBy) Strings(ctx context.Context) ([]string, error) + func (usgb *UserSessionGroupBy) StringsX(ctx context.Context) []string + type UserSessionMutation struct + func (m *UserSessionMutation) Active() (r bool, exists bool) + func (m *UserSessionMutation) AddField(name string, value ent.Value) error + func (m *UserSessionMutation) AddedEdges() []string + func (m *UserSessionMutation) AddedField(name string) (ent.Value, bool) + func (m *UserSessionMutation) AddedFields() []string + func (m *UserSessionMutation) AddedIDs(name string) []ent.Value + func (m *UserSessionMutation) ClearEdge(name string) error + func (m *UserSessionMutation) ClearField(name string) error + func (m *UserSessionMutation) ClearMeta() + func (m *UserSessionMutation) ClearUser() + func (m *UserSessionMutation) ClearedEdges() []string + func (m *UserSessionMutation) ClearedFields() []string + func (m *UserSessionMutation) CreateTime() (r time.Time, exists bool) + func (m *UserSessionMutation) EdgeCleared(name string) bool + func (m *UserSessionMutation) Field(name string) (ent.Value, bool) + func (m *UserSessionMutation) FieldCleared(name string) bool + func (m *UserSessionMutation) Fields() []string + func (m *UserSessionMutation) ID() (id int, exists bool) + func (m *UserSessionMutation) IDs(ctx context.Context) ([]int, error) + func (m *UserSessionMutation) IP() (r string, exists bool) + func (m *UserSessionMutation) LastActivity() (r time.Time, exists bool) + func (m *UserSessionMutation) Meta() (r map[string]interface{}, exists bool) + func (m *UserSessionMutation) MetaCleared() bool + func (m *UserSessionMutation) OldActive(ctx context.Context) (v bool, err error) + func (m *UserSessionMutation) OldCreateTime(ctx context.Context) (v time.Time, err error) + func (m *UserSessionMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *UserSessionMutation) OldIP(ctx context.Context) (v string, err error) + func (m *UserSessionMutation) OldLastActivity(ctx context.Context) (v time.Time, err error) + func (m *UserSessionMutation) OldMeta(ctx context.Context) (v map[string]interface{}, err error) + func (m *UserSessionMutation) OldSid(ctx context.Context) (v string, err error) + func (m *UserSessionMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error) + func (m *UserSessionMutation) OldUserAgent(ctx context.Context) (v string, err error) + func (m *UserSessionMutation) Op() Op + func (m *UserSessionMutation) RemovedEdges() []string + func (m *UserSessionMutation) RemovedIDs(name string) []ent.Value + func (m *UserSessionMutation) ResetActive() + func (m *UserSessionMutation) ResetCreateTime() + func (m *UserSessionMutation) ResetEdge(name string) error + func (m *UserSessionMutation) ResetField(name string) error + func (m *UserSessionMutation) ResetIP() + func (m *UserSessionMutation) ResetLastActivity() + func (m *UserSessionMutation) ResetMeta() + func (m *UserSessionMutation) ResetSid() + func (m *UserSessionMutation) ResetUpdateTime() + func (m *UserSessionMutation) ResetUser() + func (m *UserSessionMutation) ResetUserAgent() + func (m *UserSessionMutation) SetActive(b bool) + func (m *UserSessionMutation) SetCreateTime(t time.Time) + func (m *UserSessionMutation) SetField(name string, value ent.Value) error + func (m *UserSessionMutation) SetIP(s string) + func (m *UserSessionMutation) SetLastActivity(t time.Time) + func (m *UserSessionMutation) SetMeta(value map[string]interface{}) + func (m *UserSessionMutation) SetSid(s string) + func (m *UserSessionMutation) SetUpdateTime(t time.Time) + func (m *UserSessionMutation) SetUserAgent(s string) + func (m *UserSessionMutation) SetUserID(id uuid.UUID) + func (m *UserSessionMutation) Sid() (r string, exists bool) + func (m *UserSessionMutation) Type() string + func (m *UserSessionMutation) UpdateTime() (r time.Time, exists bool) + func (m *UserSessionMutation) UserAgent() (r string, exists bool) + func (m *UserSessionMutation) UserCleared() bool + func (m *UserSessionMutation) UserID() (id uuid.UUID, exists bool) + func (m *UserSessionMutation) UserIDs() (ids []uuid.UUID) + func (m *UserSessionMutation) Where(ps ...predicate.UserSession) + func (m UserSessionMutation) Client() *Client + func (m UserSessionMutation) Tx() (*Tx, error) + type UserSessionQuery struct + func (usq *UserSessionQuery) All(ctx context.Context) ([]*UserSession, error) + func (usq *UserSessionQuery) AllX(ctx context.Context) []*UserSession + func (usq *UserSessionQuery) Clone() *UserSessionQuery + func (usq *UserSessionQuery) Count(ctx context.Context) (int, error) + func (usq *UserSessionQuery) CountX(ctx context.Context) int + func (usq *UserSessionQuery) Exist(ctx context.Context) (bool, error) + func (usq *UserSessionQuery) ExistX(ctx context.Context) bool + func (usq *UserSessionQuery) First(ctx context.Context) (*UserSession, error) + func (usq *UserSessionQuery) FirstID(ctx context.Context) (id int, err error) + func (usq *UserSessionQuery) FirstIDX(ctx context.Context) int + func (usq *UserSessionQuery) FirstX(ctx context.Context) *UserSession + func (usq *UserSessionQuery) GroupBy(field string, fields ...string) *UserSessionGroupBy + func (usq *UserSessionQuery) IDs(ctx context.Context) ([]int, error) + func (usq *UserSessionQuery) IDsX(ctx context.Context) []int + func (usq *UserSessionQuery) Limit(limit int) *UserSessionQuery + func (usq *UserSessionQuery) Offset(offset int) *UserSessionQuery + func (usq *UserSessionQuery) Only(ctx context.Context) (*UserSession, error) + func (usq *UserSessionQuery) OnlyID(ctx context.Context) (id int, err error) + func (usq *UserSessionQuery) OnlyIDX(ctx context.Context) int + func (usq *UserSessionQuery) OnlyX(ctx context.Context) *UserSession + func (usq *UserSessionQuery) Order(o ...OrderFunc) *UserSessionQuery + func (usq *UserSessionQuery) QueryUser() *UserQuery + func (usq *UserSessionQuery) Select(fields ...string) *UserSessionSelect + func (usq *UserSessionQuery) Unique(unique bool) *UserSessionQuery + func (usq *UserSessionQuery) Where(ps ...predicate.UserSession) *UserSessionQuery + func (usq *UserSessionQuery) WithUser(opts ...func(*UserQuery)) *UserSessionQuery + type UserSessionSelect struct + func (uss *UserSessionSelect) Bool(ctx context.Context) (_ bool, err error) + func (uss *UserSessionSelect) BoolX(ctx context.Context) bool + func (uss *UserSessionSelect) Bools(ctx context.Context) ([]bool, error) + func (uss *UserSessionSelect) BoolsX(ctx context.Context) []bool + func (uss *UserSessionSelect) Float64(ctx context.Context) (_ float64, err error) + func (uss *UserSessionSelect) Float64X(ctx context.Context) float64 + func (uss *UserSessionSelect) Float64s(ctx context.Context) ([]float64, error) + func (uss *UserSessionSelect) Float64sX(ctx context.Context) []float64 + func (uss *UserSessionSelect) Int(ctx context.Context) (_ int, err error) + func (uss *UserSessionSelect) IntX(ctx context.Context) int + func (uss *UserSessionSelect) Ints(ctx context.Context) ([]int, error) + func (uss *UserSessionSelect) IntsX(ctx context.Context) []int + func (uss *UserSessionSelect) Scan(ctx context.Context, v interface{}) error + func (uss *UserSessionSelect) ScanX(ctx context.Context, v interface{}) + func (uss *UserSessionSelect) String(ctx context.Context) (_ string, err error) + func (uss *UserSessionSelect) StringX(ctx context.Context) string + func (uss *UserSessionSelect) Strings(ctx context.Context) ([]string, error) + func (uss *UserSessionSelect) StringsX(ctx context.Context) []string + type UserSessionUpdate struct + func (usu *UserSessionUpdate) ClearMeta() *UserSessionUpdate + func (usu *UserSessionUpdate) ClearUser() *UserSessionUpdate + func (usu *UserSessionUpdate) Exec(ctx context.Context) error + func (usu *UserSessionUpdate) ExecX(ctx context.Context) + func (usu *UserSessionUpdate) Mutation() *UserSessionMutation + func (usu *UserSessionUpdate) Save(ctx context.Context) (int, error) + func (usu *UserSessionUpdate) SaveX(ctx context.Context) int + func (usu *UserSessionUpdate) SetActive(b bool) *UserSessionUpdate + func (usu *UserSessionUpdate) SetIP(s string) *UserSessionUpdate + func (usu *UserSessionUpdate) SetLastActivity(t time.Time) *UserSessionUpdate + func (usu *UserSessionUpdate) SetMeta(m map[string]interface{}) *UserSessionUpdate + func (usu *UserSessionUpdate) SetNillableActive(b *bool) *UserSessionUpdate + func (usu *UserSessionUpdate) SetNillableLastActivity(t *time.Time) *UserSessionUpdate + func (usu *UserSessionUpdate) SetUpdateTime(t time.Time) *UserSessionUpdate + func (usu *UserSessionUpdate) SetUser(u *User) *UserSessionUpdate + func (usu *UserSessionUpdate) SetUserAgent(s string) *UserSessionUpdate + func (usu *UserSessionUpdate) SetUserID(id uuid.UUID) *UserSessionUpdate + func (usu *UserSessionUpdate) Where(ps ...predicate.UserSession) *UserSessionUpdate + type UserSessionUpdateOne struct + func (usuo *UserSessionUpdateOne) ClearMeta() *UserSessionUpdateOne + func (usuo *UserSessionUpdateOne) ClearUser() *UserSessionUpdateOne + func (usuo *UserSessionUpdateOne) Exec(ctx context.Context) error + func (usuo *UserSessionUpdateOne) ExecX(ctx context.Context) + func (usuo *UserSessionUpdateOne) Mutation() *UserSessionMutation + func (usuo *UserSessionUpdateOne) Save(ctx context.Context) (*UserSession, error) + func (usuo *UserSessionUpdateOne) SaveX(ctx context.Context) *UserSession + func (usuo *UserSessionUpdateOne) Select(field string, fields ...string) *UserSessionUpdateOne + func (usuo *UserSessionUpdateOne) SetActive(b bool) *UserSessionUpdateOne + func (usuo *UserSessionUpdateOne) SetIP(s string) *UserSessionUpdateOne + func (usuo *UserSessionUpdateOne) SetLastActivity(t time.Time) *UserSessionUpdateOne + func (usuo *UserSessionUpdateOne) SetMeta(m map[string]interface{}) *UserSessionUpdateOne + func (usuo *UserSessionUpdateOne) SetNillableActive(b *bool) *UserSessionUpdateOne + func (usuo *UserSessionUpdateOne) SetNillableLastActivity(t *time.Time) *UserSessionUpdateOne + func (usuo *UserSessionUpdateOne) SetUpdateTime(t time.Time) *UserSessionUpdateOne + func (usuo *UserSessionUpdateOne) SetUser(u *User) *UserSessionUpdateOne + func (usuo *UserSessionUpdateOne) SetUserAgent(s string) *UserSessionUpdateOne + func (usuo *UserSessionUpdateOne) SetUserID(id uuid.UUID) *UserSessionUpdateOne + type UserSessions []*UserSession + type UserUpdate struct + func (uu *UserUpdate) AddBadgeIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddBadges(b ...*Badge) *UserUpdate + func (uu *UserUpdate) AddChallengeIDs(ids ...uuid.UUID) *UserUpdate + func (uu *UserUpdate) AddChallenges(c ...*Challenge) *UserUpdate + func (uu *UserUpdate) AddPredictionIDs(ids ...uuid.UUID) *UserUpdate + func (uu *UserUpdate) AddPredictions(p ...*Prediction) *UserUpdate + func (uu *UserUpdate) AddSessionIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddSessions(u ...*UserSession) *UserUpdate + func (uu *UserUpdate) ClearBadges() *UserUpdate + func (uu *UserUpdate) ClearChallenges() *UserUpdate + func (uu *UserUpdate) ClearMeta() *UserUpdate + func (uu *UserUpdate) ClearPicture() *UserUpdate + func (uu *UserUpdate) ClearPredictions() *UserUpdate + func (uu *UserUpdate) ClearSessions() *UserUpdate + func (uu *UserUpdate) Exec(ctx context.Context) error + func (uu *UserUpdate) ExecX(ctx context.Context) + func (uu *UserUpdate) Mutation() *UserMutation + func (uu *UserUpdate) RemoveBadgeIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) RemoveBadges(b ...*Badge) *UserUpdate + func (uu *UserUpdate) RemoveChallengeIDs(ids ...uuid.UUID) *UserUpdate + func (uu *UserUpdate) RemoveChallenges(c ...*Challenge) *UserUpdate + func (uu *UserUpdate) RemovePredictionIDs(ids ...uuid.UUID) *UserUpdate + func (uu *UserUpdate) RemovePredictions(p ...*Prediction) *UserUpdate + func (uu *UserUpdate) RemoveSessionIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) RemoveSessions(u ...*UserSession) *UserUpdate + func (uu *UserUpdate) Save(ctx context.Context) (int, error) + func (uu *UserUpdate) SaveX(ctx context.Context) int + func (uu *UserUpdate) SetAdmin(b bool) *UserUpdate + func (uu *UserUpdate) SetEmail(s string) *UserUpdate + func (uu *UserUpdate) SetLocale(u user.Locale) *UserUpdate + func (uu *UserUpdate) SetMeta(m map[string]interface{}) *UserUpdate + func (uu *UserUpdate) SetName(s string) *UserUpdate + func (uu *UserUpdate) SetNillableAdmin(b *bool) *UserUpdate + func (uu *UserUpdate) SetNillableLocale(u *user.Locale) *UserUpdate + func (uu *UserUpdate) SetNillablePicture(s *string) *UserUpdate + func (uu *UserUpdate) SetPasswordHash(s string) *UserUpdate + func (uu *UserUpdate) SetPicture(s string) *UserUpdate + func (uu *UserUpdate) SetUpdateTime(t time.Time) *UserUpdate + func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate + type UserUpdateOne struct + func (uuo *UserUpdateOne) AddBadgeIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) AddBadges(b ...*Badge) *UserUpdateOne + func (uuo *UserUpdateOne) AddChallengeIDs(ids ...uuid.UUID) *UserUpdateOne + func (uuo *UserUpdateOne) AddChallenges(c ...*Challenge) *UserUpdateOne + func (uuo *UserUpdateOne) AddPredictionIDs(ids ...uuid.UUID) *UserUpdateOne + func (uuo *UserUpdateOne) AddPredictions(p ...*Prediction) *UserUpdateOne + func (uuo *UserUpdateOne) AddSessionIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) AddSessions(u ...*UserSession) *UserUpdateOne + func (uuo *UserUpdateOne) ClearBadges() *UserUpdateOne + func (uuo *UserUpdateOne) ClearChallenges() *UserUpdateOne + func (uuo *UserUpdateOne) ClearMeta() *UserUpdateOne + func (uuo *UserUpdateOne) ClearPicture() *UserUpdateOne + func (uuo *UserUpdateOne) ClearPredictions() *UserUpdateOne + func (uuo *UserUpdateOne) ClearSessions() *UserUpdateOne + func (uuo *UserUpdateOne) Exec(ctx context.Context) error + func (uuo *UserUpdateOne) ExecX(ctx context.Context) + func (uuo *UserUpdateOne) Mutation() *UserMutation + func (uuo *UserUpdateOne) RemoveBadgeIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveBadges(b ...*Badge) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveChallengeIDs(ids ...uuid.UUID) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveChallenges(c ...*Challenge) *UserUpdateOne + func (uuo *UserUpdateOne) RemovePredictionIDs(ids ...uuid.UUID) *UserUpdateOne + func (uuo *UserUpdateOne) RemovePredictions(p ...*Prediction) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveSessionIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveSessions(u ...*UserSession) *UserUpdateOne + func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) + func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User + func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne + func (uuo *UserUpdateOne) SetAdmin(b bool) *UserUpdateOne + func (uuo *UserUpdateOne) SetEmail(s string) *UserUpdateOne + func (uuo *UserUpdateOne) SetLocale(u user.Locale) *UserUpdateOne + func (uuo *UserUpdateOne) SetMeta(m map[string]interface{}) *UserUpdateOne + func (uuo *UserUpdateOne) SetName(s string) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableAdmin(b *bool) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableLocale(u *user.Locale) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillablePicture(s *string) *UserUpdateOne + func (uuo *UserUpdateOne) SetPasswordHash(s string) *UserUpdateOne + func (uuo *UserUpdateOne) SetPicture(s string) *UserUpdateOne + func (uuo *UserUpdateOne) SetUpdateTime(t time.Time) *UserUpdateOne + type Users []*User + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value