profile

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the profile type in the database.
	Label = "profile"
	// 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"
	// FieldDeleteTime holds the string denoting the delete_time field in the database.
	FieldDeleteTime = "delete_time"
	// FieldAge holds the string denoting the age field in the database.
	FieldAge = "age"
	// FieldTz holds the string denoting the tz field in the database.
	FieldTz = "tz"
	// FieldAvatar holds the string denoting the avatar field in the database.
	FieldAvatar = "avatar"
	// FieldBirthday holds the string denoting the birthday field in the database.
	FieldBirthday = "birthday"
	// FieldGender holds the string denoting the gender field in the database.
	FieldGender = "gender"
	// FieldPreferredTheme holds the string denoting the preferred_theme field in the database.
	FieldPreferredTheme = "preferred_theme"

	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"

	// Table holds the table name of the profile in the database.
	Table = "profiles"
	// UserTable is the table the holds the user relation/edge.
	UserTable = "profiles"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_profile"
)

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
	// AgeValidator is a validator for the "age" field. It is called by the builders before save.
	AgeValidator func(int) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for profile fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the Profile type.

Functions

func Age

func Age(v int) predicate.Profile

Age applies equality check predicate on the "age" field. It's identical to AgeEQ.

func AgeEQ

func AgeEQ(v int) predicate.Profile

AgeEQ applies the EQ predicate on the "age" field.

func AgeGT

func AgeGT(v int) predicate.Profile

AgeGT applies the GT predicate on the "age" field.

func AgeGTE

func AgeGTE(v int) predicate.Profile

AgeGTE applies the GTE predicate on the "age" field.

func AgeIn

func AgeIn(vs ...int) predicate.Profile

AgeIn applies the In predicate on the "age" field.

func AgeLT

func AgeLT(v int) predicate.Profile

AgeLT applies the LT predicate on the "age" field.

func AgeLTE

func AgeLTE(v int) predicate.Profile

AgeLTE applies the LTE predicate on the "age" field.

func AgeNEQ

func AgeNEQ(v int) predicate.Profile

AgeNEQ applies the NEQ predicate on the "age" field.

func AgeNotIn

func AgeNotIn(vs ...int) predicate.Profile

AgeNotIn applies the NotIn predicate on the "age" field.

func And

func And(predicates ...predicate.Profile) predicate.Profile

And groups predicates with the AND operator between them.

func AvatarIsNil

func AvatarIsNil() predicate.Profile

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

func AvatarNotNil

func AvatarNotNil() predicate.Profile

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

func Birthday

func Birthday(v time.Time) predicate.Profile

Birthday applies equality check predicate on the "birthday" field. It's identical to BirthdayEQ.

func BirthdayEQ

func BirthdayEQ(v time.Time) predicate.Profile

BirthdayEQ applies the EQ predicate on the "birthday" field.

func BirthdayGT

func BirthdayGT(v time.Time) predicate.Profile

BirthdayGT applies the GT predicate on the "birthday" field.

func BirthdayGTE

func BirthdayGTE(v time.Time) predicate.Profile

BirthdayGTE applies the GTE predicate on the "birthday" field.

func BirthdayIn

func BirthdayIn(vs ...time.Time) predicate.Profile

BirthdayIn applies the In predicate on the "birthday" field.

func BirthdayIsNil

func BirthdayIsNil() predicate.Profile

BirthdayIsNil applies the IsNil predicate on the "birthday" field.

func BirthdayLT

func BirthdayLT(v time.Time) predicate.Profile

BirthdayLT applies the LT predicate on the "birthday" field.

func BirthdayLTE

func BirthdayLTE(v time.Time) predicate.Profile

BirthdayLTE applies the LTE predicate on the "birthday" field.

func BirthdayNEQ

func BirthdayNEQ(v time.Time) predicate.Profile

BirthdayNEQ applies the NEQ predicate on the "birthday" field.

func BirthdayNotIn

func BirthdayNotIn(vs ...time.Time) predicate.Profile

BirthdayNotIn applies the NotIn predicate on the "birthday" field.

func BirthdayNotNil

func BirthdayNotNil() predicate.Profile

