account

package
v0.0.0-...-595c5f8 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 5 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"
	// FieldAuthID holds the string denoting the auth_id field in the database.
	FieldAuthID = "auth_id"
	// FieldNickname holds the string denoting the nickname field in the database.
	FieldNickname = "nickname"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldPassword holds the string denoting the password field in the database.
	FieldPassword = "password"
	// FieldPasswordUpdatedAt holds the string denoting the password_updated_at field in the database.
	FieldPasswordUpdatedAt = "password_updated_at"
	// EdgeAuthRoles holds the string denoting the auth_roles edge name in mutations.
	EdgeAuthRoles = "auth_roles"
	// Table holds the table name of the account in the database.
	Table = "accounts"
	// AuthRolesTable is the table that holds the auth_roles relation/edge. The primary key declared below.
	AuthRolesTable = "account_auth_roles"
	// AuthRolesInverseTable is the table name for the AuthRole entity.
	// It exists in this package in order to avoid circular dependency with the "authrole" package.
	AuthRolesInverseTable = "auth_roles"
)

Variables

View Source
var (
	// AuthIDValidator is a validator for the "auth_id" field. It is called by the builders before save.
	AuthIDValidator func(string) error
	// NicknameValidator is a validator for the "nickname" field. It is called by the builders before save.
	NicknameValidator func(string) error
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// PasswordValidator is a validator for the "password" field. It is called by the builders before save.
	PasswordValidator func(string) error
	// DefaultPasswordUpdatedAt holds the default value on creation for the "password_updated_at" field.
	DefaultPasswordUpdatedAt func() time.Time
	// UpdateDefaultPasswordUpdatedAt holds the default value on update for the "password_updated_at" field.
	UpdateDefaultPasswordUpdatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() ulid.ULID
)
View Source
var (
	// AuthRolesPrimaryKey and AuthRolesColumn2 are the table columns denoting the
	// primary key for the auth_roles relation (M2M).
	AuthRolesPrimaryKey = []string{"account_id", "auth_role_id"}
)

Columns holds all SQL columns for account fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func AuthID

func AuthID(v string) predicate.Account

AuthID applies equality check predicate on the "auth_id" field. It's identical to AuthIDEQ.

func AuthIDContains

func AuthIDContains(v string) predicate.Account

AuthIDContains applies the Contains predicate on the "auth_id" field.

func AuthIDContainsFold

func AuthIDContainsFold(v string) predicate.Account

AuthIDContainsFold applies the ContainsFold predicate on the "auth_id" field.

func AuthIDEQ

func AuthIDEQ(v string) predicate.Account

AuthIDEQ applies the EQ predicate on the "auth_id" field.

func AuthIDEqualFold

func AuthIDEqualFold(v string) predicate.Account

AuthIDEqualFold applies the EqualFold predicate on the "auth_id" field.

func AuthIDGT

func AuthIDGT(v string) predicate.Account

AuthIDGT applies the GT predicate on the "auth_id" field.

func AuthIDGTE

func AuthIDGTE(v string) predicate.Account

AuthIDGTE applies the GTE predicate on the "auth_id" field.

func AuthIDHasPrefix

func AuthIDHasPrefix(v string) predicate.Account

AuthIDHasPrefix applies the HasPrefix predicate on the "auth_id" field.

func AuthIDHasSuffix

func AuthIDHasSuffix(v string) predicate.Account

AuthIDHasSuffix applies the HasSuffix predicate on the "auth_id" field.

func AuthIDIn

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

AuthIDIn applies the In predicate on the "auth_id" field.

func AuthIDIsNil

func AuthIDIsNil() predicate.Account

AuthIDIsNil applies the IsNil predicate on the "auth_id" field.

func AuthIDLT

func AuthIDLT(v string) predicate.Account

AuthIDLT applies the LT predicate on the "auth_id" field.

func AuthIDLTE

func AuthIDLTE(v string) predicate.Account

AuthIDLTE applies the LTE predicate on the "auth_id" field.

func AuthIDNEQ

func AuthIDNEQ(v string) predicate.Account

AuthIDNEQ applies the NEQ predicate on the "auth_id" field.

func AuthIDNotIn

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

AuthIDNotIn applies the NotIn predicate on the "auth_id" field.

func AuthIDNotNil

func AuthIDNotNil() predicate.Account

AuthIDNotNil applies the NotNil predicate on the "auth_id" field.

func Email

func Email(v string) predicate.Account

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

func EmailContains

func EmailContains(v string) predicate.Account

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

func EmailContainsFold

func EmailContainsFold(v string) predicate.Account

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

func EmailEQ

func EmailEQ(v string) predicate.Account

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

func EmailEqualFold

func EmailEqualFold(v string) predicate.Account

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

func EmailGT

func EmailGT(v string) predicate.Account

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

func EmailGTE

func EmailGTE(v string) predicate.Account

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

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Account

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

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Account

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

func EmailIn

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

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

func EmailLT

func EmailLT(v string) predicate.Account

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

func EmailLTE

func EmailLTE(v string) predicate.Account

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

func EmailNEQ

func EmailNEQ(v string) predicate.Account

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

func EmailNotIn

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

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

func HasAuthRoles

func HasAuthRoles() predicate.Account

HasAuthRoles applies the HasEdge predicate on the "auth_roles" edge.

func HasAuthRolesWith

func HasAuthRolesWith(preds ...predicate.AuthRole) predicate.Account

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

func ID

