entinstitution

package
v0.0.0-...-20f649f Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the institution type in the database.
	Label = "institution"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldShortName holds the string denoting the short_name field in the database.
	FieldShortName = "short_name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// EdgeVouchers holds the string denoting the vouchers edge name in mutations.
	EdgeVouchers = "vouchers"
	// EdgeAccessories holds the string denoting the accessories edge name in mutations.
	EdgeAccessories = "accessories"
	// EdgeGroups holds the string denoting the groups edge name in mutations.
	EdgeGroups = "groups"
	// EdgeInvites holds the string denoting the invites edge name in mutations.
	EdgeInvites = "invites"
	// EdgeUsers holds the string denoting the users edge name in mutations.
	EdgeUsers = "users"
	// Table holds the table name of the institution in the database.
	Table = "institutions"
	// VouchersTable is the table that holds the vouchers relation/edge.
	VouchersTable = "vouchers"
	// VouchersInverseTable is the table name for the Voucher entity.
	// It exists in this package in order to avoid circular dependency with the "voucher" package.
	VouchersInverseTable = "vouchers"
	// VouchersColumn is the table column denoting the vouchers relation/edge.
	VouchersColumn = "institution_vouchers"
	// AccessoriesTable is the table that holds the accessories relation/edge.
	AccessoriesTable = "accessories"
	// AccessoriesInverseTable is the table name for the Accessory entity.
	// It exists in this package in order to avoid circular dependency with the "accessory" package.
	AccessoriesInverseTable = "accessories"
	// AccessoriesColumn is the table column denoting the accessories relation/edge.
	AccessoriesColumn = "institution_accessories"
	// GroupsTable is the table that holds the groups relation/edge.
	GroupsTable = "groups"
	// GroupsInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "entgroup" package.
	GroupsInverseTable = "groups"
	// GroupsColumn is the table column denoting the groups relation/edge.
	GroupsColumn = "institution_groups"
	// InvitesTable is the table that holds the invites relation/edge.
	InvitesTable = "institution_invite_links"
	// InvitesInverseTable is the table name for the InstitutionInviteLink entity.
	// It exists in this package in order to avoid circular dependency with the "institutioninvitelink" package.
	InvitesInverseTable = "institution_invite_links"
	// InvitesColumn is the table column denoting the invites relation/edge.
	InvitesColumn = "institution_invites"
	// UsersTable is the table that holds the users relation/edge.
	UsersTable = "users"
	// UsersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UsersInverseTable = "users"
	// UsersColumn is the table column denoting the users relation/edge.
	UsersColumn = "institution_users"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// ShortNameValidator is a validator for the "short_name" field. It is called by the builders before save.
	ShortNameValidator func(string) error
	// DefaultDescription holds the default value on creation for the "Description" field.
	DefaultDescription string
)

Columns holds all SQL columns for institution fields.

Functions

func And

func And(predicates ...predicate.Institution) predicate.Institution

And groups predicates with the AND operator between them.

func Description

func Description(v string) predicate.Institution

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

func DescriptionContains

func DescriptionContains(v string) predicate.Institution

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Institution

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Institution

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Institution

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

func DescriptionGT

func DescriptionGT(v string) predicate.Institution

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Institution

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Institution

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Institution

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

func DescriptionIn

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

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

func DescriptionLT

func DescriptionLT(v string) predicate.Institution

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Institution

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Institution

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

func DescriptionNotIn

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

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

func HasAccessories

func HasAccessories() predicate.Institution

HasAccessories applies the HasEdge predicate on the "accessories" edge.

func HasAccessoriesWith

func HasAccessoriesWith(preds ...predicate.Accessory) predicate.Institution

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

func HasGroups

func HasGroups() predicate.Institution

HasGroups applies the HasEdge predicate on the "groups" edge.

func HasGroupsWith

func HasGroupsWith(preds ...predicate.Group) predicate.Institution

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

func HasInvites

func HasInvites() predicate.Institution

HasInvites applies the HasEdge predicate on the "invites" edge.

func HasInvitesWith

func HasInvitesWith(preds ...predicate.InstitutionInviteLink) predicate.Institution

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

func HasUsers

func HasUsers() predicate.Institution

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.User) predicate.Institution

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

func HasVouchers

func HasVouchers() predicate.Institution

HasVouchers applies the HasEdge predicate on the "vouchers" edge.

