item

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 item type in the database.
	Label = "item"
	// 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"
	// 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"
	// FieldImportRef holds the string denoting the import_ref field in the database.
	FieldImportRef = "import_ref"
	// FieldNotes holds the string denoting the notes field in the database.
	FieldNotes = "notes"
	// FieldQuantity holds the string denoting the quantity field in the database.
	FieldQuantity = "quantity"
	// FieldInsured holds the string denoting the insured field in the database.
	FieldInsured = "insured"
	// FieldArchived holds the string denoting the archived field in the database.
	FieldArchived = "archived"
	// FieldAssetID holds the string denoting the asset_id field in the database.
	FieldAssetID = "asset_id"
	// FieldSerialNumber holds the string denoting the serial_number field in the database.
	FieldSerialNumber = "serial_number"
	// FieldModelNumber holds the string denoting the model_number field in the database.
	FieldModelNumber = "model_number"
	// FieldManufacturer holds the string denoting the manufacturer field in the database.
	FieldManufacturer = "manufacturer"
	// FieldLifetimeWarranty holds the string denoting the lifetime_warranty field in the database.
	FieldLifetimeWarranty = "lifetime_warranty"
	// FieldWarrantyExpires holds the string denoting the warranty_expires field in the database.
	FieldWarrantyExpires = "warranty_expires"
	// FieldWarrantyDetails holds the string denoting the warranty_details field in the database.
	FieldWarrantyDetails = "warranty_details"
	// FieldPurchaseTime holds the string denoting the purchase_time field in the database.
	FieldPurchaseTime = "purchase_time"
	// FieldPurchaseFrom holds the string denoting the purchase_from field in the database.
	FieldPurchaseFrom = "purchase_from"
	// FieldPurchasePrice holds the string denoting the purchase_price field in the database.
	FieldPurchasePrice = "purchase_price"
	// FieldSoldTime holds the string denoting the sold_time field in the database.
	FieldSoldTime = "sold_time"
	// FieldSoldTo holds the string denoting the sold_to field in the database.
	FieldSoldTo = "sold_to"
	// FieldSoldPrice holds the string denoting the sold_price field in the database.
	FieldSoldPrice = "sold_price"
	// FieldSoldNotes holds the string denoting the sold_notes field in the database.
	FieldSoldNotes = "sold_notes"
	// EdgeGroup holds the string denoting the group edge name in mutations.
	EdgeGroup = "group"
	// EdgeParent holds the string denoting the parent edge name in mutations.
	EdgeParent = "parent"
	// EdgeChildren holds the string denoting the children edge name in mutations.
	EdgeChildren = "children"
	// EdgeLabel holds the string denoting the label edge name in mutations.
	EdgeLabel = "label"
	// EdgeLocation holds the string denoting the location edge name in mutations.
	EdgeLocation = "location"
	// EdgeFields holds the string denoting the fields edge name in mutations.
	EdgeFields = "fields"
	// EdgeMaintenanceEntries holds the string denoting the maintenance_entries edge name in mutations.
	EdgeMaintenanceEntries = "maintenance_entries"
	// EdgeAttachments holds the string denoting the attachments edge name in mutations.
	EdgeAttachments = "attachments"
	// Table holds the table name of the item in the database.
	Table = "items"
	// GroupTable is the table that holds the group relation/edge.
	GroupTable = "items"
	// GroupInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	GroupInverseTable = "groups"
	// GroupColumn is the table column denoting the group relation/edge.
	GroupColumn = "group_items"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "items"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "item_children"
	// ChildrenTable is the table that holds the children relation/edge.
	ChildrenTable = "items"
	// ChildrenColumn is the table column denoting the children relation/edge.
	ChildrenColumn = "item_children"
	// LabelTable is the table that holds the label relation/edge. The primary key declared below.
	LabelTable = "label_items"
	// LabelInverseTable is the table name for the Label entity.
	// It exists in this package in order to avoid circular dependency with the "label" package.
	LabelInverseTable = "labels"
	// LocationTable is the table that holds the location relation/edge.
	LocationTable = "items"
	// LocationInverseTable is the table name for the Location entity.
	// It exists in this package in order to avoid circular dependency with the "location" package.
	LocationInverseTable = "locations"
	// LocationColumn is the table column denoting the location relation/edge.
	LocationColumn = "location_items"
	// FieldsTable is the table that holds the fields relation/edge.
	FieldsTable = "item_fields"
	// FieldsInverseTable is the table name for the ItemField entity.
	// It exists in this package in order to avoid circular dependency with the "itemfield" package.
	FieldsInverseTable = "item_fields"
	// FieldsColumn is the table column denoting the fields relation/edge.
	FieldsColumn = "item_fields"
	// MaintenanceEntriesTable is the table that holds the maintenance_entries relation/edge.
	MaintenanceEntriesTable = "maintenance_entries"
	// MaintenanceEntriesInverseTable is the table name for the MaintenanceEntry entity.
	// It exists in this package in order to avoid circular dependency with the "maintenanceentry" package.
	MaintenanceEntriesInverseTable = "maintenance_entries"
	// MaintenanceEntriesColumn is the table column denoting the maintenance_entries relation/edge.
	MaintenanceEntriesColumn = "item_id"
	// AttachmentsTable is the table that holds the attachments relation/edge.
	AttachmentsTable = "attachments"
	// AttachmentsInverseTable is the table name for the Attachment entity.
	// It exists in this package in order to avoid circular dependency with the "attachment" package.
	AttachmentsInverseTable = "attachments"
	// AttachmentsColumn is the table column denoting the attachments relation/edge.
	AttachmentsColumn = "item_attachments"
)

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
	// ImportRefValidator is a validator for the "import_ref" field. It is called by the builders before save.
	ImportRefValidator func(string) error
	// NotesValidator is a validator for the "notes" field. It is called by the builders before save.
	NotesValidator func(string) error
	// DefaultQuantity holds the default value on creation for the "quantity" field.
	DefaultQuantity int
	// DefaultInsured holds the default value on creation for the "insured" field.
	DefaultInsured bool
	// DefaultArchived holds the default value on creation for the "archived" field.
	DefaultArchived bool
	// DefaultAssetID holds the default value on creation for the "asset_id" field.
	DefaultAssetID int
	// SerialNumberValidator is a validator for the "serial_number" field. It is called by the builders before save.
	SerialNumberValidator func(string) error
	// ModelNumberValidator is a validator for the "model_number" field. It is called by the builders before save.
	ModelNumberValidator func(string) error
	// ManufacturerValidator is a validator for the "manufacturer" field. It is called by the builders before save.
	ManufacturerValidator func(string) error
	// DefaultLifetimeWarranty holds the default value on creation for the "lifetime_warranty" field.
	DefaultLifetimeWarranty bool
	// WarrantyDetailsValidator is a validator for the "warranty_details" field. It is called by the builders before save.
	WarrantyDetailsValidator func(string) error
	// DefaultPurchasePrice holds the default value on creation for the "purchase_price" field.
	DefaultPurchasePrice float64
	// DefaultSoldPrice holds the default value on creation for the "sold_price" field.
	DefaultSoldPrice float64
	// SoldNotesValidator is a validator for the "sold_notes" field. It is called by the builders before save.
	SoldNotesValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for item fields.

