player

package
v0.0.0-...-3c02646 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the player type in the database.
	Label = "player"
	// 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"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldTotalMinutes holds the string denoting the total_minutes field in the database.
	FieldTotalMinutes = "total_minutes"
	// FieldSessionStartedAt holds the string denoting the session_started_at field in the database.
	FieldSessionStartedAt = "session_started_at"
	// FieldSessionEndedAt holds the string denoting the session_ended_at field in the database.
	FieldSessionEndedAt = "session_ended_at"
	// FieldLastSeenAt holds the string denoting the last_seen_at field in the database.
	FieldLastSeenAt = "last_seen_at"

	// EdgeMetadata holds the string denoting the metadata edge name in mutations.
	EdgeMetadata = "metadata"
	// EdgeServers holds the string denoting the servers edge name in mutations.
	EdgeServers = "servers"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeIdentifiers holds the string denoting the identifiers edge name in mutations.
	EdgeIdentifiers = "identifiers"

	// Table holds the table name of the player in the database.
	Table = "players"
	// MetadataTable is the table the holds the metadata relation/edge.
	MetadataTable = "players"
	// MetadataInverseTable is the table name for the Metadata entity.
	// It exists in this package in order to avoid circular dependency with the "metadata" package.
	MetadataInverseTable = "metadata"
	// MetadataColumn is the table column denoting the metadata relation/edge.
	MetadataColumn = "player_metadata"
	// ServersTable is the table the holds the servers relation/edge. The primary key declared below.
	ServersTable = "player_servers"
	// ServersInverseTable is the table name for the Server entity.
	// It exists in this package in order to avoid circular dependency with the "server" package.
	ServersInverseTable = "servers"
	// UserTable is the table the holds the user relation/edge.
	UserTable = "players"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "player_user"
	// IdentifiersTable is the table the holds the identifiers relation/edge.
	IdentifiersTable = "player_identifiers"
	// IdentifiersInverseTable is the table name for the PlayerIdentifier entity.
	// It exists in this package in order to avoid circular dependency with the "playeridentifier" package.
	IdentifiersInverseTable = "player_identifiers"
	// IdentifiersColumn is the table column denoting the identifiers relation/edge.
	IdentifiersColumn = "player_identifier_player"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the created_at field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the updated_at field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultTotalMinutes holds the default value on creation for the total_minutes field.
	DefaultTotalMinutes int
)

Columns holds all SQL columns for player fields.

