account

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 6 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"
	// FieldPlatform holds the string denoting the platform field in the database.
	FieldPlatform = "platform"
	// FieldPlatformAccountID holds the string denoting the platform_account_id field in the database.
	FieldPlatformAccountID = "platform_account_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldProfileURL holds the string denoting the profile_url field in the database.
	FieldProfileURL = "profile_url"
	// FieldAvatarURL holds the string denoting the avatar_url field in the database.
	FieldAvatarURL = "avatar_url"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgePurchasedApp holds the string denoting the purchased_app edge name in mutations.
	EdgePurchasedApp = "purchased_app"
	// EdgeBindUser holds the string denoting the bind_user edge name in mutations.
	EdgeBindUser = "bind_user"
	// Table holds the table name of the account in the database.
	Table = "accounts"
	// PurchasedAppTable is the table that holds the purchased_app relation/edge. The primary key declared below.
	PurchasedAppTable = "account_purchased_app"
	// PurchasedAppInverseTable is the table name for the App entity.
	// It exists in this package in order to avoid circular dependency with the "app" package.
	PurchasedAppInverseTable = "apps"
	// BindUserTable is the table that holds the bind_user relation/edge.
	BindUserTable = "accounts"
	// BindUserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	BindUserInverseTable = "users"
	// BindUserColumn is the table column denoting the bind_user relation/edge.
	BindUserColumn = "user_bind_account"
)

Variables

View Source
var (
	// 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
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for account fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the "accounts" table and are not defined as standalone fields in the schema.

View Source
var (
	// PurchasedAppPrimaryKey and PurchasedAppColumn2 are the table columns denoting the
	// primary key for the purchased_app relation (M2M).
	PurchasedAppPrimaryKey = []string{"account_id", "app_id"}
)

Functions

func And

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

And groups predicates with the AND operator between them.

func AvatarURL

func AvatarURL(v string) predicate.Account

AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.

func AvatarURLContains

func AvatarURLContains(v string) predicate.Account

AvatarURLContains applies the Contains predicate on the "avatar_url" field.

func AvatarURLContainsFold

func AvatarURLContainsFold(v string) predicate.Account

AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.

func AvatarURLEQ

func AvatarURLEQ(v string) predicate.Account

AvatarURLEQ applies the EQ predicate on the "avatar_url" field.

func AvatarURLEqualFold

func AvatarURLEqualFold(v string) predicate.Account

AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.

func AvatarURLGT

func AvatarURLGT(v string) predicate.Account

AvatarURLGT applies the GT predicate on the "avatar_url" field.

func AvatarURLGTE

func AvatarURLGTE(v string) predicate.Account

AvatarURLGTE applies the GTE predicate on the "avatar_url" field.

func AvatarURLHasPrefix

func AvatarURLHasPrefix(v string) predicate.Account

AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.

func AvatarURLHasSuffix

func AvatarURLHasSuffix(v string) predicate.Account

AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.

func AvatarURLIn

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

AvatarURLIn applies the In predicate on the "avatar_url" field.

func AvatarURLLT

func AvatarURLLT(v string) predicate.Account

AvatarURLLT applies the LT predicate on the "avatar_url" field.

func AvatarURLLTE

func AvatarURLLTE(v string) predicate.Account

AvatarURLLTE applies the LTE predicate on the "avatar_url" field.

func AvatarURLNEQ

func AvatarURLNEQ(v string) predicate.Account

AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.

func AvatarURLNotIn

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

AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Account

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Account

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Account

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Account

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Account

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Account

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Account

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

func CreatedAtNotIn

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

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

func HasBindUser

func HasBindUser() predicate.Account

HasBindUser applies the HasEdge predicate on the "bind_user" edge.

func HasBindUserWith

func HasBindUserWith(preds ...predicate.User) predicate.Account

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

func HasPurchasedApp added in v0.1.7

func HasPurchasedApp() predicate.Account

HasPurchasedApp applies the HasEdge predicate on the "purchased_app" edge.

func HasPurchasedAppWith added in v0.1.7

func HasPurchasedAppWith(preds ...predicate.App) predicate.Account

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...model.InternalID) predicate.Account

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...model.InternalID) predicate.Account

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Account

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