func HasVouchersWith

func HasVouchersWith(preds ...predicate.Voucher) predicate.Institution

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

func ID

func ID(id int) predicate.Institution

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Institution

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Institution

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Institution

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Institution

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Institution

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Institution

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Institution

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Institution

IDNotIn applies the NotIn predicate on the ID field.

func Name

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

func NameContains

func NameContains(v string) predicate.Institution

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

func NameContainsFold

func NameContainsFold(v string) predicate.Institution

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

func NameEQ

func NameEQ(v string) predicate.Institution

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

func NameEqualFold

func NameEqualFold(v string) predicate.Institution

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

func NameGT

func NameGT(v string) predicate.Institution

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

func NameGTE

func NameGTE(v string) predicate.Institution

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Institution

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Institution

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Institution

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

func NameLTE

func NameLTE(v string) predicate.Institution

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

func NameNEQ

func NameNEQ(v string) predicate.Institution

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func ShortName

func ShortName(v string) predicate.Institution

ShortName applies equality check predicate on the "short_name" field. It's identical to ShortNameEQ.

func ShortNameContains

func ShortNameContains(v string) predicate.Institution

ShortNameContains applies the Contains predicate on the "short_name" field.

func ShortNameContainsFold

func ShortNameContainsFold(v string) predicate.Institution

ShortNameContainsFold applies the ContainsFold predicate on the "short_name" field.

func ShortNameEQ

func ShortNameEQ(v string) predicate.Institution

ShortNameEQ applies the EQ predicate on the "short_name" field.

func ShortNameEqualFold

func ShortNameEqualFold(v string) predicate.Institution

ShortNameEqualFold applies the EqualFold predicate on the "short_name" field.

func ShortNameGT

func ShortNameGT(v string) predicate.Institution

ShortNameGT applies the GT predicate on the "short_name" field.

func ShortNameGTE

func ShortNameGTE(v string) predicate.Institution

ShortNameGTE applies the GTE predicate on the "short_name" field.

func ShortNameHasPrefix

func ShortNameHasPrefix(v string) predicate.Institution

ShortNameHasPrefix applies the HasPrefix predicate on the "short_name" field.

func ShortNameHasSuffix

func ShortNameHasSuffix(v string) predicate.Institution

ShortNameHasSuffix applies the HasSuffix predicate on the "short_name" field.

func ShortNameIn

func ShortNameIn(vs ...string) predicate.Institution

ShortNameIn applies the In predicate on the "short_name" field.

func ShortNameLT

func ShortNameLT(v string) predicate.Institution

ShortNameLT applies the LT predicate on the "short_name" field.

func ShortNameLTE

func ShortNameLTE(v string) predicate.Institution

ShortNameLTE applies the LTE predicate on the "short_name" field.

func ShortNameNEQ

func ShortNameNEQ(v string) predicate.Institution

ShortNameNEQ applies the NEQ predicate on the "short_name" field.

func ShortNameNotIn

func ShortNameNotIn(vs ...string) predicate.Institution

ShortNameNotIn applies the NotIn predicate on the "short_name" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Institution queries.

func ByAccessories

func ByAccessories(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByAccessories orders the results by accessories terms.

func ByAccessoriesCount

func ByAccessoriesCount(opts ...sql.OrderTermOption) OrderOption

ByAccessoriesCount orders the results by accessories count.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the Description field.

func ByGroups

func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByGroups orders the results by groups terms.

func ByGroupsCount

func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption

ByGroupsCount orders the results by groups count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByInvites

func ByInvites(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByInvites orders the results by invites terms.

func ByInvitesCount

func ByInvitesCount(opts ...sql.OrderTermOption) OrderOption

ByInvitesCount orders the results by invites count.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByShortName

func ByShortName(opts ...sql.OrderTermOption) OrderOption

ByShortName orders the results by the short_name field.

func ByUsers

func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByUsers orders the results by users terms.

func ByUsersCount

func ByUsersCount(opts ...sql.OrderTermOption) OrderOption

ByUsersCount orders the results by users count.

func ByVouchers

func ByVouchers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByVouchers orders the results by vouchers terms.

func ByVouchersCount

func ByVouchersCount(opts ...sql.OrderTermOption) OrderOption

ByVouchersCount orders the results by vouchers count.

Jump to

Keyboard shortcuts

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