listing

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultPricingModel = PricingModelFree

PricingModelFree is the default value of the PricingModel enum.

View Source
const DefaultStatus = StatusDraft

StatusDraft is the default value of the Status enum.

Variables

View Source
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
)

Columns holds all SQL columns for listing fields.

Functions

func And

func And(predicates ...predicate.Listing) predicate.Listing

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Listing

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Listing

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Listing

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Listing

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Listing

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Listing

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Listing

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Listing

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Listing

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatorOrgID

func CreatorOrgID(v uuid.UUID) predicate.Listing

CreatorOrgID applies equality check predicate on the "creator_org_id" field. It's identical to CreatorOrgIDEQ.

func CreatorOrgIDEQ

func CreatorOrgIDEQ(v uuid.UUID) predicate.Listing

CreatorOrgIDEQ applies the EQ predicate on the "creator_org_id" field.

func CreatorOrgIDIn

func CreatorOrgIDIn(vs ...uuid.UUID) predicate.Listing

CreatorOrgIDIn applies the In predicate on the "creator_org_id" field.

func CreatorOrgIDNEQ

func CreatorOrgIDNEQ(v uuid.UUID) predicate.Listing

CreatorOrgIDNEQ applies the NEQ predicate on the "creator_org_id" field.

func CreatorOrgIDNotIn

func CreatorOrgIDNotIn(vs ...uuid.UUID) predicate.Listing

CreatorOrgIDNotIn applies the NotIn predicate on the "creator_org_id" field.

func Currency

func Currency(v string) predicate.Listing

Currency applies equality check predicate on the "currency" field. It's identical to CurrencyEQ.

func CurrencyContains

func CurrencyContains(v string) predicate.Listing

CurrencyContains applies the Contains predicate on the "currency" field.

func CurrencyContainsFold

func CurrencyContainsFold(v string) predicate.Listing

CurrencyContainsFold applies the ContainsFold predicate on the "currency" field.

func CurrencyEQ

func CurrencyEQ(v string) predicate.Listing

CurrencyEQ applies the EQ predicate on the "currency" field.

func CurrencyEqualFold

func CurrencyEqualFold(v string) predicate.Listing

CurrencyEqualFold applies the EqualFold predicate on the "currency" field.

func CurrencyGT

func CurrencyGT(v string) predicate.Listing

CurrencyGT applies the GT predicate on the "currency" field.

func CurrencyGTE

func CurrencyGTE(v string) predicate.Listing

CurrencyGTE applies the GTE predicate on the "currency" field.

func CurrencyHasPrefix

func CurrencyHasPrefix(v string) predicate.Listing

CurrencyHasPrefix applies the HasPrefix predicate on the "currency" field.

func CurrencyHasSuffix

func CurrencyHasSuffix(v string) predicate.Listing

CurrencyHasSuffix applies the HasSuffix predicate on the "currency" field.

func CurrencyIn

func CurrencyIn(vs ...string) predicate.Listing

CurrencyIn applies the In predicate on the "currency" field.

func CurrencyLT

func CurrencyLT(v string) predicate.Listing

CurrencyLT applies the LT predicate on the "currency" field.

func CurrencyLTE

func CurrencyLTE(v string) predicate.Listing

CurrencyLTE applies the LTE predicate on the "currency" field.

func CurrencyNEQ

func CurrencyNEQ(v string) predicate.Listing

CurrencyNEQ applies the NEQ predicate on the "currency" field.

func CurrencyNotIn

func CurrencyNotIn(vs ...string) predicate.Listing

CurrencyNotIn applies the NotIn predicate on the "currency" field.

func Description

func Description(v string) predicate.Listing

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Listing

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Listing

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Listing

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Listing

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Listing

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Listing

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Listing

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Listing

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Listing

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Listing

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Listing

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Listing

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Listing

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Listing

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Listing

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasCreatorOrg

func HasCreatorOrg() predicate.Listing

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

func HasLicenses() predicate.Listing

HasLicenses applies the HasEdge predicate on the "licenses" edge.

func HasLicensesWith

func HasLicensesWith(preds ...predicate.License) predicate.Listing

HasLicensesWith applies the HasEdge predicate on the "licenses" edge with a given conditions (other predicates).

