Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Subscription) predicate.Subscription
- func CancelAtPeriodEnd(v bool) predicate.Subscription
- func CancelAtPeriodEndEQ(v bool) predicate.Subscription
- func CancelAtPeriodEndNEQ(v bool) predicate.Subscription
- func CreatedAt(v time.Time) predicate.Subscription
- func CreatedAtEQ(v time.Time) predicate.Subscription
- func CreatedAtGT(v time.Time) predicate.Subscription
- func CreatedAtGTE(v time.Time) predicate.Subscription
- func CreatedAtIn(vs ...time.Time) predicate.Subscription
- func CreatedAtLT(v time.Time) predicate.Subscription
- func CreatedAtLTE(v time.Time) predicate.Subscription
- func CreatedAtNEQ(v time.Time) predicate.Subscription
- func CreatedAtNotIn(vs ...time.Time) predicate.Subscription
- func CurrentPeriodEnd(v time.Time) predicate.Subscription
- func CurrentPeriodEndEQ(v time.Time) predicate.Subscription
- func CurrentPeriodEndGT(v time.Time) predicate.Subscription
- func CurrentPeriodEndGTE(v time.Time) predicate.Subscription
- func CurrentPeriodEndIn(vs ...time.Time) predicate.Subscription
- func CurrentPeriodEndLT(v time.Time) predicate.Subscription
- func CurrentPeriodEndLTE(v time.Time) predicate.Subscription
- func CurrentPeriodEndNEQ(v time.Time) predicate.Subscription
- func CurrentPeriodEndNotIn(vs ...time.Time) predicate.Subscription
- func CurrentPeriodStart(v time.Time) predicate.Subscription
- func CurrentPeriodStartEQ(v time.Time) predicate.Subscription
- func CurrentPeriodStartGT(v time.Time) predicate.Subscription
- func CurrentPeriodStartGTE(v time.Time) predicate.Subscription
- func CurrentPeriodStartIn(vs ...time.Time) predicate.Subscription
- func CurrentPeriodStartLT(v time.Time) predicate.Subscription
- func CurrentPeriodStartLTE(v time.Time) predicate.Subscription
- func CurrentPeriodStartNEQ(v time.Time) predicate.Subscription
- func CurrentPeriodStartNotIn(vs ...time.Time) predicate.Subscription
- func HasOrganization() predicate.Subscription
- func HasOrganizationWith(preds ...predicate.Organization) predicate.Subscription
- func ID(id uuid.UUID) predicate.Subscription
- func IDEQ(id uuid.UUID) predicate.Subscription
- func IDGT(id uuid.UUID) predicate.Subscription
- func IDGTE(id uuid.UUID) predicate.Subscription
- func IDIn(ids ...uuid.UUID) predicate.Subscription
- func IDLT(id uuid.UUID) predicate.Subscription
- func IDLTE(id uuid.UUID) predicate.Subscription
- func IDNEQ(id uuid.UUID) predicate.Subscription
- func IDNotIn(ids ...uuid.UUID) predicate.Subscription
- func Not(p predicate.Subscription) predicate.Subscription
- func Or(predicates ...predicate.Subscription) predicate.Subscription
- func OrganizationID(v uuid.UUID) predicate.Subscription
- func OrganizationIDEQ(v uuid.UUID) predicate.Subscription
- func OrganizationIDIn(vs ...uuid.UUID) predicate.Subscription
- func OrganizationIDNEQ(v uuid.UUID) predicate.Subscription
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.Subscription
- func PlanTier(v string) predicate.Subscription
- func PlanTierContains(v string) predicate.Subscription
- func PlanTierContainsFold(v string) predicate.Subscription
- func PlanTierEQ(v string) predicate.Subscription
- func PlanTierEqualFold(v string) predicate.Subscription
- func PlanTierGT(v string) predicate.Subscription
- func PlanTierGTE(v string) predicate.Subscription
- func PlanTierHasPrefix(v string) predicate.Subscription
- func PlanTierHasSuffix(v string) predicate.Subscription
- func PlanTierIn(vs ...string) predicate.Subscription
- func PlanTierLT(v string) predicate.Subscription
- func PlanTierLTE(v string) predicate.Subscription
- func PlanTierNEQ(v string) predicate.Subscription
- func PlanTierNotIn(vs ...string) predicate.Subscription
- func StatusEQ(v Status) predicate.Subscription
- func StatusIn(vs ...Status) predicate.Subscription
- func StatusNEQ(v Status) predicate.Subscription
- func StatusNotIn(vs ...Status) predicate.Subscription
- func StatusValidator(s Status) error
- func StripeCustomerID(v string) predicate.Subscription
- func StripeCustomerIDContains(v string) predicate.Subscription
- func StripeCustomerIDContainsFold(v string) predicate.Subscription
- func StripeCustomerIDEQ(v string) predicate.Subscription
- func StripeCustomerIDEqualFold(v string) predicate.Subscription
- func StripeCustomerIDGT(v string) predicate.Subscription
- func StripeCustomerIDGTE(v string) predicate.Subscription
- func StripeCustomerIDHasPrefix(v string) predicate.Subscription
- func StripeCustomerIDHasSuffix(v string) predicate.Subscription
- func StripeCustomerIDIn(vs ...string) predicate.Subscription
- func StripeCustomerIDIsNil() predicate.Subscription
- func StripeCustomerIDLT(v string) predicate.Subscription
- func StripeCustomerIDLTE(v string) predicate.Subscription
- func StripeCustomerIDNEQ(v string) predicate.Subscription
- func StripeCustomerIDNotIn(vs ...string) predicate.Subscription
- func StripeCustomerIDNotNil() predicate.Subscription
- func StripeSubscriptionID(v string) predicate.Subscription
- func StripeSubscriptionIDContains(v string) predicate.Subscription
- func StripeSubscriptionIDContainsFold(v string) predicate.Subscription
- func StripeSubscriptionIDEQ(v string) predicate.Subscription
- func StripeSubscriptionIDEqualFold(v string) predicate.Subscription
- func StripeSubscriptionIDGT(v string) predicate.Subscription
- func StripeSubscriptionIDGTE(v string) predicate.Subscription
- func StripeSubscriptionIDHasPrefix(v string) predicate.Subscription
- func StripeSubscriptionIDHasSuffix(v string) predicate.Subscription
- func StripeSubscriptionIDIn(vs ...string) predicate.Subscription
- func StripeSubscriptionIDIsNil() predicate.Subscription
- func StripeSubscriptionIDLT(v string) predicate.Subscription
- func StripeSubscriptionIDLTE(v string) predicate.Subscription
- func StripeSubscriptionIDNEQ(v string) predicate.Subscription
- func StripeSubscriptionIDNotIn(vs ...string) predicate.Subscription
- func StripeSubscriptionIDNotNil() predicate.Subscription
- func UpdatedAt(v time.Time) predicate.Subscription
- func UpdatedAtEQ(v time.Time) predicate.Subscription
- func UpdatedAtGT(v time.Time) predicate.Subscription
- func UpdatedAtGTE(v time.Time) predicate.Subscription
- func UpdatedAtIn(vs ...time.Time) predicate.Subscription
- func UpdatedAtLT(v time.Time) predicate.Subscription
- func UpdatedAtLTE(v time.Time) predicate.Subscription
- func UpdatedAtNEQ(v time.Time) predicate.Subscription
- func UpdatedAtNotIn(vs ...time.Time) predicate.Subscription
- func ValidColumn(column string) bool
- type OrderOption
- func ByCancelAtPeriodEnd(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCurrentPeriodEnd(opts ...sql.OrderTermOption) OrderOption
- func ByCurrentPeriodStart(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByPlanTier(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByStripeCustomerID(opts ...sql.OrderTermOption) OrderOption
- func ByStripeSubscriptionID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the subscription type in the database. Label = "subscription" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldOrganizationID holds the string denoting the organization_id field in the database. FieldOrganizationID = "organization_id" // FieldPlanTier holds the string denoting the plan_tier field in the database. FieldPlanTier = "plan_tier" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldCurrentPeriodStart holds the string denoting the current_period_start field in the database. FieldCurrentPeriodStart = "current_period_start" // FieldCurrentPeriodEnd holds the string denoting the current_period_end field in the database. FieldCurrentPeriodEnd = "current_period_end" // FieldStripeSubscriptionID holds the string denoting the stripe_subscription_id field in the database. FieldStripeSubscriptionID = "stripe_subscription_id" // FieldStripeCustomerID holds the string denoting the stripe_customer_id field in the database. FieldStripeCustomerID = "stripe_customer_id" // FieldCancelAtPeriodEnd holds the string denoting the cancel_at_period_end field in the database. FieldCancelAtPeriodEnd = "cancel_at_period_end" // 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" // EdgeOrganization holds the string denoting the organization edge name in mutations. EdgeOrganization = "organization" // Table holds the table name of the subscription in the database. Table = "cf_subscriptions" // OrganizationTable is the table that holds the organization relation/edge. OrganizationTable = "cf_subscriptions" // 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 = "cf_organizations" // OrganizationColumn is the table column denoting the organization relation/edge. OrganizationColumn = "organization_id" )
const DefaultStatus = StatusActive
StatusActive is the default value of the Status enum.
Variables ¶
var ( // DefaultPlanTier holds the default value on creation for the "plan_tier" field. DefaultPlanTier string // PlanTierValidator is a validator for the "plan_tier" field. It is called by the builders before save. PlanTierValidator func(string) error // DefaultCurrentPeriodStart holds the default value on creation for the "current_period_start" field. DefaultCurrentPeriodStart func() time.Time // DefaultCancelAtPeriodEnd holds the default value on creation for the "cancel_at_period_end" field. DefaultCancelAtPeriodEnd bool // 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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldOrganizationID, FieldPlanTier, FieldStatus, FieldCurrentPeriodStart, FieldCurrentPeriodEnd, FieldStripeSubscriptionID, FieldStripeCustomerID, FieldCancelAtPeriodEnd, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for subscription fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Subscription) predicate.Subscription
And groups predicates with the AND operator between them.
func CancelAtPeriodEnd ¶
func CancelAtPeriodEnd(v bool) predicate.Subscription
CancelAtPeriodEnd applies equality check predicate on the "cancel_at_period_end" field. It's identical to CancelAtPeriodEndEQ.
func CancelAtPeriodEndEQ ¶
func CancelAtPeriodEndEQ(v bool) predicate.Subscription
CancelAtPeriodEndEQ applies the EQ predicate on the "cancel_at_period_end" field.
func CancelAtPeriodEndNEQ ¶
func CancelAtPeriodEndNEQ(v bool) predicate.Subscription
CancelAtPeriodEndNEQ applies the NEQ predicate on the "cancel_at_period_end" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Subscription
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Subscription
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Subscription
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Subscription
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Subscription
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Subscription
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Subscription
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Subscription
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Subscription
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CurrentPeriodEnd ¶
func CurrentPeriodEnd(v time.Time) predicate.Subscription
CurrentPeriodEnd applies equality check predicate on the "current_period_end" field. It's identical to CurrentPeriodEndEQ.
func CurrentPeriodEndEQ ¶
func CurrentPeriodEndEQ(v time.Time) predicate.Subscription
CurrentPeriodEndEQ applies the EQ predicate on the "current_period_end" field.
func CurrentPeriodEndGT ¶
func CurrentPeriodEndGT(v time.Time) predicate.Subscription
CurrentPeriodEndGT applies the GT predicate on the "current_period_end" field.
func CurrentPeriodEndGTE ¶
func CurrentPeriodEndGTE(v time.Time) predicate.Subscription
CurrentPeriodEndGTE applies the GTE predicate on the "current_period_end" field.
func CurrentPeriodEndIn ¶
func CurrentPeriodEndIn(vs ...time.Time) predicate.Subscription
CurrentPeriodEndIn applies the In predicate on the "current_period_end" field.
func CurrentPeriodEndLT ¶
func CurrentPeriodEndLT(v time.Time) predicate.Subscription
CurrentPeriodEndLT applies the LT predicate on the "current_period_end" field.
func CurrentPeriodEndLTE ¶
func CurrentPeriodEndLTE(v time.Time) predicate.Subscription
CurrentPeriodEndLTE applies the LTE predicate on the "current_period_end" field.
func CurrentPeriodEndNEQ ¶
func CurrentPeriodEndNEQ(v time.Time) predicate.Subscription
CurrentPeriodEndNEQ applies the NEQ predicate on the "current_period_end" field.
func CurrentPeriodEndNotIn ¶
func CurrentPeriodEndNotIn(vs ...time.Time) predicate.Subscription
CurrentPeriodEndNotIn applies the NotIn predicate on the "current_period_end" field.
func CurrentPeriodStart ¶
func CurrentPeriodStart(v time.Time) predicate.Subscription
CurrentPeriodStart applies equality check predicate on the "current_period_start" field. It's identical to CurrentPeriodStartEQ.
func CurrentPeriodStartEQ ¶
func CurrentPeriodStartEQ(v time.Time) predicate.Subscription
CurrentPeriodStartEQ applies the EQ predicate on the "current_period_start" field.
func CurrentPeriodStartGT ¶
func CurrentPeriodStartGT(v time.Time) predicate.Subscription
CurrentPeriodStartGT applies the GT predicate on the "current_period_start" field.
func CurrentPeriodStartGTE ¶
func CurrentPeriodStartGTE(v time.Time) predicate.Subscription
CurrentPeriodStartGTE applies the GTE predicate on the "current_period_start" field.
func CurrentPeriodStartIn ¶
func CurrentPeriodStartIn(vs ...time.Time) predicate.Subscription
CurrentPeriodStartIn applies the In predicate on the "current_period_start" field.
func CurrentPeriodStartLT ¶
func CurrentPeriodStartLT(v time.Time) predicate.Subscription
CurrentPeriodStartLT applies the LT predicate on the "current_period_start" field.
func CurrentPeriodStartLTE ¶
func CurrentPeriodStartLTE(v time.Time) predicate.Subscription
CurrentPeriodStartLTE applies the LTE predicate on the "current_period_start" field.
func CurrentPeriodStartNEQ ¶
func CurrentPeriodStartNEQ(v time.Time) predicate.Subscription
CurrentPeriodStartNEQ applies the NEQ predicate on the "current_period_start" field.
func CurrentPeriodStartNotIn ¶
func CurrentPeriodStartNotIn(vs ...time.Time) predicate.Subscription
CurrentPeriodStartNotIn applies the NotIn predicate on the "current_period_start" field.
func HasOrganization ¶
func HasOrganization() predicate.Subscription
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶
func HasOrganizationWith(preds ...predicate.Organization) predicate.Subscription
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.Subscription
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.Subscription
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.Subscription
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.Subscription
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.Subscription
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.Subscription
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.Subscription
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.Subscription
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Subscription) predicate.Subscription
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Subscription) predicate.Subscription
Or groups predicates with the OR operator between them.
func OrganizationID ¶
func OrganizationID(v uuid.UUID) predicate.Subscription
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDEQ ¶
func OrganizationIDEQ(v uuid.UUID) predicate.Subscription
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDIn ¶
func OrganizationIDIn(vs ...uuid.UUID) predicate.Subscription
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
func OrganizationIDNEQ(v uuid.UUID) predicate.Subscription
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
func OrganizationIDNotIn(vs ...uuid.UUID) predicate.Subscription
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func PlanTier ¶
func PlanTier(v string) predicate.Subscription
PlanTier applies equality check predicate on the "plan_tier" field. It's identical to PlanTierEQ.
func PlanTierContains ¶
func PlanTierContains(v string) predicate.Subscription
PlanTierContains applies the Contains predicate on the "plan_tier" field.
func PlanTierContainsFold ¶
func PlanTierContainsFold(v string) predicate.Subscription
PlanTierContainsFold applies the ContainsFold predicate on the "plan_tier" field.
func PlanTierEQ ¶
func PlanTierEQ(v string) predicate.Subscription
PlanTierEQ applies the EQ predicate on the "plan_tier" field.
func PlanTierEqualFold ¶
func PlanTierEqualFold(v string) predicate.Subscription
PlanTierEqualFold applies the EqualFold predicate on the "plan_tier" field.
func PlanTierGT ¶
func PlanTierGT(v string) predicate.Subscription
PlanTierGT applies the GT predicate on the "plan_tier" field.
func PlanTierGTE ¶
func PlanTierGTE(v string) predicate.Subscription
PlanTierGTE applies the GTE predicate on the "plan_tier" field.
func PlanTierHasPrefix ¶
func PlanTierHasPrefix(v string) predicate.Subscription
PlanTierHasPrefix applies the HasPrefix predicate on the "plan_tier" field.
func PlanTierHasSuffix ¶
func PlanTierHasSuffix(v string) predicate.Subscription
PlanTierHasSuffix applies the HasSuffix predicate on the "plan_tier" field.
func PlanTierIn ¶
func PlanTierIn(vs ...string) predicate.Subscription
PlanTierIn applies the In predicate on the "plan_tier" field.
func PlanTierLT ¶
func PlanTierLT(v string) predicate.Subscription
PlanTierLT applies the LT predicate on the "plan_tier" field.
func PlanTierLTE ¶
func PlanTierLTE(v string) predicate.Subscription
PlanTierLTE applies the LTE predicate on the "plan_tier" field.
func PlanTierNEQ ¶
func PlanTierNEQ(v string) predicate.Subscription
PlanTierNEQ applies the NEQ predicate on the "plan_tier" field.
func PlanTierNotIn ¶
func PlanTierNotIn(vs ...string) predicate.Subscription
PlanTierNotIn applies the NotIn predicate on the "plan_tier" field.
func StatusEQ ¶
func StatusEQ(v Status) predicate.Subscription
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...Status) predicate.Subscription
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v Status) predicate.Subscription
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...Status) predicate.Subscription
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func StripeCustomerID ¶
func StripeCustomerID(v string) predicate.Subscription
StripeCustomerID applies equality check predicate on the "stripe_customer_id" field. It's identical to StripeCustomerIDEQ.
func StripeCustomerIDContains ¶
func StripeCustomerIDContains(v string) predicate.Subscription
StripeCustomerIDContains applies the Contains predicate on the "stripe_customer_id" field.
func StripeCustomerIDContainsFold ¶
func StripeCustomerIDContainsFold(v string) predicate.Subscription
StripeCustomerIDContainsFold applies the ContainsFold predicate on the "stripe_customer_id" field.
func StripeCustomerIDEQ ¶
func StripeCustomerIDEQ(v string) predicate.Subscription
StripeCustomerIDEQ applies the EQ predicate on the "stripe_customer_id" field.
func StripeCustomerIDEqualFold ¶
func StripeCustomerIDEqualFold(v string) predicate.Subscription
StripeCustomerIDEqualFold applies the EqualFold predicate on the "stripe_customer_id" field.
func StripeCustomerIDGT ¶
func StripeCustomerIDGT(v string) predicate.Subscription
StripeCustomerIDGT applies the GT predicate on the "stripe_customer_id" field.
func StripeCustomerIDGTE ¶
func StripeCustomerIDGTE(v string) predicate.Subscription
StripeCustomerIDGTE applies the GTE predicate on the "stripe_customer_id" field.
func StripeCustomerIDHasPrefix ¶
func StripeCustomerIDHasPrefix(v string) predicate.Subscription
StripeCustomerIDHasPrefix applies the HasPrefix predicate on the "stripe_customer_id" field.
func StripeCustomerIDHasSuffix ¶
func StripeCustomerIDHasSuffix(v string) predicate.Subscription
StripeCustomerIDHasSuffix applies the HasSuffix predicate on the "stripe_customer_id" field.
func StripeCustomerIDIn ¶
func StripeCustomerIDIn(vs ...string) predicate.Subscription
StripeCustomerIDIn applies the In predicate on the "stripe_customer_id" field.
func StripeCustomerIDIsNil ¶
func StripeCustomerIDIsNil() predicate.Subscription
StripeCustomerIDIsNil applies the IsNil predicate on the "stripe_customer_id" field.
func StripeCustomerIDLT ¶
func StripeCustomerIDLT(v string) predicate.Subscription
StripeCustomerIDLT applies the LT predicate on the "stripe_customer_id" field.
func StripeCustomerIDLTE ¶
func StripeCustomerIDLTE(v string) predicate.Subscription
StripeCustomerIDLTE applies the LTE predicate on the "stripe_customer_id" field.
func StripeCustomerIDNEQ ¶
func StripeCustomerIDNEQ(v string) predicate.Subscription
StripeCustomerIDNEQ applies the NEQ predicate on the "stripe_customer_id" field.
func StripeCustomerIDNotIn ¶
func StripeCustomerIDNotIn(vs ...string) predicate.Subscription
StripeCustomerIDNotIn applies the NotIn predicate on the "stripe_customer_id" field.
func StripeCustomerIDNotNil ¶
func StripeCustomerIDNotNil() predicate.Subscription
StripeCustomerIDNotNil applies the NotNil predicate on the "stripe_customer_id" field.
func StripeSubscriptionID ¶
func StripeSubscriptionID(v string) predicate.Subscription
StripeSubscriptionID applies equality check predicate on the "stripe_subscription_id" field. It's identical to StripeSubscriptionIDEQ.
func StripeSubscriptionIDContains ¶
func StripeSubscriptionIDContains(v string) predicate.Subscription
StripeSubscriptionIDContains applies the Contains predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDContainsFold ¶
func StripeSubscriptionIDContainsFold(v string) predicate.Subscription
StripeSubscriptionIDContainsFold applies the ContainsFold predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDEQ ¶
func StripeSubscriptionIDEQ(v string) predicate.Subscription
StripeSubscriptionIDEQ applies the EQ predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDEqualFold ¶
func StripeSubscriptionIDEqualFold(v string) predicate.Subscription
StripeSubscriptionIDEqualFold applies the EqualFold predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDGT ¶
func StripeSubscriptionIDGT(v string) predicate.Subscription
StripeSubscriptionIDGT applies the GT predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDGTE ¶
func StripeSubscriptionIDGTE(v string) predicate.Subscription
StripeSubscriptionIDGTE applies the GTE predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDHasPrefix ¶
func StripeSubscriptionIDHasPrefix(v string) predicate.Subscription
StripeSubscriptionIDHasPrefix applies the HasPrefix predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDHasSuffix ¶
func StripeSubscriptionIDHasSuffix(v string) predicate.Subscription
StripeSubscriptionIDHasSuffix applies the HasSuffix predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDIn ¶
func StripeSubscriptionIDIn(vs ...string) predicate.Subscription
StripeSubscriptionIDIn applies the In predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDIsNil ¶
func StripeSubscriptionIDIsNil() predicate.Subscription
StripeSubscriptionIDIsNil applies the IsNil predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDLT ¶
func StripeSubscriptionIDLT(v string) predicate.Subscription
StripeSubscriptionIDLT applies the LT predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDLTE ¶
func StripeSubscriptionIDLTE(v string) predicate.Subscription
StripeSubscriptionIDLTE applies the LTE predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDNEQ ¶
func StripeSubscriptionIDNEQ(v string) predicate.Subscription
StripeSubscriptionIDNEQ applies the NEQ predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDNotIn ¶
func StripeSubscriptionIDNotIn(vs ...string) predicate.Subscription
StripeSubscriptionIDNotIn applies the NotIn predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDNotNil ¶
func StripeSubscriptionIDNotNil() predicate.Subscription
StripeSubscriptionIDNotNil applies the NotNil predicate on the "stripe_subscription_id" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Subscription
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Subscription
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Subscription
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Subscription
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Subscription
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Subscription
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Subscription
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Subscription
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Subscription
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 Subscription queries.
func ByCancelAtPeriodEnd ¶
func ByCancelAtPeriodEnd(opts ...sql.OrderTermOption) OrderOption
ByCancelAtPeriodEnd orders the results by the cancel_at_period_end field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCurrentPeriodEnd ¶
func ByCurrentPeriodEnd(opts ...sql.OrderTermOption) OrderOption
ByCurrentPeriodEnd orders the results by the current_period_end field.
func ByCurrentPeriodStart ¶
func ByCurrentPeriodStart(opts ...sql.OrderTermOption) OrderOption
ByCurrentPeriodStart orders the results by the current_period_start field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOrganizationField ¶
func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrganizationField orders the results by organization field.
func ByOrganizationID ¶
func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
ByOrganizationID orders the results by the organization_id field.
func ByPlanTier ¶
func ByPlanTier(opts ...sql.OrderTermOption) OrderOption
ByPlanTier orders the results by the plan_tier field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByStripeCustomerID ¶
func ByStripeCustomerID(opts ...sql.OrderTermOption) OrderOption
ByStripeCustomerID orders the results by the stripe_customer_id field.
func ByStripeSubscriptionID ¶
func ByStripeSubscriptionID(opts ...sql.OrderTermOption) OrderOption
ByStripeSubscriptionID orders the results by the stripe_subscription_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.