contact

package
v0.0.0-...-984c388 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the contact type in the database.
	Label = "contact"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldIsActive holds the string denoting the is_active field in the database.
	FieldIsActive = "is_active"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// 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"
	// FieldDisplayName holds the string denoting the display_name field in the database.
	FieldDisplayName = "display_name"
	// FieldLinkedToUser holds the string denoting the linked_to_user field in the database.
	FieldLinkedToUser = "linked_to_user"
	// FieldImageURL holds the string denoting the image_url field in the database.
	FieldImageURL = "image_url"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeLinkedTo holds the string denoting the linked_to edge name in mutations.
	EdgeLinkedTo = "linked_to"
	// Table holds the table name of the contact in the database.
	Table = "contacts"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "contacts"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "users"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "user_contacts"
	// LinkedToTable is the table that holds the linked_to relation/edge.
	LinkedToTable = "contacts"
	// LinkedToInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	LinkedToInverseTable = "users"
	// LinkedToColumn is the table column denoting the linked_to relation/edge.
	LinkedToColumn = "linked_to_user"
)

Variables

View Source
var (
	// DisplayNameValidator is a validator for the "display_name" field. It is called by the builders before save.
	DisplayNameValidator func(string) error
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for contact fields.

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

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

Functions

func And

func And(predicates ...predicate.Contact) predicate.Contact

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Contact

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Contact

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Contact

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Contact

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Contact

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Contact

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Contact

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

func CreatedAtNotIn

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

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

func DisplayName

func DisplayName(v string) predicate.Contact

DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.Contact

DisplayNameContains applies the Contains predicate on the "display_name" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.Contact

DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.Contact

DisplayNameEQ applies the EQ predicate on the "display_name" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.Contact

DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.Contact

DisplayNameGT applies the GT predicate on the "display_name" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.Contact

DisplayNameGTE applies the GTE predicate on the "display_name" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.Contact

DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.Contact

DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.

func DisplayNameIn

func DisplayNameIn(vs ...string) predicate.Contact

DisplayNameIn applies the In predicate on the "display_name" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.Contact

DisplayNameLT applies the LT predicate on the "display_name" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.Contact

DisplayNameLTE applies the LTE predicate on the "display_name" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.Contact

DisplayNameNEQ applies the NEQ predicate on the "display_name" field.

func DisplayNameNotIn

func DisplayNameNotIn(vs ...string) predicate.Contact

DisplayNameNotIn applies the NotIn predicate on the "display_name" field.

func HasLinkedTo

func HasLinkedTo() predicate.Contact

HasLinkedTo applies the HasEdge predicate on the "linked_to" edge.

func HasLinkedToWith

func HasLinkedToWith(preds ...predicate.User) predicate.Contact

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

func HasOwner

func HasOwner() predicate.Contact

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.Contact

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

func ID

func ID(id string) predicate.Contact

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Contact

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Contact

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Contact

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Contact

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Contact

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Contact

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Contact

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Contact

IDNotIn applies the NotIn predicate on the ID field.

func ImageURL

func ImageURL(v string) predicate.Contact

ImageURL applies equality check predicate on the "image_url" field. It's identical to ImageURLEQ.

func ImageURLContains

func ImageURLContains(v string) predicate.Contact

ImageURLContains applies the Contains predicate on the "image_url" field.

func ImageURLContainsFold

func ImageURLContainsFold(v string) predicate.Contact

ImageURLContainsFold applies the ContainsFold predicate on the "image_url" field.

func ImageURLEQ

func ImageURLEQ(v string) predicate.Contact

ImageURLEQ applies the EQ predicate on the "image_url" field.

func ImageURLEqualFold

func ImageURLEqualFold(v string) predicate.Contact

ImageURLEqualFold applies the EqualFold predicate on the "image_url" field.

func ImageURLGT

func ImageURLGT(v string) predicate.Contact

ImageURLGT applies the GT predicate on the "image_url" field.

func ImageURLGTE

func ImageURLGTE(v string) predicate.Contact

ImageURLGTE applies the GTE predicate on the "image_url" field.

func ImageURLHasPrefix

func ImageURLHasPrefix(v string) predicate.Contact

ImageURLHasPrefix applies the HasPrefix predicate on the "image_url" field.

func ImageURLHasSuffix

func ImageURLHasSuffix(v string) predicate.Contact

ImageURLHasSuffix applies the HasSuffix predicate on the "image_url" field.

func ImageURLIn

func ImageURLIn(vs ...string) predicate.Contact

ImageURLIn applies the In predicate on the "image_url" field.

func ImageURLIsNil

func ImageURLIsNil() predicate.Contact

ImageURLIsNil applies the IsNil predicate on the "image_url" field.

func ImageURLLT

func ImageURLLT(v string) predicate.Contact

ImageURLLT applies the LT predicate on the "image_url" field.

func ImageURLLTE

func ImageURLLTE(v string) predicate.Contact

ImageURLLTE applies the LTE predicate on the "image_url" field.

func ImageURLNEQ

func ImageURLNEQ(v string) predicate.Contact

ImageURLNEQ applies the NEQ predicate on the "image_url" field.

func ImageURLNotIn

func ImageURLNotIn(vs ...string) predicate.Contact

ImageURLNotIn applies the NotIn predicate on the "image_url" field.

func ImageURLNotNil

func ImageURLNotNil() predicate.Contact

ImageURLNotNil applies the NotNil predicate on the "image_url" field.

func IsActive

func IsActive(v bool) predicate.Contact

IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.

func IsActiveEQ

func IsActiveEQ(v bool) predicate.Contact

IsActiveEQ applies the EQ predicate on the "is_active" field.

func IsActiveNEQ

func IsActiveNEQ(v bool) predicate.Contact

IsActiveNEQ applies the NEQ predicate on the "is_active" field.

func LinkedToUser

func LinkedToUser(v string) predicate.Contact

LinkedToUser applies equality check predicate on the "linked_to_user" field. It's identical to LinkedToUserEQ.

func LinkedToUserContains

func LinkedToUserContains(v string) predicate.Contact

LinkedToUserContains applies the Contains predicate on the "linked_to_user" field.

func LinkedToUserContainsFold

func LinkedToUserContainsFold(v string) predicate.Contact

LinkedToUserContainsFold applies the ContainsFold predicate on the "linked_to_user" field.

func LinkedToUserEQ

func LinkedToUserEQ(v string) predicate.Contact

LinkedToUserEQ applies the EQ predicate on the "linked_to_user" field.

func LinkedToUserEqualFold

func LinkedToUserEqualFold(v string) predicate.Contact

LinkedToUserEqualFold applies the EqualFold predicate on the "linked_to_user" field.

func LinkedToUserGT

func LinkedToUserGT(v string) predicate.Contact

LinkedToUserGT applies the GT predicate on the "linked_to_user" field.

func LinkedToUserGTE

func LinkedToUserGTE(v string) predicate.Contact

LinkedToUserGTE applies the GTE predicate on the "linked_to_user" field.

func LinkedToUserHasPrefix

func LinkedToUserHasPrefix(v string) predicate.Contact

LinkedToUserHasPrefix applies the HasPrefix predicate on the "linked_to_user" field.

func LinkedToUserHasSuffix

func LinkedToUserHasSuffix(v string) predicate.Contact

LinkedToUserHasSuffix applies the HasSuffix predicate on the "linked_to_user" field.

func LinkedToUserIn

func LinkedToUserIn(vs ...string) predicate.Contact

LinkedToUserIn applies the In predicate on the "linked_to_user" field.

func LinkedToUserIsNil

func LinkedToUserIsNil() predicate.Contact

LinkedToUserIsNil applies the IsNil predicate on the "linked_to_user" field.

func LinkedToUserLT

func LinkedToUserLT(v string) predicate.Contact

LinkedToUserLT applies the LT predicate on the "linked_to_user" field.

func LinkedToUserLTE

func LinkedToUserLTE(v string) predicate.Contact

LinkedToUserLTE applies the LTE predicate on the "linked_to_user" field.

func LinkedToUserNEQ

func LinkedToUserNEQ(v string) predicate.Contact

LinkedToUserNEQ applies the NEQ predicate on the "linked_to_user" field.

func LinkedToUserNotIn

func LinkedToUserNotIn(vs ...string) predicate.Contact

LinkedToUserNotIn applies the NotIn predicate on the "linked_to_user" field.

func LinkedToUserNotNil

func LinkedToUserNotNil() predicate.Contact

LinkedToUserNotNil applies the NotNil predicate on the "linked_to_user" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Contact) predicate.Contact

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Contact

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Contact

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Contact

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Contact

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Contact

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Contact

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Contact

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

func UpdatedAtNotIn

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

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

func Version

func Version(v uint32) predicate.Contact

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ

func VersionEQ(v uint32) predicate.Contact

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT

func VersionGT(v uint32) predicate.Contact

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v uint32) predicate.Contact

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn

func VersionIn(vs ...uint32) predicate.Contact

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v uint32) predicate.Contact

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v uint32) predicate.Contact

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v uint32) predicate.Contact

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...uint32) predicate.Contact

VersionNotIn applies the NotIn predicate on the "version" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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