license

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 license type in the database.
	Label = "license"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldListingID holds the string denoting the listing_id field in the database.
	FieldListingID = "listing_id"
	// FieldOrganizationID holds the string denoting the organization_id field in the database.
	FieldOrganizationID = "organization_id"
	// FieldPurchasedBy holds the string denoting the purchased_by field in the database.
	FieldPurchasedBy = "purchased_by"
	// FieldLicenseType holds the string denoting the license_type field in the database.
	FieldLicenseType = "license_type"
	// FieldSeats holds the string denoting the seats field in the database.
	FieldSeats = "seats"
	// FieldUsedSeats holds the string denoting the used_seats field in the database.
	FieldUsedSeats = "used_seats"
	// FieldValidFrom holds the string denoting the valid_from field in the database.
	FieldValidFrom = "valid_from"
	// FieldValidUntil holds the string denoting the valid_until field in the database.
	FieldValidUntil = "valid_until"
	// FieldStripeSubscriptionID holds the string denoting the stripe_subscription_id field in the database.
	FieldStripeSubscriptionID = "stripe_subscription_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"
	// EdgeListing holds the string denoting the listing edge name in mutations.
	EdgeListing = "listing"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgePurchaser holds the string denoting the purchaser edge name in mutations.
	EdgePurchaser = "purchaser"
	// EdgeSeatAssignments holds the string denoting the seat_assignments edge name in mutations.
	EdgeSeatAssignments = "seat_assignments"
	// Table holds the table name of the license in the database.
	Table = "cf_licenses"
	// ListingTable is the table that holds the listing relation/edge.
	ListingTable = "cf_licenses"
	// ListingInverseTable is the table name for the Listing entity.
	// It exists in this package in order to avoid circular dependency with the "listing" package.
	ListingInverseTable = "cf_listings"
	// ListingColumn is the table column denoting the listing relation/edge.
	ListingColumn = "listing_id"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "cf_licenses"
	// OrganizationInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationInverseTable = "cf_organizations"
	// OrganizationColumn is the table column denoting the organization relation/edge.
	OrganizationColumn = "organization_id"
	// PurchaserTable is the table that holds the purchaser relation/edge.
	PurchaserTable = "cf_licenses"
	// PurchaserInverseTable is the table name for the Principal entity.
	// It exists in this package in order to avoid circular dependency with the "principal" package.
	PurchaserInverseTable = "cf_principals"
	// PurchaserColumn is the table column denoting the purchaser relation/edge.
	PurchaserColumn = "purchased_by"
	// SeatAssignmentsTable is the table that holds the seat_assignments relation/edge.
	SeatAssignmentsTable = "cf_seat_assignments"
	// SeatAssignmentsInverseTable is the table name for the SeatAssignment entity.
	// It exists in this package in order to avoid circular dependency with the "seatassignment" package.
	SeatAssignmentsInverseTable = "cf_seat_assignments"
	// SeatAssignmentsColumn is the table column denoting the seat_assignments relation/edge.
	SeatAssignmentsColumn = "license_id"
)
View Source
const DefaultLicenseType = LicenseTypeUnlimited

LicenseTypeUnlimited is the default value of the LicenseType enum.

Variables

View Source
var (
	// DefaultUsedSeats holds the default value on creation for the "used_seats" field.
	DefaultUsedSeats int
	// DefaultValidFrom holds the default value on creation for the "valid_from" field.
	DefaultValidFrom 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
)

Columns holds all SQL columns for license fields.

Functions

func And

func And(predicates ...predicate.License) predicate.License

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.License

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.License

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.License

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.License

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.License

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.License

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.License

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

func CreatedAtNotIn

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

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

func HasListing

func HasListing() predicate.License

HasListing applies the HasEdge predicate on the "listing" edge.

func HasListingWith

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

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

func HasOrganization

func HasOrganization() predicate.License

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.License

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

func HasPurchaser

func HasPurchaser() predicate.License

HasPurchaser applies the HasEdge predicate on the "purchaser" edge.

func HasPurchaserWith

func HasPurchaserWith(preds ...predicate.Principal) predicate.License

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

func HasSeatAssignments

func HasSeatAssignments() predicate.License

HasSeatAssignments applies the HasEdge predicate on the "seat_assignments" edge.

func HasSeatAssignmentsWith

func HasSeatAssignmentsWith(preds ...predicate.SeatAssignment) predicate.License

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

func ID

func ID(id uuid.UUID) predicate.License

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.License

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.License

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.License

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.License

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.License

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.License

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LicenseTypeEQ

func LicenseTypeEQ(v LicenseType) predicate.License

