Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UsersTeams) predicate.UsersTeams
- func HasTeams() predicate.UsersTeams
- func HasTeamsWith(preds ...predicate.Team) predicate.UsersTeams
- func HasUsers() predicate.UsersTeams
- func HasUsersWith(preds ...predicate.User) predicate.UsersTeams
- func ID(id int) predicate.UsersTeams
- func IDEQ(id int) predicate.UsersTeams
- func IDGT(id int) predicate.UsersTeams
- func IDGTE(id int) predicate.UsersTeams
- func IDIn(ids ...int) predicate.UsersTeams
- func IDLT(id int) predicate.UsersTeams
- func IDLTE(id int) predicate.UsersTeams
- func IDNEQ(id int) predicate.UsersTeams
- func IDNotIn(ids ...int) predicate.UsersTeams
- func Not(p predicate.UsersTeams) predicate.UsersTeams
- func Or(predicates ...predicate.UsersTeams) predicate.UsersTeams
- func TeamID(v uuid.UUID) predicate.UsersTeams
- func TeamIDEQ(v uuid.UUID) predicate.UsersTeams
- func TeamIDIn(vs ...uuid.UUID) predicate.UsersTeams
- func TeamIDNEQ(v uuid.UUID) predicate.UsersTeams
- func TeamIDNotIn(vs ...uuid.UUID) predicate.UsersTeams
- func UserID(v uuid.UUID) predicate.UsersTeams
- func UserIDEQ(v uuid.UUID) predicate.UsersTeams
- func UserIDIn(vs ...uuid.UUID) predicate.UsersTeams
- func UserIDNEQ(v uuid.UUID) predicate.UsersTeams
- func UserIDNotIn(vs ...uuid.UUID) predicate.UsersTeams
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByTeamID(opts ...sql.OrderTermOption) OrderOption
- func ByTeamsField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- func ByUsersField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldUserID, FieldTeamID, }
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 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 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 ¶
func Not(p predicate.UsersTeams) predicate.UsersTeams
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.