func ID(id ulid.ULID) predicate.Account

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id ulid.ULID) predicate.Account

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id ulid.ULID) predicate.Account

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id ulid.ULID) predicate.Account

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...ulid.ULID) predicate.Account

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id ulid.ULID) predicate.Account

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id ulid.ULID) predicate.Account

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id ulid.ULID) predicate.Account

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...ulid.ULID) predicate.Account

IDNotIn applies the NotIn predicate on the ID field.

func Nickname

func Nickname(v string) predicate.Account

Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.

func NicknameContains

func NicknameContains(v string) predicate.Account

NicknameContains applies the Contains predicate on the "nickname" field.

func NicknameContainsFold

func NicknameContainsFold(v string) predicate.Account

NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.

func NicknameEQ

func NicknameEQ(v string) predicate.Account

NicknameEQ applies the EQ predicate on the "nickname" field.

func NicknameEqualFold

func NicknameEqualFold(v string) predicate.Account

NicknameEqualFold applies the EqualFold predicate on the "nickname" field.

func NicknameGT

func NicknameGT(v string) predicate.Account

NicknameGT applies the GT predicate on the "nickname" field.

func NicknameGTE

func NicknameGTE(v string) predicate.Account

NicknameGTE applies the GTE predicate on the "nickname" field.

func NicknameHasPrefix

func NicknameHasPrefix(v string) predicate.Account

NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.

func NicknameHasSuffix

func NicknameHasSuffix(v string) predicate.Account

NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.

func NicknameIn

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

NicknameIn applies the In predicate on the "nickname" field.

func NicknameLT

func NicknameLT(v string) predicate.Account

NicknameLT applies the LT predicate on the "nickname" field.

func NicknameLTE

func NicknameLTE(v string) predicate.Account

NicknameLTE applies the LTE predicate on the "nickname" field.

func NicknameNEQ

func NicknameNEQ(v string) predicate.Account

NicknameNEQ applies the NEQ predicate on the "nickname" field.

func NicknameNotIn

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

NicknameNotIn applies the NotIn predicate on the "nickname" 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 Password

func Password(v string) predicate.Account

Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.

func PasswordContains

func PasswordContains(v string) predicate.Account

PasswordContains applies the Contains predicate on the "password" field.

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.Account

PasswordContainsFold applies the ContainsFold predicate on the "password" field.

func PasswordEQ

func PasswordEQ(v string) predicate.Account

PasswordEQ applies the EQ predicate on the "password" field.

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.Account

PasswordEqualFold applies the EqualFold predicate on the "password" field.

func PasswordGT

func PasswordGT(v string) predicate.Account

PasswordGT applies the GT predicate on the "password" field.

func PasswordGTE

func PasswordGTE(v string) predicate.Account

PasswordGTE applies the GTE predicate on the "password" field.

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.Account

PasswordHasPrefix applies the HasPrefix predicate on the "password" field.

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.Account

PasswordHasSuffix applies the HasSuffix predicate on the "password" field.

func PasswordIn

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

PasswordIn applies the In predicate on the "password" field.

func PasswordIsNil

func PasswordIsNil() predicate.Account

PasswordIsNil applies the IsNil predicate on the "password" field.

func PasswordLT

func PasswordLT(v string) predicate.Account

PasswordLT applies the LT predicate on the "password" field.

func PasswordLTE

func PasswordLTE(v string) predicate.Account

PasswordLTE applies the LTE predicate on the "password" field.

func PasswordNEQ

func PasswordNEQ(v string) predicate.Account

PasswordNEQ applies the NEQ predicate on the "password" field.

func PasswordNotIn

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

PasswordNotIn applies the NotIn predicate on the "password" field.

func PasswordNotNil

func PasswordNotNil() predicate.Account

PasswordNotNil applies the NotNil predicate on the "password" field.

func PasswordUpdatedAt

func PasswordUpdatedAt(v time.Time) predicate.Account

PasswordUpdatedAt applies equality check predicate on the "password_updated_at" field. It's identical to PasswordUpdatedAtEQ.

func PasswordUpdatedAtEQ

func PasswordUpdatedAtEQ(v time.Time) predicate.Account

PasswordUpdatedAtEQ applies the EQ predicate on the "password_updated_at" field.

func PasswordUpdatedAtGT

func PasswordUpdatedAtGT(v time.Time) predicate.Account

PasswordUpdatedAtGT applies the GT predicate on the "password_updated_at" field.

func PasswordUpdatedAtGTE

func PasswordUpdatedAtGTE(v time.Time) predicate.Account

PasswordUpdatedAtGTE applies the GTE predicate on the "password_updated_at" field.

func PasswordUpdatedAtIn

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

PasswordUpdatedAtIn applies the In predicate on the "password_updated_at" field.

func PasswordUpdatedAtLT

func PasswordUpdatedAtLT(v time.Time) predicate.Account

PasswordUpdatedAtLT applies the LT predicate on the "password_updated_at" field.

func PasswordUpdatedAtLTE

func PasswordUpdatedAtLTE(v time.Time) predicate.Account

PasswordUpdatedAtLTE applies the LTE predicate on the "password_updated_at" field.

func PasswordUpdatedAtNEQ

func PasswordUpdatedAtNEQ(v time.Time) predicate.Account

PasswordUpdatedAtNEQ applies the NEQ predicate on the "password_updated_at" field.

func PasswordUpdatedAtNotIn

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

PasswordUpdatedAtNotIn applies the NotIn predicate on the "password_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