BirthdayNotNil applies the NotNil predicate on the "birthday" field.

func CreateTime

func CreateTime(v time.Time) predicate.Profile

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Profile

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Profile

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Profile

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Profile

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Profile

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Profile

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

func CreateTimeNotIn

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

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

func DeleteTime

func DeleteTime(v time.Time) predicate.Profile

DeleteTime applies equality check predicate on the "delete_time" field. It's identical to DeleteTimeEQ.

func DeleteTimeEQ

func DeleteTimeEQ(v time.Time) predicate.Profile

DeleteTimeEQ applies the EQ predicate on the "delete_time" field.

func DeleteTimeGT

func DeleteTimeGT(v time.Time) predicate.Profile

DeleteTimeGT applies the GT predicate on the "delete_time" field.

func DeleteTimeGTE

func DeleteTimeGTE(v time.Time) predicate.Profile

DeleteTimeGTE applies the GTE predicate on the "delete_time" field.

func DeleteTimeIn

func DeleteTimeIn(vs ...time.Time) predicate.Profile

DeleteTimeIn applies the In predicate on the "delete_time" field.

func DeleteTimeIsNil

func DeleteTimeIsNil() predicate.Profile

DeleteTimeIsNil applies the IsNil predicate on the "delete_time" field.

func DeleteTimeLT

func DeleteTimeLT(v time.Time) predicate.Profile

DeleteTimeLT applies the LT predicate on the "delete_time" field.

func DeleteTimeLTE

func DeleteTimeLTE(v time.Time) predicate.Profile

DeleteTimeLTE applies the LTE predicate on the "delete_time" field.

func DeleteTimeNEQ

func DeleteTimeNEQ(v time.Time) predicate.Profile

DeleteTimeNEQ applies the NEQ predicate on the "delete_time" field.

func DeleteTimeNotIn

func DeleteTimeNotIn(vs ...time.Time) predicate.Profile

DeleteTimeNotIn applies the NotIn predicate on the "delete_time" field.

func DeleteTimeNotNil

func DeleteTimeNotNil() predicate.Profile

DeleteTimeNotNil applies the NotNil predicate on the "delete_time" field.

func GenderEQ

func GenderEQ(v Gender) predicate.Profile

GenderEQ applies the EQ predicate on the "gender" field.

func GenderIn

func GenderIn(vs ...Gender) predicate.Profile

GenderIn applies the In predicate on the "gender" field.

func GenderIsNil

func GenderIsNil() predicate.Profile

GenderIsNil applies the IsNil predicate on the "gender" field.

func GenderNEQ

func GenderNEQ(v Gender) predicate.Profile

GenderNEQ applies the NEQ predicate on the "gender" field.

func GenderNotIn

func GenderNotIn(vs ...Gender) predicate.Profile

GenderNotIn applies the NotIn predicate on the "gender" field.

func GenderNotNil

func GenderNotNil() predicate.Profile

GenderNotNil applies the NotNil predicate on the "gender" field.

func GenderValidator

func GenderValidator(ge Gender) error

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

func HasUser

func HasUser() predicate.Profile

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Profile

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

func ID

func ID(id uuid.UUID) predicate.Profile

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Profile

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Profile

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Profile

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Profile

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Profile

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Profile

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func PreferredTheme

func PreferredTheme(v string) predicate.Profile

PreferredTheme applies equality check predicate on the "preferred_theme" field. It's identical to PreferredThemeEQ.

func PreferredThemeContains

func PreferredThemeContains(v string) predicate.Profile

PreferredThemeContains applies the Contains predicate on the "preferred_theme" field.

func PreferredThemeContainsFold

func PreferredThemeContainsFold(v string) predicate.Profile

PreferredThemeContainsFold applies the ContainsFold predicate on the "preferred_theme" field.

func PreferredThemeEQ

func PreferredThemeEQ(v string) predicate.Profile

PreferredThemeEQ applies the EQ predicate on the "preferred_theme" field.

func PreferredThemeEqualFold

func PreferredThemeEqualFold(v string) predicate.Profile

PreferredThemeEqualFold applies the EqualFold predicate on the "preferred_theme" field.

func PreferredThemeGT