View Source
var ForeignKeys = []string{
	"player_metadata",
	"player_user",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Player type.

View Source
var (
	// ServersPrimaryKey and ServersColumn2 are the table columns denoting the
	// primary key for the servers relation (M2M).
	ServersPrimaryKey = []string{"player_id", "server_id"}
)

Functions

func And

func And(predicates ...predicate.Player) predicate.Player

And groups list of predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Player

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Player

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Player

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Player

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Player

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Player

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Player

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

func CreatedAtNotIn

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

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

func HasIdentifiers

func HasIdentifiers() predicate.Player

HasIdentifiers applies the HasEdge predicate on the "identifiers" edge.

func HasIdentifiersWith

func HasIdentifiersWith(preds ...predicate.PlayerIdentifier) predicate.Player

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

func HasMetadata

func HasMetadata() predicate.Player

HasMetadata applies the HasEdge predicate on the "metadata" edge.

func HasMetadataWith

func HasMetadataWith(preds ...predicate.Metadata) predicate.Player

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

func HasServers

func HasServers() predicate.Player

HasServers applies the HasEdge predicate on the "servers" edge.

func HasServersWith

func HasServersWith(preds ...predicate.Server) predicate.Player

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

func HasUser

func HasUser() predicate.Player

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Player

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

func ID

func ID(id int) predicate.Player

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Player

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Player

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Player

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Player

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Player

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Player

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastSeenAt

func LastSeenAt(v time.Time) predicate.Player

LastSeenAt applies equality check predicate on the "last_seen_at" field. It's identical to LastSeenAtEQ.

func LastSeenAtEQ

func LastSeenAtEQ(v time.Time) predicate.Player

LastSeenAtEQ applies the EQ predicate on the "last_seen_at" field.

func LastSeenAtGT

func LastSeenAtGT(v time.Time) predicate.Player

LastSeenAtGT applies the GT predicate on the "last_seen_at" field.

func LastSeenAtGTE

func LastSeenAtGTE(v time.Time) predicate.Player

LastSeenAtGTE applies the GTE predicate on the "last_seen_at" field.

func LastSeenAtIn

func LastSeenAtIn(vs ...time.Time) predicate.Player

LastSeenAtIn applies the In predicate on the "last_seen_at" field.

func LastSeenAtIsNil

func LastSeenAtIsNil() predicate.Player

LastSeenAtIsNil applies the IsNil predicate on the "last_seen_at" field.

func LastSeenAtLT

func LastSeenAtLT(v time.Time) predicate.Player

LastSeenAtLT applies the LT predicate on the "last_seen_at" field.

func LastSeenAtLTE

func LastSeenAtLTE(v time.Time) predicate.Player

LastSeenAtLTE applies the LTE predicate on the "last_seen_at" field.

func LastSeenAtNEQ

func LastSeenAtNEQ(v time.Time) predicate.Player

LastSeenAtNEQ applies the NEQ predicate on the "last_seen_at" field.

func LastSeenAtNotIn

func LastSeenAtNotIn(vs ...time.Time) predicate.Player

LastSeenAtNotIn applies the NotIn predicate on the "last_seen_at" field.

func LastSeenAtNotNil

func LastSeenAtNotNil() predicate.Player

LastSeenAtNotNil applies the NotNil predicate on the "last_seen_at" field.

func Name

func Name(v string) predicate.Player

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

func NameContains

func NameContains(v string) predicate.Player

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

func NameContainsFold

func NameContainsFold(v string) predicate.Player

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

func NameEQ

func NameEQ(v string) predicate.Player

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

func NameEqualFold

func NameEqualFold(v string) predicate.Player

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

func NameGT

func NameGT(v string) predicate.Player

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

func NameGTE

func NameGTE(v string) predicate.Player

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Player

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Player

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Player

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

func NameLTE

func NameLTE(v string) predicate.Player

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

func NameNEQ

func NameNEQ(v string) predicate.Player

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

func NameNotIn

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

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

Or groups list of predicates with the OR operator between them.

func SessionEndedAt

func SessionEndedAt(v time.Time) predicate.Player

SessionEndedAt applies equality check predicate on the "session_ended_at" field. It's identical to SessionEndedAtEQ.

func SessionEndedAtEQ

func SessionEndedAtEQ(v time.Time) predicate.Player

SessionEndedAtEQ applies the EQ predicate on the "session_ended_at" field.

func SessionEndedAtGT

func SessionEndedAtGT(v time.Time) predicate.Player

SessionEndedAtGT applies the GT predicate on the "session_ended_at" field.

func SessionEndedAtGTE

func SessionEndedAtGTE(v time.Time) predicate.Player

SessionEndedAtGTE applies the GTE predicate on the "session_ended_at" field.

func SessionEndedAtIn

func SessionEndedAtIn(vs ...time.Time) predicate.Player

SessionEndedAtIn applies the In predicate on the "session_ended_at" field.

func SessionEndedAtIsNil

func SessionEndedAtIsNil() predicate.Player

SessionEndedAtIsNil applies the IsNil predicate on the "session_ended_at" field.

func SessionEndedAtLT

func SessionEndedAtLT(v time.Time) predicate.Player

SessionEndedAtLT applies the LT predicate on the "session_ended_at" field.

func SessionEndedAtLTE

func SessionEndedAtLTE(v time.Time) predicate.Player

SessionEndedAtLTE applies the LTE predicate on the "session_ended_at" field.

func SessionEndedAtNEQ

func SessionEndedAtNEQ(v time.Time) predicate.Player

SessionEndedAtNEQ applies the NEQ predicate on the "session_ended_at" field.

func SessionEndedAtNotIn

func SessionEndedAtNotIn(vs ...time.Time) predicate.Player

SessionEndedAtNotIn applies the NotIn predicate on the "session_ended_at" field.

func SessionEndedAtNotNil

func SessionEndedAtNotNil() predicate.Player

SessionEndedAtNotNil applies the NotNil predicate on the "session_ended_at" field.

func SessionStartedAt

func SessionStartedAt(v time.Time) predicate.Player

SessionStartedAt applies equality check predicate on the "session_started_at" field. It's identical to SessionStartedAtEQ.

func SessionStartedAtEQ

func SessionStartedAtEQ(v time.Time) predicate.Player

SessionStartedAtEQ applies the EQ predicate on the "session_started_at" field.

func SessionStartedAtGT

func SessionStartedAtGT(v time.Time) predicate.Player

SessionStartedAtGT applies the GT predicate on the "session_started_at" field.

func SessionStartedAtGTE

func SessionStartedAtGTE(v time.Time) predicate.Player

SessionStartedAtGTE applies the GTE predicate on the "session_started_at" field.

func SessionStartedAtIn

func SessionStartedAtIn(vs ...time.Time) predicate.Player

SessionStartedAtIn applies the In predicate on the "session_started_at" field.

func SessionStartedAtIsNil

func SessionStartedAtIsNil() predicate.Player

SessionStartedAtIsNil applies the IsNil predicate on the "session_started_at" field.

func SessionStartedAtLT

func SessionStartedAtLT(v time.Time) predicate.Player

SessionStartedAtLT applies the LT predicate on the "session_started_at" field.

func SessionStartedAtLTE

func SessionStartedAtLTE(v time.Time) predicate.Player

SessionStartedAtLTE applies the LTE predicate on the "session_started_at" field.

func SessionStartedAtNEQ

func SessionStartedAtNEQ(v time.Time) predicate.Player

SessionStartedAtNEQ applies the NEQ predicate on the "session_started_at" field.

func SessionStartedAtNotIn

func SessionStartedAtNotIn(vs ...time.Time) predicate.Player

SessionStartedAtNotIn applies the NotIn predicate on the "session_started_at" field.

func SessionStartedAtNotNil

func SessionStartedAtNotNil() predicate.Player

SessionStartedAtNotNil applies the NotNil predicate on the "session_started_at" field.

func TotalMinutes

func TotalMinutes(v int) predicate.Player

TotalMinutes applies equality check predicate on the "total_minutes" field. It's identical to TotalMinutesEQ.

func TotalMinutesEQ

func TotalMinutesEQ(v int) predicate.Player

TotalMinutesEQ applies the EQ predicate on the "total_minutes" field.

func TotalMinutesGT

func TotalMinutesGT(v int) predicate.Player

TotalMinutesGT applies the GT predicate on the "total_minutes" field.

func TotalMinutesGTE

func TotalMinutesGTE(v int) predicate.Player

TotalMinutesGTE applies the GTE predicate on the "total_minutes" field.

func TotalMinutesIn

func TotalMinutesIn(vs ...int) predicate.Player

TotalMinutesIn applies the In predicate on the "total_minutes" field.

func TotalMinutesLT

func TotalMinutesLT(v int) predicate.Player

TotalMinutesLT applies the LT predicate on the "total_minutes" field.

func TotalMinutesLTE

func TotalMinutesLTE(v int) predicate.Player

TotalMinutesLTE applies the LTE predicate on the "total_minutes" field.

func TotalMinutesNEQ

func TotalMinutesNEQ(v int) predicate.Player

TotalMinutesNEQ applies the NEQ predicate on the "total_minutes" field.

func TotalMinutesNotIn

func TotalMinutesNotIn(vs ...int) predicate.Player

TotalMinutesNotIn applies the NotIn predicate on the "total_minutes" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Player

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Player

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Player

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Player

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Player

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Player

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Player

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Player

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Player

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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