staffaccount

package
v0.0.0-...-8b6722b Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the staffaccount type in the database.
	Label = "staff_account"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// 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"
	// FieldEmailConfirmed holds the string denoting the email_confirmed field in the database.
	FieldEmailConfirmed = "email_confirmed"
	// 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"
	// EdgeAuthType holds the string denoting the auth_type edge name in mutations.
	EdgeAuthType = "auth_type"
	// Table holds the table name of the staffaccount in the database.
	Table = "staff_accounts"
	// AuthRolesTable is the table that holds the auth_roles relation/edge. The primary key declared below.
	AuthRolesTable = "staff_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"
	// AuthTypeTable is the table that holds the auth_type relation/edge.
	AuthTypeTable = "staff_accounts"
	// AuthTypeInverseTable is the table name for the AuthType entity.
	// It exists in this package in order to avoid circular dependency with the "authtype" package.
	AuthTypeInverseTable = "auth_types"
	// AuthTypeColumn is the table column denoting the auth_type relation/edge.
	AuthTypeColumn = "staff_account_auth_type"
)

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
	// UpdateDefaultDeletedAt holds the default value on update for the "deleted_at" field.
	UpdateDefaultDeletedAt func() time.Time
	// 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
	// DefaultEmailConfirmed holds the default value on creation for the "email_confirmed" field.
	DefaultEmailConfirmed bool
	// PasswordValidator is a validator for the "password" field. It is called by the builders before save.
	PasswordValidator func(string) error
	// 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() pulid.PULID
)
View Source
var (
	// AuthRolesPrimaryKey and AuthRolesColumn2 are the table columns denoting the
	// primary key for the auth_roles relation (M2M).
	AuthRolesPrimaryKey = []string{"staff_account_id", "auth_role_id"}
)

Columns holds all SQL columns for staffaccount fields.

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

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

Functions

func And

func And(predicates ...predicate.StaffAccount) predicate.StaffAccount

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.StaffAccount

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.StaffAccount

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.StaffAccount

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.StaffAccount

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.StaffAccount

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.StaffAccount

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.StaffAccount

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.StaffAccount

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.StaffAccount

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.StaffAccount

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.StaffAccount

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.StaffAccount

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.StaffAccount

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.StaffAccount

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.StaffAccount

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.StaffAccount

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.StaffAccount

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.StaffAccount

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Email

func Email(v string) predicate.StaffAccount

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

func EmailConfirmed

func EmailConfirmed(v bool) predicate.StaffAccount

EmailConfirmed applies equality check predicate on the "email_confirmed" field. It's identical to EmailConfirmedEQ.

func EmailConfirmedEQ

func EmailConfirmedEQ(v bool) predicate.StaffAccount

EmailConfirmedEQ applies the EQ predicate on the "email_confirmed" field.

func EmailConfirmedNEQ

func EmailConfirmedNEQ(v bool) predicate.StaffAccount

EmailConfirmedNEQ applies the NEQ predicate on the "email_confirmed" field.

func EmailContains

func EmailContains(v string) predicate.StaffAccount

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

func EmailContainsFold

func EmailContainsFold(v string) predicate.StaffAccount

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

func EmailEQ

func EmailEQ(v string) predicate.StaffAccount

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

func EmailEqualFold

func EmailEqualFold(v string) predicate.StaffAccount

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

func EmailGT

func EmailGT(v string) predicate.StaffAccount

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

func EmailGTE

func EmailGTE(v string) predicate.StaffAccount

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

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.StaffAccount

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

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.StaffAccount

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

func EmailIn

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

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

func EmailLT

func EmailLT(v string) predicate.StaffAccount

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

func EmailLTE

func EmailLTE(v string) predicate.StaffAccount

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

func EmailNEQ

func EmailNEQ(v string) predicate.StaffAccount

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

func EmailNotIn

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

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

func HasAuthRoles

func HasAuthRoles() predicate.StaffAccount

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

func HasAuthRolesWith

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

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

func HasAuthType

func HasAuthType() predicate.StaffAccount

HasAuthType applies the HasEdge predicate on the "auth_type" edge.

func HasAuthTypeWith

