person

package
v0.0.0-...-444ad2e Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the person type in the database.
	Label = "person"
	// FieldID holds the string denoting the id field in the database.
	FieldID           = "id"            // FieldName holds the string denoting the name vertex property in the database.
	FieldName         = "name"          // FieldLastActivity holds the string denoting the lastactivity vertex property in the database.
	FieldLastActivity = "last_activity" // FieldUsername holds the string denoting the username vertex property in the database.
	FieldUsername     = "username"      // FieldPicture holds the string denoting the picture vertex property in the database.
	FieldPicture      = "picture"       // FieldRoles holds the string denoting the roles vertex property in the database.
	FieldRoles        = "roles"

	// EdgeAccounts holds the string denoting the accounts edge name in mutations.
	EdgeAccounts = "accounts"
	// EdgeContacts holds the string denoting the contacts edge name in mutations.
	EdgeContacts = "contacts"
	// EdgeSurveys holds the string denoting the surveys edge name in mutations.
	EdgeSurveys = "surveys"
	// EdgeDomains holds the string denoting the domains edge name in mutations.
	EdgeDomains = "domains"
	// EdgeAdminOf holds the string denoting the adminof edge name in mutations.
	EdgeAdminOf = "adminOf"

	// Table holds the table name of the person in the database.
	Table = "persons"
	// AccountsTable is the table the holds the accounts relation/edge.
	AccountsTable = "accounts"
	// AccountsInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "account" package.
	AccountsInverseTable = "accounts"
	// AccountsColumn is the table column denoting the accounts relation/edge.
	AccountsColumn = "person_accounts"
	// ContactsTable is the table the holds the contacts relation/edge.
	ContactsTable = "contacts"
	// ContactsInverseTable is the table name for the Contact entity.
	// It exists in this package in order to avoid circular dependency with the "contact" package.
	ContactsInverseTable = "contacts"
	// ContactsColumn is the table column denoting the contacts relation/edge.
	ContactsColumn = "person_contacts"
	// SurveysTable is the table the holds the surveys relation/edge.
	SurveysTable = "surveys"
	// SurveysInverseTable is the table name for the Survey entity.
	// It exists in this package in order to avoid circular dependency with the "survey" package.
	SurveysInverseTable = "surveys"
	// SurveysColumn is the table column denoting the surveys relation/edge.
	SurveysColumn = "person_surveys"
	// DomainsTable is the table the holds the domains relation/edge. The primary key declared below.
	DomainsTable = "domain_users"
	// DomainsInverseTable is the table name for the Domain entity.
	// It exists in this package in order to avoid circular dependency with the "domain" package.
	DomainsInverseTable = "domains"
	// AdminOfTable is the table the holds the adminOf relation/edge. The primary key declared below.
	AdminOfTable = "domain_admins"
	// AdminOfInverseTable is the table name for the Domain entity.
	// It exists in this package in order to avoid circular dependency with the "domain" package.
	AdminOfInverseTable = "domains"
)

Variables

View Source
var (
	// DomainsPrimaryKey and DomainsColumn2 are the table columns denoting the
	// primary key for the domains relation (M2M).
	DomainsPrimaryKey = []string{"domain_id", "person_id"}
	// AdminOfPrimaryKey and AdminOfColumn2 are the table columns denoting the
	// primary key for the adminOf relation (M2M).
	AdminOfPrimaryKey = []string{"domain_id", "person_id"}
)
View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultLastActivity holds the default value on creation for the lastActivity field.
	DefaultLastActivity func() time.Time
)

Columns holds all SQL columns for person fields.

Functions

func And

func And(predicates ...predicate.Person) predicate.Person

And groups list of predicates with the AND operator between them.

func HasAccounts

func HasAccounts() predicate.Person

HasAccounts applies the HasEdge predicate on the "accounts" edge.

func HasAccountsWith

func HasAccountsWith(preds ...predicate.Account) predicate.Person

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

func HasAdminOf

func HasAdminOf() predicate.Person

HasAdminOf applies the HasEdge predicate on the "adminOf" edge.

func HasAdminOfWith

func HasAdminOfWith(preds ...predicate.Domain) predicate.Person

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

func HasContacts

func HasContacts() predicate.Person

HasContacts applies the HasEdge predicate on the "contacts" edge.

func HasContactsWith

func HasContactsWith(preds ...predicate.Contact) predicate.Person

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

func HasDomains

func HasDomains() predicate.Person

HasDomains applies the HasEdge predicate on the "domains" edge.

func HasDomainsWith

func HasDomainsWith(preds ...predicate.Domain) predicate.Person

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

func HasSurveys

func HasSurveys() predicate.Person

HasSurveys applies the HasEdge predicate on the "surveys" edge.

func HasSurveysWith

func HasSurveysWith(preds ...predicate.Survey) predicate.Person

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

func ID

func ID(id uuid.UUID) predicate.Person

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Person

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Person

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Person

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Person

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Person

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Person

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastActivity

func LastActivity(v time.Time) predicate.Person

