maintenanceentry

package
v0.0.0-...-6fd8457 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the maintenanceentry type in the database.
	Label = "maintenance_entry"
	// 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"
	// FieldItemID holds the string denoting the item_id field in the database.
	FieldItemID = "item_id"
	// FieldDate holds the string denoting the date field in the database.
	FieldDate = "date"
	// FieldScheduledDate holds the string denoting the scheduled_date field in the database.
	FieldScheduledDate = "scheduled_date"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldCost holds the string denoting the cost field in the database.
	FieldCost = "cost"
	// EdgeItem holds the string denoting the item edge name in mutations.
	EdgeItem = "item"
	// Table holds the table name of the maintenanceentry in the database.
	Table = "maintenance_entries"
	// ItemTable is the table that holds the item relation/edge.
	ItemTable = "maintenance_entries"
	// ItemInverseTable is the table name for the Item entity.
	// It exists in this package in order to avoid circular dependency with the "item" package.
	ItemInverseTable = "items"
	// ItemColumn is the table column denoting the item relation/edge.
	ItemColumn = "item_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
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	DescriptionValidator func(string) error
	// DefaultCost holds the default value on creation for the "cost" field.
	DefaultCost float64
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for maintenanceentry fields.

Functions

func And

And groups predicates with the AND operator between them.

func Cost

Cost applies equality check predicate on the "cost" field. It's identical to CostEQ.

func CostEQ

CostEQ applies the EQ predicate on the "cost" field.

func CostGT

CostGT applies the GT predicate on the "cost" field.

func CostGTE

CostGTE applies the GTE predicate on the "cost" field.

func CostIn

func CostIn(vs ...float64) predicate.MaintenanceEntry

CostIn applies the In predicate on the "cost" field.

func CostLT

CostLT applies the LT predicate on the "cost" field.

func CostLTE

CostLTE applies the LTE predicate on the "cost" field.

func CostNEQ

CostNEQ applies the NEQ predicate on the "cost" field.

func CostNotIn

func CostNotIn(vs ...float64) predicate.MaintenanceEntry

CostNotIn applies the NotIn predicate on the "cost" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.MaintenanceEntry

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.MaintenanceEntry

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.MaintenanceEntry

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.MaintenanceEntry

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.MaintenanceEntry

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.MaintenanceEntry

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.MaintenanceEntry

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

func CreatedAtNotIn

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

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

func Date

Date applies equality check predicate on the "date" field. It's identical to DateEQ.

func DateEQ

DateEQ applies the EQ predicate on the "date" field.

func DateGT

DateGT applies the GT predicate on the "date" field.

func DateGTE

DateGTE applies the GTE predicate on the "date" field.

func DateIn

func DateIn(vs ...time.Time) predicate.MaintenanceEntry

DateIn applies the In predicate on the "date" field.

func DateIsNil

func DateIsNil() predicate.MaintenanceEntry

DateIsNil applies the IsNil predicate on the "date" field.

func DateLT

DateLT applies the LT predicate on the "date" field.

func DateLTE

DateLTE applies the LTE predicate on the "date" field.

func DateNEQ

DateNEQ applies the NEQ predicate on the "date" field.

func DateNotIn

func DateNotIn(vs ...time.Time) predicate.MaintenanceEntry

DateNotIn applies the NotIn predicate on the "date" field.

func DateNotNil

func DateNotNil() predicate.MaintenanceEntry

DateNotNil applies the NotNil predicate on the "date" field.

func Description

func Description(v string) predicate.MaintenanceEntry

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

func DescriptionContains

func DescriptionContains(v string) predicate.MaintenanceEntry

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.MaintenanceEntry

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.MaintenanceEntry

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.MaintenanceEntry

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

func DescriptionGT

func DescriptionGT(v string) predicate.MaintenanceEntry

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.MaintenanceEntry

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.MaintenanceEntry

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.MaintenanceEntry

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.MaintenanceEntry

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

func DescriptionLT

func DescriptionLT(v string) predicate.MaintenanceEntry

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.MaintenanceEntry

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.MaintenanceEntry

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.MaintenanceEntry

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

func HasItem

func HasItem() predicate.MaintenanceEntry

HasItem applies the HasEdge predicate on the "item" edge.

