package
0.0.0-20240707031454-d5824db75683
Repository: https://github.com/scorify/backend.git
Documentation: pkg.go.dev
# Functions
And groups predicates with the AND operator between them.
ByConfigs orders the results by configs terms.
ByConfigsCount orders the results by configs count.
ByCreateTime orders the results by the create_time field.
ByID orders the results by the id field.
ByNumber orders the results by the number field.
ByPassword orders the results by the password field.
ByRole orders the results by the role field.
ByScoreCaches orders the results by scoreCaches terms.
ByScoreCachesCount orders the results by scoreCaches count.
ByStatuses orders the results by statuses terms.
ByStatusesCount orders the results by statuses count.
BySubmissions orders the results by submissions terms.
BySubmissionsCount orders the results by submissions count.
ByUpdateTime orders the results by the update_time field.
ByUsername orders the results by the username field.
CreateTime applies equality check predicate on the "create_time" field.
CreateTimeEQ applies the EQ predicate on the "create_time" field.
CreateTimeGT applies the GT predicate on the "create_time" field.
CreateTimeGTE applies the GTE predicate on the "create_time" field.
CreateTimeIn applies the In predicate on the "create_time" field.
CreateTimeLT applies the LT predicate on the "create_time" field.
CreateTimeLTE applies the LTE predicate on the "create_time" field.
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
HasConfigs applies the HasEdge predicate on the "configs" edge.
HasConfigsWith applies the HasEdge predicate on the "configs" edge with a given conditions (other predicates).
HasScoreCaches applies the HasEdge predicate on the "scoreCaches" edge.
HasScoreCachesWith applies the HasEdge predicate on the "scoreCaches" edge with a given conditions (other predicates).
HasStatuses applies the HasEdge predicate on the "statuses" edge.
HasStatusesWith applies the HasEdge predicate on the "statuses" edge with a given conditions (other predicates).
HasSubmissions applies the HasEdge predicate on the "submissions" edge.
HasSubmissionsWith applies the HasEdge predicate on the "submissions" edge with a given conditions (other predicates).
ID filters vertices based on their ID field.
IDEQ applies the EQ predicate on the ID field.
IDGT applies the GT predicate on the ID field.
IDGTE applies the GTE predicate on the ID field.
IDIn applies the In predicate on the ID field.
IDLT applies the LT predicate on the ID field.
IDLTE applies the LTE predicate on the ID field.
IDNEQ applies the NEQ predicate on the ID field.
IDNotIn applies the NotIn predicate on the ID field.
Not applies the not operator on the given predicate.
Number applies equality check predicate on the "number" field.
NumberEQ applies the EQ predicate on the "number" field.
NumberGT applies the GT predicate on the "number" field.
NumberGTE applies the GTE predicate on the "number" field.
NumberIn applies the In predicate on the "number" field.
NumberIsNil applies the IsNil predicate on the "number" field.
NumberLT applies the LT predicate on the "number" field.
NumberLTE applies the LTE predicate on the "number" field.
NumberNEQ applies the NEQ predicate on the "number" field.
NumberNotIn applies the NotIn predicate on the "number" field.
NumberNotNil applies the NotNil predicate on the "number" field.
Or groups predicates with the OR operator between them.
Password applies equality check predicate on the "password" field.
PasswordContains applies the Contains predicate on the "password" field.
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
PasswordEQ applies the EQ predicate on the "password" field.
PasswordEqualFold applies the EqualFold predicate on the "password" field.
PasswordGT applies the GT predicate on the "password" field.
PasswordGTE applies the GTE predicate on the "password" field.
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
PasswordIn applies the In predicate on the "password" field.
PasswordLT applies the LT predicate on the "password" field.
PasswordLTE applies the LTE predicate on the "password" field.
PasswordNEQ applies the NEQ predicate on the "password" field.
PasswordNotIn applies the NotIn predicate on the "password" field.
RoleEQ applies the EQ predicate on the "role" field.
RoleIn applies the In predicate on the "role" field.
RoleNEQ applies the NEQ predicate on the "role" field.
RoleNotIn applies the NotIn predicate on the "role" field.
RoleValidator is a validator for the "role" field enum values.
UpdateTime applies equality check predicate on the "update_time" field.
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
UpdateTimeGT applies the GT predicate on the "update_time" field.
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
UpdateTimeIn applies the In predicate on the "update_time" field.
UpdateTimeLT applies the LT predicate on the "update_time" field.
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
Username applies equality check predicate on the "username" field.
UsernameContains applies the Contains predicate on the "username" field.
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
UsernameEQ applies the EQ predicate on the "username" field.
UsernameEqualFold applies the EqualFold predicate on the "username" field.
UsernameGT applies the GT predicate on the "username" field.
UsernameGTE applies the GTE predicate on the "username" field.
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
UsernameIn applies the In predicate on the "username" field.
UsernameLT applies the LT predicate on the "username" field.
UsernameLTE applies the LTE predicate on the "username" field.
UsernameNEQ applies the NEQ predicate on the "username" field.
UsernameNotIn applies the NotIn predicate on the "username" field.
ValidColumn reports if the column name is valid (part of the table columns).
# Constants
ConfigsColumn is the table column denoting the configs relation/edge.
ConfigsInverseTable is the table name for the CheckConfig entity.
ConfigsTable is the table that holds the configs relation/edge.
RoleUser is the default value of the Role enum.
EdgeConfigs holds the string denoting the configs edge name in mutations.
EdgeScoreCaches holds the string denoting the scorecaches edge name in mutations.
EdgeStatuses holds the string denoting the statuses edge name in mutations.
EdgeSubmissions holds the string denoting the submissions edge name in mutations.
FieldCreateTime holds the string denoting the create_time field in the database.
FieldID holds the string denoting the id field in the database.
FieldNumber holds the string denoting the number field in the database.
FieldPassword holds the string denoting the password field in the database.
FieldRole holds the string denoting the role field in the database.
FieldUpdateTime holds the string denoting the update_time field in the database.
FieldUsername holds the string denoting the username field in the database.
Label holds the string label denoting the user type in the database.
Role values.
Role values.
ScoreCachesColumn is the table column denoting the scoreCaches relation/edge.
ScoreCachesInverseTable is the table name for the ScoreCache entity.
ScoreCachesTable is the table that holds the scoreCaches relation/edge.
StatusesColumn is the table column denoting the statuses relation/edge.
StatusesInverseTable is the table name for the Status entity.
StatusesTable is the table that holds the statuses relation/edge.
SubmissionsColumn is the table column denoting the submissions relation/edge.
SubmissionsInverseTable is the table name for the InjectSubmission entity.
SubmissionsTable is the table that holds the submissions relation/edge.
Table holds the table name of the user in the database.
# Variables
Columns holds all SQL columns for user fields.
DefaultCreateTime holds the default value on creation for the "create_time" field.
DefaultID holds the default value on creation for the "id" field.
DefaultUpdateTime holds the default value on creation for the "update_time" field.
NumberValidator is a validator for the "number" field.
PasswordValidator is a validator for the "password" field.
UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
UsernameValidator is a validator for the "username" field.
# Type aliases
OrderOption defines the ordering options for the User queries.
Role defines the type for the "role" enum field.