func PreferredThemeGT(v string) predicate.Profile

PreferredThemeGT applies the GT predicate on the "preferred_theme" field.

func PreferredThemeGTE

func PreferredThemeGTE(v string) predicate.Profile

PreferredThemeGTE applies the GTE predicate on the "preferred_theme" field.

func PreferredThemeHasPrefix

func PreferredThemeHasPrefix(v string) predicate.Profile

PreferredThemeHasPrefix applies the HasPrefix predicate on the "preferred_theme" field.

func PreferredThemeHasSuffix

func PreferredThemeHasSuffix(v string) predicate.Profile

PreferredThemeHasSuffix applies the HasSuffix predicate on the "preferred_theme" field.

func PreferredThemeIn

func PreferredThemeIn(vs ...string) predicate.Profile

PreferredThemeIn applies the In predicate on the "preferred_theme" field.

func PreferredThemeIsNil

func PreferredThemeIsNil() predicate.Profile

PreferredThemeIsNil applies the IsNil predicate on the "preferred_theme" field.

func PreferredThemeLT

func PreferredThemeLT(v string) predicate.Profile

PreferredThemeLT applies the LT predicate on the "preferred_theme" field.

func PreferredThemeLTE

func PreferredThemeLTE(v string) predicate.Profile

PreferredThemeLTE applies the LTE predicate on the "preferred_theme" field.

func PreferredThemeNEQ

func PreferredThemeNEQ(v string) predicate.Profile

PreferredThemeNEQ applies the NEQ predicate on the "preferred_theme" field.

func PreferredThemeNotIn

func PreferredThemeNotIn(vs ...string) predicate.Profile

PreferredThemeNotIn applies the NotIn predicate on the "preferred_theme" field.

func PreferredThemeNotNil

func PreferredThemeNotNil() predicate.Profile

PreferredThemeNotNil applies the NotNil predicate on the "preferred_theme" field.

func Tz

func Tz(v string) predicate.Profile

Tz applies equality check predicate on the "tz" field. It's identical to TzEQ.

func TzContains

func TzContains(v string) predicate.Profile

TzContains applies the Contains predicate on the "tz" field.

func TzContainsFold

func TzContainsFold(v string) predicate.Profile

TzContainsFold applies the ContainsFold predicate on the "tz" field.

func TzEQ

func TzEQ(v string) predicate.Profile

TzEQ applies the EQ predicate on the "tz" field.

func TzEqualFold

func TzEqualFold(v string) predicate.Profile

TzEqualFold applies the EqualFold predicate on the "tz" field.

func TzGT

func TzGT(v string) predicate.Profile

TzGT applies the GT predicate on the "tz" field.

func TzGTE

func TzGTE(v string) predicate.Profile

TzGTE applies the GTE predicate on the "tz" field.

func TzHasPrefix

func TzHasPrefix(v string) predicate.Profile

TzHasPrefix applies the HasPrefix predicate on the "tz" field.

func TzHasSuffix

func TzHasSuffix(v string) predicate.Profile

TzHasSuffix applies the HasSuffix predicate on the "tz" field.

func TzIn

func TzIn(vs ...string) predicate.Profile

TzIn applies the In predicate on the "tz" field.

func TzLT

func TzLT(v string) predicate.Profile

TzLT applies the LT predicate on the "tz" field.

func TzLTE

func TzLTE(v string) predicate.Profile

TzLTE applies the LTE predicate on the "tz" field.

func TzNEQ

func TzNEQ(v string) predicate.Profile

TzNEQ applies the NEQ predicate on the "tz" field.

func TzNotIn

func TzNotIn(vs ...string) predicate.Profile

TzNotIn applies the NotIn predicate on the "tz" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Profile

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Profile

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Profile

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Profile

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Profile

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Profile

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Profile

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

func UpdateTimeNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type Gender

type Gender string

Gender defines the type for the "gender" enum field.

const (
	GenderMale        Gender = "male"
	GenderFemale      Gender = "female"
	GenderUnspecified Gender = "unspecified"
)

Gender values.

func (Gender) String

func (ge Gender) String() string

Jump to

Keyboard shortcuts

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