slugreservation

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the slugreservation type in the database.
	Label = "slug_reservation"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "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"
	// FieldSlug holds the string denoting the slug field in the database.
	FieldSlug = "slug"
	// FieldReleasedByPrincipalID holds the string denoting the released_by_principal_id field in the database.
	FieldReleasedByPrincipalID = "released_by_principal_id"
	// FieldReleasedFromOrganizationID holds the string denoting the released_from_organization_id field in the database.
	FieldReleasedFromOrganizationID = "released_from_organization_id"
	// FieldReleasedAt holds the string denoting the released_at field in the database.
	FieldReleasedAt = "released_at"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// EdgeReleasedBy holds the string denoting the released_by edge name in mutations.
	EdgeReleasedBy = "released_by"
	// EdgeReleasedFrom holds the string denoting the released_from edge name in mutations.
	EdgeReleasedFrom = "released_from"
	// Table holds the table name of the slugreservation in the database.
	Table = "sf_slug_reservations"
	// ReleasedByTable is the table that holds the released_by relation/edge.
	ReleasedByTable = "sf_slug_reservations"
	// ReleasedByInverseTable is the table name for the Principal entity.
	// It exists in this package in order to avoid circular dependency with the "principal" package.
	ReleasedByInverseTable = "sf_principals"
	// ReleasedByColumn is the table column denoting the released_by relation/edge.
	ReleasedByColumn = "released_by_principal_id"
	// ReleasedFromTable is the table that holds the released_from relation/edge.
	ReleasedFromTable = "sf_slug_reservations"
	// ReleasedFromInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	ReleasedFromInverseTable = "sf_organizations"
	// ReleasedFromColumn is the table column denoting the released_from relation/edge.
	ReleasedFromColumn = "released_from_organization_id"
)

Variables

View Source
var (
	// 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
	// SlugValidator is a validator for the "slug" field. It is called by the builders before save.
	SlugValidator func(string) error
	// DefaultReleasedAt holds the default value on creation for the "released_at" field.
	DefaultReleasedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for slugreservation fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.SlugReservation

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.SlugReservation

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.SlugReservation

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.SlugReservation

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.SlugReservation

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.SlugReservation

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.SlugReservation

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

func CreatedAtNotIn

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

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

func ExpiresAt

func ExpiresAt(v time.Time) predicate.SlugReservation

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.SlugReservation

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.SlugReservation

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.SlugReservation

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.SlugReservation

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.SlugReservation

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.SlugReservation

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.SlugReservation

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.SlugReservation

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func HasReleasedBy

func HasReleasedBy() predicate.SlugReservation

HasReleasedBy applies the HasEdge predicate on the "released_by" edge.

func HasReleasedByWith

func HasReleasedByWith(preds ...predicate.Principal) predicate.SlugReservation

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

func HasReleasedFrom

func HasReleasedFrom() predicate.SlugReservation

HasReleasedFrom applies the HasEdge predicate on the "released_from" edge.

func HasReleasedFromWith

func HasReleasedFromWith(preds ...predicate.Organization) predicate.SlugReservation

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ReleasedAt

func ReleasedAt(v time.Time) predicate.SlugReservation

ReleasedAt applies equality check predicate on the "released_at" field. It's identical to ReleasedAtEQ.

func ReleasedAtEQ

func ReleasedAtEQ(v time.Time) predicate.SlugReservation

ReleasedAtEQ applies the EQ predicate on the "released_at" field.

func ReleasedAtGT

func ReleasedAtGT(v time.Time) predicate.SlugReservation

ReleasedAtGT applies the GT predicate on the "released_at" field.

func ReleasedAtGTE

func ReleasedAtGTE(v time.Time) predicate.SlugReservation

ReleasedAtGTE applies the GTE predicate on the "released_at" field.

func ReleasedAtIn

func ReleasedAtIn(vs ...time.Time) predicate.SlugReservation

ReleasedAtIn applies the In predicate on the "released_at" field.

func ReleasedAtLT

func ReleasedAtLT(v time.Time) predicate.SlugReservation

ReleasedAtLT applies the LT predicate on the "released_at" field.

func ReleasedAtLTE

func ReleasedAtLTE(v time.Time) predicate.SlugReservation

ReleasedAtLTE applies the LTE predicate on the "released_at" field.

func ReleasedAtNEQ

func ReleasedAtNEQ(v time.Time) predicate.SlugReservation

ReleasedAtNEQ applies the NEQ predicate on the "released_at" field.

func ReleasedAtNotIn

func ReleasedAtNotIn(vs ...time.Time) predicate.SlugReservation

ReleasedAtNotIn applies the NotIn predicate on the "released_at" field.

func ReleasedByPrincipalID

func ReleasedByPrincipalID(v uuid.UUID) predicate.SlugReservation

ReleasedByPrincipalID applies equality check predicate on the "released_by_principal_id" field. It's identical to ReleasedByPrincipalIDEQ.

func ReleasedByPrincipalIDEQ

func ReleasedByPrincipalIDEQ(v uuid.UUID) predicate.SlugReservation

ReleasedByPrincipalIDEQ applies the EQ predicate on the "released_by_principal_id" field.

func ReleasedByPrincipalIDIn

func ReleasedByPrincipalIDIn(vs ...uuid.UUID) predicate.SlugReservation

ReleasedByPrincipalIDIn applies the In predicate on the "released_by_principal_id" field.

func ReleasedByPrincipalIDNEQ

func ReleasedByPrincipalIDNEQ(v uuid.UUID) predicate.SlugReservation

ReleasedByPrincipalIDNEQ applies the NEQ predicate on the "released_by_principal_id" field.

func ReleasedByPrincipalIDNotIn

func ReleasedByPrincipalIDNotIn(vs ...uuid.UUID) predicate.SlugReservation

ReleasedByPrincipalIDNotIn applies the NotIn predicate on the "released_by_principal_id" field.

func ReleasedFromOrganizationID

func ReleasedFromOrganizationID(v uuid.UUID) predicate.SlugReservation

ReleasedFromOrganizationID applies equality check predicate on the "released_from_organization_id" field. It's identical to ReleasedFromOrganizationIDEQ.

func ReleasedFromOrganizationIDEQ

func ReleasedFromOrganizationIDEQ(v uuid.UUID) predicate.SlugReservation

ReleasedFromOrganizationIDEQ applies the EQ predicate on the "released_from_organization_id" field.

func ReleasedFromOrganizationIDIn

func ReleasedFromOrganizationIDIn(vs ...uuid.UUID) predicate.SlugReservation

ReleasedFromOrganizationIDIn applies the In predicate on the "released_from_organization_id" field.

func ReleasedFromOrganizationIDIsNil

func ReleasedFromOrganizationIDIsNil() predicate.SlugReservation

ReleasedFromOrganizationIDIsNil applies the IsNil predicate on the "released_from_organization_id" field.

func ReleasedFromOrganizationIDNEQ

func ReleasedFromOrganizationIDNEQ(v uuid.UUID) predicate.SlugReservation

ReleasedFromOrganizationIDNEQ applies the NEQ predicate on the "released_from_organization_id" field.

func ReleasedFromOrganizationIDNotIn

func ReleasedFromOrganizationIDNotIn(vs ...uuid.UUID) predicate.SlugReservation

ReleasedFromOrganizationIDNotIn applies the NotIn predicate on the "released_from_organization_id" field.

func ReleasedFromOrganizationIDNotNil

func ReleasedFromOrganizationIDNotNil() predicate.SlugReservation

ReleasedFromOrganizationIDNotNil applies the NotNil predicate on the "released_from_organization_id" field.

func Slug

Slug applies equality check predicate on the "slug" field. It's identical to SlugEQ.

func SlugContains

func SlugContains(v string) predicate.SlugReservation

SlugContains applies the Contains predicate on the "slug" field.

func SlugContainsFold

func SlugContainsFold(v string) predicate.SlugReservation

SlugContainsFold applies the ContainsFold predicate on the "slug" field.

func SlugEQ

SlugEQ applies the EQ predicate on the "slug" field.

func SlugEqualFold

func SlugEqualFold(v string) predicate.SlugReservation

SlugEqualFold applies the EqualFold predicate on the "slug" field.

func SlugGT

SlugGT applies the GT predicate on the "slug" field.

func SlugGTE

func SlugGTE(v string) predicate.SlugReservation

SlugGTE applies the GTE predicate on the "slug" field.

func SlugHasPrefix

func SlugHasPrefix(v string) predicate.SlugReservation

SlugHasPrefix applies the HasPrefix predicate on the "slug" field.

func SlugHasSuffix

func SlugHasSuffix(v string) predicate.SlugReservation

SlugHasSuffix applies the HasSuffix predicate on the "slug" field.

func SlugIn

func SlugIn(vs ...string) predicate.SlugReservation

SlugIn applies the In predicate on the "slug" field.

func SlugLT

SlugLT applies the LT predicate on the "slug" field.

func SlugLTE

func SlugLTE(v string) predicate.SlugReservation

SlugLTE applies the LTE predicate on the "slug" field.

func SlugNEQ

func SlugNEQ(v string) predicate.SlugReservation

SlugNEQ applies the NEQ predicate on the "slug" field.

func SlugNotIn

func SlugNotIn(vs ...string) predicate.SlugReservation

SlugNotIn applies the NotIn predicate on the "slug" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.SlugReservation

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.SlugReservation

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.SlugReservation

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.SlugReservation

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.SlugReservation

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.SlugReservation

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.SlugReservation

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

func UpdatedAtNotIn

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

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 SlugReservation queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByExpiresAt

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

ByExpiresAt orders the results by the expires_at field.

func ByID

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

ByID orders the results by the id field.

func ByReleasedAt

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

ByReleasedAt orders the results by the released_at field.

func ByReleasedByField

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

ByReleasedByField orders the results by released_by field.

func ByReleasedByPrincipalID

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

ByReleasedByPrincipalID orders the results by the released_by_principal_id field.

func ByReleasedFromField

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

ByReleasedFromField orders the results by released_from field.

func ByReleasedFromOrganizationID

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

ByReleasedFromOrganizationID orders the results by the released_from_organization_id field.

func BySlug

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

BySlug orders the results by the slug field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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