Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Credit) predicate.Credit
- func CreatedAt(v time.Time) predicate.Credit
- func CreatedAtEQ(v time.Time) predicate.Credit
- func CreatedAtGT(v time.Time) predicate.Credit
- func CreatedAtGTE(v time.Time) predicate.Credit
- func CreatedAtIn(vs ...time.Time) predicate.Credit
- func CreatedAtLT(v time.Time) predicate.Credit
- func CreatedAtLTE(v time.Time) predicate.Credit
- func CreatedAtNEQ(v time.Time) predicate.Credit
- func CreatedAtNotIn(vs ...time.Time) predicate.Credit
- func CreditTypeID(v uuid.UUID) predicate.Credit
- func CreditTypeIDEQ(v uuid.UUID) predicate.Credit
- func CreditTypeIDIn(vs ...uuid.UUID) predicate.Credit
- func CreditTypeIDNEQ(v uuid.UUID) predicate.Credit
- func CreditTypeIDNotIn(vs ...uuid.UUID) predicate.Credit
- func ExpiresAt(v time.Time) predicate.Credit
- func ExpiresAtEQ(v time.Time) predicate.Credit
- func ExpiresAtGT(v time.Time) predicate.Credit
- func ExpiresAtGTE(v time.Time) predicate.Credit
- func ExpiresAtIn(vs ...time.Time) predicate.Credit
- func ExpiresAtLT(v time.Time) predicate.Credit
- func ExpiresAtLTE(v time.Time) predicate.Credit
- func ExpiresAtNEQ(v time.Time) predicate.Credit
- func ExpiresAtNotIn(vs ...time.Time) predicate.Credit
- func HasCreditType() predicate.Credit
- func HasCreditTypeWith(preds ...predicate.CreditType) predicate.Credit
- func HasUsers() predicate.Credit
- func HasUsersWith(preds ...predicate.User) predicate.Credit
- func ID(id uuid.UUID) predicate.Credit
- func IDEQ(id uuid.UUID) predicate.Credit
- func IDGT(id uuid.UUID) predicate.Credit
- func IDGTE(id uuid.UUID) predicate.Credit
- func IDIn(ids ...uuid.UUID) predicate.Credit
- func IDLT(id uuid.UUID) predicate.Credit
- func IDLTE(id uuid.UUID) predicate.Credit
- func IDNEQ(id uuid.UUID) predicate.Credit
- func IDNotIn(ids ...uuid.UUID) predicate.Credit
- func Not(p predicate.Credit) predicate.Credit
- func Or(predicates ...predicate.Credit) predicate.Credit
- func Period(v int) predicate.Credit
- func PeriodEQ(v int) predicate.Credit
- func PeriodGT(v int) predicate.Credit
- func PeriodGTE(v int) predicate.Credit
- func PeriodIn(vs ...int) predicate.Credit
- func PeriodLT(v int) predicate.Credit
- func PeriodLTE(v int) predicate.Credit
- func PeriodNEQ(v int) predicate.Credit
- func PeriodNotIn(vs ...int) predicate.Credit
- func RemainingAmount(v int32) predicate.Credit
- func RemainingAmountEQ(v int32) predicate.Credit
- func RemainingAmountGT(v int32) predicate.Credit
- func RemainingAmountGTE(v int32) predicate.Credit
- func RemainingAmountIn(vs ...int32) predicate.Credit
- func RemainingAmountLT(v int32) predicate.Credit
- func RemainingAmountLTE(v int32) predicate.Credit
- func RemainingAmountNEQ(v int32) predicate.Credit
- func RemainingAmountNotIn(vs ...int32) predicate.Credit
- func ReplenishedAt(v time.Time) predicate.Credit
- func ReplenishedAtEQ(v time.Time) predicate.Credit
- func ReplenishedAtGT(v time.Time) predicate.Credit
- func ReplenishedAtGTE(v time.Time) predicate.Credit
- func ReplenishedAtIn(vs ...time.Time) predicate.Credit
- func ReplenishedAtLT(v time.Time) predicate.Credit
- func ReplenishedAtLTE(v time.Time) predicate.Credit
- func ReplenishedAtNEQ(v time.Time) predicate.Credit
- func ReplenishedAtNotIn(vs ...time.Time) predicate.Credit
- func StartsAt(v time.Time) predicate.Credit
- func StartsAtEQ(v time.Time) predicate.Credit
- func StartsAtGT(v time.Time) predicate.Credit
- func StartsAtGTE(v time.Time) predicate.Credit
- func StartsAtIn(vs ...time.Time) predicate.Credit
- func StartsAtLT(v time.Time) predicate.Credit
- func StartsAtLTE(v time.Time) predicate.Credit
- func StartsAtNEQ(v time.Time) predicate.Credit
- func StartsAtNotIn(vs ...time.Time) predicate.Credit
- func StripeLineItemID(v string) predicate.Credit
- func StripeLineItemIDContains(v string) predicate.Credit
- func StripeLineItemIDContainsFold(v string) predicate.Credit
- func StripeLineItemIDEQ(v string) predicate.Credit
- func StripeLineItemIDEqualFold(v string) predicate.Credit
- func StripeLineItemIDGT(v string) predicate.Credit
- func StripeLineItemIDGTE(v string) predicate.Credit
- func StripeLineItemIDHasPrefix(v string) predicate.Credit
- func StripeLineItemIDHasSuffix(v string) predicate.Credit
- func StripeLineItemIDIn(vs ...string) predicate.Credit
- func StripeLineItemIDIsNil() predicate.Credit
- func StripeLineItemIDLT(v string) predicate.Credit
- func StripeLineItemIDLTE(v string) predicate.Credit
- func StripeLineItemIDNEQ(v string) predicate.Credit
- func StripeLineItemIDNotIn(vs ...string) predicate.Credit
- func StripeLineItemIDNotNil() predicate.Credit
- func UpdatedAt(v time.Time) predicate.Credit
- func UpdatedAtEQ(v time.Time) predicate.Credit
- func UpdatedAtGT(v time.Time) predicate.Credit
- func UpdatedAtGTE(v time.Time) predicate.Credit
- func UpdatedAtIn(vs ...time.Time) predicate.Credit
- func UpdatedAtLT(v time.Time) predicate.Credit
- func UpdatedAtLTE(v time.Time) predicate.Credit
- func UpdatedAtNEQ(v time.Time) predicate.Credit
- func UpdatedAtNotIn(vs ...time.Time) predicate.Credit
- func UserID(v uuid.UUID) predicate.Credit
- func UserIDEQ(v uuid.UUID) predicate.Credit
- func UserIDIn(vs ...uuid.UUID) predicate.Credit
- func UserIDNEQ(v uuid.UUID) predicate.Credit
- func UserIDNotIn(vs ...uuid.UUID) predicate.Credit
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreditTypeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCreditTypeID(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPeriod(opts ...sql.OrderTermOption) OrderOption
- func ByRemainingAmount(opts ...sql.OrderTermOption) OrderOption
- func ByReplenishedAt(opts ...sql.OrderTermOption) OrderOption
- func ByStartsAt(opts ...sql.OrderTermOption) OrderOption
- func ByStripeLineItemID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- func ByUsersField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the credit type in the database. Label = "credit" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldRemainingAmount holds the string denoting the remaining_amount field in the database. FieldRemainingAmount = "remaining_amount" // FieldStartsAt holds the string denoting the starts_at field in the database. FieldStartsAt = "starts_at" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // FieldPeriod holds the string denoting the period field in the database. FieldPeriod = "period" // FieldStripeLineItemID holds the string denoting the stripe_line_item_id field in the database. FieldStripeLineItemID = "stripe_line_item_id" // FieldReplenishedAt holds the string denoting the replenished_at field in the database. FieldReplenishedAt = "replenished_at" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldCreditTypeID holds the string denoting the credit_type_id field in the database. FieldCreditTypeID = "credit_type_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" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // EdgeCreditType holds the string denoting the credit_type edge name in mutations. EdgeCreditType = "credit_type" // Table holds the table name of the credit in the database. Table = "credits" // UsersTable is the table that holds the users relation/edge. UsersTable = "credits" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" // UsersColumn is the table column denoting the users relation/edge. UsersColumn = "user_id" // CreditTypeTable is the table that holds the credit_type relation/edge. CreditTypeTable = "credits" // CreditTypeInverseTable is the table name for the CreditType entity. // It exists in this package in order to avoid circular dependency with the "credittype" package. CreditTypeInverseTable = "credit_types" // CreditTypeColumn is the table column denoting the credit_type relation/edge. CreditTypeColumn = "credit_type_id" )
Variables ¶
var ( // DefaultStartsAt holds the default value on creation for the "starts_at" field. DefaultStartsAt time.Time // DefaultPeriod holds the default value on creation for the "period" field. DefaultPeriod int // DefaultReplenishedAt holds the default value on creation for the "replenished_at" field. DefaultReplenishedAt func() time.Time // 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, FieldRemainingAmount, FieldStartsAt, FieldExpiresAt, FieldPeriod, FieldStripeLineItemID, FieldReplenishedAt, FieldUserID, FieldCreditTypeID, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for credit fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreditTypeID ¶
CreditTypeID applies equality check predicate on the "credit_type_id" field. It's identical to CreditTypeIDEQ.
func CreditTypeIDEQ ¶
CreditTypeIDEQ applies the EQ predicate on the "credit_type_id" field.
func CreditTypeIDIn ¶
CreditTypeIDIn applies the In predicate on the "credit_type_id" field.
func CreditTypeIDNEQ ¶
CreditTypeIDNEQ applies the NEQ predicate on the "credit_type_id" field.
func CreditTypeIDNotIn ¶
CreditTypeIDNotIn applies the NotIn predicate on the "credit_type_id" field.
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func HasCreditType ¶
HasCreditType applies the HasEdge predicate on the "credit_type" edge.
func HasCreditTypeWith ¶
func HasCreditTypeWith(preds ...predicate.CreditType) predicate.Credit
HasCreditTypeWith applies the HasEdge predicate on the "credit_type" edge with a given conditions (other predicates).
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func Period ¶
Period applies equality check predicate on the "period" field. It's identical to PeriodEQ.
func PeriodNotIn ¶
PeriodNotIn applies the NotIn predicate on the "period" field.
func RemainingAmount ¶
RemainingAmount applies equality check predicate on the "remaining_amount" field. It's identical to RemainingAmountEQ.
func RemainingAmountEQ ¶
RemainingAmountEQ applies the EQ predicate on the "remaining_amount" field.
func RemainingAmountGT ¶
RemainingAmountGT applies the GT predicate on the "remaining_amount" field.
func RemainingAmountGTE ¶
RemainingAmountGTE applies the GTE predicate on the "remaining_amount" field.
func RemainingAmountIn ¶
RemainingAmountIn applies the In predicate on the "remaining_amount" field.
func RemainingAmountLT ¶
RemainingAmountLT applies the LT predicate on the "remaining_amount" field.
func RemainingAmountLTE ¶
RemainingAmountLTE applies the LTE predicate on the "remaining_amount" field.
func RemainingAmountNEQ ¶
RemainingAmountNEQ applies the NEQ predicate on the "remaining_amount" field.
func RemainingAmountNotIn ¶
RemainingAmountNotIn applies the NotIn predicate on the "remaining_amount" field.
func ReplenishedAt ¶
ReplenishedAt applies equality check predicate on the "replenished_at" field. It's identical to ReplenishedAtEQ.
func ReplenishedAtEQ ¶
ReplenishedAtEQ applies the EQ predicate on the "replenished_at" field.
func ReplenishedAtGT ¶
ReplenishedAtGT applies the GT predicate on the "replenished_at" field.
func ReplenishedAtGTE ¶
ReplenishedAtGTE applies the GTE predicate on the "replenished_at" field.
func ReplenishedAtIn ¶
ReplenishedAtIn applies the In predicate on the "replenished_at" field.
func ReplenishedAtLT ¶
ReplenishedAtLT applies the LT predicate on the "replenished_at" field.
func ReplenishedAtLTE ¶
ReplenishedAtLTE applies the LTE predicate on the "replenished_at" field.
func ReplenishedAtNEQ ¶
ReplenishedAtNEQ applies the NEQ predicate on the "replenished_at" field.
func ReplenishedAtNotIn ¶
ReplenishedAtNotIn applies the NotIn predicate on the "replenished_at" field.
func StartsAt ¶
StartsAt applies equality check predicate on the "starts_at" field. It's identical to StartsAtEQ.
func StartsAtEQ ¶
StartsAtEQ applies the EQ predicate on the "starts_at" field.
func StartsAtGT ¶
StartsAtGT applies the GT predicate on the "starts_at" field.
func StartsAtGTE ¶
StartsAtGTE applies the GTE predicate on the "starts_at" field.
func StartsAtIn ¶
StartsAtIn applies the In predicate on the "starts_at" field.
func StartsAtLT ¶
StartsAtLT applies the LT predicate on the "starts_at" field.
func StartsAtLTE ¶
StartsAtLTE applies the LTE predicate on the "starts_at" field.
func StartsAtNEQ ¶
StartsAtNEQ applies the NEQ predicate on the "starts_at" field.
func StartsAtNotIn ¶
StartsAtNotIn applies the NotIn predicate on the "starts_at" field.
func StripeLineItemID ¶
StripeLineItemID applies equality check predicate on the "stripe_line_item_id" field. It's identical to StripeLineItemIDEQ.
func StripeLineItemIDContains ¶
StripeLineItemIDContains applies the Contains predicate on the "stripe_line_item_id" field.
func StripeLineItemIDContainsFold ¶
StripeLineItemIDContainsFold applies the ContainsFold predicate on the "stripe_line_item_id" field.
func StripeLineItemIDEQ ¶
StripeLineItemIDEQ applies the EQ predicate on the "stripe_line_item_id" field.
func StripeLineItemIDEqualFold ¶
StripeLineItemIDEqualFold applies the EqualFold predicate on the "stripe_line_item_id" field.
func StripeLineItemIDGT ¶
StripeLineItemIDGT applies the GT predicate on the "stripe_line_item_id" field.
func StripeLineItemIDGTE ¶
StripeLineItemIDGTE applies the GTE predicate on the "stripe_line_item_id" field.
func StripeLineItemIDHasPrefix ¶
StripeLineItemIDHasPrefix applies the HasPrefix predicate on the "stripe_line_item_id" field.
func StripeLineItemIDHasSuffix ¶
StripeLineItemIDHasSuffix applies the HasSuffix predicate on the "stripe_line_item_id" field.
func StripeLineItemIDIn ¶
StripeLineItemIDIn applies the In predicate on the "stripe_line_item_id" field.
func StripeLineItemIDIsNil ¶
StripeLineItemIDIsNil applies the IsNil predicate on the "stripe_line_item_id" field.
func StripeLineItemIDLT ¶
StripeLineItemIDLT applies the LT predicate on the "stripe_line_item_id" field.
func StripeLineItemIDLTE ¶
StripeLineItemIDLTE applies the LTE predicate on the "stripe_line_item_id" field.
func StripeLineItemIDNEQ ¶
StripeLineItemIDNEQ applies the NEQ predicate on the "stripe_line_item_id" field.
func StripeLineItemIDNotIn ¶
StripeLineItemIDNotIn applies the NotIn predicate on the "stripe_line_item_id" field.
func StripeLineItemIDNotNil ¶
StripeLineItemIDNotNil applies the NotNil predicate on the "stripe_line_item_id" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Credit queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreditTypeField ¶
func ByCreditTypeField(field string, opts ...sql.OrderTermOption) OrderOption
ByCreditTypeField orders the results by credit_type field.
func ByCreditTypeID ¶
func ByCreditTypeID(opts ...sql.OrderTermOption) OrderOption
ByCreditTypeID orders the results by the credit_type_id field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPeriod ¶
func ByPeriod(opts ...sql.OrderTermOption) OrderOption
ByPeriod orders the results by the period field.
func ByRemainingAmount ¶
func ByRemainingAmount(opts ...sql.OrderTermOption) OrderOption
ByRemainingAmount orders the results by the remaining_amount field.
func ByReplenishedAt ¶
func ByReplenishedAt(opts ...sql.OrderTermOption) OrderOption
ByReplenishedAt orders the results by the replenished_at field.
func ByStartsAt ¶
func ByStartsAt(opts ...sql.OrderTermOption) OrderOption
ByStartsAt orders the results by the starts_at field.
func ByStripeLineItemID ¶
func ByStripeLineItemID(opts ...sql.OrderTermOption) OrderOption
ByStripeLineItemID orders the results by the stripe_line_item_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.
func ByUsersField ¶
func ByUsersField(field string, opts ...sql.OrderTermOption) OrderOption
ByUsersField orders the results by users field.