achievement

package
v0.0.0-...-5d3e565 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the achievement type in the database.
	Label = "achievement"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldThumbnailImgURL holds the string denoting the thumbnail_img_url field in the database.
	FieldThumbnailImgURL = "thumbnail_img_url"
	// FieldBfpGoal holds the string denoting the bfp_goal field in the database.
	FieldBfpGoal = "bfp_goal"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the achievement in the database.
	Table = "achievements"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "achievements"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_achievements"
)

Variables

View Source
var (
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus string
	// DefaultThumbnailImgURL holds the default value on creation for the "thumbnail_img_url" field.
	DefaultThumbnailImgURL string
	// BfpGoalValidator is a validator for the "bfp_goal" field. It is called by the builders before save.
	BfpGoalValidator func(float64) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
)

Columns holds all SQL columns for achievement fields.

View Source
var ForeignKeys = []string{
	"user_achievements",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "achievements" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Achievement) predicate.Achievement

And groups predicates with the AND operator between them.

func BfpGoal

func BfpGoal(v float64) predicate.Achievement

BfpGoal applies equality check predicate on the "bfp_goal" field. It's identical to BfpGoalEQ.

func BfpGoalEQ

func BfpGoalEQ(v float64) predicate.Achievement

BfpGoalEQ applies the EQ predicate on the "bfp_goal" field.

func BfpGoalGT

func BfpGoalGT(v float64) predicate.Achievement

BfpGoalGT applies the GT predicate on the "bfp_goal" field.

func BfpGoalGTE

func BfpGoalGTE(v float64) predicate.Achievement

BfpGoalGTE applies the GTE predicate on the "bfp_goal" field.

func BfpGoalIn

func BfpGoalIn(vs ...float64) predicate.Achievement

BfpGoalIn applies the In predicate on the "bfp_goal" field.

func BfpGoalLT

func BfpGoalLT(v float64) predicate.Achievement

BfpGoalLT applies the LT predicate on the "bfp_goal" field.

func BfpGoalLTE

func BfpGoalLTE(v float64) predicate.Achievement

BfpGoalLTE applies the LTE predicate on the "bfp_goal" field.

func BfpGoalNEQ

func BfpGoalNEQ(v float64) predicate.Achievement

BfpGoalNEQ applies the NEQ predicate on the "bfp_goal" field.

func BfpGoalNotIn

func BfpGoalNotIn(vs ...float64) predicate.Achievement

BfpGoalNotIn applies the NotIn predicate on the "bfp_goal" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Achievement

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Achievement

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Achievement

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Achievement

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Achievement

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Achievement

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Achievement

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Achievement

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Achievement

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasUser

func HasUser() predicate.Achievement

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Achievement

HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Achievement

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Achievement

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Achievement

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Achievement

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Achievement

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Achievement

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Achievement

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Achievement

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Achievement

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Achievement) predicate.Achievement

Or groups predicates with the OR operator between them.

func Status

func Status(v string) predicate.Achievement

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.Achievement

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.Achievement

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.Achievement

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.Achievement

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.Achievement

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.Achievement

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Achievement

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Achievement

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.Achievement

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.Achievement

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.Achievement

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.Achievement

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.Achievement

StatusNotIn applies the NotIn predicate on the "status" field.

func ThumbnailImgURL

func ThumbnailImgURL(v string) predicate.Achievement

ThumbnailImgURL applies equality check predicate on the "thumbnail_img_url" field. It's identical to ThumbnailImgURLEQ.

func ThumbnailImgURLContains

func ThumbnailImgURLContains(v string) predicate.Achievement

ThumbnailImgURLContains applies the Contains predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLContainsFold

func ThumbnailImgURLContainsFold(v string) predicate.Achievement

ThumbnailImgURLContainsFold applies the ContainsFold predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLEQ

func ThumbnailImgURLEQ(v string) predicate.Achievement

ThumbnailImgURLEQ applies the EQ predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLEqualFold

func ThumbnailImgURLEqualFold(v string) predicate.Achievement

ThumbnailImgURLEqualFold applies the EqualFold predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLGT

func ThumbnailImgURLGT(v string) predicate.Achievement

ThumbnailImgURLGT applies the GT predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLGTE

func ThumbnailImgURLGTE(v string) predicate.Achievement

ThumbnailImgURLGTE applies the GTE predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLHasPrefix

func ThumbnailImgURLHasPrefix(v string) predicate.Achievement

ThumbnailImgURLHasPrefix applies the HasPrefix predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLHasSuffix

func ThumbnailImgURLHasSuffix(v string) predicate.Achievement

ThumbnailImgURLHasSuffix applies the HasSuffix predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLIn

func ThumbnailImgURLIn(vs ...string) predicate.Achievement

ThumbnailImgURLIn applies the In predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLLT

func ThumbnailImgURLLT(v string) predicate.Achievement

ThumbnailImgURLLT applies the LT predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLLTE

func ThumbnailImgURLLTE(v string) predicate.Achievement

ThumbnailImgURLLTE applies the LTE predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLNEQ

func ThumbnailImgURLNEQ(v string) predicate.Achievement

ThumbnailImgURLNEQ applies the NEQ predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLNotIn

func ThumbnailImgURLNotIn(vs ...string) predicate.Achievement

ThumbnailImgURLNotIn applies the NotIn predicate on the "thumbnail_img_url" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL