user

package
v0.2.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the user type in the database.
	Label = "user"
	// 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"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldPassword holds the string denoting the password field in the database.
	FieldPassword = "password"
	// FieldNickname holds the string denoting the nickname field in the database.
	FieldNickname = "nickname"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldHomePath holds the string denoting the home_path field in the database.
	FieldHomePath = "home_path"
	// FieldMobile holds the string denoting the mobile field in the database.
	FieldMobile = "mobile"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldAvatar holds the string denoting the avatar field in the database.
	FieldAvatar = "avatar"
	// FieldDepartmentID holds the string denoting the department_id field in the database.
	FieldDepartmentID = "department_id"
	// EdgeDepartments holds the string denoting the departments edge name in mutations.
	EdgeDepartments = "departments"
	// EdgePositions holds the string denoting the positions edge name in mutations.
	EdgePositions = "positions"
	// EdgeRoles holds the string denoting the roles edge name in mutations.
	EdgeRoles = "roles"
	// Table holds the table name of the user in the database.
	Table = "sys_users"
	// DepartmentsTable is the table that holds the departments relation/edge.
	DepartmentsTable = "sys_users"
	// DepartmentsInverseTable is the table name for the Department entity.
	// It exists in this package in order to avoid circular dependency with the "department" package.
	DepartmentsInverseTable = "sys_departments"
	// DepartmentsColumn is the table column denoting the departments relation/edge.
	DepartmentsColumn = "department_id"
	// PositionsTable is the table that holds the positions relation/edge. The primary key declared below.
	PositionsTable = "user_positions"
	// PositionsInverseTable is the table name for the Position entity.
	// It exists in this package in order to avoid circular dependency with the "position" package.
	PositionsInverseTable = "sys_positions"
	// RolesTable is the table that holds the roles relation/edge. The primary key declared below.
	RolesTable = "user_roles"
	// RolesInverseTable is the table name for the Role entity.
	// It exists in this package in order to avoid circular dependency with the "role" package.
	RolesInverseTable = "sys_roles"
)

Variables

View Source
var (
	// PositionsPrimaryKey and PositionsColumn2 are the table columns denoting the
	// primary key for the positions relation (M2M).
	PositionsPrimaryKey = []string{"user_id", "position_id"}
	// RolesPrimaryKey and RolesColumn2 are the table columns denoting the
	// primary key for the roles relation (M2M).
	RolesPrimaryKey = []string{"user_id", "role_id"}
)
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
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus uint8
	// DefaultHomePath holds the default value on creation for the "home_path" field.
	DefaultHomePath string
	// DefaultAvatar holds the default value on creation for the "avatar" field.
	DefaultAvatar string
	// DefaultDepartmentID holds the default value on creation for the "department_id" field.
	DefaultDepartmentID uint64
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for user fields.

Functions

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func Avatar

func Avatar(v string) predicate.User

Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.

func AvatarContains

func AvatarContains(v string) predicate.User

AvatarContains applies the Contains predicate on the "avatar" field.

func AvatarContainsFold

func AvatarContainsFold(v string) predicate.User

AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.

func AvatarEQ

func AvatarEQ(v string) predicate.User

AvatarEQ applies the EQ predicate on the "avatar" field.

func AvatarEqualFold

func AvatarEqualFold(v string) predicate.User

AvatarEqualFold applies the EqualFold predicate on the "avatar" field.

func AvatarGT

func AvatarGT(v string) predicate.User

AvatarGT applies the GT predicate on the "avatar" field.

func AvatarGTE

func AvatarGTE(v string) predicate.User

AvatarGTE applies the GTE predicate on the "avatar" field.

func AvatarHasPrefix

func AvatarHasPrefix(v string) predicate.User

AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.

func AvatarHasSuffix

func AvatarHasSuffix(v string) predicate.User

AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.

func AvatarIn

func AvatarIn(vs ...string) predicate.User

AvatarIn applies the In predicate on the "avatar" field.

func AvatarIsNil

func AvatarIsNil() predicate.User

AvatarIsNil applies the IsNil predicate on the "avatar" field.

func AvatarLT

func AvatarLT(v string) predicate.User

AvatarLT applies the LT predicate on the "avatar" field.

func AvatarLTE

func AvatarLTE(v string) predicate.User

AvatarLTE applies the LTE predicate on the "avatar" field.

func AvatarNEQ

func AvatarNEQ(v string) predicate.User

AvatarNEQ applies the NEQ predicate on the "avatar" field.

func AvatarNotIn

func AvatarNotIn(vs ...string) predicate.User

AvatarNotIn applies the NotIn predicate on the "avatar" field.

func AvatarNotNil

func AvatarNotNil() predicate.User

AvatarNotNil applies the NotNil predicate on the "avatar" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.User

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.User

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.User

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.User

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.User

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.User

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.User

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

func CreatedAtNotIn

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

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

func DepartmentID added in v0.2.3

func DepartmentID(v uint64) predicate.User

DepartmentID applies equality check predicate on the "department_id" field. It's identical to DepartmentIDEQ.

func DepartmentIDEQ added in v0.2.3

func DepartmentIDEQ(v uint64) predicate.User

DepartmentIDEQ applies the EQ predicate on the "department_id" field.

func DepartmentIDIn added in v0.2.3

func DepartmentIDIn(vs ...uint64) predicate.User

DepartmentIDIn applies the In predicate on the "department_id" field.

func DepartmentIDIsNil added in v0.2.3

func DepartmentIDIsNil() predicate.User

DepartmentIDIsNil applies the IsNil predicate on the "department_id" field.

func DepartmentIDNEQ added in v0.2.3

func DepartmentIDNEQ(v uint64) predicate.User

DepartmentIDNEQ applies the NEQ predicate on the "department_id" field.

func DepartmentIDNotIn added in v0.2.3

func DepartmentIDNotIn(vs ...uint64) predicate.User

DepartmentIDNotIn applies the NotIn predicate on the "department_id" field.

func DepartmentIDNotNil added in v0.2.3

func DepartmentIDNotNil() predicate.User

DepartmentIDNotNil applies the NotNil predicate on the "department_id" field.

func Description added in v0.2.3

func Description(v string) predicate.User

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains added in v0.2.3

func DescriptionContains(v string) predicate.User

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold added in v0.2.3

func DescriptionContainsFold(v string) predicate.User

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ added in v0.2.3

func DescriptionEQ(v string) predicate.User

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold added in v0.2.3

func DescriptionEqualFold(v string) predicate.User

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT added in v0.2.3

func DescriptionGT(v string) predicate.User

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE added in v0.2.3

func DescriptionGTE(v string) predicate.User

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix added in v0.2.3

func DescriptionHasPrefix(v string) predicate.User

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix added in v0.2.3

func DescriptionHasSuffix(v string) predicate.User

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn added in v0.2.3

func DescriptionIn(vs ...string) predicate.User

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil added in v0.2.3

func DescriptionIsNil() predicate.User

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT added in v0.2.3

func DescriptionLT(v string) predicate.User

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE added in v0.2.3

func DescriptionLTE(v string) predicate.User

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ added in v0.2.3

func DescriptionNEQ(v string) predicate.User

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn added in v0.2.3

func DescriptionNotIn(vs ...string) predicate.User

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil added in v0.2.3

func DescriptionNotNil() predicate.User

DescriptionNotNil applies the NotNil predicate on the "description" field.

func Email

func Email(v string) predicate.User

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

func EmailContains

func EmailContains(v string) predicate.User

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

func EmailContainsFold

func EmailContainsFold(v string) predicate.User

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

func EmailEQ

func EmailEQ(v string) predicate.User

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

func EmailEqualFold

func EmailEqualFold(v string) predicate.User

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

func EmailGT

func EmailGT(v string) predicate.User

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

func EmailGTE

func EmailGTE(v string) predicate.User

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

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.User

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

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.User

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

func EmailIn

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

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

func EmailIsNil

func EmailIsNil() predicate.User

EmailIsNil applies the IsNil predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.User

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

func EmailLTE

func EmailLTE(v string) predicate.User

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

func EmailNEQ

func EmailNEQ(v string) predicate.User

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

func EmailNotIn

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

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

func EmailNotNil

func EmailNotNil() predicate.User

EmailNotNil applies the NotNil predicate on the "email" field.

func HasDepartments added in v0.2.4

func HasDepartments() predicate.User

HasDepartments applies the HasEdge predicate on the "departments" edge.

func HasDepartmentsWith added in v0.2.4

func HasDepartmentsWith(preds ...predicate.Department) predicate.User

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

func HasPositions added in v0.2.4

func HasPositions() predicate.User

HasPositions applies the HasEdge predicate on the "positions" edge.

func HasPositionsWith added in v0.2.4

func HasPositionsWith(preds ...predicate.Position) predicate.User

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

func HasRoles added in v0.2.4

func HasRoles() predicate.User

HasRoles applies the HasEdge predicate on the "roles" edge.

func HasRolesWith added in v0.2.4

func HasRolesWith(preds ...predicate.Role) predicate.User

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

func HomePath added in v0.2.3

func HomePath(v string) predicate.User

HomePath applies equality check predicate on the "home_path" field. It's identical to HomePathEQ.

func HomePathContains added in v0.2.3

func HomePathContains(v string) predicate.User

HomePathContains applies the Contains predicate on the "home_path" field.

func HomePathContainsFold added in v0.2.3

func HomePathContainsFold(v string) predicate.User

HomePathContainsFold applies the ContainsFold predicate on the "home_path" field.

func HomePathEQ added in v0.2.3

func HomePathEQ(v string) predicate.User

HomePathEQ applies the EQ predicate on the "home_path" field.

func HomePathEqualFold added in v0.2.3

func HomePathEqualFold(v string) predicate.User

HomePathEqualFold applies the EqualFold predicate on the "home_path" field.

func HomePathGT added in v0.2.3

func HomePathGT(v string) predicate.User

HomePathGT applies the GT predicate on the "home_path" field.

func HomePathGTE added in v0.2.3

func HomePathGTE(v string) predicate.User

HomePathGTE applies the GTE predicate on the "home_path" field.

func HomePathHasPrefix added in v0.2.3

func HomePathHasPrefix(v string) predicate.User

HomePathHasPrefix applies the HasPrefix predicate on the "home_path" field.

func HomePathHasSuffix added in v0.2.3

func HomePathHasSuffix(v string) predicate.User

HomePathHasSuffix applies the HasSuffix predicate on the "home_path" field.

func HomePathIn added in v0.2.3

func HomePathIn(vs ...string) predicate.User

HomePathIn applies the In predicate on the "home_path" field.

func HomePathLT added in v0.2.3

func HomePathLT(v string) predicate.User

HomePathLT applies the LT predicate on the "home_path" field.

func HomePathLTE added in v0.2.3

func HomePathLTE(v string) predicate.User

HomePathLTE applies the LTE predicate on the "home_path" field.

func HomePathNEQ added in v0.2.3

func HomePathNEQ(v string) predicate.User

HomePathNEQ applies the NEQ predicate on the "home_path" field.

func HomePathNotIn added in v0.2.3

func HomePathNotIn(vs ...string) predicate.User

HomePathNotIn applies the NotIn predicate on the "home_path" field.

func ID

func ID(id uuid.UUID) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.User

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.User

IDNotIn applies the NotIn predicate on the ID field.

func Mobile

func Mobile(v string) predicate.User

Mobile applies equality check predicate on the "mobile" field. It's identical to MobileEQ.

func MobileContains

func MobileContains(v string) predicate.User

MobileContains applies the Contains predicate on the "mobile" field.

func MobileContainsFold

func MobileContainsFold(v string) predicate.User

MobileContainsFold applies the ContainsFold predicate on the "mobile" field.

func MobileEQ

func MobileEQ(v string) predicate.User

MobileEQ applies the EQ predicate on the "mobile" field.

func MobileEqualFold

func MobileEqualFold(v string) predicate.User

MobileEqualFold applies the EqualFold predicate on the "mobile" field.

func MobileGT

func MobileGT(v string) predicate.User

MobileGT applies the GT predicate on the "mobile" field.

func MobileGTE

func MobileGTE(v string) predicate.User

MobileGTE applies the GTE predicate on the "mobile" field.

func MobileHasPrefix

func MobileHasPrefix(v string) predicate.User

MobileHasPrefix applies the HasPrefix predicate on the "mobile" field.

func MobileHasSuffix

func MobileHasSuffix(v string) predicate.User

MobileHasSuffix applies the HasSuffix predicate on the "mobile" field.

func MobileIn

func MobileIn(vs ...string) predicate.User

MobileIn applies the In predicate on the "mobile" field.

func MobileIsNil

func MobileIsNil() predicate.User

MobileIsNil applies the IsNil predicate on the "mobile" field.

func MobileLT

func MobileLT(v string) predicate.User

MobileLT applies the LT predicate on the "mobile" field.

func MobileLTE

func MobileLTE(v string) predicate.User

MobileLTE applies the LTE predicate on the "mobile" field.

func MobileNEQ

func MobileNEQ(v string) predicate.User

MobileNEQ applies the NEQ predicate on the "mobile" field.

func MobileNotIn

func MobileNotIn(vs ...string) predicate.User

MobileNotIn applies the NotIn predicate on the "mobile" field.

func MobileNotNil

func MobileNotNil() predicate.User

MobileNotNil applies the NotNil predicate on the "mobile" field.

func Nickname

func Nickname(v string) predicate.User

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

func NicknameContains

func NicknameContains(v string) predicate.User

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

func NicknameContainsFold

func NicknameContainsFold(v string) predicate.User

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

func NicknameEQ

func NicknameEQ(v string) predicate.User

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

func NicknameEqualFold

func NicknameEqualFold(v string) predicate.User

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

func NicknameGT

func NicknameGT(v string) predicate.User

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

func NicknameGTE

func NicknameGTE(v string) predicate.User

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

func NicknameHasPrefix

func NicknameHasPrefix(v string) predicate.User

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

func NicknameHasSuffix

func NicknameHasSuffix(v string) predicate.User

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

func NicknameIn

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

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

func NicknameLT

func NicknameLT(v string) predicate.User

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

func NicknameLTE

func NicknameLTE(v string) predicate.User

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

func NicknameNEQ

func NicknameNEQ(v string) predicate.User

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

func NicknameNotIn

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

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

Or groups predicates with the OR operator between them.

func Password

func Password(v string) predicate.User

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

func PasswordContains

func PasswordContains(v string) predicate.User

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

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.User

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

func PasswordEQ

func PasswordEQ(v string) predicate.User

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

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.User

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

func PasswordGT

func PasswordGT(v string) predicate.User

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

func PasswordGTE

func PasswordGTE(v string) predicate.User

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

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.User

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

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.User

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

func PasswordIn

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

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

func PasswordLT

func PasswordLT(v string) predicate.User

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

func PasswordLTE

func PasswordLTE(v string) predicate.User

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

func PasswordNEQ

func PasswordNEQ(v string) predicate.User

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

func PasswordNotIn

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

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

func Status

func Status(v uint8) predicate.User

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v uint8) predicate.User

StatusEQ applies the EQ predicate on the "status" field.

func StatusGT

func StatusGT(v uint8) predicate.User

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v uint8) predicate.User

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

func StatusIn(vs ...uint8) predicate.User

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.User

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusLT

func StatusLT(v uint8) predicate.User

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v uint8) predicate.User

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v uint8) predicate.User

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...uint8) predicate.User

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.User

StatusNotNil applies the NotNil predicate on the "status" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.User

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.User

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.User

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.User

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.User

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.User

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.User

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func Username

func Username(v string) predicate.User

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

func UsernameContains

func UsernameContains(v string) predicate.User

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

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.User

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

func UsernameEQ

func UsernameEQ(v string) predicate.User

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

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.User

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

func UsernameGT

func UsernameGT(v string) predicate.User

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

func UsernameGTE

func UsernameGTE(v string) predicate.User

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

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.User

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

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.User

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

func UsernameIn

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

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

func UsernameLT

func UsernameLT(v string) predicate.User

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

func UsernameLTE

func UsernameLTE(v string) predicate.User

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

func UsernameNEQ

func UsernameNEQ(v string) predicate.User

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

func UsernameNotIn

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

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

This section is empty.

Jump to

Keyboard shortcuts

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