LicenseTypeEQ applies the EQ predicate on the "license_type" field.

func LicenseTypeIn

func LicenseTypeIn(vs ...LicenseType) predicate.License

LicenseTypeIn applies the In predicate on the "license_type" field.

func LicenseTypeNEQ

func LicenseTypeNEQ(v LicenseType) predicate.License

LicenseTypeNEQ applies the NEQ predicate on the "license_type" field.

func LicenseTypeNotIn

func LicenseTypeNotIn(vs ...LicenseType) predicate.License

LicenseTypeNotIn applies the NotIn predicate on the "license_type" field.

func LicenseTypeValidator

func LicenseTypeValidator(lt LicenseType) error

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

func ListingID

func ListingID(v uuid.UUID) predicate.License

ListingID applies equality check predicate on the "listing_id" field. It's identical to ListingIDEQ.

func ListingIDEQ

func ListingIDEQ(v uuid.UUID) predicate.License

ListingIDEQ applies the EQ predicate on the "listing_id" field.

func ListingIDIn

func ListingIDIn(vs ...uuid.UUID) predicate.License

ListingIDIn applies the In predicate on the "listing_id" field.

func ListingIDNEQ

func ListingIDNEQ(v uuid.UUID) predicate.License

ListingIDNEQ applies the NEQ predicate on the "listing_id" field.

func ListingIDNotIn

func ListingIDNotIn(vs ...uuid.UUID) predicate.License

ListingIDNotIn applies the NotIn predicate on the "listing_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.License) predicate.License

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.License

OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.License

OrganizationIDEQ applies the EQ predicate on the "organization_id" field.

func OrganizationIDIn

func OrganizationIDIn(vs ...uuid.UUID) predicate.License

OrganizationIDIn applies the In predicate on the "organization_id" field.

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.License

OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.

func OrganizationIDNotIn

func OrganizationIDNotIn(vs ...uuid.UUID) predicate.License

OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.

func PurchasedBy

func PurchasedBy(v uuid.UUID) predicate.License

PurchasedBy applies equality check predicate on the "purchased_by" field. It's identical to PurchasedByEQ.

func PurchasedByEQ

func PurchasedByEQ(v uuid.UUID) predicate.License

PurchasedByEQ applies the EQ predicate on the "purchased_by" field.

func PurchasedByIn

func PurchasedByIn(vs ...uuid.UUID) predicate.License

PurchasedByIn applies the In predicate on the "purchased_by" field.

func PurchasedByNEQ

func PurchasedByNEQ(v uuid.UUID) predicate.License

PurchasedByNEQ applies the NEQ predicate on the "purchased_by" field.

func PurchasedByNotIn

func PurchasedByNotIn(vs ...uuid.UUID) predicate.License

PurchasedByNotIn applies the NotIn predicate on the "purchased_by" field.

func Seats

func Seats(v int) predicate.License

Seats applies equality check predicate on the "seats" field. It's identical to SeatsEQ.

func SeatsEQ

func SeatsEQ(v int) predicate.License

SeatsEQ applies the EQ predicate on the "seats" field.

func SeatsGT

func SeatsGT(v int) predicate.License

SeatsGT applies the GT predicate on the "seats" field.

func SeatsGTE

func SeatsGTE(v int) predicate.License

SeatsGTE applies the GTE predicate on the "seats" field.

func SeatsIn

func SeatsIn(vs ...int) predicate.License

SeatsIn applies the In predicate on the "seats" field.

func SeatsIsNil

func SeatsIsNil() predicate.License

SeatsIsNil applies the IsNil predicate on the "seats" field.

func SeatsLT

func SeatsLT(v int) predicate.License

SeatsLT applies the LT predicate on the "seats" field.

func SeatsLTE

func SeatsLTE(v int) predicate.License

SeatsLTE applies the LTE predicate on the "seats" field.

func SeatsNEQ

func SeatsNEQ(v int) predicate.License

SeatsNEQ applies the NEQ predicate on the "seats" field.

func SeatsNotIn

func SeatsNotIn(vs ...int) predicate.License

SeatsNotIn applies the NotIn predicate on the "seats" field.

func SeatsNotNil

func SeatsNotNil() predicate.License

SeatsNotNil applies the NotNil predicate on the "seats" field.

func StripeSubscriptionID

func StripeSubscriptionID(v string) predicate.License

StripeSubscriptionID applies equality check predicate on the "stripe_subscription_id" field. It's identical to StripeSubscriptionIDEQ.

func StripeSubscriptionIDContains

func StripeSubscriptionIDContains(v string) predicate.License

StripeSubscriptionIDContains applies the Contains predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDContainsFold

func StripeSubscriptionIDContainsFold(v string) predicate.License

StripeSubscriptionIDContainsFold applies the ContainsFold predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDEQ

func StripeSubscriptionIDEQ(v string) predicate.License

StripeSubscriptionIDEQ applies the EQ predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDEqualFold

func StripeSubscriptionIDEqualFold(v string) predicate.License

StripeSubscriptionIDEqualFold applies the EqualFold predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDGT

func StripeSubscriptionIDGT(v string) predicate.License

StripeSubscriptionIDGT applies the GT predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDGTE

func StripeSubscriptionIDGTE(v string) predicate.License

StripeSubscriptionIDGTE applies the GTE predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDHasPrefix

func StripeSubscriptionIDHasPrefix(v string) predicate.License

StripeSubscriptionIDHasPrefix applies the HasPrefix predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDHasSuffix

func StripeSubscriptionIDHasSuffix(v string) predicate.License

StripeSubscriptionIDHasSuffix applies the HasSuffix predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDIn

func StripeSubscriptionIDIn(vs ...string) predicate.License

StripeSubscriptionIDIn applies the In predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDIsNil

func StripeSubscriptionIDIsNil() predicate.License

StripeSubscriptionIDIsNil applies the IsNil predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDLT

func StripeSubscriptionIDLT(v string) predicate.License

StripeSubscriptionIDLT applies the LT predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDLTE

func StripeSubscriptionIDLTE(v string) predicate.License

StripeSubscriptionIDLTE applies the LTE predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDNEQ

func StripeSubscriptionIDNEQ(v string) predicate.License

StripeSubscriptionIDNEQ applies the NEQ predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDNotIn

func StripeSubscriptionIDNotIn(vs ...string) predicate.License

StripeSubscriptionIDNotIn applies the NotIn predicate on the "stripe_subscription_id" field.

func StripeSubscriptionIDNotNil

func StripeSubscriptionIDNotNil() predicate.License

StripeSubscriptionIDNotNil applies the NotNil predicate on the "stripe_subscription_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.License

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.License

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.License

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.License

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.License

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.License

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.License

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

func UpdatedAtNotIn

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

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

func UsedSeats

func UsedSeats(v int) predicate.License

UsedSeats applies equality check predicate on the "used_seats" field. It's identical to UsedSeatsEQ.

func UsedSeatsEQ

func UsedSeatsEQ(v int) predicate.License

UsedSeatsEQ applies the EQ predicate on the "used_seats" field.

func UsedSeatsGT

func UsedSeatsGT(v int) predicate.License

UsedSeatsGT applies the GT predicate on the "used_seats" field.

func UsedSeatsGTE

func UsedSeatsGTE(v int) predicate.License

UsedSeatsGTE applies the GTE predicate on the "used_seats" field.

func UsedSeatsIn

func UsedSeatsIn(vs ...int) predicate.License

UsedSeatsIn applies the In predicate on the "used_seats" field.

func UsedSeatsLT

func UsedSeatsLT(v int) predicate.License

UsedSeatsLT applies the LT predicate on the "used_seats" field.

func UsedSeatsLTE

func UsedSeatsLTE(v int) predicate.License

UsedSeatsLTE applies the LTE predicate on the "used_seats" field.

func UsedSeatsNEQ

func UsedSeatsNEQ(v int) predicate.License

UsedSeatsNEQ applies the NEQ predicate on the "used_seats" field.

func UsedSeatsNotIn

func UsedSeatsNotIn(vs ...int) predicate.License

UsedSeatsNotIn applies the NotIn predicate on the "used_seats" field.

func ValidColumn

func ValidColumn(column string) bool

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

func ValidFrom

func ValidFrom(v time.Time) predicate.License

ValidFrom applies equality check predicate on the "valid_from" field. It's identical to ValidFromEQ.

func ValidFromEQ

func ValidFromEQ(v time.Time) predicate.License

ValidFromEQ applies the EQ predicate on the "valid_from" field.

func ValidFromGT

func ValidFromGT(v time.Time) predicate.License

ValidFromGT applies the GT predicate on the "valid_from" field.

func ValidFromGTE

func ValidFromGTE(v time.Time) predicate.License

ValidFromGTE applies the GTE predicate on the "valid_from" field.

func ValidFromIn

func ValidFromIn(vs ...time.Time) predicate.License

ValidFromIn applies the In predicate on the "valid_from" field.

func ValidFromLT

func ValidFromLT(v time.Time) predicate.License

ValidFromLT applies the LT predicate on the "valid_from" field.