LastActivity applies equality check predicate on the "lastActivity" field. It's identical to LastActivityEQ.

func LastActivityEQ

func LastActivityEQ(v time.Time) predicate.Person

LastActivityEQ applies the EQ predicate on the "lastActivity" field.

func LastActivityGT

func LastActivityGT(v time.Time) predicate.Person

LastActivityGT applies the GT predicate on the "lastActivity" field.

func LastActivityGTE

func LastActivityGTE(v time.Time) predicate.Person

LastActivityGTE applies the GTE predicate on the "lastActivity" field.

func LastActivityIn

func LastActivityIn(vs ...time.Time) predicate.Person

LastActivityIn applies the In predicate on the "lastActivity" field.

func LastActivityLT

func LastActivityLT(v time.Time) predicate.Person

LastActivityLT applies the LT predicate on the "lastActivity" field.

func LastActivityLTE

func LastActivityLTE(v time.Time) predicate.Person

LastActivityLTE applies the LTE predicate on the "lastActivity" field.

func LastActivityNEQ

func LastActivityNEQ(v time.Time) predicate.Person

LastActivityNEQ applies the NEQ predicate on the "lastActivity" field.

func LastActivityNotIn

func LastActivityNotIn(vs ...time.Time) predicate.Person

LastActivityNotIn applies the NotIn predicate on the "lastActivity" field.

func Name

func Name(v string) predicate.Person

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Person

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Person

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Person

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Person

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Person

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Person

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Person

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Person

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Person

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Person

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Person

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Person

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Person

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Person) predicate.Person

Or groups list of predicates with the OR operator between them.

func Picture

func Picture(v string) predicate.Person

Picture applies equality check predicate on the "picture" field. It's identical to PictureEQ.

func PictureContains

func PictureContains(v string) predicate.Person

PictureContains applies the Contains predicate on the "picture" field.

func PictureContainsFold

func PictureContainsFold(v string) predicate.Person

PictureContainsFold applies the ContainsFold predicate on the "picture" field.

func PictureEQ

func PictureEQ(v string) predicate.Person

PictureEQ applies the EQ predicate on the "picture" field.

func PictureEqualFold

func PictureEqualFold(v string) predicate.Person

PictureEqualFold applies the EqualFold predicate on the "picture" field.

func PictureGT

func PictureGT(v string) predicate.Person

PictureGT applies the GT predicate on the "picture" field.

func PictureGTE

func PictureGTE(v string) predicate.Person

PictureGTE applies the GTE predicate on the "picture" field.

func PictureHasPrefix

func PictureHasPrefix(v string) predicate.Person

PictureHasPrefix applies the HasPrefix predicate on the "picture" field.

func PictureHasSuffix

func PictureHasSuffix(v string) predicate.Person

PictureHasSuffix applies the HasSuffix predicate on the "picture" field.

func PictureIn

func PictureIn(vs ...string) predicate.Person

PictureIn applies the In predicate on the "picture" field.

func PictureIsNil

func PictureIsNil() predicate.Person

PictureIsNil applies the IsNil predicate on the "picture" field.

func PictureLT

func PictureLT(v string) predicate.Person

PictureLT applies the LT predicate on the "picture" field.

func PictureLTE

func PictureLTE(v string) predicate.Person

PictureLTE applies the LTE predicate on the "picture" field.

func PictureNEQ

func PictureNEQ(v string) predicate.Person

PictureNEQ applies the NEQ predicate on the "picture" field.

func PictureNotIn

func PictureNotIn(vs ...string) predicate.Person

PictureNotIn applies the NotIn predicate on the "picture" field.

func PictureNotNil

func PictureNotNil() predicate.Person

PictureNotNil applies the NotNil predicate on the "picture" field.

func RolesIsNil

func RolesIsNil() predicate.Person

RolesIsNil applies the IsNil predicate on the "roles" field.

func RolesNotNil

func RolesNotNil() predicate.Person

RolesNotNil applies the NotNil predicate on the "roles" field.

func Username

func Username(v string) predicate.Person

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

func UsernameContains

func UsernameContains(v string) predicate.Person

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

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.Person

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

func UsernameEQ

func UsernameEQ(v string) predicate.Person

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

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.Person

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

func UsernameGT

func UsernameGT(v string) predicate.Person

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

func UsernameGTE

func UsernameGTE(v string) predicate.Person

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

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.Person

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

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.Person

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

func UsernameIn

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

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

func UsernameIsNil

func UsernameIsNil() predicate.Person

UsernameIsNil applies the IsNil predicate on the "username" field.

func UsernameLT

func UsernameLT(v string) predicate.Person

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

func UsernameLTE

func UsernameLTE(v string) predicate.Person

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

func UsernameNEQ

func UsernameNEQ(v string) predicate.Person

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

func UsernameNotIn

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

UsernameNotIn applies the NotIn predicate on the "username" field.

func UsernameNotNil

func UsernameNotNil() predicate.Person

UsernameNotNil applies the NotNil predicate on the "username" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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