func HasOwner

func HasOwner() predicate.Listing

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Principal) predicate.Listing

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Listing

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Listing

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Listing

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Listing

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Listing

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Listing

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Listing

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Listing

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Listing

IDNotIn applies the NotIn predicate on the ID field.

func MetadataIsNil

func MetadataIsNil() predicate.Listing

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Listing

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Listing) predicate.Listing

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v uuid.UUID) predicate.Listing

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDEQ

func OwnerIDEQ(v uuid.UUID) predicate.Listing

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...uuid.UUID) predicate.Listing

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v uuid.UUID) predicate.Listing

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...uuid.UUID) predicate.Listing

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func PriceCents

func PriceCents(v int64) predicate.Listing

PriceCents applies equality check predicate on the "price_cents" field. It's identical to PriceCentsEQ.

func PriceCentsEQ

func PriceCentsEQ(v int64) predicate.Listing

PriceCentsEQ applies the EQ predicate on the "price_cents" field.

func PriceCentsGT

func PriceCentsGT(v int64) predicate.Listing

PriceCentsGT applies the GT predicate on the "price_cents" field.

func PriceCentsGTE

func PriceCentsGTE(v int64) predicate.Listing

PriceCentsGTE applies the GTE predicate on the "price_cents" field.

func PriceCentsIn

func PriceCentsIn(vs ...int64) predicate.Listing

PriceCentsIn applies the In predicate on the "price_cents" field.

func PriceCentsLT

func PriceCentsLT(v int64) predicate.Listing

PriceCentsLT applies the LT predicate on the "price_cents" field.

func PriceCentsLTE

func PriceCentsLTE(v int64) predicate.Listing

PriceCentsLTE applies the LTE predicate on the "price_cents" field.

func PriceCentsNEQ

func PriceCentsNEQ(v int64) predicate.Listing

PriceCentsNEQ applies the NEQ predicate on the "price_cents" field.

func PriceCentsNotIn

func PriceCentsNotIn(vs ...int64) predicate.Listing

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

func ProductID(v uuid.UUID) predicate.Listing

ProductID applies equality check predicate on the "product_id" field. It's identical to ProductIDEQ.

func ProductIDEQ

func ProductIDEQ(v uuid.UUID) predicate.Listing

ProductIDEQ applies the EQ predicate on the "product_id" field.

func ProductIDGT

func ProductIDGT(v uuid.UUID) predicate.Listing

ProductIDGT applies the GT predicate on the "product_id" field.

func ProductIDGTE

func ProductIDGTE(v uuid.UUID) predicate.Listing

ProductIDGTE applies the GTE predicate on the "product_id" field.

func ProductIDIn

func ProductIDIn(vs ...uuid.UUID) predicate.Listing

ProductIDIn applies the In predicate on the "product_id" field.

func ProductIDIsNil

func ProductIDIsNil() predicate.Listing

ProductIDIsNil applies the IsNil predicate on the "product_id" field.

func ProductIDLT

func ProductIDLT(v uuid.UUID) predicate.Listing

ProductIDLT applies the LT predicate on the "product_id" field.

func ProductIDLTE

func ProductIDLTE(v uuid.UUID) predicate.Listing

ProductIDLTE applies the LTE predicate on the "product_id" field.

func ProductIDNEQ

func ProductIDNEQ(v uuid.UUID) predicate.Listing

ProductIDNEQ applies the NEQ predicate on the "product_id" field.

func ProductIDNotIn

func ProductIDNotIn(vs ...uuid.UUID) predicate.Listing

ProductIDNotIn applies the NotIn predicate on the "product_id" field.

func ProductIDNotNil

func ProductIDNotNil() predicate.Listing

ProductIDNotNil applies the NotNil predicate on the "product_id" field.

func ProductType

func ProductType(v string) predicate.Listing

ProductType applies equality check predicate on the "product_type" field. It's identical to ProductTypeEQ.

func ProductTypeContains

func ProductTypeContains(v string) predicate.Listing

ProductTypeContains applies the Contains predicate on the "product_type" field.

func ProductTypeContainsFold

func ProductTypeContainsFold(v string) predicate.Listing

ProductTypeContainsFold applies the ContainsFold predicate on the "product_type" field.

