account

package
v0.0.0-...-464f7f8 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the account type in the database.
	Label = "account"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldAccessToken holds the string denoting the access_token field in the database.
	FieldAccessToken = "access_token"
	// FieldRefreshToken holds the string denoting the refresh_token field in the database.
	FieldRefreshToken = "refresh_token"
	// FieldRegistrationTokenID holds the string denoting the registration_token_id field in the database.
	FieldRegistrationTokenID = "registration_token_id"
	// EdgeServers holds the string denoting the servers edge name in mutations.
	EdgeServers = "servers"
	// EdgeNodes holds the string denoting the nodes edge name in mutations.
	EdgeNodes = "nodes"
	// EdgeRegistrationToken holds the string denoting the registration_token edge name in mutations.
	EdgeRegistrationToken = "registration_token"
	// Table holds the table name of the account in the database.
	Table = "accounts"
	// ServersTable is the table that holds the servers relation/edge.
	ServersTable = "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"
	// ServersColumn is the table column denoting the servers relation/edge.
	ServersColumn = "account_servers"
	// NodesTable is the table that holds the nodes relation/edge.
	NodesTable = "nodes"
	// NodesInverseTable is the table name for the Node entity.
	// It exists in this package in order to avoid circular dependency with the "node" package.
	NodesInverseTable = "nodes"
	// NodesColumn is the table column denoting the nodes relation/edge.
	NodesColumn = "account_nodes"
	// RegistrationTokenTable is the table that holds the registration_token relation/edge.
	RegistrationTokenTable = "accounts"
	// RegistrationTokenInverseTable is the table name for the RegistrationToken entity.
	// It exists in this package in order to avoid circular dependency with the "registrationtoken" package.
	RegistrationTokenInverseTable = "registration_tokens"
	// RegistrationTokenColumn is the table column denoting the registration_token relation/edge.
	RegistrationTokenColumn = "registration_token_id"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// UsernameValidator is a validator for the "username" field. It is called by the builders before save.
	UsernameValidator func(string) error
	// AccessTokenValidator is a validator for the "access_token" field. It is called by the builders before save.
	AccessTokenValidator func([]byte) error
	// RefreshTokenValidator is a validator for the "refresh_token" field. It is called by the builders before save.
	RefreshTokenValidator func([]byte) error
)

Columns holds all SQL columns for account fields.

Functions

func AccessToken

func AccessToken(v []byte) predicate.Account

AccessToken applies equality check predicate on the "access_token" field. It's identical to AccessTokenEQ.

func AccessTokenEQ

func AccessTokenEQ(v []byte) predicate.Account

AccessTokenEQ applies the EQ predicate on the "access_token" field.

func AccessTokenGT

func AccessTokenGT(v []byte) predicate.Account

AccessTokenGT applies the GT predicate on the "access_token" field.

func AccessTokenGTE

func AccessTokenGTE(v []byte) predicate.Account

AccessTokenGTE applies the GTE predicate on the "access_token" field.

func AccessTokenIn

func AccessTokenIn(vs ...[]byte) predicate.Account

AccessTokenIn applies the In predicate on the "access_token" field.

func AccessTokenLT

func AccessTokenLT(v []byte) predicate.Account

AccessTokenLT applies the LT predicate on the "access_token" field.

func AccessTokenLTE

func AccessTokenLTE(v []byte) predicate.Account

AccessTokenLTE applies the LTE predicate on the "access_token" field.

func AccessTokenNEQ

func AccessTokenNEQ(v []byte) predicate.Account

AccessTokenNEQ applies the NEQ predicate on the "access_token" field.

func AccessTokenNotIn

func AccessTokenNotIn(vs ...[]byte) predicate.Account

AccessTokenNotIn applies the NotIn predicate on the "access_token" field.

func And

func And(predicates ...predicate.Account) predicate.Account

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Account

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Account

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Account

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Account

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Account

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Account

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Account

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Account

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Account

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func HasNodes

func HasNodes() predicate.Account

HasNodes applies the HasEdge predicate on the "nodes" edge.

func HasNodesWith

func HasNodesWith(preds ...predicate.Node) predicate.Account

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

func HasRegistrationToken

func HasRegistrationToken() predicate.Account

HasRegistrationToken applies the HasEdge predicate on the "registration_token" edge.

func HasRegistrationTokenWith

func HasRegistrationTokenWith(preds ...predicate.RegistrationToken) predicate.Account

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

func HasServers

func HasServers() predicate.Account

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

func HasServersWith

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

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

func ID

func ID(id int) predicate.Account

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Account

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Account

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Account

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Account

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Account

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Account

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func RefreshToken

func RefreshToken(v []byte) predicate.Account

RefreshToken applies equality check predicate on the "refresh_token" field. It's identical to RefreshTokenEQ.

func RefreshTokenEQ

func RefreshTokenEQ(v []byte) predicate.Account

RefreshTokenEQ applies the EQ predicate on the "refresh_token" field.

