Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Subscription) 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 HasUser() predicate.Subscription
- func HasUserWith(preds ...predicate.User) 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 Plan(v string) predicate.Subscription
- func PlanContains(v string) predicate.Subscription
- func PlanContainsFold(v string) predicate.Subscription
- func PlanEQ(v string) predicate.Subscription
- func PlanEqualFold(v string) predicate.Subscription
- func PlanGT(v string) predicate.Subscription
- func PlanGTE(v string) predicate.Subscription
- func PlanHasPrefix(v string) predicate.Subscription
- func PlanHasSuffix(v string) predicate.Subscription
- func PlanIn(vs ...string) predicate.Subscription
- func PlanLT(v string) predicate.Subscription
- func PlanLTE(v string) predicate.Subscription
- func PlanNEQ(v string) predicate.Subscription
- func PlanNotIn(vs ...string) predicate.Subscription
- func SanctionedCredits(v int) predicate.Subscription
- func SanctionedCreditsEQ(v int) predicate.Subscription
- func SanctionedCreditsGT(v int) predicate.Subscription
- func SanctionedCreditsGTE(v int) predicate.Subscription
- func SanctionedCreditsIn(vs ...int) predicate.Subscription
- func SanctionedCreditsLT(v int) predicate.Subscription
- func SanctionedCreditsLTE(v int) predicate.Subscription
- func SanctionedCreditsNEQ(v int) predicate.Subscription
- func SanctionedCreditsNotIn(vs ...int) predicate.Subscription
- func Status(v string) predicate.Subscription
- func StatusContains(v string) predicate.Subscription
- func StatusContainsFold(v string) predicate.Subscription
- func StatusEQ(v string) predicate.Subscription
- func StatusEqualFold(v string) predicate.Subscription
- func StatusGT(v string) predicate.Subscription
- func StatusGTE(v string) predicate.Subscription
- func StatusHasPrefix(v string) predicate.Subscription
- func StatusHasSuffix(v string) predicate.Subscription
- func StatusIn(vs ...string) predicate.Subscription
- func StatusLT(v string) predicate.Subscription
- func StatusLTE(v string) predicate.Subscription
- func StatusNEQ(v string) predicate.Subscription
- func StatusNotIn(vs ...string) predicate.Subscription
- 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 TrialExpiresAt(v time.Time) predicate.Subscription
- func TrialExpiresAtEQ(v time.Time) predicate.Subscription
- func TrialExpiresAtGT(v time.Time) predicate.Subscription
- func TrialExpiresAtGTE(v time.Time) predicate.Subscription
- func TrialExpiresAtIn(vs ...time.Time) predicate.Subscription
- func TrialExpiresAtIsNil() predicate.Subscription
- func TrialExpiresAtLT(v time.Time) predicate.Subscription
- func TrialExpiresAtLTE(v time.Time) predicate.Subscription
- func TrialExpiresAtNEQ(v time.Time) predicate.Subscription
- func TrialExpiresAtNotIn(vs ...time.Time) predicate.Subscription
- func TrialExpiresAtNotNil() 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 ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPlan(opts ...sql.OrderTermOption) OrderOption
- func BySanctionedCredits(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByStripeCustomerID(opts ...sql.OrderTermOption) OrderOption
- func ByStripeSubscriptionID(opts ...sql.OrderTermOption) OrderOption
- func ByTrialExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
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" // 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" // FieldPlan holds the string denoting the plan field in the database. FieldPlan = "plan" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldTrialExpiresAt holds the string denoting the trial_expires_at field in the database. FieldTrialExpiresAt = "trial_expires_at" // FieldSanctionedCredits holds the string denoting the sanctioned_credits field in the database. FieldSanctionedCredits = "sanctioned_credits" // FieldStripeCustomerID holds the string denoting the stripe_customer_id field in the database. FieldStripeCustomerID = "stripe_customer_id" // FieldStripeSubscriptionID holds the string denoting the stripe_subscription_id field in the database. FieldStripeSubscriptionID = "stripe_subscription_id" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the subscription in the database. Table = "subscriptions" // UserTable is the table that holds the user relation/edge. UserTable = "subscriptions" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_subscription" )
Variables ¶
var ( Hooks [1]ent.Hook 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 // DefaultPlan holds the default value on creation for the "plan" field. DefaultPlan string // PlanValidator is a validator for the "plan" field. It is called by the builders before save. PlanValidator func(string) error // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus string // StatusValidator is a validator for the "status" field. It is called by the builders before save. StatusValidator func(string) error // DefaultSanctionedCredits holds the default value on creation for the "sanctioned_credits" field. DefaultSanctionedCredits int // SanctionedCreditsValidator is a validator for the "sanctioned_credits" field. It is called by the builders before save. SanctionedCreditsValidator func(int) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
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/Oppulence-Engineering/rowboat/apps/rowboat-api/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldPlan, FieldStatus, FieldTrialExpiresAt, FieldSanctionedCredits, FieldStripeCustomerID, FieldStripeSubscriptionID, }
Columns holds all SQL columns for subscription fields.
var ForeignKeys = []string{
"user_subscription",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "subscriptions" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Subscription) predicate.Subscription
And groups predicates with the AND operator between them.
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 HasUser ¶
func HasUser() predicate.Subscription
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.Subscription
HasUserWith applies the HasEdge predicate on the "user" 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 Plan ¶
func Plan(v string) predicate.Subscription
Plan applies equality check predicate on the "plan" field. It's identical to PlanEQ.
func PlanContains ¶
func PlanContains(v string) predicate.Subscription
PlanContains applies the Contains predicate on the "plan" field.
func PlanContainsFold ¶
func PlanContainsFold(v string) predicate.Subscription
PlanContainsFold applies the ContainsFold predicate on the "plan" field.
func PlanEQ ¶
func PlanEQ(v string) predicate.Subscription
PlanEQ applies the EQ predicate on the "plan" field.
func PlanEqualFold ¶
func PlanEqualFold(v string) predicate.Subscription
PlanEqualFold applies the EqualFold predicate on the "plan" field.
func PlanGT ¶
func PlanGT(v string) predicate.Subscription
PlanGT applies the GT predicate on the "plan" field.
func PlanGTE ¶
func PlanGTE(v string) predicate.Subscription
PlanGTE applies the GTE predicate on the "plan" field.
func PlanHasPrefix ¶
func PlanHasPrefix(v string) predicate.Subscription
PlanHasPrefix applies the HasPrefix predicate on the "plan" field.
func PlanHasSuffix ¶
func PlanHasSuffix(v string) predicate.Subscription
PlanHasSuffix applies the HasSuffix predicate on the "plan" field.
func PlanIn ¶
func PlanIn(vs ...string) predicate.Subscription
PlanIn applies the In predicate on the "plan" field.
func PlanLT ¶
func PlanLT(v string) predicate.Subscription
PlanLT applies the LT predicate on the "plan" field.
func PlanLTE ¶
func PlanLTE(v string) predicate.Subscription
PlanLTE applies the LTE predicate on the "plan" field.
func PlanNEQ ¶
func PlanNEQ(v string) predicate.Subscription
PlanNEQ applies the NEQ predicate on the "plan" field.
func PlanNotIn ¶
func PlanNotIn(vs ...string) predicate.Subscription
PlanNotIn applies the NotIn predicate on the "plan" field.
func SanctionedCredits ¶
func SanctionedCredits(v int) predicate.Subscription
SanctionedCredits applies equality check predicate on the "sanctioned_credits" field. It's identical to SanctionedCreditsEQ.
func SanctionedCreditsEQ ¶
func SanctionedCreditsEQ(v int) predicate.Subscription
SanctionedCreditsEQ applies the EQ predicate on the "sanctioned_credits" field.
func SanctionedCreditsGT ¶
func SanctionedCreditsGT(v int) predicate.Subscription
SanctionedCreditsGT applies the GT predicate on the "sanctioned_credits" field.
func SanctionedCreditsGTE ¶
func SanctionedCreditsGTE(v int) predicate.Subscription
SanctionedCreditsGTE applies the GTE predicate on the "sanctioned_credits" field.
func SanctionedCreditsIn ¶
func SanctionedCreditsIn(vs ...int) predicate.Subscription
SanctionedCreditsIn applies the In predicate on the "sanctioned_credits" field.
func SanctionedCreditsLT ¶
func SanctionedCreditsLT(v int) predicate.Subscription
SanctionedCreditsLT applies the LT predicate on the "sanctioned_credits" field.
func SanctionedCreditsLTE ¶
func SanctionedCreditsLTE(v int) predicate.Subscription
SanctionedCreditsLTE applies the LTE predicate on the "sanctioned_credits" field.
func SanctionedCreditsNEQ ¶
func SanctionedCreditsNEQ(v int) predicate.Subscription
SanctionedCreditsNEQ applies the NEQ predicate on the "sanctioned_credits" field.
func SanctionedCreditsNotIn ¶
func SanctionedCreditsNotIn(vs ...int) predicate.Subscription
SanctionedCreditsNotIn applies the NotIn predicate on the "sanctioned_credits" field.
func Status ¶
func Status(v string) predicate.Subscription
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
func StatusContains(v string) predicate.Subscription
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
func StatusContainsFold(v string) predicate.Subscription
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEQ ¶
func StatusEQ(v string) predicate.Subscription
StatusEQ applies the EQ predicate on the "status" field.
func StatusEqualFold ¶
func StatusEqualFold(v string) predicate.Subscription
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusGT ¶
func StatusGT(v string) predicate.Subscription
StatusGT applies the GT predicate on the "status" field.
func StatusGTE ¶
func StatusGTE(v string) predicate.Subscription
StatusGTE applies the GTE predicate on the "status" field.
func StatusHasPrefix ¶
func StatusHasPrefix(v string) predicate.Subscription
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
func StatusHasSuffix(v string) predicate.Subscription
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...string) predicate.Subscription
StatusIn applies the In predicate on the "status" field.
func StatusLT ¶
func StatusLT(v string) predicate.Subscription
StatusLT applies the LT predicate on the "status" field.
func StatusLTE ¶
func StatusLTE(v string) predicate.Subscription
StatusLTE applies the LTE predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v string) predicate.Subscription
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...string) predicate.Subscription
StatusNotIn applies the NotIn predicate on the "status" field.
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 TrialExpiresAt ¶
func TrialExpiresAt(v time.Time) predicate.Subscription
TrialExpiresAt applies equality check predicate on the "trial_expires_at" field. It's identical to TrialExpiresAtEQ.
func TrialExpiresAtEQ ¶
func TrialExpiresAtEQ(v time.Time) predicate.Subscription
TrialExpiresAtEQ applies the EQ predicate on the "trial_expires_at" field.
func TrialExpiresAtGT ¶
func TrialExpiresAtGT(v time.Time) predicate.Subscription
TrialExpiresAtGT applies the GT predicate on the "trial_expires_at" field.
func TrialExpiresAtGTE ¶
func TrialExpiresAtGTE(v time.Time) predicate.Subscription
TrialExpiresAtGTE applies the GTE predicate on the "trial_expires_at" field.
func TrialExpiresAtIn ¶
func TrialExpiresAtIn(vs ...time.Time) predicate.Subscription
TrialExpiresAtIn applies the In predicate on the "trial_expires_at" field.
func TrialExpiresAtIsNil ¶
func TrialExpiresAtIsNil() predicate.Subscription
TrialExpiresAtIsNil applies the IsNil predicate on the "trial_expires_at" field.
func TrialExpiresAtLT ¶
func TrialExpiresAtLT(v time.Time) predicate.Subscription
TrialExpiresAtLT applies the LT predicate on the "trial_expires_at" field.
func TrialExpiresAtLTE ¶
func TrialExpiresAtLTE(v time.Time) predicate.Subscription
TrialExpiresAtLTE applies the LTE predicate on the "trial_expires_at" field.
func TrialExpiresAtNEQ ¶
func TrialExpiresAtNEQ(v time.Time) predicate.Subscription
TrialExpiresAtNEQ applies the NEQ predicate on the "trial_expires_at" field.
func TrialExpiresAtNotIn ¶
func TrialExpiresAtNotIn(vs ...time.Time) predicate.Subscription
TrialExpiresAtNotIn applies the NotIn predicate on the "trial_expires_at" field.
func TrialExpiresAtNotNil ¶
func TrialExpiresAtNotNil() predicate.Subscription
TrialExpiresAtNotNil applies the NotNil predicate on the "trial_expires_at" 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 ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPlan ¶
func ByPlan(opts ...sql.OrderTermOption) OrderOption
ByPlan orders the results by the plan field.
func BySanctionedCredits ¶
func BySanctionedCredits(opts ...sql.OrderTermOption) OrderOption
BySanctionedCredits orders the results by the sanctioned_credits 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 ByTrialExpiresAt ¶
func ByTrialExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByTrialExpiresAt orders the results by the trial_expires_at field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.