team

package
v0.0.0-...-56e78fd Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 6 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 = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldIsBanned holds the string denoting the is_banned field in the database.
	FieldIsBanned = "is_banned"
	// FieldIsBlocked holds the string denoting the is_blocked field in the database.
	FieldIsBlocked = "is_blocked"
	// FieldBlockedReason holds the string denoting the blocked_reason field in the database.
	FieldBlockedReason = "blocked_reason"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldTier holds the string denoting the tier field in the database.
	FieldTier = "tier"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldClusterID holds the string denoting the cluster_id field in the database.
	FieldClusterID = "cluster_id"
	// EdgeUsers holds the string denoting the users edge name in mutations.
	EdgeUsers = "users"
	// EdgeTeamAPIKeys holds the string denoting the team_api_keys edge name in mutations.
	EdgeTeamAPIKeys = "team_api_keys"
	// EdgeTeamTier holds the string denoting the team_tier edge name in mutations.
	EdgeTeamTier = "team_tier"
	// EdgeEnvs holds the string denoting the envs edge name in mutations.
	EdgeEnvs = "envs"
	// EdgeUsersTeams holds the string denoting the users_teams edge name in mutations.
	EdgeUsersTeams = "users_teams"
	// Table holds the table name of the team in the database.
	Table = "teams"
	// UsersTable is the table that holds the users relation/edge. The primary key declared below.
	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"
	// TeamAPIKeysTable is the table that holds the team_api_keys relation/edge.
	TeamAPIKeysTable = "team_api_keys"
	// TeamAPIKeysInverseTable is the table name for the TeamAPIKey entity.
	// It exists in this package in order to avoid circular dependency with the "teamapikey" package.
	TeamAPIKeysInverseTable = "team_api_keys"
	// TeamAPIKeysColumn is the table column denoting the team_api_keys relation/edge.
	TeamAPIKeysColumn = "team_id"
	// TeamTierTable is the table that holds the team_tier relation/edge.
	TeamTierTable = "teams"
	// TeamTierInverseTable is the table name for the Tier entity.
	// It exists in this package in order to avoid circular dependency with the "tier" package.
	TeamTierInverseTable = "tiers"
	// TeamTierColumn is the table column denoting the team_tier relation/edge.
	TeamTierColumn = "tier"
	// EnvsTable is the table that holds the envs relation/edge.
	EnvsTable = "envs"
	// EnvsInverseTable is the table name for the Env entity.
	// It exists in this package in order to avoid circular dependency with the "env" package.
	EnvsInverseTable = "envs"
	// EnvsColumn is the table column denoting the envs relation/edge.
	EnvsColumn = "team_id"
	// UsersTeamsTable is the table that holds the users_teams relation/edge.
	UsersTeamsTable = "users_teams"
	// UsersTeamsInverseTable is the table name for the UsersTeams entity.
	// It exists in this package in order to avoid circular dependency with the "usersteams" package.
	UsersTeamsInverseTable = "users_teams"
	// UsersTeamsColumn is the table column denoting the users_teams relation/edge.
	UsersTeamsColumn = "team_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
)

Columns holds all SQL columns for team fields.

View Source
var (
	// UsersPrimaryKey and UsersColumn2 are the table columns denoting the
	// primary key for the users relation (M2M).
	UsersPrimaryKey = []string{"team_id", "user_id"}
)

Functions

func And

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

And groups predicates with the AND operator between them.

func BlockedReason

func BlockedReason(v string) predicate.Team

BlockedReason applies equality check predicate on the "blocked_reason" field. It's identical to BlockedReasonEQ.

func BlockedReasonContains

func BlockedReasonContains(v string) predicate.Team

BlockedReasonContains applies the Contains predicate on the "blocked_reason" field.

func BlockedReasonContainsFold

func BlockedReasonContainsFold(v string) predicate.Team

BlockedReasonContainsFold applies the ContainsFold predicate on the "blocked_reason" field.

func BlockedReasonEQ

func BlockedReasonEQ(v string) predicate.Team

BlockedReasonEQ applies the EQ predicate on the "blocked_reason" field.

func BlockedReasonEqualFold

func BlockedReasonEqualFold(v string) predicate.Team

BlockedReasonEqualFold applies the EqualFold predicate on the "blocked_reason" field.

func BlockedReasonGT

func BlockedReasonGT(v string) predicate.Team

BlockedReasonGT applies the GT predicate on the "blocked_reason" field.

func BlockedReasonGTE

func BlockedReasonGTE(v string) predicate.Team

BlockedReasonGTE applies the GTE predicate on the "blocked_reason" field.

func BlockedReasonHasPrefix

func BlockedReasonHasPrefix(v string) predicate.Team

BlockedReasonHasPrefix applies the HasPrefix predicate on the "blocked_reason" field.

func BlockedReasonHasSuffix

func BlockedReasonHasSuffix(v string) predicate.Team

BlockedReasonHasSuffix applies the HasSuffix predicate on the "blocked_reason" field.

func BlockedReasonIn

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

BlockedReasonIn applies the In predicate on the "blocked_reason" field.

func BlockedReasonIsNil

func BlockedReasonIsNil() predicate.Team

BlockedReasonIsNil applies the IsNil predicate on the "blocked_reason" field.

func BlockedReasonLT

func BlockedReasonLT(v string) predicate.Team

BlockedReasonLT applies the LT predicate on the "blocked_reason" field.

func BlockedReasonLTE

func BlockedReasonLTE(v string) predicate.Team

BlockedReasonLTE applies the LTE predicate on the "blocked_reason" field.

func BlockedReasonNEQ

func BlockedReasonNEQ(v string) predicate.Team

BlockedReasonNEQ applies the NEQ predicate on the "blocked_reason" field.

func BlockedReasonNotIn

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

BlockedReasonNotIn applies the NotIn predicate on the "blocked_reason" field.

func BlockedReasonNotNil

func BlockedReasonNotNil() predicate.Team

BlockedReasonNotNil applies the NotNil predicate on the "blocked_reason" field.

func ClusterID

func ClusterID(v uuid.UUID) predicate.Team

ClusterID applies equality check predicate on the "cluster_id" field. It's identical to ClusterIDEQ.

func ClusterIDEQ

func ClusterIDEQ(v uuid.UUID) predicate.Team

ClusterIDEQ applies the EQ predicate on the "cluster_id" field.

func ClusterIDGT

func ClusterIDGT(v uuid.UUID) predicate.Team

ClusterIDGT applies the GT predicate on the "cluster_id" field.

func ClusterIDGTE

func ClusterIDGTE(v uuid.UUID) predicate.Team

ClusterIDGTE applies the GTE predicate on the "cluster_id" field.

func ClusterIDIn

func ClusterIDIn(vs ...uuid.UUID) predicate.Team

ClusterIDIn applies the In predicate on the "cluster_id" field.

func ClusterIDIsNil

func ClusterIDIsNil() predicate.Team

ClusterIDIsNil applies the IsNil predicate on the "cluster_id" field.

func ClusterIDLT

func ClusterIDLT(v uuid.UUID) predicate.Team

ClusterIDLT applies the LT predicate on the "cluster_id" field.

func ClusterIDLTE

func ClusterIDLTE(v uuid.UUID) predicate.Team

ClusterIDLTE applies the LTE predicate on the "cluster_id" field.

func ClusterIDNEQ

func ClusterIDNEQ(v uuid.UUID) predicate.Team

ClusterIDNEQ applies the NEQ predicate on the "cluster_id" field.

func ClusterIDNotIn

func ClusterIDNotIn(vs ...uuid.UUID) predicate.Team

ClusterIDNotIn applies the NotIn predicate on the "cluster_id" field.

func ClusterIDNotNil

func ClusterIDNotNil() predicate.Team

ClusterIDNotNil applies the NotNil predicate on the "cluster_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Team

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Team

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Team

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Team

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Team

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Team

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Team

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

func CreatedAtNotIn

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

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

func Email

func Email(v string) predicate.Team

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.Team

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.Team

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.Team

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.Team

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.Team

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.Team

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Team

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Team

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

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

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.Team

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.Team

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.Team

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

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

EmailNotIn applies the NotIn predicate on the "email" field.

func HasEnvs

func HasEnvs() predicate.Team

HasEnvs applies the HasEdge predicate on the "envs" edge.

func HasEnvsWith

func HasEnvsWith(preds ...predicate.Env) predicate.Team

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

func HasTeamAPIKeys

func HasTeamAPIKeys() predicate.Team

HasTeamAPIKeys applies the HasEdge predicate on the "team_api_keys" edge.

func HasTeamAPIKeysWith

func HasTeamAPIKeysWith(preds ...predicate.TeamAPIKey) predicate.Team

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

func HasTeamTier

func HasTeamTier() predicate.Team

HasTeamTier applies the HasEdge predicate on the "team_tier" edge.

func HasTeamTierWith

func HasTeamTierWith(preds ...predicate.Tier) predicate.Team

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

func HasUsers

func HasUsers() predicate.Team

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

func HasUsersTeams

func HasUsersTeams() predicate.Team

HasUsersTeams applies the HasEdge predicate on the "users_teams" edge.

func HasUsersTeamsWith

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

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

func HasUsersWith

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