func HasItemWith

func HasItemWith(preds ...predicate.Item) predicate.MaintenanceEntry

HasItemWith applies the HasEdge predicate on the "item" 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.MaintenanceEntry

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.MaintenanceEntry

IDNotIn applies the NotIn predicate on the ID field.

func ItemID

ItemID applies equality check predicate on the "item_id" field. It's identical to ItemIDEQ.

func ItemIDEQ

func ItemIDEQ(v uuid.UUID) predicate.MaintenanceEntry

ItemIDEQ applies the EQ predicate on the "item_id" field.

func ItemIDIn

func ItemIDIn(vs ...uuid.UUID) predicate.MaintenanceEntry

ItemIDIn applies the In predicate on the "item_id" field.

func ItemIDNEQ

func ItemIDNEQ(v uuid.UUID) predicate.MaintenanceEntry

ItemIDNEQ applies the NEQ predicate on the "item_id" field.

func ItemIDNotIn

func ItemIDNotIn(vs ...uuid.UUID) predicate.MaintenanceEntry

ItemIDNotIn applies the NotIn predicate on the "item_id" field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.MaintenanceEntry

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.MaintenanceEntry

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.MaintenanceEntry

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

NameGT applies the GT predicate on the "name" field.

func NameGTE

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.MaintenanceEntry

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.MaintenanceEntry

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.MaintenanceEntry

NameIn applies the In predicate on the "name" field.

func NameLT

NameLT applies the LT predicate on the "name" field.

func NameLTE

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.MaintenanceEntry

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ScheduledDate

func ScheduledDate(v time.Time) predicate.MaintenanceEntry

ScheduledDate applies equality check predicate on the "scheduled_date" field. It's identical to ScheduledDateEQ.

func ScheduledDateEQ

func ScheduledDateEQ(v time.Time) predicate.MaintenanceEntry

ScheduledDateEQ applies the EQ predicate on the "scheduled_date" field.

func ScheduledDateGT

func ScheduledDateGT(v time.Time) predicate.MaintenanceEntry

ScheduledDateGT applies the GT predicate on the "scheduled_date" field.

func ScheduledDateGTE

func ScheduledDateGTE(v time.Time) predicate.MaintenanceEntry

ScheduledDateGTE applies the GTE predicate on the "scheduled_date" field.

func ScheduledDateIn

func ScheduledDateIn(vs ...time.Time) predicate.MaintenanceEntry

ScheduledDateIn applies the In predicate on the "scheduled_date" field.

func ScheduledDateIsNil

func ScheduledDateIsNil() predicate.MaintenanceEntry

ScheduledDateIsNil applies the IsNil predicate on the "scheduled_date" field.

func ScheduledDateLT

func ScheduledDateLT(v time.Time) predicate.MaintenanceEntry

ScheduledDateLT applies the LT predicate on the "scheduled_date" field.

func ScheduledDateLTE

func ScheduledDateLTE(v time.Time) predicate.MaintenanceEntry

ScheduledDateLTE applies the LTE predicate on the "scheduled_date" field.

func ScheduledDateNEQ

func ScheduledDateNEQ(v time.Time) predicate.MaintenanceEntry

ScheduledDateNEQ applies the NEQ predicate on the "scheduled_date" field.

func ScheduledDateNotIn

func ScheduledDateNotIn(vs ...time.Time) predicate.MaintenanceEntry

ScheduledDateNotIn applies the NotIn predicate on the "scheduled_date" field.

func ScheduledDateNotNil

func ScheduledDateNotNil() predicate.MaintenanceEntry

ScheduledDateNotNil applies the NotNil predicate on the "scheduled_date" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.MaintenanceEntry

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.MaintenanceEntry

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.MaintenanceEntry

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.MaintenanceEntry

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.MaintenanceEntry

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.MaintenanceEntry

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.MaintenanceEntry

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

func UpdatedAtNotIn

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

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

func ByCost

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

ByCost orders the results by the cost field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDate

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

ByDate orders the results by the date 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 ByItemField

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

ByItemField orders the results by item field.

func ByItemID

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

ByItemID orders the results by the item_id field.

func ByName

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

ByName orders the results by the name field.

func ByScheduledDate

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

ByScheduledDate orders the results by the scheduled_date 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