func ProductTypeEQ

func ProductTypeEQ(v string) predicate.Listing

ProductTypeEQ applies the EQ predicate on the "product_type" field.

func ProductTypeEqualFold

func ProductTypeEqualFold(v string) predicate.Listing

ProductTypeEqualFold applies the EqualFold predicate on the "product_type" field.

func ProductTypeGT

func ProductTypeGT(v string) predicate.Listing

ProductTypeGT applies the GT predicate on the "product_type" field.

func ProductTypeGTE

func ProductTypeGTE(v string) predicate.Listing

ProductTypeGTE applies the GTE predicate on the "product_type" field.

func ProductTypeHasPrefix

func ProductTypeHasPrefix(v string) predicate.Listing

ProductTypeHasPrefix applies the HasPrefix predicate on the "product_type" field.

func ProductTypeHasSuffix

func ProductTypeHasSuffix(v string) predicate.Listing

ProductTypeHasSuffix applies the HasSuffix predicate on the "product_type" field.

func ProductTypeIn

func ProductTypeIn(vs ...string) predicate.Listing

ProductTypeIn applies the In predicate on the "product_type" field.

func ProductTypeLT

func ProductTypeLT(v string) predicate.Listing

ProductTypeLT applies the LT predicate on the "product_type" field.

func ProductTypeLTE

func ProductTypeLTE(v string) predicate.Listing

ProductTypeLTE applies the LTE predicate on the "product_type" field.

func ProductTypeNEQ

func ProductTypeNEQ(v string) predicate.Listing

ProductTypeNEQ applies the NEQ predicate on the "product_type" field.

func ProductTypeNotIn

func ProductTypeNotIn(vs ...string) predicate.Listing

ProductTypeNotIn applies the NotIn predicate on the "product_type" field.

func PublishedAt

func PublishedAt(v time.Time) predicate.Listing

PublishedAt applies equality check predicate on the "published_at" field. It's identical to PublishedAtEQ.

func PublishedAtEQ

func PublishedAtEQ(v time.Time) predicate.Listing

PublishedAtEQ applies the EQ predicate on the "published_at" field.

func PublishedAtGT

func PublishedAtGT(v time.Time) predicate.Listing

PublishedAtGT applies the GT predicate on the "published_at" field.

func PublishedAtGTE

func PublishedAtGTE(v time.Time) predicate.Listing

PublishedAtGTE applies the GTE predicate on the "published_at" field.

func PublishedAtIn

func PublishedAtIn(vs ...time.Time) predicate.Listing

PublishedAtIn applies the In predicate on the "published_at" field.

func PublishedAtIsNil

func PublishedAtIsNil() predicate.Listing

PublishedAtIsNil applies the IsNil predicate on the "published_at" field.

func PublishedAtLT

func PublishedAtLT(v time.Time) predicate.Listing

PublishedAtLT applies the LT predicate on the "published_at" field.

func PublishedAtLTE

func PublishedAtLTE(v time.Time) predicate.Listing

PublishedAtLTE applies the LTE predicate on the "published_at" field.

func PublishedAtNEQ

func PublishedAtNEQ(v time.Time) predicate.Listing

PublishedAtNEQ applies the NEQ predicate on the "published_at" field.

func PublishedAtNotIn

func PublishedAtNotIn(vs ...time.Time) predicate.Listing

PublishedAtNotIn applies the NotIn predicate on the "published_at" field.

func PublishedAtNotNil

func PublishedAtNotNil() predicate.Listing

PublishedAtNotNil applies the NotNil predicate on the "published_at" field.

func StatusEQ

func StatusEQ(v Status) predicate.Listing

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Listing

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Listing

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Listing

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func Title

func Title(v string) predicate.Listing

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Listing

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Listing

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Listing

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Listing

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Listing

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Listing

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Listing

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Listing

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Listing

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Listing

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Listing

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Listing

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Listing

TitleNotIn applies the NotIn predicate on the "title" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Listing

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Listing

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Listing

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Listing

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Listing

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Listing

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Listing

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Listing

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Listing

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusDraft         Status = "draft"
	StatusPendingReview Status = "pending_review"
	StatusPublished     Status = "published"
	StatusArchived      Status = "archived"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL