Documentation
¶
Index ¶
- Constants
- Variables
- func AccessLevel(v string) predicate.ModelPricing
- func AccessLevelContains(v string) predicate.ModelPricing
- func AccessLevelContainsFold(v string) predicate.ModelPricing
- func AccessLevelEQ(v string) predicate.ModelPricing
- func AccessLevelEqualFold(v string) predicate.ModelPricing
- func AccessLevelGT(v string) predicate.ModelPricing
- func AccessLevelGTE(v string) predicate.ModelPricing
- func AccessLevelHasPrefix(v string) predicate.ModelPricing
- func AccessLevelHasSuffix(v string) predicate.ModelPricing
- func AccessLevelIn(vs ...string) predicate.ModelPricing
- func AccessLevelLT(v string) predicate.ModelPricing
- func AccessLevelLTE(v string) predicate.ModelPricing
- func AccessLevelNEQ(v string) predicate.ModelPricing
- func AccessLevelNotIn(vs ...string) predicate.ModelPricing
- func And(predicates ...predicate.ModelPricing) predicate.ModelPricing
- func CreatedAt(v time.Time) predicate.ModelPricing
- func CreatedAtEQ(v time.Time) predicate.ModelPricing
- func CreatedAtGT(v time.Time) predicate.ModelPricing
- func CreatedAtGTE(v time.Time) predicate.ModelPricing
- func CreatedAtIn(vs ...time.Time) predicate.ModelPricing
- func CreatedAtLT(v time.Time) predicate.ModelPricing
- func CreatedAtLTE(v time.Time) predicate.ModelPricing
- func CreatedAtNEQ(v time.Time) predicate.ModelPricing
- func CreatedAtNotIn(vs ...time.Time) predicate.ModelPricing
- func HasModel() predicate.ModelPricing
- func HasModelWith(preds ...predicate.Model) predicate.ModelPricing
- func ID(id uuid.UUID) predicate.ModelPricing
- func IDEQ(id uuid.UUID) predicate.ModelPricing
- func IDGT(id uuid.UUID) predicate.ModelPricing
- func IDGTE(id uuid.UUID) predicate.ModelPricing
- func IDIn(ids ...uuid.UUID) predicate.ModelPricing
- func IDLT(id uuid.UUID) predicate.ModelPricing
- func IDLTE(id uuid.UUID) predicate.ModelPricing
- func IDNEQ(id uuid.UUID) predicate.ModelPricing
- func IDNotIn(ids ...uuid.UUID) predicate.ModelPricing
- func InputPrice(v int64) predicate.ModelPricing
- func InputPriceEQ(v int64) predicate.ModelPricing
- func InputPriceGT(v int64) predicate.ModelPricing
- func InputPriceGTE(v int64) predicate.ModelPricing
- func InputPriceIn(vs ...int64) predicate.ModelPricing
- func InputPriceLT(v int64) predicate.ModelPricing
- func InputPriceLTE(v int64) predicate.ModelPricing
- func InputPriceNEQ(v int64) predicate.ModelPricing
- func InputPriceNotIn(vs ...int64) predicate.ModelPricing
- func IsFree(v bool) predicate.ModelPricing
- func IsFreeEQ(v bool) predicate.ModelPricing
- func IsFreeNEQ(v bool) predicate.ModelPricing
- func ModelID(v uuid.UUID) predicate.ModelPricing
- func ModelIDEQ(v uuid.UUID) predicate.ModelPricing
- func ModelIDIn(vs ...uuid.UUID) predicate.ModelPricing
- func ModelIDNEQ(v uuid.UUID) predicate.ModelPricing
- func ModelIDNotIn(vs ...uuid.UUID) predicate.ModelPricing
- func Not(p predicate.ModelPricing) predicate.ModelPricing
- func Or(predicates ...predicate.ModelPricing) predicate.ModelPricing
- func OutputPrice(v int64) predicate.ModelPricing
- func OutputPriceEQ(v int64) predicate.ModelPricing
- func OutputPriceGT(v int64) predicate.ModelPricing
- func OutputPriceGTE(v int64) predicate.ModelPricing
- func OutputPriceIn(vs ...int64) predicate.ModelPricing
- func OutputPriceLT(v int64) predicate.ModelPricing
- func OutputPriceLTE(v int64) predicate.ModelPricing
- func OutputPriceNEQ(v int64) predicate.ModelPricing
- func OutputPriceNotIn(vs ...int64) predicate.ModelPricing
- func UpdatedAt(v time.Time) predicate.ModelPricing
- func UpdatedAtEQ(v time.Time) predicate.ModelPricing
- func UpdatedAtGT(v time.Time) predicate.ModelPricing
- func UpdatedAtGTE(v time.Time) predicate.ModelPricing
- func UpdatedAtIn(vs ...time.Time) predicate.ModelPricing
- func UpdatedAtLT(v time.Time) predicate.ModelPricing
- func UpdatedAtLTE(v time.Time) predicate.ModelPricing
- func UpdatedAtNEQ(v time.Time) predicate.ModelPricing
- func UpdatedAtNotIn(vs ...time.Time) predicate.ModelPricing
- func ValidColumn(column string) bool
- type OrderOption
- func ByAccessLevel(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInputPrice(opts ...sql.OrderTermOption) OrderOption
- func ByIsFree(opts ...sql.OrderTermOption) OrderOption
- func ByModelField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByModelID(opts ...sql.OrderTermOption) OrderOption
- func ByOutputPrice(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the modelpricing type in the database. Label = "model_pricing" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldModelID holds the string denoting the model_id field in the database. FieldModelID = "model_id" // FieldAccessLevel holds the string denoting the access_level field in the database. FieldAccessLevel = "access_level" // FieldIsFree holds the string denoting the is_free field in the database. FieldIsFree = "is_free" // FieldInputPrice holds the string denoting the input_price field in the database. FieldInputPrice = "input_price" // FieldOutputPrice holds the string denoting the output_price field in the database. FieldOutputPrice = "output_price" // 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" // EdgeModel holds the string denoting the model edge name in mutations. EdgeModel = "model" // Table holds the table name of the modelpricing in the database. Table = "model_pricings" // ModelTable is the table that holds the model relation/edge. ModelTable = "model_pricings" // ModelInverseTable is the table name for the Model entity. // It exists in this package in order to avoid circular dependency with the "model" package. ModelInverseTable = "models" // ModelColumn is the table column denoting the model relation/edge. ModelColumn = "model_id" )
Variables ¶
var ( // AccessLevelValidator is a validator for the "access_level" field. It is called by the builders before save. AccessLevelValidator func(string) error // DefaultIsFree holds the default value on creation for the "is_free" field. DefaultIsFree bool // DefaultInputPrice holds the default value on creation for the "input_price" field. DefaultInputPrice int64 // DefaultOutputPrice holds the default value on creation for the "output_price" field. DefaultOutputPrice int64 // 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 )
var Columns = []string{ FieldID, FieldModelID, FieldAccessLevel, FieldIsFree, FieldInputPrice, FieldOutputPrice, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for modelpricing fields.
Functions ¶
func AccessLevel ¶
func AccessLevel(v string) predicate.ModelPricing
AccessLevel applies equality check predicate on the "access_level" field. It's identical to AccessLevelEQ.
func AccessLevelContains ¶
func AccessLevelContains(v string) predicate.ModelPricing
AccessLevelContains applies the Contains predicate on the "access_level" field.
func AccessLevelContainsFold ¶
func AccessLevelContainsFold(v string) predicate.ModelPricing
AccessLevelContainsFold applies the ContainsFold predicate on the "access_level" field.
func AccessLevelEQ ¶
func AccessLevelEQ(v string) predicate.ModelPricing
AccessLevelEQ applies the EQ predicate on the "access_level" field.
func AccessLevelEqualFold ¶
func AccessLevelEqualFold(v string) predicate.ModelPricing
AccessLevelEqualFold applies the EqualFold predicate on the "access_level" field.
func AccessLevelGT ¶
func AccessLevelGT(v string) predicate.ModelPricing
AccessLevelGT applies the GT predicate on the "access_level" field.
func AccessLevelGTE ¶
func AccessLevelGTE(v string) predicate.ModelPricing
AccessLevelGTE applies the GTE predicate on the "access_level" field.
func AccessLevelHasPrefix ¶
func AccessLevelHasPrefix(v string) predicate.ModelPricing
AccessLevelHasPrefix applies the HasPrefix predicate on the "access_level" field.
func AccessLevelHasSuffix ¶
func AccessLevelHasSuffix(v string) predicate.ModelPricing
AccessLevelHasSuffix applies the HasSuffix predicate on the "access_level" field.
func AccessLevelIn ¶
func AccessLevelIn(vs ...string) predicate.ModelPricing
AccessLevelIn applies the In predicate on the "access_level" field.
func AccessLevelLT ¶
func AccessLevelLT(v string) predicate.ModelPricing
AccessLevelLT applies the LT predicate on the "access_level" field.
func AccessLevelLTE ¶
func AccessLevelLTE(v string) predicate.ModelPricing
AccessLevelLTE applies the LTE predicate on the "access_level" field.
func AccessLevelNEQ ¶
func AccessLevelNEQ(v string) predicate.ModelPricing
AccessLevelNEQ applies the NEQ predicate on the "access_level" field.
func AccessLevelNotIn ¶
func AccessLevelNotIn(vs ...string) predicate.ModelPricing
AccessLevelNotIn applies the NotIn predicate on the "access_level" field.
func And ¶
func And(predicates ...predicate.ModelPricing) predicate.ModelPricing
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ModelPricing
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ModelPricing
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ModelPricing
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ModelPricing
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ModelPricing
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ModelPricing
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ModelPricing
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ModelPricing
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ModelPricing
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasModel ¶
func HasModel() predicate.ModelPricing
HasModel applies the HasEdge predicate on the "model" edge.
func HasModelWith ¶
func HasModelWith(preds ...predicate.Model) predicate.ModelPricing
HasModelWith applies the HasEdge predicate on the "model" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.ModelPricing
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.ModelPricing
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.ModelPricing
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.ModelPricing
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.ModelPricing
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.ModelPricing
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.ModelPricing
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.ModelPricing
IDNotIn applies the NotIn predicate on the ID field.
func InputPrice ¶
func InputPrice(v int64) predicate.ModelPricing
InputPrice applies equality check predicate on the "input_price" field. It's identical to InputPriceEQ.
func InputPriceEQ ¶
func InputPriceEQ(v int64) predicate.ModelPricing
InputPriceEQ applies the EQ predicate on the "input_price" field.
func InputPriceGT ¶
func InputPriceGT(v int64) predicate.ModelPricing
InputPriceGT applies the GT predicate on the "input_price" field.
func InputPriceGTE ¶
func InputPriceGTE(v int64) predicate.ModelPricing
InputPriceGTE applies the GTE predicate on the "input_price" field.
func InputPriceIn ¶
func InputPriceIn(vs ...int64) predicate.ModelPricing
InputPriceIn applies the In predicate on the "input_price" field.
func InputPriceLT ¶
func InputPriceLT(v int64) predicate.ModelPricing
InputPriceLT applies the LT predicate on the "input_price" field.
func InputPriceLTE ¶
func InputPriceLTE(v int64) predicate.ModelPricing
InputPriceLTE applies the LTE predicate on the "input_price" field.
func InputPriceNEQ ¶
func InputPriceNEQ(v int64) predicate.ModelPricing
InputPriceNEQ applies the NEQ predicate on the "input_price" field.
func InputPriceNotIn ¶
func InputPriceNotIn(vs ...int64) predicate.ModelPricing
InputPriceNotIn applies the NotIn predicate on the "input_price" field.
func IsFree ¶
func IsFree(v bool) predicate.ModelPricing
IsFree applies equality check predicate on the "is_free" field. It's identical to IsFreeEQ.
func IsFreeEQ ¶
func IsFreeEQ(v bool) predicate.ModelPricing
IsFreeEQ applies the EQ predicate on the "is_free" field.
func IsFreeNEQ ¶
func IsFreeNEQ(v bool) predicate.ModelPricing
IsFreeNEQ applies the NEQ predicate on the "is_free" field.
func ModelID ¶
func ModelID(v uuid.UUID) predicate.ModelPricing
ModelID applies equality check predicate on the "model_id" field. It's identical to ModelIDEQ.
func ModelIDEQ ¶
func ModelIDEQ(v uuid.UUID) predicate.ModelPricing
ModelIDEQ applies the EQ predicate on the "model_id" field.
func ModelIDIn ¶
func ModelIDIn(vs ...uuid.UUID) predicate.ModelPricing
ModelIDIn applies the In predicate on the "model_id" field.
func ModelIDNEQ ¶
func ModelIDNEQ(v uuid.UUID) predicate.ModelPricing
ModelIDNEQ applies the NEQ predicate on the "model_id" field.
func ModelIDNotIn ¶
func ModelIDNotIn(vs ...uuid.UUID) predicate.ModelPricing
ModelIDNotIn applies the NotIn predicate on the "model_id" field.
func Not ¶
func Not(p predicate.ModelPricing) predicate.ModelPricing
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ModelPricing) predicate.ModelPricing
Or groups predicates with the OR operator between them.
func OutputPrice ¶
func OutputPrice(v int64) predicate.ModelPricing
OutputPrice applies equality check predicate on the "output_price" field. It's identical to OutputPriceEQ.
func OutputPriceEQ ¶
func OutputPriceEQ(v int64) predicate.ModelPricing
OutputPriceEQ applies the EQ predicate on the "output_price" field.
func OutputPriceGT ¶
func OutputPriceGT(v int64) predicate.ModelPricing
OutputPriceGT applies the GT predicate on the "output_price" field.
func OutputPriceGTE ¶
func OutputPriceGTE(v int64) predicate.ModelPricing
OutputPriceGTE applies the GTE predicate on the "output_price" field.
func OutputPriceIn ¶
func OutputPriceIn(vs ...int64) predicate.ModelPricing
OutputPriceIn applies the In predicate on the "output_price" field.
func OutputPriceLT ¶
func OutputPriceLT(v int64) predicate.ModelPricing
OutputPriceLT applies the LT predicate on the "output_price" field.
func OutputPriceLTE ¶
func OutputPriceLTE(v int64) predicate.ModelPricing
OutputPriceLTE applies the LTE predicate on the "output_price" field.
func OutputPriceNEQ ¶
func OutputPriceNEQ(v int64) predicate.ModelPricing
OutputPriceNEQ applies the NEQ predicate on the "output_price" field.
func OutputPriceNotIn ¶
func OutputPriceNotIn(vs ...int64) predicate.ModelPricing
OutputPriceNotIn applies the NotIn predicate on the "output_price" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ModelPricing
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ModelPricing
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ModelPricing
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ModelPricing
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ModelPricing
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ModelPricing
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ModelPricing
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ModelPricing
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ModelPricing
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 ModelPricing queries.
func ByAccessLevel ¶
func ByAccessLevel(opts ...sql.OrderTermOption) OrderOption
ByAccessLevel orders the results by the access_level field.
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 ByInputPrice ¶
func ByInputPrice(opts ...sql.OrderTermOption) OrderOption
ByInputPrice orders the results by the input_price field.
func ByIsFree ¶
func ByIsFree(opts ...sql.OrderTermOption) OrderOption
ByIsFree orders the results by the is_free field.
func ByModelField ¶
func ByModelField(field string, opts ...sql.OrderTermOption) OrderOption
ByModelField orders the results by model field.
func ByModelID ¶
func ByModelID(opts ...sql.OrderTermOption) OrderOption
ByModelID orders the results by the model_id field.
func ByOutputPrice ¶
func ByOutputPrice(opts ...sql.OrderTermOption) OrderOption
ByOutputPrice orders the results by the output_price field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.