Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Listing) predicate.Listing
- func CreatedAt(v time.Time) predicate.Listing
- func CreatedAtEQ(v time.Time) predicate.Listing
- func CreatedAtGT(v time.Time) predicate.Listing
- func CreatedAtGTE(v time.Time) predicate.Listing
- func CreatedAtIn(vs ...time.Time) predicate.Listing
- func CreatedAtLT(v time.Time) predicate.Listing
- func CreatedAtLTE(v time.Time) predicate.Listing
- func CreatedAtNEQ(v time.Time) predicate.Listing
- func CreatedAtNotIn(vs ...time.Time) predicate.Listing
- func CreatorOrgID(v uuid.UUID) predicate.Listing
- func CreatorOrgIDEQ(v uuid.UUID) predicate.Listing
- func CreatorOrgIDIn(vs ...uuid.UUID) predicate.Listing
- func CreatorOrgIDNEQ(v uuid.UUID) predicate.Listing
- func CreatorOrgIDNotIn(vs ...uuid.UUID) predicate.Listing
- func Currency(v string) predicate.Listing
- func CurrencyContains(v string) predicate.Listing
- func CurrencyContainsFold(v string) predicate.Listing
- func CurrencyEQ(v string) predicate.Listing
- func CurrencyEqualFold(v string) predicate.Listing
- func CurrencyGT(v string) predicate.Listing
- func CurrencyGTE(v string) predicate.Listing
- func CurrencyHasPrefix(v string) predicate.Listing
- func CurrencyHasSuffix(v string) predicate.Listing
- func CurrencyIn(vs ...string) predicate.Listing
- func CurrencyLT(v string) predicate.Listing
- func CurrencyLTE(v string) predicate.Listing
- func CurrencyNEQ(v string) predicate.Listing
- func CurrencyNotIn(vs ...string) predicate.Listing
- func Description(v string) predicate.Listing
- func DescriptionContains(v string) predicate.Listing
- func DescriptionContainsFold(v string) predicate.Listing
- func DescriptionEQ(v string) predicate.Listing
- func DescriptionEqualFold(v string) predicate.Listing
- func DescriptionGT(v string) predicate.Listing
- func DescriptionGTE(v string) predicate.Listing
- func DescriptionHasPrefix(v string) predicate.Listing
- func DescriptionHasSuffix(v string) predicate.Listing
- func DescriptionIn(vs ...string) predicate.Listing
- func DescriptionIsNil() predicate.Listing
- func DescriptionLT(v string) predicate.Listing
- func DescriptionLTE(v string) predicate.Listing
- func DescriptionNEQ(v string) predicate.Listing
- func DescriptionNotIn(vs ...string) predicate.Listing
- func DescriptionNotNil() predicate.Listing
- func HasCreatorOrg() predicate.Listing
- func HasCreatorOrgWith(preds ...predicate.Organization) predicate.Listing
- func HasLicenses() predicate.Listing
- func HasLicensesWith(preds ...predicate.License) predicate.Listing
- func HasOwner() predicate.Listing
- func HasOwnerWith(preds ...predicate.Principal) predicate.Listing
- func ID(id uuid.UUID) predicate.Listing
- func IDEQ(id uuid.UUID) predicate.Listing
- func IDGT(id uuid.UUID) predicate.Listing
- func IDGTE(id uuid.UUID) predicate.Listing
- func IDIn(ids ...uuid.UUID) predicate.Listing
- func IDLT(id uuid.UUID) predicate.Listing
- func IDLTE(id uuid.UUID) predicate.Listing
- func IDNEQ(id uuid.UUID) predicate.Listing
- func IDNotIn(ids ...uuid.UUID) predicate.Listing
- func MetadataIsNil() predicate.Listing
- func MetadataNotNil() predicate.Listing
- func Not(p predicate.Listing) predicate.Listing
- func Or(predicates ...predicate.Listing) predicate.Listing
- func OwnerID(v uuid.UUID) predicate.Listing
- func OwnerIDEQ(v uuid.UUID) predicate.Listing
- func OwnerIDIn(vs ...uuid.UUID) predicate.Listing
- func OwnerIDNEQ(v uuid.UUID) predicate.Listing
- func OwnerIDNotIn(vs ...uuid.UUID) predicate.Listing
- func PriceCents(v int64) predicate.Listing
- func PriceCentsEQ(v int64) predicate.Listing
- func PriceCentsGT(v int64) predicate.Listing
- func PriceCentsGTE(v int64) predicate.Listing
- func PriceCentsIn(vs ...int64) predicate.Listing
- func PriceCentsLT(v int64) predicate.Listing
- func PriceCentsLTE(v int64) predicate.Listing
- func PriceCentsNEQ(v int64) predicate.Listing
- func PriceCentsNotIn(vs ...int64) predicate.Listing
- func PricingModelEQ(v PricingModel) predicate.Listing
- func PricingModelIn(vs ...PricingModel) predicate.Listing
- func PricingModelNEQ(v PricingModel) predicate.Listing
- func PricingModelNotIn(vs ...PricingModel) predicate.Listing
- func PricingModelValidator(pm PricingModel) error
- func ProductID(v uuid.UUID) predicate.Listing
- func ProductIDEQ(v uuid.UUID) predicate.Listing
- func ProductIDGT(v uuid.UUID) predicate.Listing
- func ProductIDGTE(v uuid.UUID) predicate.Listing
- func ProductIDIn(vs ...uuid.UUID) predicate.Listing
- func ProductIDIsNil() predicate.Listing
- func ProductIDLT(v uuid.UUID) predicate.Listing
- func ProductIDLTE(v uuid.UUID) predicate.Listing
- func ProductIDNEQ(v uuid.UUID) predicate.Listing
- func ProductIDNotIn(vs ...uuid.UUID) predicate.Listing
- func ProductIDNotNil() predicate.Listing
- func ProductType(v string) predicate.Listing
- func ProductTypeContains(v string) predicate.Listing
- func ProductTypeContainsFold(v string) predicate.Listing
- func ProductTypeEQ(v string) predicate.Listing
- func ProductTypeEqualFold(v string) predicate.Listing
- func ProductTypeGT(v string) predicate.Listing
- func ProductTypeGTE(v string) predicate.Listing
- func ProductTypeHasPrefix(v string) predicate.Listing
- func ProductTypeHasSuffix(v string) predicate.Listing
- func ProductTypeIn(vs ...string) predicate.Listing
- func ProductTypeLT(v string) predicate.Listing
- func ProductTypeLTE(v string) predicate.Listing
- func ProductTypeNEQ(v string) predicate.Listing
- func ProductTypeNotIn(vs ...string) predicate.Listing
- func PublishedAt(v time.Time) predicate.Listing
- func PublishedAtEQ(v time.Time) predicate.Listing
- func PublishedAtGT(v time.Time) predicate.Listing
- func PublishedAtGTE(v time.Time) predicate.Listing
- func PublishedAtIn(vs ...time.Time) predicate.Listing
- func PublishedAtIsNil() predicate.Listing
- func PublishedAtLT(v time.Time) predicate.Listing
- func PublishedAtLTE(v time.Time) predicate.Listing
- func PublishedAtNEQ(v time.Time) predicate.Listing
- func PublishedAtNotIn(vs ...time.Time) predicate.Listing
- func PublishedAtNotNil() predicate.Listing
- func StatusEQ(v Status) predicate.Listing
- func StatusIn(vs ...Status) predicate.Listing
- func StatusNEQ(v Status) predicate.Listing
- func StatusNotIn(vs ...Status) predicate.Listing
- func StatusValidator(s Status) error
- func Title(v string) predicate.Listing
- func TitleContains(v string) predicate.Listing
- func TitleContainsFold(v string) predicate.Listing
- func TitleEQ(v string) predicate.Listing
- func TitleEqualFold(v string) predicate.Listing
- func TitleGT(v string) predicate.Listing
- func TitleGTE(v string) predicate.Listing
- func TitleHasPrefix(v string) predicate.Listing
- func TitleHasSuffix(v string) predicate.Listing
- func TitleIn(vs ...string) predicate.Listing
- func TitleLT(v string) predicate.Listing
- func TitleLTE(v string) predicate.Listing
- func TitleNEQ(v string) predicate.Listing
- func TitleNotIn(vs ...string) predicate.Listing
- func UpdatedAt(v time.Time) predicate.Listing
- func UpdatedAtEQ(v time.Time) predicate.Listing
- func UpdatedAtGT(v time.Time) predicate.Listing
- func UpdatedAtGTE(v time.Time) predicate.Listing
- func UpdatedAtIn(vs ...time.Time) predicate.Listing
- func UpdatedAtLT(v time.Time) predicate.Listing
- func UpdatedAtLTE(v time.Time) predicate.Listing
- func UpdatedAtNEQ(v time.Time) predicate.Listing
- func UpdatedAtNotIn(vs ...time.Time) predicate.Listing
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatorOrgField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCreatorOrgID(opts ...sql.OrderTermOption) OrderOption
- func ByCurrency(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLicenses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLicensesCount(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByPriceCents(opts ...sql.OrderTermOption) OrderOption
- func ByPricingModel(opts ...sql.OrderTermOption) OrderOption
- func ByProductID(opts ...sql.OrderTermOption) OrderOption
- func ByProductType(opts ...sql.OrderTermOption) OrderOption
- func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type PricingModel
- type Status
Constants ¶
const ( // Label holds the string label denoting the listing type in the database. Label = "listing" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatorOrgID holds the string denoting the creator_org_id field in the database. FieldCreatorOrgID = "creator_org_id" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldProductType holds the string denoting the product_type field in the database. FieldProductType = "product_type" // FieldProductID holds the string denoting the product_id field in the database. FieldProductID = "product_id" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldPricingModel holds the string denoting the pricing_model field in the database. FieldPricingModel = "pricing_model" // FieldPriceCents holds the string denoting the price_cents field in the database. FieldPriceCents = "price_cents" // FieldCurrency holds the string denoting the currency field in the database. FieldCurrency = "currency" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // 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" // FieldPublishedAt holds the string denoting the published_at field in the database. FieldPublishedAt = "published_at" // EdgeCreatorOrg holds the string denoting the creator_org edge name in mutations. EdgeCreatorOrg = "creator_org" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeLicenses holds the string denoting the licenses edge name in mutations. EdgeLicenses = "licenses" // Table holds the table name of the listing in the database. Table = "cf_listings" // CreatorOrgTable is the table that holds the creator_org relation/edge. CreatorOrgTable = "cf_listings" // CreatorOrgInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. CreatorOrgInverseTable = "cf_organizations" // CreatorOrgColumn is the table column denoting the creator_org relation/edge. CreatorOrgColumn = "creator_org_id" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "cf_listings" // OwnerInverseTable is the table name for the Principal entity. // It exists in this package in order to avoid circular dependency with the "principal" package. OwnerInverseTable = "cf_principals" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "owner_id" // LicensesTable is the table that holds the licenses relation/edge. LicensesTable = "cf_licenses" // LicensesInverseTable is the table name for the License entity. // It exists in this package in order to avoid circular dependency with the "license" package. LicensesInverseTable = "cf_licenses" // LicensesColumn is the table column denoting the licenses relation/edge. LicensesColumn = "listing_id" )
const DefaultPricingModel = PricingModelFree
PricingModelFree is the default value of the PricingModel enum.
const DefaultStatus = StatusDraft
StatusDraft is the default value of the Status enum.
Variables ¶
var ( // ProductTypeValidator is a validator for the "product_type" field. It is called by the builders before save. ProductTypeValidator func(string) error // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // DefaultPriceCents holds the default value on creation for the "price_cents" field. DefaultPriceCents int64 // DefaultCurrency holds the default value on creation for the "currency" field. DefaultCurrency string // CurrencyValidator is a validator for the "currency" field. It is called by the builders before save. CurrencyValidator func(string) error // 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, FieldCreatorOrgID, FieldOwnerID, FieldProductType, FieldProductID, FieldTitle, FieldDescription, FieldPricingModel, FieldPriceCents, FieldCurrency, FieldStatus, FieldMetadata, FieldCreatedAt, FieldUpdatedAt, FieldPublishedAt, }
Columns holds all SQL columns for listing 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 CreatorOrgID ¶
CreatorOrgID applies equality check predicate on the "creator_org_id" field. It's identical to CreatorOrgIDEQ.
func CreatorOrgIDEQ ¶
CreatorOrgIDEQ applies the EQ predicate on the "creator_org_id" field.
func CreatorOrgIDIn ¶
CreatorOrgIDIn applies the In predicate on the "creator_org_id" field.
func CreatorOrgIDNEQ ¶
CreatorOrgIDNEQ applies the NEQ predicate on the "creator_org_id" field.
func CreatorOrgIDNotIn ¶
CreatorOrgIDNotIn applies the NotIn predicate on the "creator_org_id" field.
func Currency ¶
Currency applies equality check predicate on the "currency" field. It's identical to CurrencyEQ.
func CurrencyContains ¶
CurrencyContains applies the Contains predicate on the "currency" field.
func CurrencyContainsFold ¶
CurrencyContainsFold applies the ContainsFold predicate on the "currency" field.
func CurrencyEQ ¶
CurrencyEQ applies the EQ predicate on the "currency" field.
func CurrencyEqualFold ¶
CurrencyEqualFold applies the EqualFold predicate on the "currency" field.
func CurrencyGT ¶
CurrencyGT applies the GT predicate on the "currency" field.
func CurrencyGTE ¶
CurrencyGTE applies the GTE predicate on the "currency" field.
func CurrencyHasPrefix ¶
CurrencyHasPrefix applies the HasPrefix predicate on the "currency" field.
func CurrencyHasSuffix ¶
CurrencyHasSuffix applies the HasSuffix predicate on the "currency" field.
func CurrencyIn ¶
CurrencyIn applies the In predicate on the "currency" field.
func CurrencyLT ¶
CurrencyLT applies the LT predicate on the "currency" field.
func CurrencyLTE ¶
CurrencyLTE applies the LTE predicate on the "currency" field.
func CurrencyNEQ ¶
CurrencyNEQ applies the NEQ predicate on the "currency" field.
func CurrencyNotIn ¶
CurrencyNotIn applies the NotIn predicate on the "currency" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasCreatorOrg ¶
HasCreatorOrg applies the HasEdge predicate on the "creator_org" edge.
func HasCreatorOrgWith ¶
func HasCreatorOrgWith(preds ...predicate.Organization) predicate.Listing
HasCreatorOrgWith applies the HasEdge predicate on the "creator_org" edge with a given conditions (other predicates).
func HasLicenses ¶
HasLicenses applies the HasEdge predicate on the "licenses" edge.
func HasLicensesWith ¶
HasLicensesWith applies the HasEdge predicate on the "licenses" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func OwnerID ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func PriceCents ¶
PriceCents applies equality check predicate on the "price_cents" field. It's identical to PriceCentsEQ.
func PriceCentsEQ ¶
PriceCentsEQ applies the EQ predicate on the "price_cents" field.
func PriceCentsGT ¶
PriceCentsGT applies the GT predicate on the "price_cents" field.
func PriceCentsGTE ¶
PriceCentsGTE applies the GTE predicate on the "price_cents" field.
func PriceCentsIn ¶
PriceCentsIn applies the In predicate on the "price_cents" field.
func PriceCentsLT ¶
PriceCentsLT applies the LT predicate on the "price_cents" field.
func PriceCentsLTE ¶
PriceCentsLTE applies the LTE predicate on the "price_cents" field.
func PriceCentsNEQ ¶
PriceCentsNEQ applies the NEQ predicate on the "price_cents" field.
func PriceCentsNotIn ¶
PriceCentsNotIn applies the NotIn predicate on the "price_cents" field.
func PricingModelEQ ¶
func PricingModelEQ(v PricingModel) predicate.Listing
PricingModelEQ applies the EQ predicate on the "pricing_model" field.
func PricingModelIn ¶
func PricingModelIn(vs ...PricingModel) predicate.Listing
PricingModelIn applies the In predicate on the "pricing_model" field.
func PricingModelNEQ ¶
func PricingModelNEQ(v PricingModel) predicate.Listing
PricingModelNEQ applies the NEQ predicate on the "pricing_model" field.
func PricingModelNotIn ¶
func PricingModelNotIn(vs ...PricingModel) predicate.Listing
PricingModelNotIn applies the NotIn predicate on the "pricing_model" field.
func PricingModelValidator ¶
func PricingModelValidator(pm PricingModel) error
PricingModelValidator is a validator for the "pricing_model" field enum values. It is called by the builders before save.
func ProductID ¶
ProductID applies equality check predicate on the "product_id" field. It's identical to ProductIDEQ.
func ProductIDEQ ¶
ProductIDEQ applies the EQ predicate on the "product_id" field.
func ProductIDGT ¶
ProductIDGT applies the GT predicate on the "product_id" field.
func ProductIDGTE ¶
ProductIDGTE applies the GTE predicate on the "product_id" field.
func ProductIDIn ¶
ProductIDIn applies the In predicate on the "product_id" field.
func ProductIDIsNil ¶
ProductIDIsNil applies the IsNil predicate on the "product_id" field.
func ProductIDLT ¶
ProductIDLT applies the LT predicate on the "product_id" field.
func ProductIDLTE ¶
ProductIDLTE applies the LTE predicate on the "product_id" field.
func ProductIDNEQ ¶
ProductIDNEQ applies the NEQ predicate on the "product_id" field.
func ProductIDNotIn ¶
ProductIDNotIn applies the NotIn predicate on the "product_id" field.
func ProductIDNotNil ¶
ProductIDNotNil applies the NotNil predicate on the "product_id" field.
func ProductType ¶
ProductType applies equality check predicate on the "product_type" field. It's identical to ProductTypeEQ.
func ProductTypeContains ¶
ProductTypeContains applies the Contains predicate on the "product_type" field.
func ProductTypeContainsFold ¶
ProductTypeContainsFold applies the ContainsFold predicate on the "product_type" field.
func ProductTypeEQ ¶
ProductTypeEQ applies the EQ predicate on the "product_type" field.
func ProductTypeEqualFold ¶
ProductTypeEqualFold applies the EqualFold predicate on the "product_type" field.
func ProductTypeGT ¶
ProductTypeGT applies the GT predicate on the "product_type" field.
func ProductTypeGTE ¶
ProductTypeGTE applies the GTE predicate on the "product_type" field.
func ProductTypeHasPrefix ¶
ProductTypeHasPrefix applies the HasPrefix predicate on the "product_type" field.
func ProductTypeHasSuffix ¶
ProductTypeHasSuffix applies the HasSuffix predicate on the "product_type" field.
func ProductTypeIn ¶
ProductTypeIn applies the In predicate on the "product_type" field.
func ProductTypeLT ¶
ProductTypeLT applies the LT predicate on the "product_type" field.
func ProductTypeLTE ¶
ProductTypeLTE applies the LTE predicate on the "product_type" field.
func ProductTypeNEQ ¶
ProductTypeNEQ applies the NEQ predicate on the "product_type" field.
func ProductTypeNotIn ¶
ProductTypeNotIn applies the NotIn predicate on the "product_type" field.
func PublishedAt ¶
PublishedAt applies equality check predicate on the "published_at" field. It's identical to PublishedAtEQ.
func PublishedAtEQ ¶
PublishedAtEQ applies the EQ predicate on the "published_at" field.
func PublishedAtGT ¶
PublishedAtGT applies the GT predicate on the "published_at" field.
func PublishedAtGTE ¶
PublishedAtGTE applies the GTE predicate on the "published_at" field.
func PublishedAtIn ¶
PublishedAtIn applies the In predicate on the "published_at" field.
func PublishedAtIsNil ¶
PublishedAtIsNil applies the IsNil predicate on the "published_at" field.
func PublishedAtLT ¶
PublishedAtLT applies the LT predicate on the "published_at" field.
func PublishedAtLTE ¶
PublishedAtLTE applies the LTE predicate on the "published_at" field.
func PublishedAtNEQ ¶
PublishedAtNEQ applies the NEQ predicate on the "published_at" field.
func PublishedAtNotIn ¶
PublishedAtNotIn applies the NotIn predicate on the "published_at" field.
func PublishedAtNotNil ¶
PublishedAtNotNil applies the NotNil predicate on the "published_at" field.
func StatusNotIn ¶
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 Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Listing queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatorOrgField ¶
func ByCreatorOrgField(field string, opts ...sql.OrderTermOption) OrderOption
ByCreatorOrgField orders the results by creator_org field.
func ByCreatorOrgID ¶
func ByCreatorOrgID(opts ...sql.OrderTermOption) OrderOption
ByCreatorOrgID orders the results by the creator_org_id field.
func ByCurrency ¶
func ByCurrency(opts ...sql.OrderTermOption) OrderOption
ByCurrency orders the results by the currency field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLicenses ¶
func ByLicenses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByLicenses orders the results by licenses terms.
func ByLicensesCount ¶
func ByLicensesCount(opts ...sql.OrderTermOption) OrderOption
ByLicensesCount orders the results by licenses count.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByOwnerID ¶
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
ByOwnerID orders the results by the owner_id field.
func ByPriceCents ¶
func ByPriceCents(opts ...sql.OrderTermOption) OrderOption
ByPriceCents orders the results by the price_cents field.
func ByPricingModel ¶
func ByPricingModel(opts ...sql.OrderTermOption) OrderOption
ByPricingModel orders the results by the pricing_model field.
func ByProductID ¶
func ByProductID(opts ...sql.OrderTermOption) OrderOption
ByProductID orders the results by the product_id field.
func ByProductType ¶
func ByProductType(opts ...sql.OrderTermOption) OrderOption
ByProductType orders the results by the product_type field.
func ByPublishedAt ¶
func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption
ByPublishedAt orders the results by the published_at field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
type PricingModel ¶
type PricingModel string
PricingModel defines the type for the "pricing_model" enum field.
const ( PricingModelFree PricingModel = "free" PricingModelOneTime PricingModel = "one_time" PricingModelSubscription PricingModel = "subscription" PricingModelPerSeat PricingModel = "per_seat" )
PricingModel values.
func (PricingModel) String ¶
func (pm PricingModel) String() string