Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.License) predicate.License
- func CreatedAt(v time.Time) predicate.License
- func CreatedAtEQ(v time.Time) predicate.License
- func CreatedAtGT(v time.Time) predicate.License
- func CreatedAtGTE(v time.Time) predicate.License
- func CreatedAtIn(vs ...time.Time) predicate.License
- func CreatedAtLT(v time.Time) predicate.License
- func CreatedAtLTE(v time.Time) predicate.License
- func CreatedAtNEQ(v time.Time) predicate.License
- func CreatedAtNotIn(vs ...time.Time) predicate.License
- func HasListing() predicate.License
- func HasListingWith(preds ...predicate.Listing) predicate.License
- func HasOrganization() predicate.License
- func HasOrganizationWith(preds ...predicate.Organization) predicate.License
- func HasPurchaser() predicate.License
- func HasPurchaserWith(preds ...predicate.Principal) predicate.License
- func HasSeatAssignments() predicate.License
- func HasSeatAssignmentsWith(preds ...predicate.SeatAssignment) predicate.License
- func ID(id uuid.UUID) predicate.License
- func IDEQ(id uuid.UUID) predicate.License
- func IDGT(id uuid.UUID) predicate.License
- func IDGTE(id uuid.UUID) predicate.License
- func IDIn(ids ...uuid.UUID) predicate.License
- func IDLT(id uuid.UUID) predicate.License
- func IDLTE(id uuid.UUID) predicate.License
- func IDNEQ(id uuid.UUID) predicate.License
- func IDNotIn(ids ...uuid.UUID) predicate.License
- func LicenseTypeEQ(v LicenseType) predicate.License
- func LicenseTypeIn(vs ...LicenseType) predicate.License
- func LicenseTypeNEQ(v LicenseType) predicate.License
- func LicenseTypeNotIn(vs ...LicenseType) predicate.License
- func LicenseTypeValidator(lt LicenseType) error
- func ListingID(v uuid.UUID) predicate.License
- func ListingIDEQ(v uuid.UUID) predicate.License
- func ListingIDIn(vs ...uuid.UUID) predicate.License
- func ListingIDNEQ(v uuid.UUID) predicate.License
- func ListingIDNotIn(vs ...uuid.UUID) predicate.License
- func Not(p predicate.License) predicate.License
- func Or(predicates ...predicate.License) predicate.License
- func OrganizationID(v uuid.UUID) predicate.License
- func OrganizationIDEQ(v uuid.UUID) predicate.License
- func OrganizationIDIn(vs ...uuid.UUID) predicate.License
- func OrganizationIDNEQ(v uuid.UUID) predicate.License
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.License
- func PurchasedBy(v uuid.UUID) predicate.License
- func PurchasedByEQ(v uuid.UUID) predicate.License
- func PurchasedByIn(vs ...uuid.UUID) predicate.License
- func PurchasedByNEQ(v uuid.UUID) predicate.License
- func PurchasedByNotIn(vs ...uuid.UUID) predicate.License
- func Seats(v int) predicate.License
- func SeatsEQ(v int) predicate.License
- func SeatsGT(v int) predicate.License
- func SeatsGTE(v int) predicate.License
- func SeatsIn(vs ...int) predicate.License
- func SeatsIsNil() predicate.License
- func SeatsLT(v int) predicate.License
- func SeatsLTE(v int) predicate.License
- func SeatsNEQ(v int) predicate.License
- func SeatsNotIn(vs ...int) predicate.License
- func SeatsNotNil() predicate.License
- func StripeSubscriptionID(v string) predicate.License
- func StripeSubscriptionIDContains(v string) predicate.License
- func StripeSubscriptionIDContainsFold(v string) predicate.License
- func StripeSubscriptionIDEQ(v string) predicate.License
- func StripeSubscriptionIDEqualFold(v string) predicate.License
- func StripeSubscriptionIDGT(v string) predicate.License
- func StripeSubscriptionIDGTE(v string) predicate.License
- func StripeSubscriptionIDHasPrefix(v string) predicate.License
- func StripeSubscriptionIDHasSuffix(v string) predicate.License
- func StripeSubscriptionIDIn(vs ...string) predicate.License
- func StripeSubscriptionIDIsNil() predicate.License
- func StripeSubscriptionIDLT(v string) predicate.License
- func StripeSubscriptionIDLTE(v string) predicate.License
- func StripeSubscriptionIDNEQ(v string) predicate.License
- func StripeSubscriptionIDNotIn(vs ...string) predicate.License
- func StripeSubscriptionIDNotNil() predicate.License
- func UpdatedAt(v time.Time) predicate.License
- func UpdatedAtEQ(v time.Time) predicate.License
- func UpdatedAtGT(v time.Time) predicate.License
- func UpdatedAtGTE(v time.Time) predicate.License
- func UpdatedAtIn(vs ...time.Time) predicate.License
- func UpdatedAtLT(v time.Time) predicate.License
- func UpdatedAtLTE(v time.Time) predicate.License
- func UpdatedAtNEQ(v time.Time) predicate.License
- func UpdatedAtNotIn(vs ...time.Time) predicate.License
- func UsedSeats(v int) predicate.License
- func UsedSeatsEQ(v int) predicate.License
- func UsedSeatsGT(v int) predicate.License
- func UsedSeatsGTE(v int) predicate.License
- func UsedSeatsIn(vs ...int) predicate.License
- func UsedSeatsLT(v int) predicate.License
- func UsedSeatsLTE(v int) predicate.License
- func UsedSeatsNEQ(v int) predicate.License
- func UsedSeatsNotIn(vs ...int) predicate.License
- func ValidColumn(column string) bool
- func ValidFrom(v time.Time) predicate.License
- func ValidFromEQ(v time.Time) predicate.License
- func ValidFromGT(v time.Time) predicate.License
- func ValidFromGTE(v time.Time) predicate.License
- func ValidFromIn(vs ...time.Time) predicate.License
- func ValidFromLT(v time.Time) predicate.License
- func ValidFromLTE(v time.Time) predicate.License
- func ValidFromNEQ(v time.Time) predicate.License
- func ValidFromNotIn(vs ...time.Time) predicate.License
- func ValidUntil(v time.Time) predicate.License
- func ValidUntilEQ(v time.Time) predicate.License
- func ValidUntilGT(v time.Time) predicate.License
- func ValidUntilGTE(v time.Time) predicate.License
- func ValidUntilIn(vs ...time.Time) predicate.License
- func ValidUntilIsNil() predicate.License
- func ValidUntilLT(v time.Time) predicate.License
- func ValidUntilLTE(v time.Time) predicate.License
- func ValidUntilNEQ(v time.Time) predicate.License
- func ValidUntilNotIn(vs ...time.Time) predicate.License
- func ValidUntilNotNil() predicate.License
- type LicenseType
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLicenseType(opts ...sql.OrderTermOption) OrderOption
- func ByListingField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByListingID(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByPurchasedBy(opts ...sql.OrderTermOption) OrderOption
- func ByPurchaserField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySeatAssignments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySeatAssignmentsCount(opts ...sql.OrderTermOption) OrderOption
- func BySeats(opts ...sql.OrderTermOption) OrderOption
- func ByStripeSubscriptionID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsedSeats(opts ...sql.OrderTermOption) OrderOption
- func ByValidFrom(opts ...sql.OrderTermOption) OrderOption
- func ByValidUntil(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" )
const DefaultLicenseType = LicenseTypeUnlimited
LicenseTypeUnlimited is the default value of the LicenseType enum.
Variables ¶
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 )
var Columns = []string{ FieldID, FieldListingID, FieldOrganizationID, FieldPurchasedBy, FieldLicenseType, FieldSeats, FieldUsedSeats, FieldValidFrom, FieldValidUntil, FieldStripeSubscriptionID, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for license 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 HasListing ¶
HasListing applies the HasEdge predicate on the "listing" edge.
func HasListingWith ¶
HasListingWith applies the HasEdge predicate on the "listing" edge with a given conditions (other predicates).
func HasOrganization ¶
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 ¶
HasPurchaser applies the HasEdge predicate on the "purchaser" edge.
func HasPurchaserWith ¶
HasPurchaserWith applies the HasEdge predicate on the "purchaser" edge with a given conditions (other predicates).
func HasSeatAssignments ¶
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 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 ¶
ListingID applies equality check predicate on the "listing_id" field. It's identical to ListingIDEQ.
func ListingIDEQ ¶
ListingIDEQ applies the EQ predicate on the "listing_id" field.
func ListingIDIn ¶
ListingIDIn applies the In predicate on the "listing_id" field.
func ListingIDNEQ ¶
ListingIDNEQ applies the NEQ predicate on the "listing_id" field.
func ListingIDNotIn ¶
ListingIDNotIn applies the NotIn predicate on the "listing_id" field.
func OrganizationID ¶
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDEQ ¶
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDIn ¶
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func PurchasedBy ¶
PurchasedBy applies equality check predicate on the "purchased_by" field. It's identical to PurchasedByEQ.
func PurchasedByEQ ¶
PurchasedByEQ applies the EQ predicate on the "purchased_by" field.
func PurchasedByIn ¶
PurchasedByIn applies the In predicate on the "purchased_by" field.
func PurchasedByNEQ ¶
PurchasedByNEQ applies the NEQ predicate on the "purchased_by" field.
func PurchasedByNotIn ¶
PurchasedByNotIn applies the NotIn predicate on the "purchased_by" field.
func Seats ¶
Seats applies equality check predicate on the "seats" field. It's identical to SeatsEQ.
func SeatsIsNil ¶
SeatsIsNil applies the IsNil predicate on the "seats" field.
func SeatsNotIn ¶
SeatsNotIn applies the NotIn predicate on the "seats" field.
func SeatsNotNil ¶
SeatsNotNil applies the NotNil predicate on the "seats" field.
func StripeSubscriptionID ¶
StripeSubscriptionID applies equality check predicate on the "stripe_subscription_id" field. It's identical to StripeSubscriptionIDEQ.
func StripeSubscriptionIDContains ¶
StripeSubscriptionIDContains applies the Contains predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDContainsFold ¶
StripeSubscriptionIDContainsFold applies the ContainsFold predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDEQ ¶
StripeSubscriptionIDEQ applies the EQ predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDEqualFold ¶
StripeSubscriptionIDEqualFold applies the EqualFold predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDGT ¶
StripeSubscriptionIDGT applies the GT predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDGTE ¶
StripeSubscriptionIDGTE applies the GTE predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDHasPrefix ¶
StripeSubscriptionIDHasPrefix applies the HasPrefix predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDHasSuffix ¶
StripeSubscriptionIDHasSuffix applies the HasSuffix predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDIn ¶
StripeSubscriptionIDIn applies the In predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDIsNil ¶
StripeSubscriptionIDIsNil applies the IsNil predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDLT ¶
StripeSubscriptionIDLT applies the LT predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDLTE ¶
StripeSubscriptionIDLTE applies the LTE predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDNEQ ¶
StripeSubscriptionIDNEQ applies the NEQ predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDNotIn ¶
StripeSubscriptionIDNotIn applies the NotIn predicate on the "stripe_subscription_id" field.
func StripeSubscriptionIDNotNil ¶
StripeSubscriptionIDNotNil applies the NotNil predicate on the "stripe_subscription_id" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UsedSeats ¶
UsedSeats applies equality check predicate on the "used_seats" field. It's identical to UsedSeatsEQ.
func UsedSeatsEQ ¶
UsedSeatsEQ applies the EQ predicate on the "used_seats" field.
func UsedSeatsGT ¶
UsedSeatsGT applies the GT predicate on the "used_seats" field.
func UsedSeatsGTE ¶
UsedSeatsGTE applies the GTE predicate on the "used_seats" field.
func UsedSeatsIn ¶
UsedSeatsIn applies the In predicate on the "used_seats" field.
func UsedSeatsLT ¶
UsedSeatsLT applies the LT predicate on the "used_seats" field.
func UsedSeatsLTE ¶
UsedSeatsLTE applies the LTE predicate on the "used_seats" field.
func UsedSeatsNEQ ¶
UsedSeatsNEQ applies the NEQ predicate on the "used_seats" field.
func UsedSeatsNotIn ¶
UsedSeatsNotIn applies the NotIn predicate on the "used_seats" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func ValidFrom ¶
ValidFrom applies equality check predicate on the "valid_from" field. It's identical to ValidFromEQ.
func ValidFromEQ ¶
ValidFromEQ applies the EQ predicate on the "valid_from" field.
func ValidFromGT ¶
ValidFromGT applies the GT predicate on the "valid_from" field.
func ValidFromGTE ¶
ValidFromGTE applies the GTE predicate on the "valid_from" field.
func ValidFromIn ¶
ValidFromIn applies the In predicate on the "valid_from" field.
func ValidFromLT ¶
ValidFromLT applies the LT predicate on the "valid_from" field.
func ValidFromLTE ¶
ValidFromLTE applies the LTE predicate on the "valid_from" field.
func ValidFromNEQ ¶
ValidFromNEQ applies the NEQ predicate on the "valid_from" field.
func ValidFromNotIn ¶
ValidFromNotIn applies the NotIn predicate on the "valid_from" field.
func ValidUntil ¶
ValidUntil applies equality check predicate on the "valid_until" field. It's identical to ValidUntilEQ.
func ValidUntilEQ ¶
ValidUntilEQ applies the EQ predicate on the "valid_until" field.
func ValidUntilGT ¶
ValidUntilGT applies the GT predicate on the "valid_until" field.
func ValidUntilGTE ¶
ValidUntilGTE applies the GTE predicate on the "valid_until" field.
func ValidUntilIn ¶
ValidUntilIn applies the In predicate on the "valid_until" field.
func ValidUntilIsNil ¶
ValidUntilIsNil applies the IsNil predicate on the "valid_until" field.
func ValidUntilLT ¶
ValidUntilLT applies the LT predicate on the "valid_until" field.
func ValidUntilLTE ¶
ValidUntilLTE applies the LTE predicate on the "valid_until" field.
func ValidUntilNEQ ¶
ValidUntilNEQ applies the NEQ predicate on the "valid_until" field.
func ValidUntilNotIn ¶
ValidUntilNotIn applies the NotIn predicate on the "valid_until" field.
func ValidUntilNotNil ¶
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 ¶
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.