HasUsersWith applies the HasEdge predicate on the "users" 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 IsBanned

func IsBanned(v bool) predicate.Team

IsBanned applies equality check predicate on the "is_banned" field. It's identical to IsBannedEQ.

func IsBannedEQ

func IsBannedEQ(v bool) predicate.Team

IsBannedEQ applies the EQ predicate on the "is_banned" field.

func IsBannedIsNil

func IsBannedIsNil() predicate.Team

IsBannedIsNil applies the IsNil predicate on the "is_banned" field.

func IsBannedNEQ

func IsBannedNEQ(v bool) predicate.Team

IsBannedNEQ applies the NEQ predicate on the "is_banned" field.

func IsBannedNotNil

func IsBannedNotNil() predicate.Team

IsBannedNotNil applies the NotNil predicate on the "is_banned" field.

func IsBlocked

func IsBlocked(v bool) predicate.Team

IsBlocked applies equality check predicate on the "is_blocked" field. It's identical to IsBlockedEQ.

func IsBlockedEQ

func IsBlockedEQ(v bool) predicate.Team

IsBlockedEQ applies the EQ predicate on the "is_blocked" field.

func IsBlockedIsNil

func IsBlockedIsNil() predicate.Team

IsBlockedIsNil applies the IsNil predicate on the "is_blocked" field.

func IsBlockedNEQ

func IsBlockedNEQ(v bool) predicate.Team

IsBlockedNEQ applies the NEQ predicate on the "is_blocked" field.

func IsBlockedNotNil

func IsBlockedNotNil() predicate.Team

IsBlockedNotNil applies the NotNil predicate on the "is_blocked" 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 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 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 Tier

func Tier(v string) predicate.Team

Tier applies equality check predicate on the "tier" field. It's identical to TierEQ.

func TierContains

func TierContains(v string) predicate.Team

TierContains applies the Contains predicate on the "tier" field.

func TierContainsFold

func TierContainsFold(v string) predicate.Team

TierContainsFold applies the ContainsFold predicate on the "tier" field.

func TierEQ

func TierEQ(v string) predicate.Team

TierEQ applies the EQ predicate on the "tier" field.

func TierEqualFold

func TierEqualFold(v string) predicate.Team

TierEqualFold applies the EqualFold predicate on the "tier" field.

func TierGT

func TierGT(v string) predicate.Team

TierGT applies the GT predicate on the "tier" field.

func TierGTE

func TierGTE(v string) predicate.Team

TierGTE applies the GTE predicate on the "tier" field.

func TierHasPrefix

func TierHasPrefix(v string) predicate.Team

TierHasPrefix applies the HasPrefix predicate on the "tier" field.

func TierHasSuffix

func TierHasSuffix(v string) predicate.Team

TierHasSuffix applies the HasSuffix predicate on the "tier" field.

func TierIn

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

TierIn applies the In predicate on the "tier" field.

func TierLT

func TierLT(v string) predicate.Team

TierLT applies the LT predicate on the "tier" field.

func TierLTE

func TierLTE(v string) predicate.Team

TierLTE applies the LTE predicate on the "tier" field.

func TierNEQ

func TierNEQ(v string) predicate.Team

TierNEQ applies the NEQ predicate on the "tier" field.

func TierNotIn

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

TierNotIn applies the NotIn predicate on the "tier" 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 Team queries.

func ByBlockedReason

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

ByBlockedReason orders the results by the blocked_reason field.

func ByClusterID

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

ByClusterID orders the results by the cluster_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEmail

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

ByEmail orders the results by the email field.

func ByEnvs

func ByEnvs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByEnvs orders the results by envs terms.

func ByEnvsCount

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

ByEnvsCount orders the results by envs count.

func ByID

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

ByID orders the results by the id field.

func ByIsBanned

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

ByIsBanned orders the results by the is_banned field.

func ByIsBlocked

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

ByIsBlocked orders the results by the is_blocked field.

func ByName

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

ByName orders the results by the name field.

func ByTeamAPIKeys

func ByTeamAPIKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTeamAPIKeys orders the results by team_api_keys terms.

func ByTeamAPIKeysCount

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

ByTeamAPIKeysCount orders the results by team_api_keys count.

func ByTeamTierField

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

ByTeamTierField orders the results by team_tier field.

func ByTier

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

ByTier orders the results by the tier field.

func ByUsers

func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByUsers orders the results by users terms.

func ByUsersCount

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

ByUsersCount orders the results by users count.

func ByUsersTeams

func ByUsersTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByUsersTeams orders the results by users_teams terms.

func ByUsersTeamsCount

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

ByUsersTeamsCount orders the results by users_teams count.

Jump to

Keyboard shortcuts

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