team

package
v0.0.0-...-42c0c98 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the team type in the database.
	Label = "team"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "oid"
	// FieldTeamNumber holds the string denoting the team_number field in the database.
	FieldTeamNumber = "team_number"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// EdgeTeamToCompetition holds the string denoting the teamtocompetition edge name in mutations.
	EdgeTeamToCompetition = "TeamToCompetition"
	// EdgeTeamToVmObjects holds the string denoting the teamtovmobjects edge name in mutations.
	EdgeTeamToVmObjects = "TeamToVmObjects"
	// EdgeTeamToUsers holds the string denoting the teamtousers edge name in mutations.
	EdgeTeamToUsers = "TeamToUsers"
	// Table holds the table name of the team in the database.
	Table = "teams"
	// TeamToCompetitionTable is the table that holds the TeamToCompetition relation/edge.
	TeamToCompetitionTable = "teams"
	// TeamToCompetitionInverseTable is the table name for the Competition entity.
	// It exists in this package in order to avoid circular dependency with the "competition" package.
	TeamToCompetitionInverseTable = "competitions"
	// TeamToCompetitionColumn is the table column denoting the TeamToCompetition relation/edge.
	TeamToCompetitionColumn = "competition_competition_to_teams"
	// TeamToVmObjectsTable is the table that holds the TeamToVmObjects relation/edge.
	TeamToVmObjectsTable = "vm_objects"
	// TeamToVmObjectsInverseTable is the table name for the VmObject entity.
	// It exists in this package in order to avoid circular dependency with the "vmobject" package.
	TeamToVmObjectsInverseTable = "vm_objects"
	// TeamToVmObjectsColumn is the table column denoting the TeamToVmObjects relation/edge.
	TeamToVmObjectsColumn = "team_team_to_vm_objects"
	// TeamToUsersTable is the table that holds the TeamToUsers relation/edge.
	TeamToUsersTable = "users"
	// TeamToUsersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	TeamToUsersInverseTable = "users"
	// TeamToUsersColumn is the table column denoting the TeamToUsers relation/edge.
	TeamToUsersColumn = "team_team_to_users"
)

Variables

Columns holds all SQL columns for team fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)
View Source
var ForeignKeys = []string{
	"competition_competition_to_teams",
}

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

Functions

func And

func And(predicates ...predicate.Team) predicate.Team

And groups predicates with the AND operator between them.

func HasTeamToCompetition

func HasTeamToCompetition() predicate.Team

HasTeamToCompetition applies the HasEdge predicate on the "TeamToCompetition" edge.

func HasTeamToCompetitionWith

func HasTeamToCompetitionWith(preds ...predicate.Competition) predicate.Team

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

func HasTeamToUsers

func HasTeamToUsers() predicate.Team

HasTeamToUsers applies the HasEdge predicate on the "TeamToUsers" edge.

func HasTeamToUsersWith

func HasTeamToUsersWith(preds ...predicate.User) predicate.Team

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

func HasTeamToVmObjects

func HasTeamToVmObjects() predicate.Team

HasTeamToVmObjects applies the HasEdge predicate on the "TeamToVmObjects" edge.

func HasTeamToVmObjectsWith

func HasTeamToVmObjectsWith(preds ...predicate.VmObject) predicate.Team

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

func ID

func ID(id uuid.UUID) predicate.Team

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Team

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Team

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Team

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Team

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Team

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Team

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Team

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Team

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Team

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Team

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Team

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Team

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Team

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Team

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Team

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Team

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Team

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Team

NameIn applies the In predicate on the "name" field.

func NameIsNil

func NameIsNil() predicate.Team

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Team

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Team

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Team

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Team

NameNotIn applies the NotIn predicate on the "name" field.

func NameNotNil

func NameNotNil() predicate.Team

NameNotNil applies the NotNil predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Team) predicate.Team

Or groups predicates with the OR operator between them.

func TeamNumber

func TeamNumber(v int) predicate.Team

TeamNumber applies equality check predicate on the "team_number" field. It's identical to TeamNumberEQ.

func TeamNumberEQ

func TeamNumberEQ(v int) predicate.Team

TeamNumberEQ applies the EQ predicate on the "team_number" field.

func TeamNumberGT

func TeamNumberGT(v int) predicate.Team

TeamNumberGT applies the GT predicate on the "team_number" field.

func TeamNumberGTE

func TeamNumberGTE(v int) predicate.Team

TeamNumberGTE applies the GTE predicate on the "team_number" field.

func TeamNumberIn

func TeamNumberIn(vs ...int) predicate.Team

TeamNumberIn applies the In predicate on the "team_number" field.

func TeamNumberLT

func TeamNumberLT(v int) predicate.Team

TeamNumberLT applies the LT predicate on the "team_number" field.

func TeamNumberLTE

func TeamNumberLTE(v int) predicate.Team

TeamNumberLTE applies the LTE predicate on the "team_number" field.

func TeamNumberNEQ

func TeamNumberNEQ(v int) predicate.Team

TeamNumberNEQ applies the NEQ predicate on the "team_number" field.

func TeamNumberNotIn

func TeamNumberNotIn(vs ...int) predicate.Team

TeamNumberNotIn applies the NotIn predicate on the "team_number" 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