usersteams

package
v0.0.0-...-af2bad0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the usersteams type in the database.
	Label = "users_teams"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldTeamID holds the string denoting the team_id field in the database.
	FieldTeamID = "team_id"
	// EdgeUsers holds the string denoting the users edge name in mutations.
	EdgeUsers = "users"
	// EdgeTeams holds the string denoting the teams edge name in mutations.
	EdgeTeams = "teams"
	// Table holds the table name of the usersteams in the database.
	Table = "users_teams"
	// UsersTable is the table that holds the users relation/edge.
	UsersTable = "users_teams"
	// UsersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UsersInverseTable = "users"
	// UsersColumn is the table column denoting the users relation/edge.
	UsersColumn = "user_id"
	// TeamsTable is the table that holds the teams relation/edge.
	TeamsTable = "users_teams"
	// TeamsInverseTable is the table name for the Team entity.
	// It exists in this package in order to avoid circular dependency with the "team" package.
	TeamsInverseTable = "teams"
	// TeamsColumn is the table column denoting the teams relation/edge.
	TeamsColumn = "team_id"
)

Variables

Columns holds all SQL columns for usersteams fields.

Functions

func And

func And(predicates ...predicate.UsersTeams) predicate.UsersTeams

And groups predicates with the AND operator between them.

func HasTeams

func HasTeams() predicate.UsersTeams

HasTeams applies the HasEdge predicate on the "teams" edge.

func HasTeamsWith

func HasTeamsWith(preds ...predicate.Team) predicate.UsersTeams

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

func HasUsers

func HasUsers() predicate.UsersTeams

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.User) predicate.UsersTeams

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

func ID

func ID(id int) predicate.UsersTeams

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.UsersTeams

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.UsersTeams

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.UsersTeams

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.UsersTeams

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.UsersTeams

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.UsersTeams

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.UsersTeams) predicate.UsersTeams

Or groups predicates with the OR operator between them.

func TeamID

func TeamID(v uuid.UUID) predicate.UsersTeams

TeamID applies equality check predicate on the "team_id" field. It's identical to TeamIDEQ.

func TeamIDEQ

func TeamIDEQ(v uuid.UUID) predicate.UsersTeams

TeamIDEQ applies the EQ predicate on the "team_id" field.

func TeamIDIn

func TeamIDIn(vs ...uuid.UUID) predicate.UsersTeams

TeamIDIn applies the In predicate on the "team_id" field.

func TeamIDNEQ

func TeamIDNEQ(v uuid.UUID) predicate.UsersTeams

TeamIDNEQ applies the NEQ predicate on the "team_id" field.

func TeamIDNotIn

func TeamIDNotIn(vs ...uuid.UUID) predicate.UsersTeams

TeamIDNotIn applies the NotIn predicate on the "team_id" field.

func UserID

func UserID(v uuid.UUID) predicate.UsersTeams

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.UsersTeams

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...uuid.UUID) predicate.UsersTeams

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.UsersTeams

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...uuid.UUID) predicate.UsersTeams

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the UsersTeams queries.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByTeamID

func ByTeamID(opts ...sql.OrderTermOption) OrderOption

ByTeamID orders the results by the team_id field.

func ByTeamsField

func ByTeamsField(field string, opts ...sql.OrderTermOption) OrderOption

ByTeamsField orders the results by teams field.

func ByUserID

func ByUserID(opts ...sql.OrderTermOption) OrderOption

ByUserID orders the results by the user_id field.

func ByUsersField

func ByUsersField(field string, opts ...sql.OrderTermOption) OrderOption

ByUsersField orders the results by users field.

Jump to

Keyboard shortcuts

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