func RefreshTokenGT

func RefreshTokenGT(v []byte) predicate.Account

RefreshTokenGT applies the GT predicate on the "refresh_token" field.

func RefreshTokenGTE

func RefreshTokenGTE(v []byte) predicate.Account

RefreshTokenGTE applies the GTE predicate on the "refresh_token" field.

func RefreshTokenIn

func RefreshTokenIn(vs ...[]byte) predicate.Account

RefreshTokenIn applies the In predicate on the "refresh_token" field.

func RefreshTokenLT

func RefreshTokenLT(v []byte) predicate.Account

RefreshTokenLT applies the LT predicate on the "refresh_token" field.

func RefreshTokenLTE

func RefreshTokenLTE(v []byte) predicate.Account

RefreshTokenLTE applies the LTE predicate on the "refresh_token" field.

func RefreshTokenNEQ

func RefreshTokenNEQ(v []byte) predicate.Account

RefreshTokenNEQ applies the NEQ predicate on the "refresh_token" field.

func RefreshTokenNotIn

func RefreshTokenNotIn(vs ...[]byte) predicate.Account

RefreshTokenNotIn applies the NotIn predicate on the "refresh_token" field.

func RegistrationTokenID

func RegistrationTokenID(v int) predicate.Account

RegistrationTokenID applies equality check predicate on the "registration_token_id" field. It's identical to RegistrationTokenIDEQ.

func RegistrationTokenIDEQ

func RegistrationTokenIDEQ(v int) predicate.Account

RegistrationTokenIDEQ applies the EQ predicate on the "registration_token_id" field.

func RegistrationTokenIDIn

func RegistrationTokenIDIn(vs ...int) predicate.Account

RegistrationTokenIDIn applies the In predicate on the "registration_token_id" field.

func RegistrationTokenIDIsNil

func RegistrationTokenIDIsNil() predicate.Account

RegistrationTokenIDIsNil applies the IsNil predicate on the "registration_token_id" field.

func RegistrationTokenIDNEQ

func RegistrationTokenIDNEQ(v int) predicate.Account

RegistrationTokenIDNEQ applies the NEQ predicate on the "registration_token_id" field.

func RegistrationTokenIDNotIn

func RegistrationTokenIDNotIn(vs ...int) predicate.Account

RegistrationTokenIDNotIn applies the NotIn predicate on the "registration_token_id" field.

func RegistrationTokenIDNotNil

func RegistrationTokenIDNotNil() predicate.Account

RegistrationTokenIDNotNil applies the NotNil predicate on the "registration_token_id" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Account

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Account

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Account

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Account

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Account

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Account

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Account

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Account

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Account

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func Username

func Username(v string) predicate.Account

Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.

func UsernameContains

func UsernameContains(v string) predicate.Account

UsernameContains applies the Contains predicate on the "username" field.

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.Account

UsernameContainsFold applies the ContainsFold predicate on the "username" field.

func UsernameEQ

func UsernameEQ(v string) predicate.Account

UsernameEQ applies the EQ predicate on the "username" field.

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.Account

UsernameEqualFold applies the EqualFold predicate on the "username" field.

func UsernameGT

func UsernameGT(v string) predicate.Account

UsernameGT applies the GT predicate on the "username" field.

func UsernameGTE

func UsernameGTE(v string) predicate.Account

UsernameGTE applies the GTE predicate on the "username" field.

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.Account

UsernameHasPrefix applies the HasPrefix predicate on the "username" field.

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.Account

UsernameHasSuffix applies the HasSuffix predicate on the "username" field.

func UsernameIn

func UsernameIn(vs ...string) predicate.Account

UsernameIn applies the In predicate on the "username" field.

func UsernameLT

func UsernameLT(v string) predicate.Account

UsernameLT applies the LT predicate on the "username" field.

func UsernameLTE

func UsernameLTE(v string) predicate.Account

UsernameLTE applies the LTE predicate on the "username" field.

func UsernameNEQ

func UsernameNEQ(v string) predicate.Account

UsernameNEQ applies the NEQ predicate on the "username" field.

func UsernameNotIn

func UsernameNotIn(vs ...string) predicate.Account

UsernameNotIn applies the NotIn predicate on the "username" 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 Account queries.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByID

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

ByID orders the results by the id field.

func ByNodes

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

ByNodes orders the results by nodes terms.

func ByNodesCount

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

ByNodesCount orders the results by nodes count.

func ByRegistrationTokenField

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

ByRegistrationTokenField orders the results by registration_token field.

func ByRegistrationTokenID

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

ByRegistrationTokenID orders the results by the registration_token_id field.

func ByServers

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

ByServers orders the results by servers terms.

func ByServersCount

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

ByServersCount orders the results by servers count.

func ByUpdateTime

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

ByUpdateTime orders the results by the update_time field.

func ByUsername

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

ByUsername orders the results by the username field.

Jump to

Keyboard shortcuts

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