func ValidFromLTE

func ValidFromLTE(v time.Time) predicate.License

ValidFromLTE applies the LTE predicate on the "valid_from" field.

func ValidFromNEQ

func ValidFromNEQ(v time.Time) predicate.License

ValidFromNEQ applies the NEQ predicate on the "valid_from" field.

func ValidFromNotIn

func ValidFromNotIn(vs ...time.Time) predicate.License

ValidFromNotIn applies the NotIn predicate on the "valid_from" field.

func ValidUntil

func ValidUntil(v time.Time) predicate.License

ValidUntil applies equality check predicate on the "valid_until" field. It's identical to ValidUntilEQ.

func ValidUntilEQ

func ValidUntilEQ(v time.Time) predicate.License

ValidUntilEQ applies the EQ predicate on the "valid_until" field.

func ValidUntilGT

func ValidUntilGT(v time.Time) predicate.License

ValidUntilGT applies the GT predicate on the "valid_until" field.

func ValidUntilGTE

func ValidUntilGTE(v time.Time) predicate.License

ValidUntilGTE applies the GTE predicate on the "valid_until" field.

func ValidUntilIn

func ValidUntilIn(vs ...time.Time) predicate.License

ValidUntilIn applies the In predicate on the "valid_until" field.

func ValidUntilIsNil

func ValidUntilIsNil() predicate.License

ValidUntilIsNil applies the IsNil predicate on the "valid_until" field.

func ValidUntilLT

func ValidUntilLT(v time.Time) predicate.License

ValidUntilLT applies the LT predicate on the "valid_until" field.

func ValidUntilLTE

func ValidUntilLTE(v time.Time) predicate.License

ValidUntilLTE applies the LTE predicate on the "valid_until" field.

func ValidUntilNEQ

func ValidUntilNEQ(v time.Time) predicate.License

ValidUntilNEQ applies the NEQ predicate on the "valid_until" field.

func ValidUntilNotIn

func ValidUntilNotIn(vs ...time.Time) predicate.License

ValidUntilNotIn applies the NotIn predicate on the "valid_until" field.

func ValidUntilNotNil

func ValidUntilNotNil() predicate.License

ValidUntilNotNil applies the NotNil predicate on the "valid_until" field.

Types

type LicenseType

type LicenseType string

LicenseType defines the type for the "license_type" enum field.

const (
	LicenseTypeSeatBased LicenseType = "seat_based"
	LicenseTypeTeam      LicenseType = "team"
	LicenseTypeUnlimited LicenseType = "unlimited"
)

LicenseType values.

func (LicenseType) String

func (lt LicenseType) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the License queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLicenseType

func ByLicenseType(opts ...sql.OrderTermOption) OrderOption

ByLicenseType orders the results by the license_type field.

func ByListingField

func ByListingField(field string, opts ...sql.OrderTermOption) OrderOption

ByListingField orders the results by listing field.

func ByListingID

func ByListingID(opts ...sql.OrderTermOption) OrderOption

ByListingID orders the results by the listing_id field.

func ByOrganizationField

func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption

ByOrganizationField orders the results by organization field.

func ByOrganizationID

func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption

ByOrganizationID orders the results by the organization_id field.

func ByPurchasedBy

func ByPurchasedBy(opts ...sql.OrderTermOption) OrderOption

ByPurchasedBy orders the results by the purchased_by field.

func ByPurchaserField

func ByPurchaserField(field string, opts ...sql.OrderTermOption) OrderOption

ByPurchaserField orders the results by purchaser field.

func BySeatAssignments

func BySeatAssignments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

BySeatAssignments orders the results by seat_assignments terms.

func BySeatAssignmentsCount

func BySeatAssignmentsCount(opts ...sql.OrderTermOption) OrderOption

BySeatAssignmentsCount orders the results by seat_assignments count.

func BySeats

func BySeats(opts ...sql.OrderTermOption) OrderOption

BySeats orders the results by the seats field.

func ByStripeSubscriptionID

func ByStripeSubscriptionID(opts ...sql.OrderTermOption) OrderOption

ByStripeSubscriptionID orders the results by the stripe_subscription_id field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUsedSeats

func ByUsedSeats(opts ...sql.OrderTermOption) OrderOption

ByUsedSeats orders the results by the used_seats field.

func ByValidFrom

func ByValidFrom(opts ...sql.OrderTermOption) OrderOption

ByValidFrom orders the results by the valid_from field.

func ByValidUntil

func ByValidUntil(opts ...sql.OrderTermOption) OrderOption

ByValidUntil orders the results by the valid_until field.

Jump to

Keyboard shortcuts

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