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 HasOwner() predicate.Entitlement
- func HasOwnerWith(preds ...predicate.Organization) 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 Not(p predicate.Entitlement) predicate.Entitlement
- func Or(predicates ...predicate.Entitlement) 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 OwnerIDLT(v string) predicate.Entitlement
- func OwnerIDLTE(v string) predicate.Entitlement
- func OwnerIDNEQ(v string) predicate.Entitlement
- func OwnerIDNotIn(vs ...string) predicate.Entitlement
- func TierEQ(v enums.Tier) predicate.Entitlement
- func TierIn(vs ...enums.Tier) predicate.Entitlement
- func TierNEQ(v enums.Tier) predicate.Entitlement
- func TierNotIn(vs ...enums.Tier) predicate.Entitlement
- func TierValidator(t enums.Tier) error
- 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 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 ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByTier(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" // 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" // FieldTier holds the string denoting the tier field in the database. FieldTier = "tier" // 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" // 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" )
const DefaultTier enums.Tier = "FREE"
Variables ¶
var ( Hooks [2]ent.Hook Interceptors [1]ent.Interceptor // 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 // 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/datumforge/datum/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldDeletedAt, FieldDeletedBy, FieldOwnerID, FieldTier, FieldExternalCustomerID, FieldExternalSubscriptionID, FieldExpires, FieldExpiresAt, FieldCancelled, }
Columns holds all SQL columns for entitlement fields.
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 ¶ added in v0.3.4
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 ¶ added in v0.3.4
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 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 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 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 OwnerID ¶ added in v0.2.4
func OwnerID(v string) predicate.Entitlement
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶ added in v0.2.4
func OwnerIDContains(v string) predicate.Entitlement
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶ added in v0.2.4
func OwnerIDContainsFold(v string) predicate.Entitlement
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEQ ¶ added in v0.2.4
func OwnerIDEQ(v string) predicate.Entitlement
OwnerIDEQ applies the EQ predicate on the "owner_id" field.
func OwnerIDEqualFold ¶ added in v0.2.4
func OwnerIDEqualFold(v string) predicate.Entitlement
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGT ¶ added in v0.2.4
func OwnerIDGT(v string) predicate.Entitlement
OwnerIDGT applies the GT predicate on the "owner_id" field.
func OwnerIDGTE ¶ added in v0.2.4
func OwnerIDGTE(v string) predicate.Entitlement
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶ added in v0.2.4
func OwnerIDHasPrefix(v string) predicate.Entitlement
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶ added in v0.2.4
func OwnerIDHasSuffix(v string) predicate.Entitlement
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDIn ¶ added in v0.2.4
func OwnerIDIn(vs ...string) predicate.Entitlement
OwnerIDIn applies the In predicate on the "owner_id" field.
func OwnerIDLT ¶ added in v0.2.4
func OwnerIDLT(v string) predicate.Entitlement
OwnerIDLT applies the LT predicate on the "owner_id" field.
func OwnerIDLTE ¶ added in v0.2.4
func OwnerIDLTE(v string) predicate.Entitlement
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶ added in v0.2.4
func OwnerIDNEQ(v string) predicate.Entitlement
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶ added in v0.2.4
func OwnerIDNotIn(vs ...string) predicate.Entitlement
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func TierEQ ¶
func TierEQ(v enums.Tier) predicate.Entitlement
TierEQ applies the EQ predicate on the "tier" field.
func TierIn ¶
func TierIn(vs ...enums.Tier) predicate.Entitlement
TierIn applies the In predicate on the "tier" field.
func TierNEQ ¶
func TierNEQ(v enums.Tier) predicate.Entitlement
TierNEQ applies the NEQ predicate on the "tier" field.
func TierNotIn ¶
func TierNotIn(vs ...enums.Tier) predicate.Entitlement
TierNotIn applies the NotIn predicate on the "tier" field.
func TierValidator ¶
TierValidator is a validator for the "tier" field enum values. It is called by the builders before save.
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 ¶ added in v0.3.4
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 ¶ added in v0.3.4
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 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 ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByOwnerID ¶ added in v0.2.4
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
ByOwnerID orders the results by the owner_id field.
func ByTier ¶
func ByTier(opts ...sql.OrderTermOption) OrderOption
ByTier orders the results by the tier 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.