Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Person) predicate.Person
- func HasAccounts() predicate.Person
- func HasAccountsWith(preds ...predicate.Account) predicate.Person
- func HasAdminOf() predicate.Person
- func HasAdminOfWith(preds ...predicate.Domain) predicate.Person
- func HasContacts() predicate.Person
- func HasContactsWith(preds ...predicate.Contact) predicate.Person
- func HasDomains() predicate.Person
- func HasDomainsWith(preds ...predicate.Domain) predicate.Person
- func HasSurveys() predicate.Person
- func HasSurveysWith(preds ...predicate.Survey) predicate.Person
- func ID(id uuid.UUID) predicate.Person
- func IDEQ(id uuid.UUID) predicate.Person
- func IDGT(id uuid.UUID) predicate.Person
- func IDGTE(id uuid.UUID) predicate.Person
- func IDIn(ids ...uuid.UUID) predicate.Person
- func IDLT(id uuid.UUID) predicate.Person
- func IDLTE(id uuid.UUID) predicate.Person
- func IDNEQ(id uuid.UUID) predicate.Person
- func IDNotIn(ids ...uuid.UUID) predicate.Person
- func LastActivity(v time.Time) predicate.Person
- func LastActivityEQ(v time.Time) predicate.Person
- func LastActivityGT(v time.Time) predicate.Person
- func LastActivityGTE(v time.Time) predicate.Person
- func LastActivityIn(vs ...time.Time) predicate.Person
- func LastActivityLT(v time.Time) predicate.Person
- func LastActivityLTE(v time.Time) predicate.Person
- func LastActivityNEQ(v time.Time) predicate.Person
- func LastActivityNotIn(vs ...time.Time) predicate.Person
- func Name(v string) predicate.Person
- func NameContains(v string) predicate.Person
- func NameContainsFold(v string) predicate.Person
- func NameEQ(v string) predicate.Person
- func NameEqualFold(v string) predicate.Person
- func NameGT(v string) predicate.Person
- func NameGTE(v string) predicate.Person
- func NameHasPrefix(v string) predicate.Person
- func NameHasSuffix(v string) predicate.Person
- func NameIn(vs ...string) predicate.Person
- func NameLT(v string) predicate.Person
- func NameLTE(v string) predicate.Person
- func NameNEQ(v string) predicate.Person
- func NameNotIn(vs ...string) predicate.Person
- func Not(p predicate.Person) predicate.Person
- func Or(predicates ...predicate.Person) predicate.Person
- func Picture(v string) predicate.Person
- func PictureContains(v string) predicate.Person
- func PictureContainsFold(v string) predicate.Person
- func PictureEQ(v string) predicate.Person
- func PictureEqualFold(v string) predicate.Person
- func PictureGT(v string) predicate.Person
- func PictureGTE(v string) predicate.Person
- func PictureHasPrefix(v string) predicate.Person
- func PictureHasSuffix(v string) predicate.Person
- func PictureIn(vs ...string) predicate.Person
- func PictureIsNil() predicate.Person
- func PictureLT(v string) predicate.Person
- func PictureLTE(v string) predicate.Person
- func PictureNEQ(v string) predicate.Person
- func PictureNotIn(vs ...string) predicate.Person
- func PictureNotNil() predicate.Person
- func RolesIsNil() predicate.Person
- func RolesNotNil() predicate.Person
- func Username(v string) predicate.Person
- func UsernameContains(v string) predicate.Person
- func UsernameContainsFold(v string) predicate.Person
- func UsernameEQ(v string) predicate.Person
- func UsernameEqualFold(v string) predicate.Person
- func UsernameGT(v string) predicate.Person
- func UsernameGTE(v string) predicate.Person
- func UsernameHasPrefix(v string) predicate.Person
- func UsernameHasSuffix(v string) predicate.Person
- func UsernameIn(vs ...string) predicate.Person
- func UsernameIsNil() predicate.Person
- func UsernameLT(v string) predicate.Person
- func UsernameLTE(v string) predicate.Person
- func UsernameNEQ(v string) predicate.Person
- func UsernameNotIn(vs ...string) predicate.Person
- func UsernameNotNil() predicate.Person
Constants ¶
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 ¶
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"} )
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 )
var Columns = []string{ FieldID, FieldName, FieldLastActivity, FieldUsername, FieldPicture, FieldRoles, }
Columns holds all SQL columns for person fields.
Functions ¶
func HasAccounts ¶
HasAccounts applies the HasEdge predicate on the "accounts" edge.
func HasAccountsWith ¶
HasAccountsWith applies the HasEdge predicate on the "accounts" edge with a given conditions (other predicates).
func HasAdminOf ¶
HasAdminOf applies the HasEdge predicate on the "adminOf" edge.
func HasAdminOfWith ¶
HasAdminOfWith applies the HasEdge predicate on the "adminOf" edge with a given conditions (other predicates).
func HasContacts ¶
HasContacts applies the HasEdge predicate on the "contacts" edge.
func HasContactsWith ¶
HasContactsWith applies the HasEdge predicate on the "contacts" edge with a given conditions (other predicates).
func HasDomains ¶
HasDomains applies the HasEdge predicate on the "domains" edge.
func HasDomainsWith ¶
HasDomainsWith applies the HasEdge predicate on the "domains" edge with a given conditions (other predicates).
func HasSurveys ¶
HasSurveys applies the HasEdge predicate on the "surveys" edge.
func HasSurveysWith ¶
HasSurveysWith applies the HasEdge predicate on the "surveys" edge with a given conditions (other predicates).
func LastActivity ¶
LastActivity applies equality check predicate on the "lastActivity" field. It's identical to LastActivityEQ.
func LastActivityEQ ¶
LastActivityEQ applies the EQ predicate on the "lastActivity" field.
func LastActivityGT ¶
LastActivityGT applies the GT predicate on the "lastActivity" field.
func LastActivityGTE ¶
LastActivityGTE applies the GTE predicate on the "lastActivity" field.
func LastActivityIn ¶
LastActivityIn applies the In predicate on the "lastActivity" field.
func LastActivityLT ¶
LastActivityLT applies the LT predicate on the "lastActivity" field.
func LastActivityLTE ¶
LastActivityLTE applies the LTE predicate on the "lastActivity" field.
func LastActivityNEQ ¶
LastActivityNEQ applies the NEQ predicate on the "lastActivity" field.
func LastActivityNotIn ¶
LastActivityNotIn applies the NotIn predicate on the "lastActivity" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Picture ¶
Picture applies equality check predicate on the "picture" field. It's identical to PictureEQ.
func PictureContains ¶
PictureContains applies the Contains predicate on the "picture" field.
func PictureContainsFold ¶
PictureContainsFold applies the ContainsFold predicate on the "picture" field.
func PictureEqualFold ¶
PictureEqualFold applies the EqualFold predicate on the "picture" field.
func PictureGTE ¶
PictureGTE applies the GTE predicate on the "picture" field.
func PictureHasPrefix ¶
PictureHasPrefix applies the HasPrefix predicate on the "picture" field.
func PictureHasSuffix ¶
PictureHasSuffix applies the HasSuffix predicate on the "picture" field.
func PictureIsNil ¶
PictureIsNil applies the IsNil predicate on the "picture" field.
func PictureLTE ¶
PictureLTE applies the LTE predicate on the "picture" field.
func PictureNEQ ¶
PictureNEQ applies the NEQ predicate on the "picture" field.
func PictureNotIn ¶
PictureNotIn applies the NotIn predicate on the "picture" field.
func PictureNotNil ¶
PictureNotNil applies the NotNil predicate on the "picture" field.
func RolesIsNil ¶
RolesIsNil applies the IsNil predicate on the "roles" field.
func RolesNotNil ¶
RolesNotNil applies the NotNil predicate on the "roles" field.
func Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameIsNil ¶
UsernameIsNil applies the IsNil predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func UsernameNotNil ¶
UsernameNotNil applies the NotNil predicate on the "username" field.
Types ¶
This section is empty.