Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Entitlement) predicate.Entitlement
- func Cancelled(v bool) predicate.Entitlement
- func CancelledEQ(v bool) predicate.Entitlement
- func CancelledNEQ(v bool) predicate.Entitlement
- func CreatedAt(v time.Time) predicate.Entitlement
- func CreatedAtEQ(v time.Time) predicate.Entitlement
- func CreatedAtGT(v time.Time) predicate.Entitlement
- func CreatedAtGTE(v time.Time) predicate.Entitlement
- func CreatedAtIn(vs ...time.Time) predicate.Entitlement
- func CreatedAtIsNil() predicate.Entitlement
- func CreatedAtLT(v time.Time) predicate.Entitlement
- func CreatedAtLTE(v time.Time) predicate.Entitlement
- func CreatedAtNEQ(v time.Time) predicate.Entitlement
- func CreatedAtNotIn(vs ...time.Time) predicate.Entitlement
- func CreatedAtNotNil() predicate.Entitlement
- func CreatedBy(v string) predicate.Entitlement
- func CreatedByContains(v string) predicate.Entitlement
- func CreatedByContainsFold(v string) predicate.Entitlement
- func CreatedByEQ(v string) predicate.Entitlement
- func CreatedByEqualFold(v string) predicate.Entitlement
- func CreatedByGT(v string) predicate.Entitlement
- func CreatedByGTE(v string) predicate.Entitlement
- func CreatedByHasPrefix(v string) predicate.Entitlement
- func CreatedByHasSuffix(v string) predicate.Entitlement
- func CreatedByIn(vs ...string) predicate.Entitlement
- func CreatedByIsNil() predicate.Entitlement
- func CreatedByLT(v string) predicate.Entitlement
- func CreatedByLTE(v string) predicate.Entitlement
- func CreatedByNEQ(v string) predicate.Entitlement
- func CreatedByNotIn(vs ...string) predicate.Entitlement
- func CreatedByNotNil() predicate.Entitlement
- func DeletedAt(v time.Time) predicate.Entitlement
- func DeletedAtEQ(v time.Time) predicate.Entitlement
- func DeletedAtGT(v time.Time) predicate.Entitlement
- func DeletedAtGTE(v time.Time) predicate.Entitlement
- func DeletedAtIn(vs ...time.Time) predicate.Entitlement
- func DeletedAtIsNil() predicate.Entitlement
- func DeletedAtLT(v time.Time) predicate.Entitlement
- func DeletedAtLTE(v time.Time) predicate.Entitlement
- func DeletedAtNEQ(v time.Time) predicate.Entitlement
- func DeletedAtNotIn(vs ...time.Time) predicate.Entitlement
- func DeletedAtNotNil() predicate.Entitlement
- func DeletedBy(v string) predicate.Entitlement
- func DeletedByContains(v string) predicate.Entitlement
- func DeletedByContainsFold(v string) predicate.Entitlement
- func DeletedByEQ(v string) predicate.Entitlement
- func DeletedByEqualFold(v string) predicate.Entitlement
- func DeletedByGT(v string) predicate.Entitlement
- func DeletedByGTE(v string) predicate.Entitlement
- func DeletedByHasPrefix(v string) predicate.Entitlement
- func DeletedByHasSuffix(v string) predicate.Entitlement
- func DeletedByIn(vs ...string) predicate.Entitlement
- func DeletedByIsNil() predicate.Entitlement
- func DeletedByLT(v string) predicate.Entitlement
- func DeletedByLTE(v string) predicate.Entitlement
- func DeletedByNEQ(v string) predicate.Entitlement
- func DeletedByNotIn(vs ...string) predicate.Entitlement
- func DeletedByNotNil() predicate.Entitlement
- func Expires(v bool) predicate.Entitlement
- func ExpiresAt(v time.Time) predicate.Entitlement
- func ExpiresAtEQ(v time.Time) predicate.Entitlement
- func ExpiresAtGT(v time.Time) predicate.Entitlement
- func ExpiresAtGTE(v time.Time) predicate.Entitlement
- func ExpiresAtIn(vs ...time.Time) predicate.Entitlement
- func ExpiresAtIsNil() predicate.Entitlement
- func ExpiresAtLT(v time.Time) predicate.Entitlement
- func ExpiresAtLTE(v time.Time) predicate.Entitlement
- func ExpiresAtNEQ(v time.Time) predicate.Entitlement
- func ExpiresAtNotIn(vs ...time.Time) predicate.Entitlement
- func ExpiresAtNotNil() predicate.Entitlement
- func ExpiresEQ(v bool) predicate.Entitlement
- func ExpiresNEQ(v bool) predicate.Entitlement
- func ExternalCustomerID(v string) predicate.Entitlement
- func ExternalCustomerIDContains(v string) predicate.Entitlement
- func ExternalCustomerIDContainsFold(v string) predicate.Entitlement
- func ExternalCustomerIDEQ(v string) predicate.Entitlement
- func ExternalCustomerIDEqualFold(v string) predicate.Entitlement
- func ExternalCustomerIDGT(v string) predicate.Entitlement
- func ExternalCustomerIDGTE(v string) predicate.Entitlement
- func ExternalCustomerIDHasPrefix(v string) predicate.Entitlement
- func ExternalCustomerIDHasSuffix(v string) predicate.Entitlement
- func ExternalCustomerIDIn(vs ...string) predicate.Entitlement
- func ExternalCustomerIDIsNil() predicate.Entitlement
- func ExternalCustomerIDLT(v string) predicate.Entitlement
- func ExternalCustomerIDLTE(v string) predicate.Entitlement
- func ExternalCustomerIDNEQ(v string) predicate.Entitlement
- func ExternalCustomerIDNotIn(vs ...string) predicate.Entitlement
- func ExternalCustomerIDNotNil() predicate.Entitlement
- func ExternalSubscriptionID(v string) predicate.Entitlement
- func ExternalSubscriptionIDContains(v string) predicate.Entitlement
- func ExternalSubscriptionIDContainsFold(v string) predicate.Entitlement
- func ExternalSubscriptionIDEQ(v string) predicate.Entitlement
- func ExternalSubscriptionIDEqualFold(v string) predicate.Entitlement
- func ExternalSubscriptionIDGT(v string) predicate.Entitlement
- func ExternalSubscriptionIDGTE(v string) predicate.Entitlement
- func ExternalSubscriptionIDHasPrefix(v string) predicate.Entitlement
- func ExternalSubscriptionIDHasSuffix(v string) predicate.Entitlement
- func ExternalSubscriptionIDIn(vs ...string) predicate.Entitlement
- func ExternalSubscriptionIDIsNil() predicate.Entitlement
- func ExternalSubscriptionIDLT(v string) predicate.Entitlement
- func ExternalSubscriptionIDLTE(v string) predicate.Entitlement
- func ExternalSubscriptionIDNEQ(v string) predicate.Entitlement
- func ExternalSubscriptionIDNotIn(vs ...string) predicate.Entitlement
- func ExternalSubscriptionIDNotNil() predicate.Entitlement
- func HasEvents() predicate.Entitlement
- func HasEventsWith(preds ...predicate.Event) predicate.Entitlement
- func HasOrganization() predicate.Entitlement
- func HasOrganizationWith(preds ...predicate.Organization) predicate.Entitlement
- func HasOwner() predicate.Entitlement
- func HasOwnerWith(preds ...predicate.Organization) predicate.Entitlement
- func HasPlan() predicate.Entitlement
- func HasPlanWith(preds ...predicate.EntitlementPlan) predicate.Entitlement
- func ID(id string) predicate.Entitlement
- func IDContainsFold(id string) predicate.Entitlement
- func IDEQ(id string) predicate.Entitlement
- func IDEqualFold(id string) predicate.Entitlement
- func IDGT(id string) predicate.Entitlement
- func IDGTE(id string) predicate.Entitlement
- func IDIn(ids ...string) predicate.Entitlement
- func IDLT(id string) predicate.Entitlement
- func IDLTE(id string) predicate.Entitlement
- func IDNEQ(id string) predicate.Entitlement
- func IDNotIn(ids ...string) predicate.Entitlement
- func MappingID(v string) predicate.Entitlement
- func MappingIDContains(v string) predicate.Entitlement
- func MappingIDContainsFold(v string) predicate.Entitlement
- func MappingIDEQ(v string) predicate.Entitlement
- func MappingIDEqualFold(v string) predicate.Entitlement
- func MappingIDGT(v string) predicate.Entitlement
- func MappingIDGTE(v string) predicate.Entitlement
- func MappingIDHasPrefix(v string) predicate.Entitlement
- func MappingIDHasSuffix(v string) predicate.Entitlement
- func MappingIDIn(vs ...string) predicate.Entitlement
- func MappingIDLT(v string) predicate.Entitlement
- func MappingIDLTE(v string) predicate.Entitlement
- func MappingIDNEQ(v string) predicate.Entitlement
- func MappingIDNotIn(vs ...string) predicate.Entitlement
- func Not(p predicate.Entitlement) predicate.Entitlement
- func Or(predicates ...predicate.Entitlement) predicate.Entitlement
- func OrganizationID(v string) predicate.Entitlement
- func OrganizationIDContains(v string) predicate.Entitlement
- func OrganizationIDContainsFold(v string) predicate.Entitlement
- func OrganizationIDEQ(v string) predicate.Entitlement
- func OrganizationIDEqualFold(v string) predicate.Entitlement
- func OrganizationIDGT(v string) predicate.Entitlement
- func OrganizationIDGTE(v string) predicate.Entitlement
- func OrganizationIDHasPrefix(v string) predicate.Entitlement
- func OrganizationIDHasSuffix(v string) predicate.Entitlement
- func OrganizationIDIn(vs ...string) predicate.Entitlement
- func OrganizationIDLT(v string) predicate.Entitlement
- func OrganizationIDLTE(v string) predicate.Entitlement
- func OrganizationIDNEQ(v string) predicate.Entitlement
- func OrganizationIDNotIn(vs ...string) predicate.Entitlement
- func OwnerID(v string) predicate.Entitlement
- func OwnerIDContains(v string) predicate.Entitlement
- func OwnerIDContainsFold(v string) predicate.Entitlement
- func OwnerIDEQ(v string) predicate.Entitlement
- func OwnerIDEqualFold(v string) predicate.Entitlement
- func OwnerIDGT(v string) predicate.Entitlement
- func OwnerIDGTE(v string) predicate.Entitlement
- func OwnerIDHasPrefix(v string) predicate.Entitlement
- func OwnerIDHasSuffix(v string) predicate.Entitlement
- func OwnerIDIn(vs ...string) predicate.Entitlement
- func OwnerIDIsNil() predicate.Entitlement
- func OwnerIDLT(v string) predicate.Entitlement
- func OwnerIDLTE(v string) predicate.Entitlement
- func OwnerIDNEQ(v string) predicate.Entitlement
- func OwnerIDNotIn(vs ...string) predicate.Entitlement
- func OwnerIDNotNil() predicate.Entitlement
- func PlanID(v string) predicate.Entitlement
- func PlanIDContains(v string) predicate.Entitlement
- func PlanIDContainsFold(v string) predicate.Entitlement
- func PlanIDEQ(v string) predicate.Entitlement
- func PlanIDEqualFold(v string) predicate.Entitlement
- func PlanIDGT(v string) predicate.Entitlement
- func PlanIDGTE(v string) predicate.Entitlement
- func PlanIDHasPrefix(v string) predicate.Entitlement
- func PlanIDHasSuffix(v string) predicate.Entitlement
- func PlanIDIn(vs ...string) predicate.Entitlement
- func PlanIDLT(v string) predicate.Entitlement
- func PlanIDLTE(v string) predicate.Entitlement
- func PlanIDNEQ(v string) predicate.Entitlement
- func PlanIDNotIn(vs ...string) predicate.Entitlement
- func TagsIsNil() predicate.Entitlement
- func TagsNotNil() predicate.Entitlement
- func UpdatedAt(v time.Time) predicate.Entitlement
- func UpdatedAtEQ(v time.Time) predicate.Entitlement
- func UpdatedAtGT(v time.Time) predicate.Entitlement
- func UpdatedAtGTE(v time.Time) predicate.Entitlement
- func UpdatedAtIn(vs ...time.Time) predicate.Entitlement
- func UpdatedAtIsNil() predicate.Entitlement
- func UpdatedAtLT(v time.Time) predicate.Entitlement
- func UpdatedAtLTE(v time.Time) predicate.Entitlement
- func UpdatedAtNEQ(v time.Time) predicate.Entitlement
- func UpdatedAtNotIn(vs ...time.Time) predicate.Entitlement
- func UpdatedAtNotNil() predicate.Entitlement
- func UpdatedBy(v string) predicate.Entitlement
- func UpdatedByContains(v string) predicate.Entitlement
- func UpdatedByContainsFold(v string) predicate.Entitlement
- func UpdatedByEQ(v string) predicate.Entitlement
- func UpdatedByEqualFold(v string) predicate.Entitlement
- func UpdatedByGT(v string) predicate.Entitlement
- func UpdatedByGTE(v string) predicate.Entitlement
- func UpdatedByHasPrefix(v string) predicate.Entitlement
- func UpdatedByHasSuffix(v string) predicate.Entitlement
- func UpdatedByIn(vs ...string) predicate.Entitlement
- func UpdatedByIsNil() predicate.Entitlement
- func UpdatedByLT(v string) predicate.Entitlement
- func UpdatedByLTE(v string) predicate.Entitlement
- func UpdatedByNEQ(v string) predicate.Entitlement
- func UpdatedByNotIn(vs ...string) predicate.Entitlement
- func UpdatedByNotNil() predicate.Entitlement
- func ValidColumn(column string) bool
- type OrderOption
- func ByCancelled(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEventsCount(opts ...sql.OrderTermOption) OrderOption
- func ByExpires(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByExternalCustomerID(opts ...sql.OrderTermOption) OrderOption
- func ByExternalSubscriptionID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMappingID(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByPlanField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPlanID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the entitlement type in the database. Label = "entitlement" // FieldID holds the string denoting the id field in the database. FieldID = "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" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldMappingID holds the string denoting the mapping_id field in the database. FieldMappingID = "mapping_id" // FieldTags holds the string denoting the tags field in the database. FieldTags = "tags" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldDeletedBy holds the string denoting the deleted_by field in the database. FieldDeletedBy = "deleted_by" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldPlanID holds the string denoting the plan_id field in the database. FieldPlanID = "plan_id" // FieldOrganizationID holds the string denoting the organization_id field in the database. FieldOrganizationID = "organization_id" // FieldExternalCustomerID holds the string denoting the external_customer_id field in the database. FieldExternalCustomerID = "external_customer_id" // FieldExternalSubscriptionID holds the string denoting the external_subscription_id field in the database. FieldExternalSubscriptionID = "external_subscription_id" // FieldExpires holds the string denoting the expires field in the database. FieldExpires = "expires" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // FieldCancelled holds the string denoting the cancelled field in the database. FieldCancelled = "cancelled" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgePlan holds the string denoting the plan edge name in mutations. EdgePlan = "plan" // EdgeOrganization holds the string denoting the organization edge name in mutations. EdgeOrganization = "organization" // EdgeEvents holds the string denoting the events edge name in mutations. EdgeEvents = "events" // Table holds the table name of the entitlement in the database. Table = "entitlements" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "entitlements" // OwnerInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OwnerInverseTable = "organizations" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "owner_id" // PlanTable is the table that holds the plan relation/edge. PlanTable = "entitlements" // PlanInverseTable is the table name for the EntitlementPlan entity. // It exists in this package in order to avoid circular dependency with the "entitlementplan" package. PlanInverseTable = "entitlement_plans" // PlanColumn is the table column denoting the plan relation/edge. PlanColumn = "plan_id" // OrganizationTable is the table that holds the organization relation/edge. OrganizationTable = "entitlements" // 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" // EventsTable is the table that holds the events relation/edge. The primary key declared below. EventsTable = "entitlement_events" // EventsInverseTable is the table name for the Event entity. // It exists in this package in order to avoid circular dependency with the "event" package. EventsInverseTable = "events" )
Variables ¶
var ( Hooks [5]ent.Hook Interceptors [2]ent.Interceptor Policy ent.Policy // 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 // DefaultMappingID holds the default value on creation for the "mapping_id" field. DefaultMappingID func() string // DefaultTags holds the default value on creation for the "tags" field. DefaultTags []string // OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save. OwnerIDValidator func(string) error // PlanIDValidator is a validator for the "plan_id" field. It is called by the builders before save. PlanIDValidator func(string) error // OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save. OrganizationIDValidator func(string) error // DefaultExpires holds the default value on creation for the "expires" field. DefaultExpires bool // DefaultCancelled holds the default value on creation for the "cancelled" field. DefaultCancelled bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/theopenlane/core/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldMappingID, FieldTags, FieldDeletedAt, FieldDeletedBy, FieldOwnerID, FieldPlanID, FieldOrganizationID, FieldExternalCustomerID, FieldExternalSubscriptionID, FieldExpires, FieldExpiresAt, FieldCancelled, }
Columns holds all SQL columns for entitlement fields.
var ( // EventsPrimaryKey and EventsColumn2 are the table columns denoting the // primary key for the events relation (M2M). EventsPrimaryKey = []string{"entitlement_id", "event_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.Entitlement) predicate.Entitlement
And groups predicates with the AND operator between them.
func Cancelled ¶
func Cancelled(v bool) predicate.Entitlement
Cancelled applies equality check predicate on the "cancelled" field. It's identical to CancelledEQ.
func CancelledEQ ¶
func CancelledEQ(v bool) predicate.Entitlement
CancelledEQ applies the EQ predicate on the "cancelled" field.
func CancelledNEQ ¶
func CancelledNEQ(v bool) predicate.Entitlement
CancelledNEQ applies the NEQ predicate on the "cancelled" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Entitlement
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Entitlement
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Entitlement
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Entitlement
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Entitlement
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
func CreatedAtIsNil() predicate.Entitlement
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Entitlement
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Entitlement
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Entitlement
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Entitlement
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
func CreatedAtNotNil() predicate.Entitlement
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v string) predicate.Entitlement
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
func CreatedByContains(v string) predicate.Entitlement
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
func CreatedByContainsFold(v string) predicate.Entitlement
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
func CreatedByEQ(v string) predicate.Entitlement
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
func CreatedByEqualFold(v string) predicate.Entitlement
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v string) predicate.Entitlement
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v string) predicate.Entitlement
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
func CreatedByHasPrefix(v string) predicate.Entitlement
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
func CreatedByHasSuffix(v string) predicate.Entitlement
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...string) predicate.Entitlement
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.Entitlement
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v string) predicate.Entitlement
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v string) predicate.Entitlement
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v string) predicate.Entitlement
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...string) predicate.Entitlement
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.Entitlement
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.Entitlement
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.Entitlement
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.Entitlement
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.Entitlement
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.Entitlement
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.Entitlement
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.Entitlement
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.Entitlement
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.Entitlement
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.Entitlement
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.Entitlement
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
func DeletedBy(v string) predicate.Entitlement
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
func DeletedByContains(v string) predicate.Entitlement
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
func DeletedByContainsFold(v string) predicate.Entitlement
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
func DeletedByEQ(v string) predicate.Entitlement
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
func DeletedByEqualFold(v string) predicate.Entitlement
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
func DeletedByGT(v string) predicate.Entitlement
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
func DeletedByGTE(v string) predicate.Entitlement
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
func DeletedByHasPrefix(v string) predicate.Entitlement
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
func DeletedByHasSuffix(v string) predicate.Entitlement
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
func DeletedByIn(vs ...string) predicate.Entitlement
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
func DeletedByIsNil() predicate.Entitlement
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
func DeletedByLT(v string) predicate.Entitlement
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
func DeletedByLTE(v string) predicate.Entitlement
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
func DeletedByNEQ(v string) predicate.Entitlement
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
func DeletedByNotIn(vs ...string) predicate.Entitlement
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
func DeletedByNotNil() predicate.Entitlement
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func Expires ¶
func Expires(v bool) predicate.Entitlement
Expires applies equality check predicate on the "expires" field. It's identical to ExpiresEQ.
func ExpiresAt ¶
func ExpiresAt(v time.Time) predicate.Entitlement
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
func ExpiresAtEQ(v time.Time) predicate.Entitlement
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
func ExpiresAtGT(v time.Time) predicate.Entitlement
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
func ExpiresAtGTE(v time.Time) predicate.Entitlement
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
func ExpiresAtIn(vs ...time.Time) predicate.Entitlement
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtIsNil ¶
func ExpiresAtIsNil() predicate.Entitlement
ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
func ExpiresAtLT ¶
func ExpiresAtLT(v time.Time) predicate.Entitlement
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
func ExpiresAtLTE(v time.Time) predicate.Entitlement
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
func ExpiresAtNEQ(v time.Time) predicate.Entitlement
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
func ExpiresAtNotIn(vs ...time.Time) predicate.Entitlement
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func ExpiresAtNotNil ¶
func ExpiresAtNotNil() predicate.Entitlement
ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
func ExpiresEQ ¶
func ExpiresEQ(v bool) predicate.Entitlement
ExpiresEQ applies the EQ predicate on the "expires" field.
func ExpiresNEQ ¶
func ExpiresNEQ(v bool) predicate.Entitlement
ExpiresNEQ applies the NEQ predicate on the "expires" field.
func ExternalCustomerID ¶
func ExternalCustomerID(v string) predicate.Entitlement
ExternalCustomerID applies equality check predicate on the "external_customer_id" field. It's identical to ExternalCustomerIDEQ.
func ExternalCustomerIDContains ¶
func ExternalCustomerIDContains(v string) predicate.Entitlement
ExternalCustomerIDContains applies the Contains predicate on the "external_customer_id" field.
func ExternalCustomerIDContainsFold ¶
func ExternalCustomerIDContainsFold(v string) predicate.Entitlement
ExternalCustomerIDContainsFold applies the ContainsFold predicate on the "external_customer_id" field.
func ExternalCustomerIDEQ ¶
func ExternalCustomerIDEQ(v string) predicate.Entitlement
ExternalCustomerIDEQ applies the EQ predicate on the "external_customer_id" field.
func ExternalCustomerIDEqualFold ¶
func ExternalCustomerIDEqualFold(v string) predicate.Entitlement
ExternalCustomerIDEqualFold applies the EqualFold predicate on the "external_customer_id" field.
func ExternalCustomerIDGT ¶
func ExternalCustomerIDGT(v string) predicate.Entitlement
ExternalCustomerIDGT applies the GT predicate on the "external_customer_id" field.
func ExternalCustomerIDGTE ¶
func ExternalCustomerIDGTE(v string) predicate.Entitlement
ExternalCustomerIDGTE applies the GTE predicate on the "external_customer_id" field.
func ExternalCustomerIDHasPrefix ¶
func ExternalCustomerIDHasPrefix(v string) predicate.Entitlement
ExternalCustomerIDHasPrefix applies the HasPrefix predicate on the "external_customer_id" field.
func ExternalCustomerIDHasSuffix ¶
func ExternalCustomerIDHasSuffix(v string) predicate.Entitlement
ExternalCustomerIDHasSuffix applies the HasSuffix predicate on the "external_customer_id" field.
func ExternalCustomerIDIn ¶
func ExternalCustomerIDIn(vs ...string) predicate.Entitlement
ExternalCustomerIDIn applies the In predicate on the "external_customer_id" field.
func ExternalCustomerIDIsNil ¶
func ExternalCustomerIDIsNil() predicate.Entitlement
ExternalCustomerIDIsNil applies the IsNil predicate on the "external_customer_id" field.
func ExternalCustomerIDLT ¶
func ExternalCustomerIDLT(v string) predicate.Entitlement
ExternalCustomerIDLT applies the LT predicate on the "external_customer_id" field.
func ExternalCustomerIDLTE ¶
func ExternalCustomerIDLTE(v string) predicate.Entitlement
ExternalCustomerIDLTE applies the LTE predicate on the "external_customer_id" field.
func ExternalCustomerIDNEQ ¶
func ExternalCustomerIDNEQ(v string) predicate.Entitlement
ExternalCustomerIDNEQ applies the NEQ predicate on the "external_customer_id" field.
func ExternalCustomerIDNotIn ¶
func ExternalCustomerIDNotIn(vs ...string) predicate.Entitlement
ExternalCustomerIDNotIn applies the NotIn predicate on the "external_customer_id" field.
func ExternalCustomerIDNotNil ¶
func ExternalCustomerIDNotNil() predicate.Entitlement
ExternalCustomerIDNotNil applies the NotNil predicate on the "external_customer_id" field.
func ExternalSubscriptionID ¶
func ExternalSubscriptionID(v string) predicate.Entitlement
ExternalSubscriptionID applies equality check predicate on the "external_subscription_id" field. It's identical to ExternalSubscriptionIDEQ.
func ExternalSubscriptionIDContains ¶
func ExternalSubscriptionIDContains(v string) predicate.Entitlement
ExternalSubscriptionIDContains applies the Contains predicate on the "external_subscription_id" field.
func ExternalSubscriptionIDContainsFold ¶
func ExternalSubscriptionIDContainsFold(v string) predicate.Entitlement
ExternalSubscriptionIDContainsFold applies the ContainsFold predicate on the "external_subscription_id" field.
func ExternalSubscriptionIDEQ ¶
func ExternalSubscriptionIDEQ(v string) predicate.Entitlement
ExternalSubscriptionIDEQ applies the EQ predicate on the "external_subscription_id" field.
func ExternalSubscriptionIDEqualFold ¶
func ExternalSubscriptionIDEqualFold(v string) predicate.Entitlement
ExternalSubscriptionIDEqualFold applies the EqualFold predicate on the "external_subscription_id" field.
func ExternalSubscriptionIDGT ¶
func ExternalSubscriptionIDGT(v string) predicate.Entitlement
ExternalSubscriptionIDGT applies the GT predicate on the "external_subscription_id" field.
func ExternalSubscriptionIDGTE ¶
func ExternalSubscriptionIDGTE(v string) predicate.Entitlement
ExternalSubscriptionIDGTE applies the GTE predicate on the "external_subscription_id" field.
func ExternalSubscriptionIDHasPrefix ¶
func ExternalSubscriptionIDHasPrefix(v string) predicate.Entitlement
ExternalSubscriptionIDHasPrefix applies the HasPrefix predicate on the "external_subscription_id" field.
func ExternalSubscriptionIDHasSuffix ¶
func ExternalSubscriptionIDHasSuffix(v string) predicate.Entitlement
ExternalSubscriptionIDHasSuffix applies the HasSuffix predicate on the "external_subscription_id" field.
func ExternalSubscriptionIDIn ¶
func ExternalSubscriptionIDIn(vs ...string) predicate.Entitlement
ExternalSubscriptionIDIn applies the In predicate on the "external_subscription_id" field.
func ExternalSubscriptionIDIsNil ¶
func ExternalSubscriptionIDIsNil() predicate.Entitlement
ExternalSubscriptionIDIsNil applies the IsNil predicate on the "external_subscription_id" field.
func ExternalSubscriptionIDLT ¶
func ExternalSubscriptionIDLT(v string) predicate.Entitlement
ExternalSubscriptionIDLT applies the LT predicate on the "external_subscription_id" field.
func ExternalSubscriptionIDLTE ¶
func ExternalSubscriptionIDLTE(v string) predicate.Entitlement
ExternalSubscriptionIDLTE applies the LTE predicate on the "external_subscription_id" field.
func ExternalSubscriptionIDNEQ ¶
func ExternalSubscriptionIDNEQ(v string) predicate.Entitlement
ExternalSubscriptionIDNEQ applies the NEQ predicate on the "external_subscription_id" field.
func ExternalSubscriptionIDNotIn ¶
func ExternalSubscriptionIDNotIn(vs ...string) predicate.Entitlement
ExternalSubscriptionIDNotIn applies the NotIn predicate on the "external_subscription_id" field.
func ExternalSubscriptionIDNotNil ¶
func ExternalSubscriptionIDNotNil() predicate.Entitlement
ExternalSubscriptionIDNotNil applies the NotNil predicate on the "external_subscription_id" field.
func HasEvents ¶
func HasEvents() predicate.Entitlement
HasEvents applies the HasEdge predicate on the "events" edge.
func HasEventsWith ¶
func HasEventsWith(preds ...predicate.Event) predicate.Entitlement
HasEventsWith applies the HasEdge predicate on the "events" edge with a given conditions (other predicates).
func HasOrganization ¶
func HasOrganization() predicate.Entitlement
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶
func HasOrganizationWith(preds ...predicate.Organization) predicate.Entitlement
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func HasOwner ¶
func HasOwner() predicate.Entitlement
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.Entitlement
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasPlan ¶
func HasPlan() predicate.Entitlement
HasPlan applies the HasEdge predicate on the "plan" edge.
func HasPlanWith ¶
func HasPlanWith(preds ...predicate.EntitlementPlan) predicate.Entitlement
HasPlanWith applies the HasEdge predicate on the "plan" edge with a given conditions (other predicates).
func IDContainsFold ¶
func IDContainsFold(id string) predicate.Entitlement
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.Entitlement
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.Entitlement
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.Entitlement
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.Entitlement
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.Entitlement
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.Entitlement
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.Entitlement
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.Entitlement
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.Entitlement
IDNotIn applies the NotIn predicate on the ID field.
func MappingID ¶
func MappingID(v string) predicate.Entitlement
MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.
func MappingIDContains ¶
func MappingIDContains(v string) predicate.Entitlement
MappingIDContains applies the Contains predicate on the "mapping_id" field.
func MappingIDContainsFold ¶
func MappingIDContainsFold(v string) predicate.Entitlement
MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.
func MappingIDEQ ¶
func MappingIDEQ(v string) predicate.Entitlement
MappingIDEQ applies the EQ predicate on the "mapping_id" field.
func MappingIDEqualFold ¶
func MappingIDEqualFold(v string) predicate.Entitlement
MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.
func MappingIDGT ¶
func MappingIDGT(v string) predicate.Entitlement
MappingIDGT applies the GT predicate on the "mapping_id" field.
func MappingIDGTE ¶
func MappingIDGTE(v string) predicate.Entitlement
MappingIDGTE applies the GTE predicate on the "mapping_id" field.
func MappingIDHasPrefix ¶
func MappingIDHasPrefix(v string) predicate.Entitlement
MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.
func MappingIDHasSuffix ¶
func MappingIDHasSuffix(v string) predicate.Entitlement
MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.
func MappingIDIn ¶
func MappingIDIn(vs ...string) predicate.Entitlement
MappingIDIn applies the In predicate on the "mapping_id" field.
func MappingIDLT ¶
func MappingIDLT(v string) predicate.Entitlement
MappingIDLT applies the LT predicate on the "mapping_id" field.
func MappingIDLTE ¶
func MappingIDLTE(v string) predicate.Entitlement
MappingIDLTE applies the LTE predicate on the "mapping_id" field.
func MappingIDNEQ ¶
func MappingIDNEQ(v string) predicate.Entitlement
MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.
func MappingIDNotIn ¶
func MappingIDNotIn(vs ...string) predicate.Entitlement
MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.
func Not ¶
func Not(p predicate.Entitlement) predicate.Entitlement
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Entitlement) predicate.Entitlement
Or groups predicates with the OR operator between them.
func OrganizationID ¶
func OrganizationID(v string) predicate.Entitlement
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDContains ¶
func OrganizationIDContains(v string) predicate.Entitlement
OrganizationIDContains applies the Contains predicate on the "organization_id" field.
func OrganizationIDContainsFold ¶
func OrganizationIDContainsFold(v string) predicate.Entitlement
OrganizationIDContainsFold applies the ContainsFold predicate on the "organization_id" field.
func OrganizationIDEQ ¶
func OrganizationIDEQ(v string) predicate.Entitlement
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDEqualFold ¶
func OrganizationIDEqualFold(v string) predicate.Entitlement
OrganizationIDEqualFold applies the EqualFold predicate on the "organization_id" field.
func OrganizationIDGT ¶
func OrganizationIDGT(v string) predicate.Entitlement
OrganizationIDGT applies the GT predicate on the "organization_id" field.
func OrganizationIDGTE ¶
func OrganizationIDGTE(v string) predicate.Entitlement
OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
func OrganizationIDHasPrefix ¶
func OrganizationIDHasPrefix(v string) predicate.Entitlement
OrganizationIDHasPrefix applies the HasPrefix predicate on the "organization_id" field.
func OrganizationIDHasSuffix ¶
func OrganizationIDHasSuffix(v string) predicate.Entitlement
OrganizationIDHasSuffix applies the HasSuffix predicate on the "organization_id" field.
func OrganizationIDIn ¶
func OrganizationIDIn(vs ...string) predicate.Entitlement
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDLT ¶
func OrganizationIDLT(v string) predicate.Entitlement
OrganizationIDLT applies the LT predicate on the "organization_id" field.
func OrganizationIDLTE ¶
func OrganizationIDLTE(v string) predicate.Entitlement
OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
func OrganizationIDNEQ(v string) predicate.Entitlement
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
func OrganizationIDNotIn(vs ...string) predicate.Entitlement
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func OwnerID ¶
func OwnerID(v string) predicate.Entitlement
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶
func OwnerIDContains(v string) predicate.Entitlement
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶
func OwnerIDContainsFold(v string) predicate.Entitlement
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEQ ¶
func OwnerIDEQ(v string) predicate.Entitlement
OwnerIDEQ applies the EQ predicate on the "owner_id" field.
func OwnerIDEqualFold ¶
func OwnerIDEqualFold(v string) predicate.Entitlement
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGT ¶
func OwnerIDGT(v string) predicate.Entitlement
OwnerIDGT applies the GT predicate on the "owner_id" field.
func OwnerIDGTE ¶
func OwnerIDGTE(v string) predicate.Entitlement
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶
func OwnerIDHasPrefix(v string) predicate.Entitlement
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶
func OwnerIDHasSuffix(v string) predicate.Entitlement
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDIn ¶
func OwnerIDIn(vs ...string) predicate.Entitlement
OwnerIDIn applies the In predicate on the "owner_id" field.
func OwnerIDIsNil ¶
func OwnerIDIsNil() predicate.Entitlement
OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.
func OwnerIDLT ¶
func OwnerIDLT(v string) predicate.Entitlement
OwnerIDLT applies the LT predicate on the "owner_id" field.
func OwnerIDLTE ¶
func OwnerIDLTE(v string) predicate.Entitlement
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶
func OwnerIDNEQ(v string) predicate.Entitlement
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
func OwnerIDNotIn(vs ...string) predicate.Entitlement
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotNil ¶
func OwnerIDNotNil() predicate.Entitlement
OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.
func PlanID ¶
func PlanID(v string) predicate.Entitlement
PlanID applies equality check predicate on the "plan_id" field. It's identical to PlanIDEQ.
func PlanIDContains ¶
func PlanIDContains(v string) predicate.Entitlement
PlanIDContains applies the Contains predicate on the "plan_id" field.
func PlanIDContainsFold ¶
func PlanIDContainsFold(v string) predicate.Entitlement
PlanIDContainsFold applies the ContainsFold predicate on the "plan_id" field.
func PlanIDEQ ¶
func PlanIDEQ(v string) predicate.Entitlement
PlanIDEQ applies the EQ predicate on the "plan_id" field.
func PlanIDEqualFold ¶
func PlanIDEqualFold(v string) predicate.Entitlement
PlanIDEqualFold applies the EqualFold predicate on the "plan_id" field.
func PlanIDGT ¶
func PlanIDGT(v string) predicate.Entitlement
PlanIDGT applies the GT predicate on the "plan_id" field.
func PlanIDGTE ¶
func PlanIDGTE(v string) predicate.Entitlement
PlanIDGTE applies the GTE predicate on the "plan_id" field.
func PlanIDHasPrefix ¶
func PlanIDHasPrefix(v string) predicate.Entitlement
PlanIDHasPrefix applies the HasPrefix predicate on the "plan_id" field.
func PlanIDHasSuffix ¶
func PlanIDHasSuffix(v string) predicate.Entitlement
PlanIDHasSuffix applies the HasSuffix predicate on the "plan_id" field.
func PlanIDIn ¶
func PlanIDIn(vs ...string) predicate.Entitlement
PlanIDIn applies the In predicate on the "plan_id" field.
func PlanIDLT ¶
func PlanIDLT(v string) predicate.Entitlement
PlanIDLT applies the LT predicate on the "plan_id" field.
func PlanIDLTE ¶
func PlanIDLTE(v string) predicate.Entitlement
PlanIDLTE applies the LTE predicate on the "plan_id" field.
func PlanIDNEQ ¶
func PlanIDNEQ(v string) predicate.Entitlement
PlanIDNEQ applies the NEQ predicate on the "plan_id" field.
func PlanIDNotIn ¶
func PlanIDNotIn(vs ...string) predicate.Entitlement
PlanIDNotIn applies the NotIn predicate on the "plan_id" field.
func TagsIsNil ¶
func TagsIsNil() predicate.Entitlement
TagsIsNil applies the IsNil predicate on the "tags" field.
func TagsNotNil ¶
func TagsNotNil() predicate.Entitlement
TagsNotNil applies the NotNil predicate on the "tags" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Entitlement
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Entitlement
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Entitlement
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Entitlement
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Entitlement
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.Entitlement
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Entitlement
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Entitlement
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Entitlement
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Entitlement
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.Entitlement
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v string) predicate.Entitlement
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
func UpdatedByContains(v string) predicate.Entitlement
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
func UpdatedByContainsFold(v string) predicate.Entitlement
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
func UpdatedByEQ(v string) predicate.Entitlement
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
func UpdatedByEqualFold(v string) predicate.Entitlement
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v string) predicate.Entitlement
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v string) predicate.Entitlement
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
func UpdatedByHasPrefix(v string) predicate.Entitlement
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
func UpdatedByHasSuffix(v string) predicate.Entitlement
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...string) predicate.Entitlement
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.Entitlement
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v string) predicate.Entitlement
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v string) predicate.Entitlement
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v string) predicate.Entitlement
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...string) predicate.Entitlement
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.Entitlement
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Entitlement queries.
func ByCancelled ¶
func ByCancelled(opts ...sql.OrderTermOption) OrderOption
ByCancelled orders the results by the cancelled field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDeletedBy ¶
func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
ByDeletedBy orders the results by the deleted_by field.
func ByEvents ¶
func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEvents orders the results by events terms.
func ByEventsCount ¶
func ByEventsCount(opts ...sql.OrderTermOption) OrderOption
ByEventsCount orders the results by events count.
func ByExpires ¶
func ByExpires(opts ...sql.OrderTermOption) OrderOption
ByExpires orders the results by the expires field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByExternalCustomerID ¶
func ByExternalCustomerID(opts ...sql.OrderTermOption) OrderOption
ByExternalCustomerID orders the results by the external_customer_id field.
func ByExternalSubscriptionID ¶
func ByExternalSubscriptionID(opts ...sql.OrderTermOption) OrderOption
ByExternalSubscriptionID orders the results by the external_subscription_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMappingID ¶
func ByMappingID(opts ...sql.OrderTermOption) OrderOption
ByMappingID orders the results by the mapping_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 ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByOwnerID ¶
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
ByOwnerID orders the results by the owner_id field.
func ByPlanField ¶
func ByPlanField(field string, opts ...sql.OrderTermOption) OrderOption
ByPlanField orders the results by plan field.
func ByPlanID ¶
func ByPlanID(opts ...sql.OrderTermOption) OrderOption
ByPlanID orders the results by the plan_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.