func NameContains

func NameContains(v string) predicate.Account

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

func NameContainsFold

func NameContainsFold(v string) predicate.Account

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

func NameEQ

func NameEQ(v string) predicate.Account

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

func NameEqualFold

func NameEqualFold(v string) predicate.Account

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

func NameGT

func NameGT(v string) predicate.Account

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

func NameGTE

func NameGTE(v string) predicate.Account

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Account

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Account

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Account

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

func NameLTE

func NameLTE(v string) predicate.Account

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

func NameNEQ

func NameNEQ(v string) predicate.Account

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func PlatformAccountID

func PlatformAccountID(v string) predicate.Account

PlatformAccountID applies equality check predicate on the "platform_account_id" field. It's identical to PlatformAccountIDEQ.

func PlatformAccountIDContains

func PlatformAccountIDContains(v string) predicate.Account

PlatformAccountIDContains applies the Contains predicate on the "platform_account_id" field.

func PlatformAccountIDContainsFold

func PlatformAccountIDContainsFold(v string) predicate.Account

PlatformAccountIDContainsFold applies the ContainsFold predicate on the "platform_account_id" field.

func PlatformAccountIDEQ

func PlatformAccountIDEQ(v string) predicate.Account

PlatformAccountIDEQ applies the EQ predicate on the "platform_account_id" field.

func PlatformAccountIDEqualFold

func PlatformAccountIDEqualFold(v string) predicate.Account

PlatformAccountIDEqualFold applies the EqualFold predicate on the "platform_account_id" field.

func PlatformAccountIDGT

func PlatformAccountIDGT(v string) predicate.Account

PlatformAccountIDGT applies the GT predicate on the "platform_account_id" field.

func PlatformAccountIDGTE

func PlatformAccountIDGTE(v string) predicate.Account

PlatformAccountIDGTE applies the GTE predicate on the "platform_account_id" field.

func PlatformAccountIDHasPrefix

func PlatformAccountIDHasPrefix(v string) predicate.Account

PlatformAccountIDHasPrefix applies the HasPrefix predicate on the "platform_account_id" field.

func PlatformAccountIDHasSuffix

func PlatformAccountIDHasSuffix(v string) predicate.Account

PlatformAccountIDHasSuffix applies the HasSuffix predicate on the "platform_account_id" field.

func PlatformAccountIDIn

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

PlatformAccountIDIn applies the In predicate on the "platform_account_id" field.

func PlatformAccountIDLT

func PlatformAccountIDLT(v string) predicate.Account

PlatformAccountIDLT applies the LT predicate on the "platform_account_id" field.

func PlatformAccountIDLTE

func PlatformAccountIDLTE(v string) predicate.Account

PlatformAccountIDLTE applies the LTE predicate on the "platform_account_id" field.

func PlatformAccountIDNEQ

func PlatformAccountIDNEQ(v string) predicate.Account

PlatformAccountIDNEQ applies the NEQ predicate on the "platform_account_id" field.

func PlatformAccountIDNotIn

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

PlatformAccountIDNotIn applies the NotIn predicate on the "platform_account_id" field.

func PlatformEQ

func PlatformEQ(v Platform) predicate.Account

PlatformEQ applies the EQ predicate on the "platform" field.

func PlatformIn

func PlatformIn(vs ...Platform) predicate.Account

PlatformIn applies the In predicate on the "platform" field.

func PlatformNEQ

func PlatformNEQ(v Platform) predicate.Account

PlatformNEQ applies the NEQ predicate on the "platform" field.

func PlatformNotIn

func PlatformNotIn(vs ...Platform) predicate.Account