func HasAuthTypeWith(preds ...predicate.AuthType) predicate.StaffAccount

HasAuthTypeWith applies the HasEdge predicate on the "auth_type" 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 ...pulid.PULID) predicate.StaffAccount

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 ...pulid.PULID) predicate.StaffAccount

IDNotIn applies the NotIn predicate on the ID field.

func Nickname

func Nickname(v string) predicate.StaffAccount

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

func NicknameContains

func NicknameContains(v string) predicate.StaffAccount

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

func NicknameContainsFold

func NicknameContainsFold(v string) predicate.StaffAccount

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

func NicknameEQ

func NicknameEQ(v string) predicate.StaffAccount

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

func NicknameEqualFold

func NicknameEqualFold(v string) predicate.StaffAccount

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

func NicknameGT

func NicknameGT(v string) predicate.StaffAccount

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

func NicknameGTE

func NicknameGTE(v string) predicate.StaffAccount

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

func NicknameHasPrefix

func NicknameHasPrefix(v string) predicate.StaffAccount

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

func NicknameHasSuffix

func NicknameHasSuffix(v string) predicate.StaffAccount

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

func NicknameIn

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

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

func NicknameLT

func NicknameLT(v string) predicate.StaffAccount

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

func NicknameLTE

func NicknameLTE(v string) predicate.StaffAccount

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

func NicknameNEQ

func NicknameNEQ(v string) predicate.StaffAccount

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

func NicknameNotIn

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

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

Or groups predicates with the OR operator between them.

func Password

func Password(v string) predicate.StaffAccount

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

func PasswordContains

func PasswordContains(v string) predicate.StaffAccount

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

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.StaffAccount

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

func PasswordEQ

func PasswordEQ(v string) predicate.StaffAccount

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

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.StaffAccount

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

func PasswordGT

func PasswordGT(v string) predicate.StaffAccount

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

func PasswordGTE

func PasswordGTE(v string) predicate.StaffAccount

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

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.StaffAccount

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

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.StaffAccount

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

func PasswordIn

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

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

func PasswordIsNil

func PasswordIsNil() predicate.StaffAccount

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

func PasswordLT

func PasswordLT(v string) predicate.StaffAccount

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

func PasswordLTE

func PasswordLTE(v string) predicate.StaffAccount

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

func PasswordNEQ

func PasswordNEQ(v string) predicate.StaffAccount

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

func PasswordNotIn

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

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

func PasswordNotNil

func PasswordNotNil() predicate.StaffAccount

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

func PasswordUpdatedAt

func PasswordUpdatedAt(v time.Time) predicate.StaffAccount

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

func PasswordUpdatedAtEQ

func PasswordUpdatedAtEQ(v time.Time) predicate.StaffAccount

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

func PasswordUpdatedAtGT

func PasswordUpdatedAtGT(v time.Time) predicate.StaffAccount

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

func PasswordUpdatedAtGTE

func PasswordUpdatedAtGTE(v time.Time) predicate.StaffAccount

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

func PasswordUpdatedAtIn

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

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

func PasswordUpdatedAtIsNil

func PasswordUpdatedAtIsNil() predicate.StaffAccount

PasswordUpdatedAtIsNil applies the IsNil predicate on the "password_updated_at" field.

func PasswordUpdatedAtLT

func PasswordUpdatedAtLT(v time.Time) predicate.StaffAccount

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

func PasswordUpdatedAtLTE

func PasswordUpdatedAtLTE(v time.Time) predicate.StaffAccount

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

func PasswordUpdatedAtNEQ

func PasswordUpdatedAtNEQ(v time.Time) predicate.StaffAccount

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

func PasswordUpdatedAtNotIn

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

PasswordUpdatedAtNotIn applies the NotIn predicate on the "password_updated_at" field.

func PasswordUpdatedAtNotNil

func PasswordUpdatedAtNotNil() predicate.StaffAccount

PasswordUpdatedAtNotNil applies the NotNil predicate on the "password_updated_at" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.StaffAccount

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.StaffAccount

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.StaffAccount

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.StaffAccount

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.StaffAccount

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.StaffAccount

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.StaffAccount

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

func UpdatedAtNotIn

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

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