Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Item) predicate.Item
- func Archived(v bool) predicate.Item
- func ArchivedEQ(v bool) predicate.Item
- func ArchivedNEQ(v bool) predicate.Item
- func AssetID(v int) predicate.Item
- func AssetIDEQ(v int) predicate.Item
- func AssetIDGT(v int) predicate.Item
- func AssetIDGTE(v int) predicate.Item
- func AssetIDIn(vs ...int) predicate.Item
- func AssetIDLT(v int) predicate.Item
- func AssetIDLTE(v int) predicate.Item
- func AssetIDNEQ(v int) predicate.Item
- func AssetIDNotIn(vs ...int) predicate.Item
- func CreatedAt(v time.Time) predicate.Item
- func CreatedAtEQ(v time.Time) predicate.Item
- func CreatedAtGT(v time.Time) predicate.Item
- func CreatedAtGTE(v time.Time) predicate.Item
- func CreatedAtIn(vs ...time.Time) predicate.Item
- func CreatedAtLT(v time.Time) predicate.Item
- func CreatedAtLTE(v time.Time) predicate.Item
- func CreatedAtNEQ(v time.Time) predicate.Item
- func CreatedAtNotIn(vs ...time.Time) predicate.Item
- func Description(v string) predicate.Item
- func DescriptionContains(v string) predicate.Item
- func DescriptionContainsFold(v string) predicate.Item
- func DescriptionEQ(v string) predicate.Item
- func DescriptionEqualFold(v string) predicate.Item
- func DescriptionGT(v string) predicate.Item
- func DescriptionGTE(v string) predicate.Item
- func DescriptionHasPrefix(v string) predicate.Item
- func DescriptionHasSuffix(v string) predicate.Item
- func DescriptionIn(vs ...string) predicate.Item
- func DescriptionIsNil() predicate.Item
- func DescriptionLT(v string) predicate.Item
- func DescriptionLTE(v string) predicate.Item
- func DescriptionNEQ(v string) predicate.Item
- func DescriptionNotIn(vs ...string) predicate.Item
- func DescriptionNotNil() predicate.Item
- func HasAttachments() predicate.Item
- func HasAttachmentsWith(preds ...predicate.Attachment) predicate.Item
- func HasChildren() predicate.Item
- func HasChildrenWith(preds ...predicate.Item) predicate.Item
- func HasFields() predicate.Item
- func HasFieldsWith(preds ...predicate.ItemField) predicate.Item
- func HasGroup() predicate.Item
- func HasGroupWith(preds ...predicate.Group) predicate.Item
- func HasLabel() predicate.Item
- func HasLabelWith(preds ...predicate.Label) predicate.Item
- func HasLocation() predicate.Item
- func HasLocationWith(preds ...predicate.Location) predicate.Item
- func HasMaintenanceEntries() predicate.Item
- func HasMaintenanceEntriesWith(preds ...predicate.MaintenanceEntry) predicate.Item
- func HasParent() predicate.Item
- func HasParentWith(preds ...predicate.Item) predicate.Item
- func ID(id uuid.UUID) predicate.Item
- func IDEQ(id uuid.UUID) predicate.Item
- func IDGT(id uuid.UUID) predicate.Item
- func IDGTE(id uuid.UUID) predicate.Item
- func IDIn(ids ...uuid.UUID) predicate.Item
- func IDLT(id uuid.UUID) predicate.Item
- func IDLTE(id uuid.UUID) predicate.Item
- func IDNEQ(id uuid.UUID) predicate.Item
- func IDNotIn(ids ...uuid.UUID) predicate.Item
- func ImportRef(v string) predicate.Item
- func ImportRefContains(v string) predicate.Item
- func ImportRefContainsFold(v string) predicate.Item
- func ImportRefEQ(v string) predicate.Item
- func ImportRefEqualFold(v string) predicate.Item
- func ImportRefGT(v string) predicate.Item
- func ImportRefGTE(v string) predicate.Item
- func ImportRefHasPrefix(v string) predicate.Item
- func ImportRefHasSuffix(v string) predicate.Item
- func ImportRefIn(vs ...string) predicate.Item
- func ImportRefIsNil() predicate.Item
- func ImportRefLT(v string) predicate.Item
- func ImportRefLTE(v string) predicate.Item
- func ImportRefNEQ(v string) predicate.Item
- func ImportRefNotIn(vs ...string) predicate.Item
- func ImportRefNotNil() predicate.Item
- func Insured(v bool) predicate.Item
- func InsuredEQ(v bool) predicate.Item
- func InsuredNEQ(v bool) predicate.Item
- func LifetimeWarranty(v bool) predicate.Item
- func LifetimeWarrantyEQ(v bool) predicate.Item
- func LifetimeWarrantyNEQ(v bool) predicate.Item
- func Manufacturer(v string) predicate.Item
- func ManufacturerContains(v string) predicate.Item
- func ManufacturerContainsFold(v string) predicate.Item
- func ManufacturerEQ(v string) predicate.Item
- func ManufacturerEqualFold(v string) predicate.Item
- func ManufacturerGT(v string) predicate.Item
- func ManufacturerGTE(v string) predicate.Item
- func ManufacturerHasPrefix(v string) predicate.Item
- func ManufacturerHasSuffix(v string) predicate.Item
- func ManufacturerIn(vs ...string) predicate.Item
- func ManufacturerIsNil() predicate.Item
- func ManufacturerLT(v string) predicate.Item
- func ManufacturerLTE(v string) predicate.Item
- func ManufacturerNEQ(v string) predicate.Item
- func ManufacturerNotIn(vs ...string) predicate.Item
- func ManufacturerNotNil() predicate.Item
- func ModelNumber(v string) predicate.Item
- func ModelNumberContains(v string) predicate.Item
- func ModelNumberContainsFold(v string) predicate.Item
- func ModelNumberEQ(v string) predicate.Item
- func ModelNumberEqualFold(v string) predicate.Item
- func ModelNumberGT(v string) predicate.Item
- func ModelNumberGTE(v string) predicate.Item
- func ModelNumberHasPrefix(v string) predicate.Item
- func ModelNumberHasSuffix(v string) predicate.Item
- func ModelNumberIn(vs ...string) predicate.Item
- func ModelNumberIsNil() predicate.Item
- func ModelNumberLT(v string) predicate.Item
- func ModelNumberLTE(v string) predicate.Item
- func ModelNumberNEQ(v string) predicate.Item
- func ModelNumberNotIn(vs ...string) predicate.Item
- func ModelNumberNotNil() predicate.Item
- func Name(v string) predicate.Item
- func NameContains(v string) predicate.Item
- func NameContainsFold(v string) predicate.Item
- func NameEQ(v string) predicate.Item
- func NameEqualFold(v string) predicate.Item
- func NameGT(v string) predicate.Item
- func NameGTE(v string) predicate.Item
- func NameHasPrefix(v string) predicate.Item
- func NameHasSuffix(v string) predicate.Item
- func NameIn(vs ...string) predicate.Item
- func NameLT(v string) predicate.Item
- func NameLTE(v string) predicate.Item
- func NameNEQ(v string) predicate.Item
- func NameNotIn(vs ...string) predicate.Item
- func Not(p predicate.Item) predicate.Item
- func Notes(v string) predicate.Item
- func NotesContains(v string) predicate.Item
- func NotesContainsFold(v string) predicate.Item
- func NotesEQ(v string) predicate.Item
- func NotesEqualFold(v string) predicate.Item
- func NotesGT(v string) predicate.Item
- func NotesGTE(v string) predicate.Item
- func NotesHasPrefix(v string) predicate.Item
- func NotesHasSuffix(v string) predicate.Item
- func NotesIn(vs ...string) predicate.Item
- func NotesIsNil() predicate.Item
- func NotesLT(v string) predicate.Item
- func NotesLTE(v string) predicate.Item
- func NotesNEQ(v string) predicate.Item
- func NotesNotIn(vs ...string) predicate.Item
- func NotesNotNil() predicate.Item
- func Or(predicates ...predicate.Item) predicate.Item
- func PurchaseFrom(v string) predicate.Item
- func PurchaseFromContains(v string) predicate.Item
- func PurchaseFromContainsFold(v string) predicate.Item
- func PurchaseFromEQ(v string) predicate.Item
- func PurchaseFromEqualFold(v string) predicate.Item
- func PurchaseFromGT(v string) predicate.Item
- func PurchaseFromGTE(v string) predicate.Item
- func PurchaseFromHasPrefix(v string) predicate.Item
- func PurchaseFromHasSuffix(v string) predicate.Item
- func PurchaseFromIn(vs ...string) predicate.Item
- func PurchaseFromIsNil() predicate.Item
- func PurchaseFromLT(v string) predicate.Item
- func PurchaseFromLTE(v string) predicate.Item
- func PurchaseFromNEQ(v string) predicate.Item
- func PurchaseFromNotIn(vs ...string) predicate.Item
- func PurchaseFromNotNil() predicate.Item
- func PurchasePrice(v float64) predicate.Item
- func PurchasePriceEQ(v float64) predicate.Item
- func PurchasePriceGT(v float64) predicate.Item
- func PurchasePriceGTE(v float64) predicate.Item
- func PurchasePriceIn(vs ...float64) predicate.Item
- func PurchasePriceLT(v float64) predicate.Item
- func PurchasePriceLTE(v float64) predicate.Item
- func PurchasePriceNEQ(v float64) predicate.Item
- func PurchasePriceNotIn(vs ...float64) predicate.Item
- func PurchaseTime(v time.Time) predicate.Item
- func PurchaseTimeEQ(v time.Time) predicate.Item
- func PurchaseTimeGT(v time.Time) predicate.Item
- func PurchaseTimeGTE(v time.Time) predicate.Item
- func PurchaseTimeIn(vs ...time.Time) predicate.Item
- func PurchaseTimeIsNil() predicate.Item
- func PurchaseTimeLT(v time.Time) predicate.Item
- func PurchaseTimeLTE(v time.Time) predicate.Item
- func PurchaseTimeNEQ(v time.Time) predicate.Item
- func PurchaseTimeNotIn(vs ...time.Time) predicate.Item
- func PurchaseTimeNotNil() predicate.Item
- func Quantity(v int) predicate.Item
- func QuantityEQ(v int) predicate.Item
- func QuantityGT(v int) predicate.Item
- func QuantityGTE(v int) predicate.Item
- func QuantityIn(vs ...int) predicate.Item
- func QuantityLT(v int) predicate.Item
- func QuantityLTE(v int) predicate.Item
- func QuantityNEQ(v int) predicate.Item
- func QuantityNotIn(vs ...int) predicate.Item
- func SerialNumber(v string) predicate.Item
- func SerialNumberContains(v string) predicate.Item
- func SerialNumberContainsFold(v string) predicate.Item
- func SerialNumberEQ(v string) predicate.Item
- func SerialNumberEqualFold(v string) predicate.Item
- func SerialNumberGT(v string) predicate.Item
- func SerialNumberGTE(v string) predicate.Item
- func SerialNumberHasPrefix(v string) predicate.Item
- func SerialNumberHasSuffix(v string) predicate.Item
- func SerialNumberIn(vs ...string) predicate.Item
- func SerialNumberIsNil() predicate.Item
- func SerialNumberLT(v string) predicate.Item
- func SerialNumberLTE(v string) predicate.Item
- func SerialNumberNEQ(v string) predicate.Item
- func SerialNumberNotIn(vs ...string) predicate.Item
- func SerialNumberNotNil() predicate.Item
- func SoldNotes(v string) predicate.Item
- func SoldNotesContains(v string) predicate.Item
- func SoldNotesContainsFold(v string) predicate.Item
- func SoldNotesEQ(v string) predicate.Item
- func SoldNotesEqualFold(v string) predicate.Item
- func SoldNotesGT(v string) predicate.Item
- func SoldNotesGTE(v string) predicate.Item
- func SoldNotesHasPrefix(v string) predicate.Item
- func SoldNotesHasSuffix(v string) predicate.Item
- func SoldNotesIn(vs ...string) predicate.Item
- func SoldNotesIsNil() predicate.Item
- func SoldNotesLT(v string) predicate.Item
- func SoldNotesLTE(v string) predicate.Item
- func SoldNotesNEQ(v string) predicate.Item
- func SoldNotesNotIn(vs ...string) predicate.Item
- func SoldNotesNotNil() predicate.Item
- func SoldPrice(v float64) predicate.Item
- func SoldPriceEQ(v float64) predicate.Item
- func SoldPriceGT(v float64) predicate.Item
- func SoldPriceGTE(v float64) predicate.Item
- func SoldPriceIn(vs ...float64) predicate.Item
- func SoldPriceLT(v float64) predicate.Item
- func SoldPriceLTE(v float64) predicate.Item
- func SoldPriceNEQ(v float64) predicate.Item
- func SoldPriceNotIn(vs ...float64) predicate.Item
- func SoldTime(v time.Time) predicate.Item
- func SoldTimeEQ(v time.Time) predicate.Item
- func SoldTimeGT(v time.Time) predicate.Item
- func SoldTimeGTE(v time.Time) predicate.Item
- func SoldTimeIn(vs ...time.Time) predicate.Item
- func SoldTimeIsNil() predicate.Item
- func SoldTimeLT(v time.Time) predicate.Item
- func SoldTimeLTE(v time.Time) predicate.Item
- func SoldTimeNEQ(v time.Time) predicate.Item
- func SoldTimeNotIn(vs ...time.Time) predicate.Item
- func SoldTimeNotNil() predicate.Item
- func SoldTo(v string) predicate.Item
- func SoldToContains(v string) predicate.Item
- func SoldToContainsFold(v string) predicate.Item
- func SoldToEQ(v string) predicate.Item
- func SoldToEqualFold(v string) predicate.Item
- func SoldToGT(v string) predicate.Item
- func SoldToGTE(v string) predicate.Item
- func SoldToHasPrefix(v string) predicate.Item
- func SoldToHasSuffix(v string) predicate.Item
- func SoldToIn(vs ...string) predicate.Item
- func SoldToIsNil() predicate.Item
- func SoldToLT(v string) predicate.Item
- func SoldToLTE(v string) predicate.Item
- func SoldToNEQ(v string) predicate.Item
- func SoldToNotIn(vs ...string) predicate.Item
- func SoldToNotNil() predicate.Item
- func UpdatedAt(v time.Time) predicate.Item
- func UpdatedAtEQ(v time.Time) predicate.Item
- func UpdatedAtGT(v time.Time) predicate.Item
- func UpdatedAtGTE(v time.Time) predicate.Item
- func UpdatedAtIn(vs ...time.Time) predicate.Item
- func UpdatedAtLT(v time.Time) predicate.Item
- func UpdatedAtLTE(v time.Time) predicate.Item
- func UpdatedAtNEQ(v time.Time) predicate.Item
- func UpdatedAtNotIn(vs ...time.Time) predicate.Item
- func ValidColumn(column string) bool
- func WarrantyDetails(v string) predicate.Item
- func WarrantyDetailsContains(v string) predicate.Item
- func WarrantyDetailsContainsFold(v string) predicate.Item
- func WarrantyDetailsEQ(v string) predicate.Item
- func WarrantyDetailsEqualFold(v string) predicate.Item
- func WarrantyDetailsGT(v string) predicate.Item
- func WarrantyDetailsGTE(v string) predicate.Item
- func WarrantyDetailsHasPrefix(v string) predicate.Item
- func WarrantyDetailsHasSuffix(v string) predicate.Item
- func WarrantyDetailsIn(vs ...string) predicate.Item
- func WarrantyDetailsIsNil() predicate.Item
- func WarrantyDetailsLT(v string) predicate.Item
- func WarrantyDetailsLTE(v string) predicate.Item
- func WarrantyDetailsNEQ(v string) predicate.Item
- func WarrantyDetailsNotIn(vs ...string) predicate.Item
- func WarrantyDetailsNotNil() predicate.Item
- func WarrantyExpires(v time.Time) predicate.Item
- func WarrantyExpiresEQ(v time.Time) predicate.Item
- func WarrantyExpiresGT(v time.Time) predicate.Item
- func WarrantyExpiresGTE(v time.Time) predicate.Item
- func WarrantyExpiresIn(vs ...time.Time) predicate.Item
- func WarrantyExpiresIsNil() predicate.Item
- func WarrantyExpiresLT(v time.Time) predicate.Item
- func WarrantyExpiresLTE(v time.Time) predicate.Item
- func WarrantyExpiresNEQ(v time.Time) predicate.Item
- func WarrantyExpiresNotIn(vs ...time.Time) predicate.Item
- func WarrantyExpiresNotNil() predicate.Item
- type OrderOption
- func ByArchived(opts ...sql.OrderTermOption) OrderOption
- func ByAssetID(opts ...sql.OrderTermOption) OrderOption
- func ByAttachments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAttachmentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByFields(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFieldsCount(opts ...sql.OrderTermOption) OrderOption
- func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByImportRef(opts ...sql.OrderTermOption) OrderOption
- func ByInsured(opts ...sql.OrderTermOption) OrderOption
- func ByLabel(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLabelCount(opts ...sql.OrderTermOption) OrderOption
- func ByLifetimeWarranty(opts ...sql.OrderTermOption) OrderOption
- func ByLocationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByMaintenanceEntries(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMaintenanceEntriesCount(opts ...sql.OrderTermOption) OrderOption
- func ByManufacturer(opts ...sql.OrderTermOption) OrderOption
- func ByModelNumber(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNotes(opts ...sql.OrderTermOption) OrderOption
- func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPurchaseFrom(opts ...sql.OrderTermOption) OrderOption
- func ByPurchasePrice(opts ...sql.OrderTermOption) OrderOption
- func ByPurchaseTime(opts ...sql.OrderTermOption) OrderOption
- func ByQuantity(opts ...sql.OrderTermOption) OrderOption
- func BySerialNumber(opts ...sql.OrderTermOption) OrderOption
- func BySoldNotes(opts ...sql.OrderTermOption) OrderOption
- func BySoldPrice(opts ...sql.OrderTermOption) OrderOption
- func BySoldTime(opts ...sql.OrderTermOption) OrderOption
- func BySoldTo(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByWarrantyDetails(opts ...sql.OrderTermOption) OrderOption
- func ByWarrantyExpires(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldDescription, FieldImportRef, FieldNotes, FieldQuantity, FieldInsured, FieldArchived, FieldAssetID, FieldSerialNumber, FieldModelNumber, FieldManufacturer, FieldLifetimeWarranty, FieldWarrantyExpires, FieldWarrantyDetails, FieldPurchaseTime, FieldPurchaseFrom, FieldPurchasePrice, FieldSoldTime, FieldSoldTo, FieldSoldPrice, FieldSoldNotes, }
Columns holds all SQL columns for item fields.
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.
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 Archived ¶
Archived applies equality check predicate on the "archived" field. It's identical to ArchivedEQ.
func ArchivedEQ ¶
ArchivedEQ applies the EQ predicate on the "archived" field.
func ArchivedNEQ ¶
ArchivedNEQ applies the NEQ predicate on the "archived" field.
func AssetID ¶
AssetID applies equality check predicate on the "asset_id" field. It's identical to AssetIDEQ.
func AssetIDGTE ¶
AssetIDGTE applies the GTE predicate on the "asset_id" field.
func AssetIDLTE ¶
AssetIDLTE applies the LTE predicate on the "asset_id" field.
func AssetIDNEQ ¶
AssetIDNEQ applies the NEQ predicate on the "asset_id" field.
func AssetIDNotIn ¶
AssetIDNotIn applies the NotIn predicate on the "asset_id" field.
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 Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasAttachments ¶
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 ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasFieldsWith ¶
HasFieldsWith applies the HasEdge predicate on the "fields" edge with a given conditions (other predicates).
func HasGroupWith ¶
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func HasLabelWith ¶
HasLabelWith applies the HasEdge predicate on the "label" edge with a given conditions (other predicates).
func HasLocation ¶
HasLocation applies the HasEdge predicate on the "location" edge.
func HasLocationWith ¶
HasLocationWith applies the HasEdge predicate on the "location" edge with a given conditions (other predicates).
func HasMaintenanceEntries ¶
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 HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func ImportRef ¶
ImportRef applies equality check predicate on the "import_ref" field. It's identical to ImportRefEQ.
func ImportRefContains ¶
ImportRefContains applies the Contains predicate on the "import_ref" field.
func ImportRefContainsFold ¶
ImportRefContainsFold applies the ContainsFold predicate on the "import_ref" field.
func ImportRefEQ ¶
ImportRefEQ applies the EQ predicate on the "import_ref" field.
func ImportRefEqualFold ¶
ImportRefEqualFold applies the EqualFold predicate on the "import_ref" field.
func ImportRefGT ¶
ImportRefGT applies the GT predicate on the "import_ref" field.
func ImportRefGTE ¶
ImportRefGTE applies the GTE predicate on the "import_ref" field.
func ImportRefHasPrefix ¶
ImportRefHasPrefix applies the HasPrefix predicate on the "import_ref" field.
func ImportRefHasSuffix ¶
ImportRefHasSuffix applies the HasSuffix predicate on the "import_ref" field.
func ImportRefIn ¶
ImportRefIn applies the In predicate on the "import_ref" field.
func ImportRefIsNil ¶
ImportRefIsNil applies the IsNil predicate on the "import_ref" field.
func ImportRefLT ¶
ImportRefLT applies the LT predicate on the "import_ref" field.
func ImportRefLTE ¶
ImportRefLTE applies the LTE predicate on the "import_ref" field.
func ImportRefNEQ ¶
ImportRefNEQ applies the NEQ predicate on the "import_ref" field.
func ImportRefNotIn ¶
ImportRefNotIn applies the NotIn predicate on the "import_ref" field.
func ImportRefNotNil ¶
ImportRefNotNil applies the NotNil predicate on the "import_ref" field.
func Insured ¶
Insured applies equality check predicate on the "insured" field. It's identical to InsuredEQ.
func InsuredNEQ ¶
InsuredNEQ applies the NEQ predicate on the "insured" field.
func LifetimeWarranty ¶
LifetimeWarranty applies equality check predicate on the "lifetime_warranty" field. It's identical to LifetimeWarrantyEQ.
func LifetimeWarrantyEQ ¶
LifetimeWarrantyEQ applies the EQ predicate on the "lifetime_warranty" field.
func LifetimeWarrantyNEQ ¶
LifetimeWarrantyNEQ applies the NEQ predicate on the "lifetime_warranty" field.
func Manufacturer ¶
Manufacturer applies equality check predicate on the "manufacturer" field. It's identical to ManufacturerEQ.
func ManufacturerContains ¶
ManufacturerContains applies the Contains predicate on the "manufacturer" field.
func ManufacturerContainsFold ¶
ManufacturerContainsFold applies the ContainsFold predicate on the "manufacturer" field.
func ManufacturerEQ ¶
ManufacturerEQ applies the EQ predicate on the "manufacturer" field.
func ManufacturerEqualFold ¶
ManufacturerEqualFold applies the EqualFold predicate on the "manufacturer" field.
func ManufacturerGT ¶
ManufacturerGT applies the GT predicate on the "manufacturer" field.
func ManufacturerGTE ¶
ManufacturerGTE applies the GTE predicate on the "manufacturer" field.
func ManufacturerHasPrefix ¶
ManufacturerHasPrefix applies the HasPrefix predicate on the "manufacturer" field.
func ManufacturerHasSuffix ¶
ManufacturerHasSuffix applies the HasSuffix predicate on the "manufacturer" field.
func ManufacturerIn ¶
ManufacturerIn applies the In predicate on the "manufacturer" field.
func ManufacturerIsNil ¶
ManufacturerIsNil applies the IsNil predicate on the "manufacturer" field.
func ManufacturerLT ¶
ManufacturerLT applies the LT predicate on the "manufacturer" field.
func ManufacturerLTE ¶
ManufacturerLTE applies the LTE predicate on the "manufacturer" field.
func ManufacturerNEQ ¶
ManufacturerNEQ applies the NEQ predicate on the "manufacturer" field.
func ManufacturerNotIn ¶
ManufacturerNotIn applies the NotIn predicate on the "manufacturer" field.
func ManufacturerNotNil ¶
ManufacturerNotNil applies the NotNil predicate on the "manufacturer" field.
func ModelNumber ¶
ModelNumber applies equality check predicate on the "model_number" field. It's identical to ModelNumberEQ.
func ModelNumberContains ¶
ModelNumberContains applies the Contains predicate on the "model_number" field.
func ModelNumberContainsFold ¶
ModelNumberContainsFold applies the ContainsFold predicate on the "model_number" field.
func ModelNumberEQ ¶
ModelNumberEQ applies the EQ predicate on the "model_number" field.
func ModelNumberEqualFold ¶
ModelNumberEqualFold applies the EqualFold predicate on the "model_number" field.
func ModelNumberGT ¶
ModelNumberGT applies the GT predicate on the "model_number" field.
func ModelNumberGTE ¶
ModelNumberGTE applies the GTE predicate on the "model_number" field.
func ModelNumberHasPrefix ¶
ModelNumberHasPrefix applies the HasPrefix predicate on the "model_number" field.
func ModelNumberHasSuffix ¶
ModelNumberHasSuffix applies the HasSuffix predicate on the "model_number" field.
func ModelNumberIn ¶
ModelNumberIn applies the In predicate on the "model_number" field.
func ModelNumberIsNil ¶
ModelNumberIsNil applies the IsNil predicate on the "model_number" field.
func ModelNumberLT ¶
ModelNumberLT applies the LT predicate on the "model_number" field.
func ModelNumberLTE ¶
ModelNumberLTE applies the LTE predicate on the "model_number" field.
func ModelNumberNEQ ¶
ModelNumberNEQ applies the NEQ predicate on the "model_number" field.
func ModelNumberNotIn ¶
ModelNumberNotIn applies the NotIn predicate on the "model_number" field.
func ModelNumberNotNil ¶
ModelNumberNotNil applies the NotNil predicate on the "model_number" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Notes ¶
Notes applies equality check predicate on the "notes" field. It's identical to NotesEQ.
func NotesContains ¶
NotesContains applies the Contains predicate on the "notes" field.
func NotesContainsFold ¶
NotesContainsFold applies the ContainsFold predicate on the "notes" field.
func NotesEqualFold ¶
NotesEqualFold applies the EqualFold predicate on the "notes" field.
func NotesHasPrefix ¶
NotesHasPrefix applies the HasPrefix predicate on the "notes" field.
func NotesHasSuffix ¶
NotesHasSuffix applies the HasSuffix predicate on the "notes" field.
func NotesIsNil ¶
NotesIsNil applies the IsNil predicate on the "notes" field.
func NotesNotIn ¶
NotesNotIn applies the NotIn predicate on the "notes" field.
func NotesNotNil ¶
NotesNotNil applies the NotNil predicate on the "notes" field.
func PurchaseFrom ¶
PurchaseFrom applies equality check predicate on the "purchase_from" field. It's identical to PurchaseFromEQ.
func PurchaseFromContains ¶
PurchaseFromContains applies the Contains predicate on the "purchase_from" field.
func PurchaseFromContainsFold ¶
PurchaseFromContainsFold applies the ContainsFold predicate on the "purchase_from" field.
func PurchaseFromEQ ¶
PurchaseFromEQ applies the EQ predicate on the "purchase_from" field.
func PurchaseFromEqualFold ¶
PurchaseFromEqualFold applies the EqualFold predicate on the "purchase_from" field.
func PurchaseFromGT ¶
PurchaseFromGT applies the GT predicate on the "purchase_from" field.
func PurchaseFromGTE ¶
PurchaseFromGTE applies the GTE predicate on the "purchase_from" field.
func PurchaseFromHasPrefix ¶
PurchaseFromHasPrefix applies the HasPrefix predicate on the "purchase_from" field.
func PurchaseFromHasSuffix ¶
PurchaseFromHasSuffix applies the HasSuffix predicate on the "purchase_from" field.
func PurchaseFromIn ¶
PurchaseFromIn applies the In predicate on the "purchase_from" field.
func PurchaseFromIsNil ¶
PurchaseFromIsNil applies the IsNil predicate on the "purchase_from" field.
func PurchaseFromLT ¶
PurchaseFromLT applies the LT predicate on the "purchase_from" field.
func PurchaseFromLTE ¶
PurchaseFromLTE applies the LTE predicate on the "purchase_from" field.
func PurchaseFromNEQ ¶
PurchaseFromNEQ applies the NEQ predicate on the "purchase_from" field.
func PurchaseFromNotIn ¶
PurchaseFromNotIn applies the NotIn predicate on the "purchase_from" field.
func PurchaseFromNotNil ¶
PurchaseFromNotNil applies the NotNil predicate on the "purchase_from" field.
func PurchasePrice ¶
PurchasePrice applies equality check predicate on the "purchase_price" field. It's identical to PurchasePriceEQ.
func PurchasePriceEQ ¶
PurchasePriceEQ applies the EQ predicate on the "purchase_price" field.
func PurchasePriceGT ¶
PurchasePriceGT applies the GT predicate on the "purchase_price" field.
func PurchasePriceGTE ¶
PurchasePriceGTE applies the GTE predicate on the "purchase_price" field.
func PurchasePriceIn ¶
PurchasePriceIn applies the In predicate on the "purchase_price" field.
func PurchasePriceLT ¶
PurchasePriceLT applies the LT predicate on the "purchase_price" field.
func PurchasePriceLTE ¶
PurchasePriceLTE applies the LTE predicate on the "purchase_price" field.
func PurchasePriceNEQ ¶
PurchasePriceNEQ applies the NEQ predicate on the "purchase_price" field.
func PurchasePriceNotIn ¶
PurchasePriceNotIn applies the NotIn predicate on the "purchase_price" field.
func PurchaseTime ¶
PurchaseTime applies equality check predicate on the "purchase_time" field. It's identical to PurchaseTimeEQ.
func PurchaseTimeEQ ¶
PurchaseTimeEQ applies the EQ predicate on the "purchase_time" field.
func PurchaseTimeGT ¶
PurchaseTimeGT applies the GT predicate on the "purchase_time" field.
func PurchaseTimeGTE ¶
PurchaseTimeGTE applies the GTE predicate on the "purchase_time" field.
func PurchaseTimeIn ¶
PurchaseTimeIn applies the In predicate on the "purchase_time" field.
func PurchaseTimeIsNil ¶
PurchaseTimeIsNil applies the IsNil predicate on the "purchase_time" field.
func PurchaseTimeLT ¶
PurchaseTimeLT applies the LT predicate on the "purchase_time" field.
func PurchaseTimeLTE ¶
PurchaseTimeLTE applies the LTE predicate on the "purchase_time" field.
func PurchaseTimeNEQ ¶
PurchaseTimeNEQ applies the NEQ predicate on the "purchase_time" field.
func PurchaseTimeNotIn ¶
PurchaseTimeNotIn applies the NotIn predicate on the "purchase_time" field.
func PurchaseTimeNotNil ¶
PurchaseTimeNotNil applies the NotNil predicate on the "purchase_time" field.
func Quantity ¶
Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.
func QuantityEQ ¶
QuantityEQ applies the EQ predicate on the "quantity" field.
func QuantityGT ¶
QuantityGT applies the GT predicate on the "quantity" field.
func QuantityGTE ¶
QuantityGTE applies the GTE predicate on the "quantity" field.
func QuantityIn ¶
QuantityIn applies the In predicate on the "quantity" field.
func QuantityLT ¶
QuantityLT applies the LT predicate on the "quantity" field.
func QuantityLTE ¶
QuantityLTE applies the LTE predicate on the "quantity" field.
func QuantityNEQ ¶
QuantityNEQ applies the NEQ predicate on the "quantity" field.
func QuantityNotIn ¶
QuantityNotIn applies the NotIn predicate on the "quantity" field.
func SerialNumber ¶
SerialNumber applies equality check predicate on the "serial_number" field. It's identical to SerialNumberEQ.
func SerialNumberContains ¶
SerialNumberContains applies the Contains predicate on the "serial_number" field.
func SerialNumberContainsFold ¶
SerialNumberContainsFold applies the ContainsFold predicate on the "serial_number" field.
func SerialNumberEQ ¶
SerialNumberEQ applies the EQ predicate on the "serial_number" field.
func SerialNumberEqualFold ¶
SerialNumberEqualFold applies the EqualFold predicate on the "serial_number" field.
func SerialNumberGT ¶
SerialNumberGT applies the GT predicate on the "serial_number" field.
func SerialNumberGTE ¶
SerialNumberGTE applies the GTE predicate on the "serial_number" field.
func SerialNumberHasPrefix ¶
SerialNumberHasPrefix applies the HasPrefix predicate on the "serial_number" field.
func SerialNumberHasSuffix ¶
SerialNumberHasSuffix applies the HasSuffix predicate on the "serial_number" field.
func SerialNumberIn ¶
SerialNumberIn applies the In predicate on the "serial_number" field.
func SerialNumberIsNil ¶
SerialNumberIsNil applies the IsNil predicate on the "serial_number" field.
func SerialNumberLT ¶
SerialNumberLT applies the LT predicate on the "serial_number" field.
func SerialNumberLTE ¶
SerialNumberLTE applies the LTE predicate on the "serial_number" field.
func SerialNumberNEQ ¶
SerialNumberNEQ applies the NEQ predicate on the "serial_number" field.
func SerialNumberNotIn ¶
SerialNumberNotIn applies the NotIn predicate on the "serial_number" field.
func SerialNumberNotNil ¶
SerialNumberNotNil applies the NotNil predicate on the "serial_number" field.
func SoldNotes ¶
SoldNotes applies equality check predicate on the "sold_notes" field. It's identical to SoldNotesEQ.
func SoldNotesContains ¶
SoldNotesContains applies the Contains predicate on the "sold_notes" field.
func SoldNotesContainsFold ¶
SoldNotesContainsFold applies the ContainsFold predicate on the "sold_notes" field.
func SoldNotesEQ ¶
SoldNotesEQ applies the EQ predicate on the "sold_notes" field.
func SoldNotesEqualFold ¶
SoldNotesEqualFold applies the EqualFold predicate on the "sold_notes" field.
func SoldNotesGT ¶
SoldNotesGT applies the GT predicate on the "sold_notes" field.
func SoldNotesGTE ¶
SoldNotesGTE applies the GTE predicate on the "sold_notes" field.
func SoldNotesHasPrefix ¶
SoldNotesHasPrefix applies the HasPrefix predicate on the "sold_notes" field.
func SoldNotesHasSuffix ¶
SoldNotesHasSuffix applies the HasSuffix predicate on the "sold_notes" field.
func SoldNotesIn ¶
SoldNotesIn applies the In predicate on the "sold_notes" field.
func SoldNotesIsNil ¶
SoldNotesIsNil applies the IsNil predicate on the "sold_notes" field.
func SoldNotesLT ¶
SoldNotesLT applies the LT predicate on the "sold_notes" field.
func SoldNotesLTE ¶
SoldNotesLTE applies the LTE predicate on the "sold_notes" field.
func SoldNotesNEQ ¶
SoldNotesNEQ applies the NEQ predicate on the "sold_notes" field.
func SoldNotesNotIn ¶
SoldNotesNotIn applies the NotIn predicate on the "sold_notes" field.
func SoldNotesNotNil ¶
SoldNotesNotNil applies the NotNil predicate on the "sold_notes" field.
func SoldPrice ¶
SoldPrice applies equality check predicate on the "sold_price" field. It's identical to SoldPriceEQ.
func SoldPriceEQ ¶
SoldPriceEQ applies the EQ predicate on the "sold_price" field.
func SoldPriceGT ¶
SoldPriceGT applies the GT predicate on the "sold_price" field.
func SoldPriceGTE ¶
SoldPriceGTE applies the GTE predicate on the "sold_price" field.
func SoldPriceIn ¶
SoldPriceIn applies the In predicate on the "sold_price" field.
func SoldPriceLT ¶
SoldPriceLT applies the LT predicate on the "sold_price" field.
func SoldPriceLTE ¶
SoldPriceLTE applies the LTE predicate on the "sold_price" field.
func SoldPriceNEQ ¶
SoldPriceNEQ applies the NEQ predicate on the "sold_price" field.
func SoldPriceNotIn ¶
SoldPriceNotIn applies the NotIn predicate on the "sold_price" field.
func SoldTime ¶
SoldTime applies equality check predicate on the "sold_time" field. It's identical to SoldTimeEQ.
func SoldTimeEQ ¶
SoldTimeEQ applies the EQ predicate on the "sold_time" field.
func SoldTimeGT ¶
SoldTimeGT applies the GT predicate on the "sold_time" field.
func SoldTimeGTE ¶
SoldTimeGTE applies the GTE predicate on the "sold_time" field.
func SoldTimeIn ¶
SoldTimeIn applies the In predicate on the "sold_time" field.
func SoldTimeIsNil ¶
SoldTimeIsNil applies the IsNil predicate on the "sold_time" field.
func SoldTimeLT ¶
SoldTimeLT applies the LT predicate on the "sold_time" field.
func SoldTimeLTE ¶
SoldTimeLTE applies the LTE predicate on the "sold_time" field.
func SoldTimeNEQ ¶
SoldTimeNEQ applies the NEQ predicate on the "sold_time" field.
func SoldTimeNotIn ¶
SoldTimeNotIn applies the NotIn predicate on the "sold_time" field.
func SoldTimeNotNil ¶
SoldTimeNotNil applies the NotNil predicate on the "sold_time" field.
func SoldTo ¶
SoldTo applies equality check predicate on the "sold_to" field. It's identical to SoldToEQ.
func SoldToContains ¶
SoldToContains applies the Contains predicate on the "sold_to" field.
func SoldToContainsFold ¶
SoldToContainsFold applies the ContainsFold predicate on the "sold_to" field.
func SoldToEqualFold ¶
SoldToEqualFold applies the EqualFold predicate on the "sold_to" field.
func SoldToHasPrefix ¶
SoldToHasPrefix applies the HasPrefix predicate on the "sold_to" field.
func SoldToHasSuffix ¶
SoldToHasSuffix applies the HasSuffix predicate on the "sold_to" field.
func SoldToIsNil ¶
SoldToIsNil applies the IsNil predicate on the "sold_to" field.
func SoldToNotIn ¶
SoldToNotIn applies the NotIn predicate on the "sold_to" field.
func SoldToNotNil ¶
SoldToNotNil applies the NotNil predicate on the "sold_to" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WarrantyDetails ¶
WarrantyDetails applies equality check predicate on the "warranty_details" field. It's identical to WarrantyDetailsEQ.
func WarrantyDetailsContains ¶
WarrantyDetailsContains applies the Contains predicate on the "warranty_details" field.
func WarrantyDetailsContainsFold ¶
WarrantyDetailsContainsFold applies the ContainsFold predicate on the "warranty_details" field.
func WarrantyDetailsEQ ¶
WarrantyDetailsEQ applies the EQ predicate on the "warranty_details" field.
func WarrantyDetailsEqualFold ¶
WarrantyDetailsEqualFold applies the EqualFold predicate on the "warranty_details" field.
func WarrantyDetailsGT ¶
WarrantyDetailsGT applies the GT predicate on the "warranty_details" field.
func WarrantyDetailsGTE ¶
WarrantyDetailsGTE applies the GTE predicate on the "warranty_details" field.
func WarrantyDetailsHasPrefix ¶
WarrantyDetailsHasPrefix applies the HasPrefix predicate on the "warranty_details" field.
func WarrantyDetailsHasSuffix ¶
WarrantyDetailsHasSuffix applies the HasSuffix predicate on the "warranty_details" field.
func WarrantyDetailsIn ¶
WarrantyDetailsIn applies the In predicate on the "warranty_details" field.
func WarrantyDetailsIsNil ¶
WarrantyDetailsIsNil applies the IsNil predicate on the "warranty_details" field.
func WarrantyDetailsLT ¶
WarrantyDetailsLT applies the LT predicate on the "warranty_details" field.
func WarrantyDetailsLTE ¶
WarrantyDetailsLTE applies the LTE predicate on the "warranty_details" field.
func WarrantyDetailsNEQ ¶
WarrantyDetailsNEQ applies the NEQ predicate on the "warranty_details" field.
func WarrantyDetailsNotIn ¶
WarrantyDetailsNotIn applies the NotIn predicate on the "warranty_details" field.
func WarrantyDetailsNotNil ¶
WarrantyDetailsNotNil applies the NotNil predicate on the "warranty_details" field.
func WarrantyExpires ¶
WarrantyExpires applies equality check predicate on the "warranty_expires" field. It's identical to WarrantyExpiresEQ.
func WarrantyExpiresEQ ¶
WarrantyExpiresEQ applies the EQ predicate on the "warranty_expires" field.
func WarrantyExpiresGT ¶
WarrantyExpiresGT applies the GT predicate on the "warranty_expires" field.
func WarrantyExpiresGTE ¶
WarrantyExpiresGTE applies the GTE predicate on the "warranty_expires" field.
func WarrantyExpiresIn ¶
WarrantyExpiresIn applies the In predicate on the "warranty_expires" field.
func WarrantyExpiresIsNil ¶
WarrantyExpiresIsNil applies the IsNil predicate on the "warranty_expires" field.
func WarrantyExpiresLT ¶
WarrantyExpiresLT applies the LT predicate on the "warranty_expires" field.
func WarrantyExpiresLTE ¶
WarrantyExpiresLTE applies the LTE predicate on the "warranty_expires" field.
func WarrantyExpiresNEQ ¶
WarrantyExpiresNEQ applies the NEQ predicate on the "warranty_expires" field.
func WarrantyExpiresNotIn ¶
WarrantyExpiresNotIn applies the NotIn predicate on the "warranty_expires" field.
func WarrantyExpiresNotNil ¶
WarrantyExpiresNotNil applies the NotNil predicate on the "warranty_expires" field.
Types ¶
type OrderOption ¶
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.