PlatformNotIn applies the NotIn predicate on the "platform" field.

func PlatformValidator

func PlatformValidator(pl Platform) error

PlatformValidator is a validator for the "platform" field enum values. It is called by the builders before save.

func ProfileURL

func ProfileURL(v string) predicate.Account

ProfileURL applies equality check predicate on the "profile_url" field. It's identical to ProfileURLEQ.

func ProfileURLContains

func ProfileURLContains(v string) predicate.Account

ProfileURLContains applies the Contains predicate on the "profile_url" field.

func ProfileURLContainsFold

func ProfileURLContainsFold(v string) predicate.Account

ProfileURLContainsFold applies the ContainsFold predicate on the "profile_url" field.

func ProfileURLEQ

func ProfileURLEQ(v string) predicate.Account

ProfileURLEQ applies the EQ predicate on the "profile_url" field.

func ProfileURLEqualFold

func ProfileURLEqualFold(v string) predicate.Account

ProfileURLEqualFold applies the EqualFold predicate on the "profile_url" field.

func ProfileURLGT

func ProfileURLGT(v string) predicate.Account

ProfileURLGT applies the GT predicate on the "profile_url" field.

func ProfileURLGTE

func ProfileURLGTE(v string) predicate.Account

ProfileURLGTE applies the GTE predicate on the "profile_url" field.

func ProfileURLHasPrefix

func ProfileURLHasPrefix(v string) predicate.Account

ProfileURLHasPrefix applies the HasPrefix predicate on the "profile_url" field.

func ProfileURLHasSuffix

func ProfileURLHasSuffix(v string) predicate.Account

ProfileURLHasSuffix applies the HasSuffix predicate on the "profile_url" field.

func ProfileURLIn

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

ProfileURLIn applies the In predicate on the "profile_url" field.

func ProfileURLLT

func ProfileURLLT(v string) predicate.Account

ProfileURLLT applies the LT predicate on the "profile_url" field.

func ProfileURLLTE

func ProfileURLLTE(v string) predicate.Account

ProfileURLLTE applies the LTE predicate on the "profile_url" field.

func ProfileURLNEQ

func ProfileURLNEQ(v string) predicate.Account

ProfileURLNEQ applies the NEQ predicate on the "profile_url" field.

func ProfileURLNotIn

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

ProfileURLNotIn applies the NotIn predicate on the "profile_url" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Account

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Account

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Account

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Account

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Account

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Account

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Account

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

func UpdatedAtNotIn

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

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

type OrderOption added in v0.1.4

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Account queries.

func ByAvatarURL added in v0.1.4

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

ByAvatarURL orders the results by the avatar_url field.

func ByBindUserField added in v0.1.4

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

ByBindUserField orders the results by bind_user field.

func ByCreatedAt added in v0.1.4

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

ByCreatedAt orders the results by the created_at field.

func ByID added in v0.1.4

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

ByID orders the results by the id field.

func ByName added in v0.1.4

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

ByName orders the results by the name field.

func ByPlatform added in v0.1.4

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

ByPlatform orders the results by the platform field.

func ByPlatformAccountID added in v0.1.4

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

ByPlatformAccountID orders the results by the platform_account_id field.

func ByProfileURL added in v0.1.4

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

ByProfileURL orders the results by the profile_url field.

func ByPurchasedApp added in v0.1.7

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

ByPurchasedApp orders the results by purchased_app terms.

func ByPurchasedAppCount added in v0.1.7

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

ByPurchasedAppCount orders the results by purchased_app count.

func ByUpdatedAt added in v0.1.4

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

ByUpdatedAt orders the results by the updated_at field.

type Platform

type Platform string

Platform defines the type for the "platform" enum field.

const (
	PlatformSteam Platform = "steam"
)

Platform values.

func (Platform) String

func (pl Platform) String() string

Jump to

Keyboard shortcuts

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