Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserFavorite) predicate.UserFavorite
- func BusinessUnitID(v uuid.UUID) predicate.UserFavorite
- func BusinessUnitIDEQ(v uuid.UUID) predicate.UserFavorite
- func BusinessUnitIDIn(vs ...uuid.UUID) predicate.UserFavorite
- func BusinessUnitIDNEQ(v uuid.UUID) predicate.UserFavorite
- func BusinessUnitIDNotIn(vs ...uuid.UUID) predicate.UserFavorite
- func CreatedAt(v time.Time) predicate.UserFavorite
- func CreatedAtEQ(v time.Time) predicate.UserFavorite
- func CreatedAtGT(v time.Time) predicate.UserFavorite
- func CreatedAtGTE(v time.Time) predicate.UserFavorite
- func CreatedAtIn(vs ...time.Time) predicate.UserFavorite
- func CreatedAtLT(v time.Time) predicate.UserFavorite
- func CreatedAtLTE(v time.Time) predicate.UserFavorite
- func CreatedAtNEQ(v time.Time) predicate.UserFavorite
- func CreatedAtNotIn(vs ...time.Time) predicate.UserFavorite
- func HasBusinessUnit() predicate.UserFavorite
- func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.UserFavorite
- func HasOrganization() predicate.UserFavorite
- func HasOrganizationWith(preds ...predicate.Organization) predicate.UserFavorite
- func HasUser() predicate.UserFavorite
- func HasUserWith(preds ...predicate.User) predicate.UserFavorite
- func ID(id uuid.UUID) predicate.UserFavorite
- func IDEQ(id uuid.UUID) predicate.UserFavorite
- func IDGT(id uuid.UUID) predicate.UserFavorite
- func IDGTE(id uuid.UUID) predicate.UserFavorite
- func IDIn(ids ...uuid.UUID) predicate.UserFavorite
- func IDLT(id uuid.UUID) predicate.UserFavorite
- func IDLTE(id uuid.UUID) predicate.UserFavorite
- func IDNEQ(id uuid.UUID) predicate.UserFavorite
- func IDNotIn(ids ...uuid.UUID) predicate.UserFavorite
- func Not(p predicate.UserFavorite) predicate.UserFavorite
- func Or(predicates ...predicate.UserFavorite) predicate.UserFavorite
- func OrganizationID(v uuid.UUID) predicate.UserFavorite
- func OrganizationIDEQ(v uuid.UUID) predicate.UserFavorite
- func OrganizationIDIn(vs ...uuid.UUID) predicate.UserFavorite
- func OrganizationIDNEQ(v uuid.UUID) predicate.UserFavorite
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.UserFavorite
- func PageLink(v string) predicate.UserFavorite
- func PageLinkContains(v string) predicate.UserFavorite
- func PageLinkContainsFold(v string) predicate.UserFavorite
- func PageLinkEQ(v string) predicate.UserFavorite
- func PageLinkEqualFold(v string) predicate.UserFavorite
- func PageLinkGT(v string) predicate.UserFavorite
- func PageLinkGTE(v string) predicate.UserFavorite
- func PageLinkHasPrefix(v string) predicate.UserFavorite
- func PageLinkHasSuffix(v string) predicate.UserFavorite
- func PageLinkIn(vs ...string) predicate.UserFavorite
- func PageLinkLT(v string) predicate.UserFavorite
- func PageLinkLTE(v string) predicate.UserFavorite
- func PageLinkNEQ(v string) predicate.UserFavorite
- func PageLinkNotIn(vs ...string) predicate.UserFavorite
- func UpdatedAt(v time.Time) predicate.UserFavorite
- func UpdatedAtEQ(v time.Time) predicate.UserFavorite
- func UpdatedAtGT(v time.Time) predicate.UserFavorite
- func UpdatedAtGTE(v time.Time) predicate.UserFavorite
- func UpdatedAtIn(vs ...time.Time) predicate.UserFavorite
- func UpdatedAtLT(v time.Time) predicate.UserFavorite
- func UpdatedAtLTE(v time.Time) predicate.UserFavorite
- func UpdatedAtNEQ(v time.Time) predicate.UserFavorite
- func UpdatedAtNotIn(vs ...time.Time) predicate.UserFavorite
- func UserID(v uuid.UUID) predicate.UserFavorite
- func UserIDEQ(v uuid.UUID) predicate.UserFavorite
- func UserIDIn(vs ...uuid.UUID) predicate.UserFavorite
- func UserIDNEQ(v uuid.UUID) predicate.UserFavorite
- func UserIDNotIn(vs ...uuid.UUID) predicate.UserFavorite
- func ValidColumn(column string) bool
- func Version(v int) predicate.UserFavorite
- func VersionEQ(v int) predicate.UserFavorite
- func VersionGT(v int) predicate.UserFavorite
- func VersionGTE(v int) predicate.UserFavorite
- func VersionIn(vs ...int) predicate.UserFavorite
- func VersionLT(v int) predicate.UserFavorite
- func VersionLTE(v int) predicate.UserFavorite
- func VersionNEQ(v int) predicate.UserFavorite
- func VersionNotIn(vs ...int) predicate.UserFavorite
- type OrderOption
- func ByBusinessUnitField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBusinessUnitID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByPageLink(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the userfavorite type in the database. Label = "user_favorite" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldBusinessUnitID holds the string denoting the business_unit_id field in the database. FieldBusinessUnitID = "business_unit_id" // FieldOrganizationID holds the string denoting the organization_id field in the database. FieldOrganizationID = "organization_id" // 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" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldPageLink holds the string denoting the page_link field in the database. FieldPageLink = "page_link" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // EdgeBusinessUnit holds the string denoting the business_unit edge name in mutations. EdgeBusinessUnit = "business_unit" // EdgeOrganization holds the string denoting the organization edge name in mutations. EdgeOrganization = "organization" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the userfavorite in the database. Table = "user_favorites" // BusinessUnitTable is the table that holds the business_unit relation/edge. BusinessUnitTable = "user_favorites" // BusinessUnitInverseTable is the table name for the BusinessUnit entity. // It exists in this package in order to avoid circular dependency with the "businessunit" package. BusinessUnitInverseTable = "business_units" // BusinessUnitColumn is the table column denoting the business_unit relation/edge. BusinessUnitColumn = "business_unit_id" // OrganizationTable is the table that holds the organization relation/edge. OrganizationTable = "user_favorites" // OrganizationInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OrganizationInverseTable = "organizations" // OrganizationColumn is the table column denoting the organization relation/edge. OrganizationColumn = "organization_id" // UserTable is the table that holds the user relation/edge. UserTable = "user_favorites" // 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_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultVersion holds the default value on creation for the "version" field. DefaultVersion int // PageLinkValidator is a validator for the "page_link" field. It is called by the builders before save. PageLinkValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldBusinessUnitID, FieldOrganizationID, FieldCreatedAt, FieldUpdatedAt, FieldVersion, FieldPageLink, FieldUserID, }
Columns holds all SQL columns for userfavorite fields.
Functions ¶
func And ¶
func And(predicates ...predicate.UserFavorite) predicate.UserFavorite
And groups predicates with the AND operator between them.
func BusinessUnitID ¶
func BusinessUnitID(v uuid.UUID) predicate.UserFavorite
BusinessUnitID applies equality check predicate on the "business_unit_id" field. It's identical to BusinessUnitIDEQ.
func BusinessUnitIDEQ ¶
func BusinessUnitIDEQ(v uuid.UUID) predicate.UserFavorite
BusinessUnitIDEQ applies the EQ predicate on the "business_unit_id" field.
func BusinessUnitIDIn ¶
func BusinessUnitIDIn(vs ...uuid.UUID) predicate.UserFavorite
BusinessUnitIDIn applies the In predicate on the "business_unit_id" field.
func BusinessUnitIDNEQ ¶
func BusinessUnitIDNEQ(v uuid.UUID) predicate.UserFavorite
BusinessUnitIDNEQ applies the NEQ predicate on the "business_unit_id" field.
func BusinessUnitIDNotIn ¶
func BusinessUnitIDNotIn(vs ...uuid.UUID) predicate.UserFavorite
BusinessUnitIDNotIn applies the NotIn predicate on the "business_unit_id" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.UserFavorite
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.UserFavorite
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.UserFavorite
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.UserFavorite
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.UserFavorite
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.UserFavorite
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.UserFavorite
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.UserFavorite
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.UserFavorite
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasBusinessUnit ¶
func HasBusinessUnit() predicate.UserFavorite
HasBusinessUnit applies the HasEdge predicate on the "business_unit" edge.
func HasBusinessUnitWith ¶
func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.UserFavorite
HasBusinessUnitWith applies the HasEdge predicate on the "business_unit" edge with a given conditions (other predicates).
func HasOrganization ¶
func HasOrganization() predicate.UserFavorite
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶
func HasOrganizationWith(preds ...predicate.Organization) predicate.UserFavorite
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.UserFavorite
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.UserFavorite
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.UserFavorite
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.UserFavorite
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.UserFavorite
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.UserFavorite
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.UserFavorite
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.UserFavorite
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.UserFavorite
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.UserFavorite
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.UserFavorite) predicate.UserFavorite
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserFavorite) predicate.UserFavorite
Or groups predicates with the OR operator between them.
func OrganizationID ¶
func OrganizationID(v uuid.UUID) predicate.UserFavorite
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDEQ ¶
func OrganizationIDEQ(v uuid.UUID) predicate.UserFavorite
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDIn ¶
func OrganizationIDIn(vs ...uuid.UUID) predicate.UserFavorite
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
func OrganizationIDNEQ(v uuid.UUID) predicate.UserFavorite
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
func OrganizationIDNotIn(vs ...uuid.UUID) predicate.UserFavorite
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func PageLink ¶
func PageLink(v string) predicate.UserFavorite
PageLink applies equality check predicate on the "page_link" field. It's identical to PageLinkEQ.
func PageLinkContains ¶
func PageLinkContains(v string) predicate.UserFavorite
PageLinkContains applies the Contains predicate on the "page_link" field.
func PageLinkContainsFold ¶
func PageLinkContainsFold(v string) predicate.UserFavorite
PageLinkContainsFold applies the ContainsFold predicate on the "page_link" field.
func PageLinkEQ ¶
func PageLinkEQ(v string) predicate.UserFavorite
PageLinkEQ applies the EQ predicate on the "page_link" field.
func PageLinkEqualFold ¶
func PageLinkEqualFold(v string) predicate.UserFavorite
PageLinkEqualFold applies the EqualFold predicate on the "page_link" field.
func PageLinkGT ¶
func PageLinkGT(v string) predicate.UserFavorite
PageLinkGT applies the GT predicate on the "page_link" field.
func PageLinkGTE ¶
func PageLinkGTE(v string) predicate.UserFavorite
PageLinkGTE applies the GTE predicate on the "page_link" field.
func PageLinkHasPrefix ¶
func PageLinkHasPrefix(v string) predicate.UserFavorite
PageLinkHasPrefix applies the HasPrefix predicate on the "page_link" field.
func PageLinkHasSuffix ¶
func PageLinkHasSuffix(v string) predicate.UserFavorite
PageLinkHasSuffix applies the HasSuffix predicate on the "page_link" field.
func PageLinkIn ¶
func PageLinkIn(vs ...string) predicate.UserFavorite
PageLinkIn applies the In predicate on the "page_link" field.
func PageLinkLT ¶
func PageLinkLT(v string) predicate.UserFavorite
PageLinkLT applies the LT predicate on the "page_link" field.
func PageLinkLTE ¶
func PageLinkLTE(v string) predicate.UserFavorite
PageLinkLTE applies the LTE predicate on the "page_link" field.
func PageLinkNEQ ¶
func PageLinkNEQ(v string) predicate.UserFavorite
PageLinkNEQ applies the NEQ predicate on the "page_link" field.
func PageLinkNotIn ¶
func PageLinkNotIn(vs ...string) predicate.UserFavorite
PageLinkNotIn applies the NotIn predicate on the "page_link" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.UserFavorite
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.UserFavorite
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.UserFavorite
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.UserFavorite
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.UserFavorite
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.UserFavorite
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.UserFavorite
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.UserFavorite
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.UserFavorite
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
func UserID(v uuid.UUID) predicate.UserFavorite
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v uuid.UUID) predicate.UserFavorite
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...uuid.UUID) predicate.UserFavorite
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v uuid.UUID) predicate.UserFavorite
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...uuid.UUID) predicate.UserFavorite
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
func Version(v int) predicate.UserFavorite
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionEQ ¶
func VersionEQ(v int) predicate.UserFavorite
VersionEQ applies the EQ predicate on the "version" field.
func VersionGT ¶
func VersionGT(v int) predicate.UserFavorite
VersionGT applies the GT predicate on the "version" field.
func VersionGTE ¶
func VersionGTE(v int) predicate.UserFavorite
VersionGTE applies the GTE predicate on the "version" field.
func VersionIn ¶
func VersionIn(vs ...int) predicate.UserFavorite
VersionIn applies the In predicate on the "version" field.
func VersionLT ¶
func VersionLT(v int) predicate.UserFavorite
VersionLT applies the LT predicate on the "version" field.
func VersionLTE ¶
func VersionLTE(v int) predicate.UserFavorite
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
func VersionNEQ(v int) predicate.UserFavorite
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
func VersionNotIn(vs ...int) predicate.UserFavorite
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the UserFavorite queries.
func ByBusinessUnitField ¶
func ByBusinessUnitField(field string, opts ...sql.OrderTermOption) OrderOption
ByBusinessUnitField orders the results by business_unit field.
func ByBusinessUnitID ¶
func ByBusinessUnitID(opts ...sql.OrderTermOption) OrderOption
ByBusinessUnitID orders the results by the business_unit_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOrganizationField ¶
func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrganizationField orders the results by organization field.
func ByOrganizationID ¶
func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
ByOrganizationID orders the results by the organization_id field.
func ByPageLink ¶
func ByPageLink(opts ...sql.OrderTermOption) OrderOption
ByPageLink orders the results by the page_link field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.
func ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.