View Source
var ForeignKeys = []string{
	"group_items",
	"item_children",
	"location_items",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "items" table and are not defined as standalone fields in the schema.

View Source
var (
	// LabelPrimaryKey and LabelColumn2 are the table columns denoting the
	// primary key for the label relation (M2M).
	LabelPrimaryKey = []string{"label_id", "item_id"}
)

Functions

func And

func And(predicates ...predicate.Item) predicate.Item

And groups predicates with the AND operator between them.

func Archived

func Archived(v bool) predicate.Item

Archived applies equality check predicate on the "archived" field. It's identical to ArchivedEQ.

func ArchivedEQ

func ArchivedEQ(v bool) predicate.Item

ArchivedEQ applies the EQ predicate on the "archived" field.

func ArchivedNEQ

func ArchivedNEQ(v bool) predicate.Item

ArchivedNEQ applies the NEQ predicate on the "archived" field.

func AssetID

func AssetID(v int) predicate.Item

AssetID applies equality check predicate on the "asset_id" field. It's identical to AssetIDEQ.

func AssetIDEQ

func AssetIDEQ(v int) predicate.Item

AssetIDEQ applies the EQ predicate on the "asset_id" field.

func AssetIDGT

func AssetIDGT(v int) predicate.Item

AssetIDGT applies the GT predicate on the "asset_id" field.

func AssetIDGTE

func AssetIDGTE(v int) predicate.Item

AssetIDGTE applies the GTE predicate on the "asset_id" field.

func AssetIDIn

func AssetIDIn(vs ...int) predicate.Item

AssetIDIn applies the In predicate on the "asset_id" field.

func AssetIDLT

func AssetIDLT(v int) predicate.Item

AssetIDLT applies the LT predicate on the "asset_id" field.

func AssetIDLTE

func AssetIDLTE(v int) predicate.Item

AssetIDLTE applies the LTE predicate on the "asset_id" field.

func AssetIDNEQ

func AssetIDNEQ(v int) predicate.Item

AssetIDNEQ applies the NEQ predicate on the "asset_id" field.

func AssetIDNotIn

func AssetIDNotIn(vs ...int) predicate.Item

AssetIDNotIn applies the NotIn predicate on the "asset_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Item

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Item

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Item

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Item

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Item

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Item

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Item

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.Item

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

func DescriptionContains

func DescriptionContains(v string) predicate.Item

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Item

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Item

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Item

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

func DescriptionGT

func DescriptionGT(v string) predicate.Item

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Item

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Item

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Item

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Item

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

func DescriptionLT

func DescriptionLT(v string) predicate.Item

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Item

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Item

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Item

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

func HasAttachments

func HasAttachments() predicate.Item

HasAttachments applies the HasEdge predicate on the "attachments" edge.

func HasAttachmentsWith

func HasAttachmentsWith(preds ...predicate.Attachment) predicate.Item

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

func HasChildren

func HasChildren() predicate.Item

HasChildren applies the HasEdge predicate on the "children" edge.

func HasChildrenWith

func HasChildrenWith(preds ...predicate.Item) predicate.Item

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

func HasFields

func HasFields() predicate.Item

HasFields applies the HasEdge predicate on the "fields" edge.

func HasFieldsWith

func HasFieldsWith(preds ...predicate.ItemField) predicate.Item

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

func HasGroup

func HasGroup() predicate.Item

HasGroup applies the HasEdge predicate on the "group" edge.

func HasGroupWith

func HasGroupWith(preds ...predicate.Group) predicate.Item

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

func HasLabel

func HasLabel() predicate.Item

HasLabel applies the HasEdge predicate on the "label" edge.

func HasLabelWith

func HasLabelWith(preds ...predicate.Label) predicate.Item

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

func HasLocation

func HasLocation() predicate.Item

HasLocation applies the HasEdge predicate on the "location" edge.

func HasLocationWith

func HasLocationWith(preds ...predicate.Location) predicate.Item

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

func HasMaintenanceEntries

func HasMaintenanceEntries() predicate.Item

HasMaintenanceEntries applies the HasEdge predicate on the "maintenance_entries" edge.

func HasMaintenanceEntriesWith

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

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

func HasParent

func HasParent() predicate.Item

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith

func HasParentWith(preds ...predicate.Item) predicate.Item

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

func ID

func ID(id uuid.UUID) predicate.Item

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Item

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Item

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Item

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Item

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Item

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Item

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func ImportRef

func ImportRef(v string) predicate.Item

ImportRef applies equality check predicate on the "import_ref" field. It's identical to ImportRefEQ.

func ImportRefContains

func ImportRefContains(v string) predicate.Item

ImportRefContains applies the Contains predicate on the "import_ref" field.

func ImportRefContainsFold

func ImportRefContainsFold(v string) predicate.Item

ImportRefContainsFold applies the ContainsFold predicate on the "import_ref" field.

func ImportRefEQ

func ImportRefEQ(v string) predicate.Item

ImportRefEQ applies the EQ predicate on the "import_ref" field.

func ImportRefEqualFold

func ImportRefEqualFold(v string) predicate.Item

ImportRefEqualFold applies the EqualFold predicate on the "import_ref" field.

func ImportRefGT

func ImportRefGT(v string) predicate.Item

ImportRefGT applies the GT predicate on the "import_ref" field.

func ImportRefGTE

func ImportRefGTE(v string) predicate.Item

ImportRefGTE applies the GTE predicate on the "import_ref" field.

func ImportRefHasPrefix

func ImportRefHasPrefix(v string) predicate.Item

ImportRefHasPrefix applies the HasPrefix predicate on the "import_ref" field.

func ImportRefHasSuffix

func ImportRefHasSuffix(v string) predicate.Item

ImportRefHasSuffix applies the HasSuffix predicate on the "import_ref" field.

func ImportRefIn

func ImportRefIn(vs ...string) predicate.Item

ImportRefIn applies the In predicate on the "import_ref" field.

func ImportRefIsNil

func ImportRefIsNil() predicate.Item

ImportRefIsNil applies the IsNil predicate on the "import_ref" field.

func ImportRefLT

func ImportRefLT(v string) predicate.Item

ImportRefLT applies the LT predicate on the "import_ref" field.

func ImportRefLTE

func ImportRefLTE(v string) predicate.Item

ImportRefLTE applies the LTE predicate on the "import_ref" field.

func ImportRefNEQ

func ImportRefNEQ(v string) predicate.Item

ImportRefNEQ applies the NEQ predicate on the "import_ref" field.

func ImportRefNotIn

func ImportRefNotIn(vs ...string) predicate.Item

ImportRefNotIn applies the NotIn predicate on the "import_ref" field.

func ImportRefNotNil

func ImportRefNotNil() predicate.Item

ImportRefNotNil applies the NotNil predicate on the "import_ref" field.

func Insured

func Insured(v bool) predicate.Item

Insured applies equality check predicate on the "insured" field. It's identical to InsuredEQ.

func InsuredEQ

func InsuredEQ(v bool) predicate.Item

InsuredEQ applies the EQ predicate on the "insured" field.

func InsuredNEQ

func InsuredNEQ(v bool) predicate.Item

InsuredNEQ applies the NEQ predicate on the "insured" field.

func LifetimeWarranty

func LifetimeWarranty(v bool) predicate.Item

LifetimeWarranty applies equality check predicate on the "lifetime_warranty" field. It's identical to LifetimeWarrantyEQ.

func LifetimeWarrantyEQ

func LifetimeWarrantyEQ(v bool) predicate.Item

LifetimeWarrantyEQ applies the EQ predicate on the "lifetime_warranty" field.

func LifetimeWarrantyNEQ

func LifetimeWarrantyNEQ(v bool) predicate.Item

LifetimeWarrantyNEQ applies the NEQ predicate on the "lifetime_warranty" field.

func Manufacturer

func Manufacturer(v string) predicate.Item

Manufacturer applies equality check predicate on the "manufacturer" field. It's identical to ManufacturerEQ.

func ManufacturerContains

func ManufacturerContains(v string) predicate.Item

ManufacturerContains applies the Contains predicate on the "manufacturer" field.

func ManufacturerContainsFold

func ManufacturerContainsFold(v string) predicate.Item

ManufacturerContainsFold applies the ContainsFold predicate on the "manufacturer" field.

func ManufacturerEQ

func ManufacturerEQ(v string) predicate.Item

ManufacturerEQ applies the EQ predicate on the "manufacturer" field.

func ManufacturerEqualFold

func ManufacturerEqualFold(v string) predicate.Item

ManufacturerEqualFold applies the EqualFold predicate on the "manufacturer" field.

func ManufacturerGT

func ManufacturerGT(v string) predicate.Item

ManufacturerGT applies the GT predicate on the "manufacturer" field.

func ManufacturerGTE

func ManufacturerGTE(v string) predicate.Item

ManufacturerGTE applies the GTE predicate on the "manufacturer" field.

func ManufacturerHasPrefix

func ManufacturerHasPrefix(v string) predicate.Item

ManufacturerHasPrefix applies the HasPrefix predicate on the "manufacturer" field.

func ManufacturerHasSuffix

func ManufacturerHasSuffix(v string) predicate.Item

ManufacturerHasSuffix applies the HasSuffix predicate on the "manufacturer" field.

func ManufacturerIn

func ManufacturerIn(vs ...string) predicate.Item

ManufacturerIn applies the In predicate on the "manufacturer" field.

func ManufacturerIsNil

func ManufacturerIsNil() predicate.Item

ManufacturerIsNil applies the IsNil predicate on the "manufacturer" field.

func ManufacturerLT

func ManufacturerLT(v string) predicate.Item

ManufacturerLT applies the LT predicate on the "manufacturer" field.

func ManufacturerLTE

func ManufacturerLTE(v string) predicate.Item

ManufacturerLTE applies the LTE predicate on the "manufacturer" field.

func ManufacturerNEQ

func ManufacturerNEQ(v string) predicate.Item

ManufacturerNEQ applies the NEQ predicate on the "manufacturer" field.

func ManufacturerNotIn

func ManufacturerNotIn(vs ...string) predicate.Item

ManufacturerNotIn applies the NotIn predicate on the "manufacturer" field.

func ManufacturerNotNil

func ManufacturerNotNil() predicate.Item

ManufacturerNotNil applies the NotNil predicate on the "manufacturer" field.

func ModelNumber

func ModelNumber(v string) predicate.Item

ModelNumber applies equality check predicate on the "model_number" field. It's identical to ModelNumberEQ.

func ModelNumberContains

func ModelNumberContains(v string) predicate.Item

ModelNumberContains applies the Contains predicate on the "model_number" field.

func ModelNumberContainsFold

func ModelNumberContainsFold(v string) predicate.Item

ModelNumberContainsFold applies the ContainsFold predicate on the "model_number" field.

func ModelNumberEQ

func ModelNumberEQ(v string) predicate.Item

ModelNumberEQ applies the EQ predicate on the "model_number" field.

func ModelNumberEqualFold

func ModelNumberEqualFold(v string) predicate.Item

ModelNumberEqualFold applies the EqualFold predicate on the "model_number" field.

func ModelNumberGT

func ModelNumberGT(v string) predicate.Item

ModelNumberGT applies the GT predicate on the "model_number" field.

func ModelNumberGTE

func ModelNumberGTE(v string) predicate.Item

ModelNumberGTE applies the GTE predicate on the "model_number" field.

func ModelNumberHasPrefix

func ModelNumberHasPrefix(v string) predicate.Item

ModelNumberHasPrefix applies the HasPrefix predicate on the "model_number" field.

func ModelNumberHasSuffix

func ModelNumberHasSuffix(v string) predicate.Item

ModelNumberHasSuffix applies the HasSuffix predicate on the "model_number" field.

func ModelNumberIn

func ModelNumberIn(vs ...string) predicate.Item

ModelNumberIn applies the In predicate on the "model_number" field.

func ModelNumberIsNil

func ModelNumberIsNil() predicate.Item

ModelNumberIsNil applies the IsNil predicate on the "model_number" field.

func ModelNumberLT

func ModelNumberLT(v string) predicate.Item

ModelNumberLT applies the LT predicate on the "model_number" field.

func ModelNumberLTE

func ModelNumberLTE(v string) predicate.Item

ModelNumberLTE applies the LTE predicate on the "model_number" field.

func ModelNumberNEQ

func ModelNumberNEQ(v string) predicate.Item

ModelNumberNEQ applies the NEQ predicate on the "model_number" field.

func ModelNumberNotIn

func ModelNumberNotIn(vs ...string) predicate.Item

ModelNumberNotIn applies the NotIn predicate on the "model_number" field.

func ModelNumberNotNil

func ModelNumberNotNil() predicate.Item

ModelNumberNotNil applies the NotNil predicate on the "model_number" field.

func Name

func Name(v string) predicate.Item

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

func NameContains

func NameContains(v string) predicate.Item

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

func NameContainsFold

func NameContainsFold(v string) predicate.Item

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

func NameEQ

func NameEQ(v string) predicate.Item

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

func NameEqualFold

func NameEqualFold(v string) predicate.Item

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

func NameGT

func NameGT(v string) predicate.Item

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

func NameGTE

func NameGTE(v string) predicate.Item

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Item

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Item

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Item

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

func NameLTE

func NameLTE(v string) predicate.Item

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

func NameNEQ

func NameNEQ(v string) predicate.Item

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Notes

func Notes(v string) predicate.Item

Notes applies equality check predicate on the "notes" field. It's identical to NotesEQ.

func NotesContains

func NotesContains(v string) predicate.Item

NotesContains applies the Contains predicate on the "notes" field.

func NotesContainsFold

func NotesContainsFold(v string) predicate.Item

NotesContainsFold applies the ContainsFold predicate on the "notes" field.

func NotesEQ

func NotesEQ(v string) predicate.Item

NotesEQ applies the EQ predicate on the "notes" field.

func NotesEqualFold

func NotesEqualFold(v string) predicate.Item

NotesEqualFold applies the EqualFold predicate on the "notes" field.

func NotesGT

func NotesGT(v string) predicate.Item

NotesGT applies the GT predicate on the "notes" field.

func NotesGTE

func NotesGTE(v string) predicate.Item

NotesGTE applies the GTE predicate on the "notes" field.

func NotesHasPrefix

func NotesHasPrefix(v string) predicate.Item

NotesHasPrefix applies the HasPrefix predicate on the "notes" field.

func NotesHasSuffix

func NotesHasSuffix(v string) predicate.Item

NotesHasSuffix applies the HasSuffix predicate on the "notes" field.

func NotesIn

func NotesIn(vs ...string) predicate.Item

NotesIn applies the In predicate on the "notes" field.

func NotesIsNil

func NotesIsNil() predicate.Item

NotesIsNil applies the IsNil predicate on the "notes" field.

func NotesLT

func NotesLT(v string) predicate.Item

NotesLT applies the LT predicate on the "notes" field.

func NotesLTE

func NotesLTE(v string) predicate.Item

NotesLTE applies the LTE predicate on the "notes" field.

func NotesNEQ

func NotesNEQ(v string) predicate.Item

NotesNEQ applies the NEQ predicate on the "notes" field.

func NotesNotIn

func NotesNotIn(vs ...string) predicate.Item

NotesNotIn applies the NotIn predicate on the "notes" field.

func NotesNotNil

func NotesNotNil() predicate.Item

NotesNotNil applies the NotNil predicate on the "notes" field.

func Or

func Or(predicates ...predicate.Item) predicate.Item

Or groups predicates with the OR operator between them.

func PurchaseFrom

func PurchaseFrom(v string) predicate.Item

PurchaseFrom applies equality check predicate on the "purchase_from" field. It's identical to PurchaseFromEQ.

func PurchaseFromContains

func PurchaseFromContains(v string) predicate.Item

PurchaseFromContains applies the Contains predicate on the "purchase_from" field.

func PurchaseFromContainsFold

func PurchaseFromContainsFold(v string) predicate.Item

PurchaseFromContainsFold applies the ContainsFold predicate on the "purchase_from" field.

func PurchaseFromEQ

func PurchaseFromEQ(v string) predicate.Item

PurchaseFromEQ applies the EQ predicate on the "purchase_from" field.

func PurchaseFromEqualFold

func PurchaseFromEqualFold(v string) predicate.Item

PurchaseFromEqualFold applies the EqualFold predicate on the "purchase_from" field.

func PurchaseFromGT

func PurchaseFromGT(v string) predicate.Item

PurchaseFromGT applies the GT predicate on the "purchase_from" field.

func PurchaseFromGTE

func PurchaseFromGTE(v string) predicate.Item

PurchaseFromGTE applies the GTE predicate on the "purchase_from" field.

func PurchaseFromHasPrefix

func PurchaseFromHasPrefix(v string) predicate.Item

PurchaseFromHasPrefix applies the HasPrefix predicate on the "purchase_from" field.

func PurchaseFromHasSuffix

func PurchaseFromHasSuffix(v string) predicate.Item

PurchaseFromHasSuffix applies the HasSuffix predicate on the "purchase_from" field.

func PurchaseFromIn

func PurchaseFromIn(vs ...string) predicate.Item

PurchaseFromIn applies the In predicate on the "purchase_from" field.

func PurchaseFromIsNil

func PurchaseFromIsNil() predicate.Item

PurchaseFromIsNil applies the IsNil predicate on the "purchase_from" field.

func PurchaseFromLT

func PurchaseFromLT(v string) predicate.Item

PurchaseFromLT applies the LT predicate on the "purchase_from" field.

func PurchaseFromLTE

func PurchaseFromLTE(v string) predicate.Item

PurchaseFromLTE applies the LTE predicate on the "purchase_from" field.

func PurchaseFromNEQ

func PurchaseFromNEQ(v string) predicate.Item

PurchaseFromNEQ applies the NEQ predicate on the "purchase_from" field.

func PurchaseFromNotIn

func PurchaseFromNotIn(vs ...string) predicate.Item

PurchaseFromNotIn applies the NotIn predicate on the "purchase_from" field.

func PurchaseFromNotNil

func PurchaseFromNotNil() predicate.Item

PurchaseFromNotNil applies the NotNil predicate on the "purchase_from" field.

func PurchasePrice

func PurchasePrice(v float64) predicate.Item

PurchasePrice applies equality check predicate on the "purchase_price" field. It's identical to PurchasePriceEQ.

func PurchasePriceEQ

func PurchasePriceEQ(v float64) predicate.Item

PurchasePriceEQ applies the EQ predicate on the "purchase_price" field.

func PurchasePriceGT

func PurchasePriceGT(v float64) predicate.Item

PurchasePriceGT applies the GT predicate on the "purchase_price" field.

func PurchasePriceGTE

func PurchasePriceGTE(v float64) predicate.Item

PurchasePriceGTE applies the GTE predicate on the "purchase_price" field.

func PurchasePriceIn

func PurchasePriceIn(vs ...float64) predicate.Item

PurchasePriceIn applies the In predicate on the "purchase_price" field.

func PurchasePriceLT

func PurchasePriceLT(v float64) predicate.Item

PurchasePriceLT applies the LT predicate on the "purchase_price" field.

func PurchasePriceLTE

func PurchasePriceLTE(v float64) predicate.Item

PurchasePriceLTE applies the LTE predicate on the "purchase_price" field.

func PurchasePriceNEQ

func PurchasePriceNEQ(v float64) predicate.Item

PurchasePriceNEQ applies the NEQ predicate on the "purchase_price" field.

func PurchasePriceNotIn

func PurchasePriceNotIn(vs ...float64) predicate.Item

PurchasePriceNotIn applies the NotIn predicate on the "purchase_price" field.

func PurchaseTime

func PurchaseTime(v time.Time) predicate.Item

PurchaseTime applies equality check predicate on the "purchase_time" field. It's identical to PurchaseTimeEQ.

func PurchaseTimeEQ

func PurchaseTimeEQ(v time.Time) predicate.Item

PurchaseTimeEQ applies the EQ predicate on the "purchase_time" field.

func PurchaseTimeGT

func PurchaseTimeGT(v time.Time) predicate.Item

PurchaseTimeGT applies the GT predicate on the "purchase_time" field.

func PurchaseTimeGTE

func PurchaseTimeGTE(v time.Time) predicate.Item

PurchaseTimeGTE applies the GTE predicate on the "purchase_time" field.

func PurchaseTimeIn

func PurchaseTimeIn(vs ...time.Time) predicate.Item

PurchaseTimeIn applies the In predicate on the "purchase_time" field.

func PurchaseTimeIsNil

func PurchaseTimeIsNil() predicate.Item

PurchaseTimeIsNil applies the IsNil predicate on the "purchase_time" field.

func PurchaseTimeLT

func PurchaseTimeLT(v time.Time) predicate.Item

PurchaseTimeLT applies the LT predicate on the "purchase_time" field.

func PurchaseTimeLTE

func PurchaseTimeLTE(v time.Time) predicate.Item

PurchaseTimeLTE applies the LTE predicate on the "purchase_time" field.

func PurchaseTimeNEQ

func PurchaseTimeNEQ(v time.Time) predicate.Item

PurchaseTimeNEQ applies the NEQ predicate on the "purchase_time" field.

func PurchaseTimeNotIn

func PurchaseTimeNotIn(vs ...time.Time) predicate.Item

PurchaseTimeNotIn applies the NotIn predicate on the "purchase_time" field.

func PurchaseTimeNotNil

func PurchaseTimeNotNil() predicate.Item

PurchaseTimeNotNil applies the NotNil predicate on the "purchase_time" field.

func Quantity

func Quantity(v int) predicate.Item

Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.

func QuantityEQ

func QuantityEQ(v int) predicate.Item

QuantityEQ applies the EQ predicate on the "quantity" field.

func QuantityGT

func QuantityGT(v int) predicate.Item

QuantityGT applies the GT predicate on the "quantity" field.

func QuantityGTE

func QuantityGTE(v int) predicate.Item

QuantityGTE applies the GTE predicate on the "quantity" field.

func QuantityIn

func QuantityIn(vs ...int) predicate.Item

QuantityIn applies the In predicate on the "quantity" field.

func QuantityLT

func QuantityLT(v int) predicate.Item

QuantityLT applies the LT predicate on the "quantity" field.

func QuantityLTE

func QuantityLTE(v int) predicate.Item

QuantityLTE applies the LTE predicate on the "quantity" field.

func QuantityNEQ

func QuantityNEQ(v int) predicate.Item

QuantityNEQ applies the NEQ predicate on the "quantity" field.

func QuantityNotIn

func QuantityNotIn(vs ...int) predicate.Item

QuantityNotIn applies the NotIn predicate on the "quantity" field.

func SerialNumber

func SerialNumber(v string) predicate.Item

SerialNumber applies equality check predicate on the "serial_number" field. It's identical to SerialNumberEQ.

func SerialNumberContains

func SerialNumberContains(v string) predicate.Item

SerialNumberContains applies the Contains predicate on the "serial_number" field.

func SerialNumberContainsFold

func SerialNumberContainsFold(v string) predicate.Item

SerialNumberContainsFold applies the ContainsFold predicate on the "serial_number" field.

func SerialNumberEQ

func SerialNumberEQ(v string) predicate.Item

SerialNumberEQ applies the EQ predicate on the "serial_number" field.

func SerialNumberEqualFold

func SerialNumberEqualFold(v string) predicate.Item

SerialNumberEqualFold applies the EqualFold predicate on the "serial_number" field.

func SerialNumberGT

func SerialNumberGT(v string) predicate.Item

SerialNumberGT applies the GT predicate on the "serial_number" field.

func SerialNumberGTE

func SerialNumberGTE(v string) predicate.Item

SerialNumberGTE applies the GTE predicate on the "serial_number" field.

func SerialNumberHasPrefix

func SerialNumberHasPrefix(v string) predicate.Item

SerialNumberHasPrefix applies the HasPrefix predicate on the "serial_number" field.

func SerialNumberHasSuffix

func SerialNumberHasSuffix(v string) predicate.Item

SerialNumberHasSuffix applies the HasSuffix predicate on the "serial_number" field.

func SerialNumberIn

func SerialNumberIn(vs ...string) predicate.Item

SerialNumberIn applies the In predicate on the "serial_number" field.

func SerialNumberIsNil

func SerialNumberIsNil() predicate.Item

SerialNumberIsNil applies the IsNil predicate on the "serial_number" field.

func SerialNumberLT

func SerialNumberLT(v string) predicate.Item

SerialNumberLT applies the LT predicate on the "serial_number" field.

func SerialNumberLTE

func SerialNumberLTE(v string) predicate.Item

SerialNumberLTE applies the LTE predicate on the "serial_number" field.

func SerialNumberNEQ

func SerialNumberNEQ(v string) predicate.Item

SerialNumberNEQ applies the NEQ predicate on the "serial_number" field.

func SerialNumberNotIn

func SerialNumberNotIn(vs ...string) predicate.Item

SerialNumberNotIn applies the NotIn predicate on the "serial_number" field.

func SerialNumberNotNil

func SerialNumberNotNil() predicate.Item

SerialNumberNotNil applies the NotNil predicate on the "serial_number" field.

func SoldNotes

func SoldNotes(v string) predicate.Item

SoldNotes applies equality check predicate on the "sold_notes" field. It's identical to SoldNotesEQ.

func SoldNotesContains

func SoldNotesContains(v string) predicate.Item

SoldNotesContains applies the Contains predicate on the "sold_notes" field.

func SoldNotesContainsFold

func SoldNotesContainsFold(v string) predicate.Item

SoldNotesContainsFold applies the ContainsFold predicate on the "sold_notes" field.

func SoldNotesEQ

func SoldNotesEQ(v string) predicate.Item

SoldNotesEQ applies the EQ predicate on the "sold_notes" field.

func SoldNotesEqualFold

func SoldNotesEqualFold(v string) predicate.Item

SoldNotesEqualFold applies the EqualFold predicate on the "sold_notes" field.

func SoldNotesGT

func SoldNotesGT(v string) predicate.Item

SoldNotesGT applies the GT predicate on the "sold_notes" field.

func SoldNotesGTE

func SoldNotesGTE(v string) predicate.Item

SoldNotesGTE applies the GTE predicate on the "sold_notes" field.

func SoldNotesHasPrefix

func SoldNotesHasPrefix(v string) predicate.Item

SoldNotesHasPrefix applies the HasPrefix predicate on the "sold_notes" field.

func SoldNotesHasSuffix

func SoldNotesHasSuffix(v string) predicate.Item

SoldNotesHasSuffix applies the HasSuffix predicate on the "sold_notes" field.

func SoldNotesIn

func SoldNotesIn(vs ...string) predicate.Item

SoldNotesIn applies the In predicate on the "sold_notes" field.

func SoldNotesIsNil

func SoldNotesIsNil() predicate.Item

SoldNotesIsNil applies the IsNil predicate on the "sold_notes" field.

func SoldNotesLT

func SoldNotesLT(v string) predicate.Item

SoldNotesLT applies the LT predicate on the "sold_notes" field.

func SoldNotesLTE

func SoldNotesLTE(v string) predicate.Item

SoldNotesLTE applies the LTE predicate on the "sold_notes" field.

func SoldNotesNEQ

func SoldNotesNEQ(v string) predicate.Item

SoldNotesNEQ applies the NEQ predicate on the "sold_notes" field.

func SoldNotesNotIn

func SoldNotesNotIn(vs ...string) predicate.Item

SoldNotesNotIn applies the NotIn predicate on the "sold_notes" field.

func SoldNotesNotNil

func SoldNotesNotNil() predicate.Item

SoldNotesNotNil applies the NotNil predicate on the "sold_notes" field.

func SoldPrice

func SoldPrice(v float64) predicate.Item

SoldPrice applies equality check predicate on the "sold_price" field. It's identical to SoldPriceEQ.

func SoldPriceEQ

func SoldPriceEQ(v float64) predicate.Item

SoldPriceEQ applies the EQ predicate on the "sold_price" field.

func SoldPriceGT

func SoldPriceGT(v float64) predicate.Item

SoldPriceGT applies the GT predicate on the "sold_price" field.

func SoldPriceGTE

func SoldPriceGTE(v float64) predicate.Item

SoldPriceGTE applies the GTE predicate on the "sold_price" field.

func SoldPriceIn

func SoldPriceIn(vs ...float64) predicate.Item

SoldPriceIn applies the In predicate on the "sold_price" field.

func SoldPriceLT

func SoldPriceLT(v float64) predicate.Item

SoldPriceLT applies the LT predicate on the "sold_price" field.

func SoldPriceLTE

func SoldPriceLTE(v float64) predicate.Item

SoldPriceLTE applies the LTE predicate on the "sold_price" field.

func SoldPriceNEQ

func SoldPriceNEQ(v float64) predicate.Item

SoldPriceNEQ applies the NEQ predicate on the "sold_price" field.

func SoldPriceNotIn

func SoldPriceNotIn(vs ...float64) predicate.Item

SoldPriceNotIn applies the NotIn predicate on the "sold_price" field.

func SoldTime

func SoldTime(v time.Time) predicate.Item

SoldTime applies equality check predicate on the "sold_time" field. It's identical to SoldTimeEQ.

func SoldTimeEQ

func SoldTimeEQ(v time.Time) predicate.Item

SoldTimeEQ applies the EQ predicate on the "sold_time" field.

func SoldTimeGT

func SoldTimeGT(v time.Time) predicate.Item

SoldTimeGT applies the GT predicate on the "sold_time" field.

func SoldTimeGTE

func SoldTimeGTE(v time.Time) predicate.Item

SoldTimeGTE applies the GTE predicate on the "sold_time" field.

func SoldTimeIn

func SoldTimeIn(vs ...time.Time) predicate.Item

SoldTimeIn applies the In predicate on the "sold_time" field.

func SoldTimeIsNil

func SoldTimeIsNil() predicate.Item

SoldTimeIsNil applies the IsNil predicate on the "sold_time" field.

func SoldTimeLT

func SoldTimeLT(v time.Time) predicate.Item

SoldTimeLT applies the LT predicate on the "sold_time" field.

func SoldTimeLTE

func SoldTimeLTE(v time.Time) predicate.Item

SoldTimeLTE applies the LTE predicate on the "sold_time" field.

func SoldTimeNEQ

func SoldTimeNEQ(v time.Time) predicate.Item

SoldTimeNEQ applies the NEQ predicate on the "sold_time" field.

func SoldTimeNotIn

func SoldTimeNotIn(vs ...time.Time) predicate.Item

SoldTimeNotIn applies the NotIn predicate on the "sold_time" field.

func SoldTimeNotNil

func SoldTimeNotNil() predicate.Item

SoldTimeNotNil applies the NotNil predicate on the "sold_time" field.

func SoldTo

func SoldTo(v string) predicate.Item

SoldTo applies equality check predicate on the "sold_to" field. It's identical to SoldToEQ.

func SoldToContains

func SoldToContains(v string) predicate.Item

SoldToContains applies the Contains predicate on the "sold_to" field.

func SoldToContainsFold

func SoldToContainsFold(v string) predicate.Item

SoldToContainsFold applies the ContainsFold predicate on the "sold_to" field.

func SoldToEQ

func SoldToEQ(v string) predicate.Item

SoldToEQ applies the EQ predicate on the "sold_to" field.

func SoldToEqualFold

func SoldToEqualFold(v string) predicate.Item

SoldToEqualFold applies the EqualFold predicate on the "sold_to" field.

func SoldToGT

func SoldToGT(v string) predicate.Item

SoldToGT applies the GT predicate on the "sold_to" field.

func SoldToGTE

func SoldToGTE(v string) predicate.Item

SoldToGTE applies the GTE predicate on the "sold_to" field.

func SoldToHasPrefix

func SoldToHasPrefix(v string) predicate.Item

SoldToHasPrefix applies the HasPrefix predicate on the "sold_to" field.

func SoldToHasSuffix

func SoldToHasSuffix(v string) predicate.Item

SoldToHasSuffix applies the HasSuffix predicate on the "sold_to" field.

func SoldToIn

func SoldToIn(vs ...string) predicate.Item

SoldToIn applies the In predicate on the "sold_to" field.

func SoldToIsNil

func SoldToIsNil() predicate.Item

SoldToIsNil applies the IsNil predicate on the "sold_to" field.

func SoldToLT

func SoldToLT(v string) predicate.Item

SoldToLT applies the LT predicate on the "sold_to" field.

func SoldToLTE

func SoldToLTE(v string) predicate.Item

SoldToLTE applies the LTE predicate on the "sold_to" field.

func SoldToNEQ

func SoldToNEQ(v string) predicate.Item

SoldToNEQ applies the NEQ predicate on the "sold_to" field.

func SoldToNotIn

func SoldToNotIn(vs ...string) predicate.Item

SoldToNotIn applies the NotIn predicate on the "sold_to" field.

func SoldToNotNil

func SoldToNotNil() predicate.Item

SoldToNotNil applies the NotNil predicate on the "sold_to" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Item

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Item

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Item

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Item

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Item

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Item

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Item

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

func UpdatedAtNotIn

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

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

func WarrantyDetails

func WarrantyDetails(v string) predicate.Item

WarrantyDetails applies equality check predicate on the "warranty_details" field. It's identical to WarrantyDetailsEQ.

func WarrantyDetailsContains

func WarrantyDetailsContains(v string) predicate.Item

WarrantyDetailsContains applies the Contains predicate on the "warranty_details" field.

func WarrantyDetailsContainsFold

func WarrantyDetailsContainsFold(v string) predicate.Item

WarrantyDetailsContainsFold applies the ContainsFold predicate on the "warranty_details" field.

func WarrantyDetailsEQ

func WarrantyDetailsEQ(v string) predicate.Item

WarrantyDetailsEQ applies the EQ predicate on the "warranty_details" field.

func WarrantyDetailsEqualFold

func WarrantyDetailsEqualFold(v string) predicate.Item

WarrantyDetailsEqualFold applies the EqualFold predicate on the "warranty_details" field.

func WarrantyDetailsGT

func WarrantyDetailsGT(v string) predicate.Item

WarrantyDetailsGT applies the GT predicate on the "warranty_details" field.

func WarrantyDetailsGTE

func WarrantyDetailsGTE(v string) predicate.Item

WarrantyDetailsGTE applies the GTE predicate on the "warranty_details" field.

func WarrantyDetailsHasPrefix

func WarrantyDetailsHasPrefix(v string) predicate.Item

WarrantyDetailsHasPrefix applies the HasPrefix predicate on the "warranty_details" field.

func WarrantyDetailsHasSuffix

func WarrantyDetailsHasSuffix(v string) predicate.Item

WarrantyDetailsHasSuffix applies the HasSuffix predicate on the "warranty_details" field.

func WarrantyDetailsIn

func WarrantyDetailsIn(vs ...string) predicate.Item

WarrantyDetailsIn applies the In predicate on the "warranty_details" field.

func WarrantyDetailsIsNil

func WarrantyDetailsIsNil() predicate.Item

WarrantyDetailsIsNil applies the IsNil predicate on the "warranty_details" field.

func WarrantyDetailsLT

func WarrantyDetailsLT(v string) predicate.Item

WarrantyDetailsLT applies the LT predicate on the "warranty_details" field.

func WarrantyDetailsLTE

func WarrantyDetailsLTE(v string) predicate.Item

WarrantyDetailsLTE applies the LTE predicate on the "warranty_details" field.

func WarrantyDetailsNEQ

func WarrantyDetailsNEQ(v string) predicate.Item

WarrantyDetailsNEQ applies the NEQ predicate on the "warranty_details" field.

func WarrantyDetailsNotIn

func WarrantyDetailsNotIn(vs ...string) predicate.Item

WarrantyDetailsNotIn applies the NotIn predicate on the "warranty_details" field.

func WarrantyDetailsNotNil

func WarrantyDetailsNotNil() predicate.Item

WarrantyDetailsNotNil applies the NotNil predicate on the "warranty_details" field.

func WarrantyExpires

func WarrantyExpires(v time.Time) predicate.Item

WarrantyExpires applies equality check predicate on the "warranty_expires" field. It's identical to WarrantyExpiresEQ.

func WarrantyExpiresEQ

func WarrantyExpiresEQ(v time.Time) predicate.Item

WarrantyExpiresEQ applies the EQ predicate on the "warranty_expires" field.

func WarrantyExpiresGT

func WarrantyExpiresGT(v time.Time) predicate.Item

WarrantyExpiresGT applies the GT predicate on the "warranty_expires" field.

func WarrantyExpiresGTE

func WarrantyExpiresGTE(v time.Time) predicate.Item

WarrantyExpiresGTE applies the GTE predicate on the "warranty_expires" field.

func WarrantyExpiresIn

func WarrantyExpiresIn(vs ...time.Time) predicate.Item

WarrantyExpiresIn applies the In predicate on the "warranty_expires" field.

func WarrantyExpiresIsNil

func WarrantyExpiresIsNil() predicate.Item

WarrantyExpiresIsNil applies the IsNil predicate on the "warranty_expires" field.

func WarrantyExpiresLT

func WarrantyExpiresLT(v time.Time) predicate.Item

WarrantyExpiresLT applies the LT predicate on the "warranty_expires" field.

func WarrantyExpiresLTE

func WarrantyExpiresLTE(v time.Time) predicate.Item

WarrantyExpiresLTE applies the LTE predicate on the "warranty_expires" field.

func WarrantyExpiresNEQ

func WarrantyExpiresNEQ(v time.Time) predicate.Item

WarrantyExpiresNEQ applies the NEQ predicate on the "warranty_expires" field.

func WarrantyExpiresNotIn

func WarrantyExpiresNotIn(vs ...time.Time) predicate.Item

WarrantyExpiresNotIn applies the NotIn predicate on the "warranty_expires" field.

func WarrantyExpiresNotNil

func WarrantyExpiresNotNil() predicate.Item

WarrantyExpiresNotNil applies the NotNil predicate on the "warranty_expires" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Item queries.

func ByArchived

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

ByArchived orders the results by the archived field.

func ByAssetID

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

ByAssetID orders the results by the asset_id field.

func ByAttachments

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

ByAttachments orders the results by attachments terms.

func ByAttachmentsCount

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

ByAttachmentsCount orders the results by attachments count.

func ByChildren

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

ByChildren orders the results by children terms.

func ByChildrenCount

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

ByChildrenCount orders the results by children count.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByFields

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

ByFields orders the results by fields terms.

func ByFieldsCount

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

ByFieldsCount orders the results by fields count.

func ByGroupField

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

ByGroupField orders the results by group field.

func ByID

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

ByID orders the results by the id field.

func ByImportRef

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

ByImportRef orders the results by the import_ref field.

func ByInsured

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

ByInsured orders the results by the insured field.

func ByLabel

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

ByLabel orders the results by label terms.

func ByLabelCount

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

ByLabelCount orders the results by label count.

func ByLifetimeWarranty

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

ByLifetimeWarranty orders the results by the lifetime_warranty field.

func ByLocationField

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

ByLocationField orders the results by location field.

func ByMaintenanceEntries

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

ByMaintenanceEntries orders the results by maintenance_entries terms.

func ByMaintenanceEntriesCount

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

ByMaintenanceEntriesCount orders the results by maintenance_entries count.

func ByManufacturer

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

ByManufacturer orders the results by the manufacturer field.

func ByModelNumber

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

ByModelNumber orders the results by the model_number field.

func ByName

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

ByName orders the results by the name field.

func ByNotes

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

ByNotes orders the results by the notes field.

func ByParentField

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

ByParentField orders the results by parent field.

func ByPurchaseFrom

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

ByPurchaseFrom orders the results by the purchase_from field.

func ByPurchasePrice

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

ByPurchasePrice orders the results by the purchase_price field.

func ByPurchaseTime

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

ByPurchaseTime orders the results by the purchase_time field.

func ByQuantity

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

ByQuantity orders the results by the quantity field.

func BySerialNumber

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

BySerialNumber orders the results by the serial_number field.

func BySoldNotes

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

BySoldNotes orders the results by the sold_notes field.

func BySoldPrice

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

BySoldPrice orders the results by the sold_price field.

func BySoldTime

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

BySoldTime orders the results by the sold_time field.

func BySoldTo

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

BySoldTo orders the results by the sold_to field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByWarrantyDetails

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

ByWarrantyDetails orders the results by the warranty_details field.

func ByWarrantyExpires

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

ByWarrantyExpires orders the results by the warranty_expires field.

Jump to

Keyboard shortcuts

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