trailer

package
v0.0.0-...-3a43694 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the trailer type in the database.
	Label = "trailer"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldBusinessUnitID holds the string denoting the business_unit_id field in the database.
	FieldBusinessUnitID = "business_unit_id"
	// FieldOrganizationID holds the string denoting the organization_id field in the database.
	FieldOrganizationID = "organization_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"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldCode holds the string denoting the code field in the database.
	FieldCode = "code"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldEquipmentTypeID holds the string denoting the equipment_type_id field in the database.
	FieldEquipmentTypeID = "equipment_type_id"
	// FieldVin holds the string denoting the vin field in the database.
	FieldVin = "vin"
	// FieldEquipmentManufacturerID holds the string denoting the equipment_manufacturer_id field in the database.
	FieldEquipmentManufacturerID = "equipment_manufacturer_id"
	// FieldModel holds the string denoting the model field in the database.
	FieldModel = "model"
	// FieldYear holds the string denoting the year field in the database.
	FieldYear = "year"
	// FieldLicensePlateNumber holds the string denoting the license_plate_number field in the database.
	FieldLicensePlateNumber = "license_plate_number"
	// FieldStateID holds the string denoting the state_id field in the database.
	FieldStateID = "state_id"
	// FieldFleetCodeID holds the string denoting the fleet_code_id field in the database.
	FieldFleetCodeID = "fleet_code_id"
	// FieldLastInspectionDate holds the string denoting the last_inspection_date field in the database.
	FieldLastInspectionDate = "last_inspection_date"
	// FieldRegistrationNumber holds the string denoting the registration_number field in the database.
	FieldRegistrationNumber = "registration_number"
	// FieldRegistrationStateID holds the string denoting the registration_state_id field in the database.
	FieldRegistrationStateID = "registration_state_id"
	// FieldRegistrationExpirationDate holds the string denoting the registration_expiration_date field in the database.
	FieldRegistrationExpirationDate = "registration_expiration_date"
	// EdgeBusinessUnit holds the string denoting the business_unit edge name in mutations.
	EdgeBusinessUnit = "business_unit"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeEquipmentType holds the string denoting the equipment_type edge name in mutations.
	EdgeEquipmentType = "equipment_type"
	// EdgeEquipmentManufacturer holds the string denoting the equipment_manufacturer edge name in mutations.
	EdgeEquipmentManufacturer = "equipment_manufacturer"
	// EdgeState holds the string denoting the state edge name in mutations.
	EdgeState = "state"
	// EdgeRegistrationState holds the string denoting the registration_state edge name in mutations.
	EdgeRegistrationState = "registration_state"
	// EdgeFleetCode holds the string denoting the fleet_code edge name in mutations.
	EdgeFleetCode = "fleet_code"
	// Table holds the table name of the trailer in the database.
	Table = "trailers"
	// BusinessUnitTable is the table that holds the business_unit relation/edge.
	BusinessUnitTable = "trailers"
	// BusinessUnitInverseTable is the table name for the BusinessUnit entity.
	// It exists in this package in order to avoid circular dependency with the "businessunit" package.
	BusinessUnitInverseTable = "business_units"
	// BusinessUnitColumn is the table column denoting the business_unit relation/edge.
	BusinessUnitColumn = "business_unit_id"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "trailers"
	// OrganizationInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationInverseTable = "organizations"
	// OrganizationColumn is the table column denoting the organization relation/edge.
	OrganizationColumn = "organization_id"
	// EquipmentTypeTable is the table that holds the equipment_type relation/edge.
	EquipmentTypeTable = "trailers"
	// EquipmentTypeInverseTable is the table name for the EquipmentType entity.
	// It exists in this package in order to avoid circular dependency with the "equipmenttype" package.
	EquipmentTypeInverseTable = "equipment_types"
	// EquipmentTypeColumn is the table column denoting the equipment_type relation/edge.
	EquipmentTypeColumn = "equipment_type_id"
	// EquipmentManufacturerTable is the table that holds the equipment_manufacturer relation/edge.
	EquipmentManufacturerTable = "trailers"
	// EquipmentManufacturerInverseTable is the table name for the EquipmentManufactuer entity.
	// It exists in this package in order to avoid circular dependency with the "equipmentmanufactuer" package.
	EquipmentManufacturerInverseTable = "equipment_manufactuers"
	// EquipmentManufacturerColumn is the table column denoting the equipment_manufacturer relation/edge.
	EquipmentManufacturerColumn = "equipment_manufacturer_id"
	// StateTable is the table that holds the state relation/edge.
	StateTable = "trailers"
	// StateInverseTable is the table name for the UsState entity.
	// It exists in this package in order to avoid circular dependency with the "usstate" package.
	StateInverseTable = "us_states"
	// StateColumn is the table column denoting the state relation/edge.
	StateColumn = "state_id"
	// RegistrationStateTable is the table that holds the registration_state relation/edge.
	RegistrationStateTable = "trailers"
	// RegistrationStateInverseTable is the table name for the UsState entity.
	// It exists in this package in order to avoid circular dependency with the "usstate" package.
	RegistrationStateInverseTable = "us_states"
	// RegistrationStateColumn is the table column denoting the registration_state relation/edge.
	RegistrationStateColumn = "registration_state_id"
	// FleetCodeTable is the table that holds the fleet_code relation/edge.
	FleetCodeTable = "trailers"
	// FleetCodeInverseTable is the table name for the FleetCode entity.
	// It exists in this package in order to avoid circular dependency with the "fleetcode" package.
	FleetCodeInverseTable = "fleet_codes"
	// FleetCodeColumn is the table column denoting the fleet_code relation/edge.
	FleetCodeColumn = "fleet_code_id"
)
View Source
const DefaultStatus = StatusAvailable

StatusAvailable is the default value of the Status enum.

Variables

View Source
var (
	Hooks [1]ent.Hook
	// 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
	// DefaultVersion holds the default value on creation for the "version" field.
	DefaultVersion int
	// CodeValidator is a validator for the "code" field. It is called by the builders before save.
	CodeValidator func(string) error
	// ModelValidator is a validator for the "model" field. It is called by the builders before save.
	ModelValidator func(string) error
	// YearValidator is a validator for the "year" field. It is called by the builders before save.
	YearValidator func(int16) error
	// LicensePlateNumberValidator is a validator for the "license_plate_number" field. It is called by the builders before save.
	LicensePlateNumberValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/emoss08/trenova/internal/ent/runtime"

Columns holds all SQL columns for trailer fields.

Functions

func And

func And(predicates ...predicate.Trailer) predicate.Trailer

And groups predicates with the AND operator between them.

func BusinessUnitID

func BusinessUnitID(v uuid.UUID) predicate.Trailer

BusinessUnitID applies equality check predicate on the "business_unit_id" field. It's identical to BusinessUnitIDEQ.

func BusinessUnitIDEQ

func BusinessUnitIDEQ(v uuid.UUID) predicate.Trailer

BusinessUnitIDEQ applies the EQ predicate on the "business_unit_id" field.

func BusinessUnitIDIn

func BusinessUnitIDIn(vs ...uuid.UUID) predicate.Trailer

BusinessUnitIDIn applies the In predicate on the "business_unit_id" field.

func BusinessUnitIDNEQ

func BusinessUnitIDNEQ(v uuid.UUID) predicate.Trailer

BusinessUnitIDNEQ applies the NEQ predicate on the "business_unit_id" field.

func BusinessUnitIDNotIn

func BusinessUnitIDNotIn(vs ...uuid.UUID) predicate.Trailer

BusinessUnitIDNotIn applies the NotIn predicate on the "business_unit_id" field.

func Code

func Code(v string) predicate.Trailer

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.Trailer

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.Trailer

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

func CodeEQ(v string) predicate.Trailer

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.Trailer

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

func CodeGT(v string) predicate.Trailer

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

func CodeGTE(v string) predicate.Trailer

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.Trailer

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.Trailer

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

func CodeIn(vs ...string) predicate.Trailer

CodeIn applies the In predicate on the "code" field.

func CodeLT

func CodeLT(v string) predicate.Trailer

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

func CodeLTE(v string) predicate.Trailer

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

func CodeNEQ(v string) predicate.Trailer

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

func CodeNotIn(vs ...string) predicate.Trailer

CodeNotIn applies the NotIn predicate on the "code" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Trailer

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Trailer

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Trailer

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Trailer

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Trailer

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Trailer

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Trailer

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

func CreatedAtNotIn

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

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

func EquipmentManufacturerID

func EquipmentManufacturerID(v uuid.UUID) predicate.Trailer

EquipmentManufacturerID applies equality check predicate on the "equipment_manufacturer_id" field. It's identical to EquipmentManufacturerIDEQ.

func EquipmentManufacturerIDEQ

func EquipmentManufacturerIDEQ(v uuid.UUID) predicate.Trailer

EquipmentManufacturerIDEQ applies the EQ predicate on the "equipment_manufacturer_id" field.

func EquipmentManufacturerIDIn

func EquipmentManufacturerIDIn(vs ...uuid.UUID) predicate.Trailer

EquipmentManufacturerIDIn applies the In predicate on the "equipment_manufacturer_id" field.

func EquipmentManufacturerIDIsNil

func EquipmentManufacturerIDIsNil() predicate.Trailer

EquipmentManufacturerIDIsNil applies the IsNil predicate on the "equipment_manufacturer_id" field.

func EquipmentManufacturerIDNEQ

func EquipmentManufacturerIDNEQ(v uuid.UUID) predicate.Trailer

EquipmentManufacturerIDNEQ applies the NEQ predicate on the "equipment_manufacturer_id" field.

func EquipmentManufacturerIDNotIn

func EquipmentManufacturerIDNotIn(vs ...uuid.UUID) predicate.Trailer

EquipmentManufacturerIDNotIn applies the NotIn predicate on the "equipment_manufacturer_id" field.

func EquipmentManufacturerIDNotNil

func EquipmentManufacturerIDNotNil() predicate.Trailer

EquipmentManufacturerIDNotNil applies the NotNil predicate on the "equipment_manufacturer_id" field.

func EquipmentTypeID

func EquipmentTypeID(v uuid.UUID) predicate.Trailer

EquipmentTypeID applies equality check predicate on the "equipment_type_id" field. It's identical to EquipmentTypeIDEQ.

func EquipmentTypeIDEQ

func EquipmentTypeIDEQ(v uuid.UUID) predicate.Trailer

EquipmentTypeIDEQ applies the EQ predicate on the "equipment_type_id" field.

func EquipmentTypeIDIn

func EquipmentTypeIDIn(vs ...uuid.UUID) predicate.Trailer

EquipmentTypeIDIn applies the In predicate on the "equipment_type_id" field.

func EquipmentTypeIDNEQ

func EquipmentTypeIDNEQ(v uuid.UUID) predicate.Trailer

EquipmentTypeIDNEQ applies the NEQ predicate on the "equipment_type_id" field.

func EquipmentTypeIDNotIn

func EquipmentTypeIDNotIn(vs ...uuid.UUID) predicate.Trailer

EquipmentTypeIDNotIn applies the NotIn predicate on the "equipment_type_id" field.

func FleetCodeID

func FleetCodeID(v uuid.UUID) predicate.Trailer

FleetCodeID applies equality check predicate on the "fleet_code_id" field. It's identical to FleetCodeIDEQ.

func FleetCodeIDEQ

func FleetCodeIDEQ(v uuid.UUID) predicate.Trailer

FleetCodeIDEQ applies the EQ predicate on the "fleet_code_id" field.

func FleetCodeIDIn

func FleetCodeIDIn(vs ...uuid.UUID) predicate.Trailer

FleetCodeIDIn applies the In predicate on the "fleet_code_id" field.

func FleetCodeIDNEQ

func FleetCodeIDNEQ(v uuid.UUID) predicate.Trailer

FleetCodeIDNEQ applies the NEQ predicate on the "fleet_code_id" field.

func FleetCodeIDNotIn

func FleetCodeIDNotIn(vs ...uuid.UUID) predicate.Trailer

FleetCodeIDNotIn applies the NotIn predicate on the "fleet_code_id" field.

func HasBusinessUnit

func HasBusinessUnit() predicate.Trailer

HasBusinessUnit applies the HasEdge predicate on the "business_unit" edge.

func HasBusinessUnitWith

func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.Trailer

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

func HasEquipmentManufacturer

func HasEquipmentManufacturer() predicate.Trailer

HasEquipmentManufacturer applies the HasEdge predicate on the "equipment_manufacturer" edge.

func HasEquipmentManufacturerWith

func HasEquipmentManufacturerWith(preds ...predicate.EquipmentManufactuer) predicate.Trailer

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

func HasEquipmentType

func HasEquipmentType() predicate.Trailer

HasEquipmentType applies the HasEdge predicate on the "equipment_type" edge.

func HasEquipmentTypeWith

func HasEquipmentTypeWith(preds ...predicate.EquipmentType) predicate.Trailer

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

func HasFleetCode

func HasFleetCode() predicate.Trailer

HasFleetCode applies the HasEdge predicate on the "fleet_code" edge.

func HasFleetCodeWith

func HasFleetCodeWith(preds ...predicate.FleetCode) predicate.Trailer

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

func HasOrganization

func HasOrganization() predicate.Trailer

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.Trailer

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

func HasRegistrationState

func HasRegistrationState() predicate.Trailer

HasRegistrationState applies the HasEdge predicate on the "registration_state" edge.

func HasRegistrationStateWith

func HasRegistrationStateWith(preds ...predicate.UsState) predicate.Trailer

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

func HasState

func HasState() predicate.Trailer

HasState applies the HasEdge predicate on the "state" edge.

func HasStateWith

func HasStateWith(preds ...predicate.UsState) predicate.Trailer

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

func ID

func ID(id uuid.UUID) predicate.Trailer

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Trailer

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Trailer

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Trailer

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Trailer

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Trailer

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Trailer

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastInspectionDate

func LastInspectionDate(v *pgtype.Date) predicate.Trailer

LastInspectionDate applies equality check predicate on the "last_inspection_date" field. It's identical to LastInspectionDateEQ.

func LastInspectionDateEQ

func LastInspectionDateEQ(v *pgtype.Date) predicate.Trailer

LastInspectionDateEQ applies the EQ predicate on the "last_inspection_date" field.

func LastInspectionDateGT

func LastInspectionDateGT(v *pgtype.Date) predicate.Trailer

LastInspectionDateGT applies the GT predicate on the "last_inspection_date" field.

func LastInspectionDateGTE

func LastInspectionDateGTE(v *pgtype.Date) predicate.Trailer

LastInspectionDateGTE applies the GTE predicate on the "last_inspection_date" field.

func LastInspectionDateIn

func LastInspectionDateIn(vs ...*pgtype.Date) predicate.Trailer

LastInspectionDateIn applies the In predicate on the "last_inspection_date" field.

func LastInspectionDateIsNil

func LastInspectionDateIsNil() predicate.Trailer

LastInspectionDateIsNil applies the IsNil predicate on the "last_inspection_date" field.

func LastInspectionDateLT

func LastInspectionDateLT(v *pgtype.Date) predicate.Trailer

LastInspectionDateLT applies the LT predicate on the "last_inspection_date" field.

func LastInspectionDateLTE

func LastInspectionDateLTE(v *pgtype.Date) predicate.Trailer

LastInspectionDateLTE applies the LTE predicate on the "last_inspection_date" field.

func LastInspectionDateNEQ

func LastInspectionDateNEQ(v *pgtype.Date) predicate.Trailer

LastInspectionDateNEQ applies the NEQ predicate on the "last_inspection_date" field.

func LastInspectionDateNotIn

func LastInspectionDateNotIn(vs ...*pgtype.Date) predicate.Trailer

LastInspectionDateNotIn applies the NotIn predicate on the "last_inspection_date" field.

func LastInspectionDateNotNil

func LastInspectionDateNotNil() predicate.Trailer

LastInspectionDateNotNil applies the NotNil predicate on the "last_inspection_date" field.

func LicensePlateNumber

func LicensePlateNumber(v string) predicate.Trailer

LicensePlateNumber applies equality check predicate on the "license_plate_number" field. It's identical to LicensePlateNumberEQ.

func LicensePlateNumberContains

func LicensePlateNumberContains(v string) predicate.Trailer

LicensePlateNumberContains applies the Contains predicate on the "license_plate_number" field.

func LicensePlateNumberContainsFold

func LicensePlateNumberContainsFold(v string) predicate.Trailer

LicensePlateNumberContainsFold applies the ContainsFold predicate on the "license_plate_number" field.

func LicensePlateNumberEQ

func LicensePlateNumberEQ(v string) predicate.Trailer

LicensePlateNumberEQ applies the EQ predicate on the "license_plate_number" field.

func LicensePlateNumberEqualFold

func LicensePlateNumberEqualFold(v string) predicate.Trailer

LicensePlateNumberEqualFold applies the EqualFold predicate on the "license_plate_number" field.

func LicensePlateNumberGT

func LicensePlateNumberGT(v string) predicate.Trailer

LicensePlateNumberGT applies the GT predicate on the "license_plate_number" field.

func LicensePlateNumberGTE

func LicensePlateNumberGTE(v string) predicate.Trailer

LicensePlateNumberGTE applies the GTE predicate on the "license_plate_number" field.

func LicensePlateNumberHasPrefix

func LicensePlateNumberHasPrefix(v string) predicate.Trailer

LicensePlateNumberHasPrefix applies the HasPrefix predicate on the "license_plate_number" field.

func LicensePlateNumberHasSuffix

func LicensePlateNumberHasSuffix(v string) predicate.Trailer

LicensePlateNumberHasSuffix applies the HasSuffix predicate on the "license_plate_number" field.

func LicensePlateNumberIn

func LicensePlateNumberIn(vs ...string) predicate.Trailer

LicensePlateNumberIn applies the In predicate on the "license_plate_number" field.

func LicensePlateNumberIsNil

func LicensePlateNumberIsNil() predicate.Trailer

LicensePlateNumberIsNil applies the IsNil predicate on the "license_plate_number" field.

func LicensePlateNumberLT

func LicensePlateNumberLT(v string) predicate.Trailer

LicensePlateNumberLT applies the LT predicate on the "license_plate_number" field.

func LicensePlateNumberLTE

func LicensePlateNumberLTE(v string) predicate.Trailer

LicensePlateNumberLTE applies the LTE predicate on the "license_plate_number" field.

func LicensePlateNumberNEQ

func LicensePlateNumberNEQ(v string) predicate.Trailer

LicensePlateNumberNEQ applies the NEQ predicate on the "license_plate_number" field.

func LicensePlateNumberNotIn

func LicensePlateNumberNotIn(vs ...string) predicate.Trailer

LicensePlateNumberNotIn applies the NotIn predicate on the "license_plate_number" field.

func LicensePlateNumberNotNil

func LicensePlateNumberNotNil() predicate.Trailer

LicensePlateNumberNotNil applies the NotNil predicate on the "license_plate_number" field.

func Model

func Model(v string) predicate.Trailer

Model applies equality check predicate on the "model" field. It's identical to ModelEQ.

func ModelContains

func ModelContains(v string) predicate.Trailer

ModelContains applies the Contains predicate on the "model" field.

func ModelContainsFold

func ModelContainsFold(v string) predicate.Trailer

ModelContainsFold applies the ContainsFold predicate on the "model" field.

func ModelEQ

func ModelEQ(v string) predicate.Trailer

ModelEQ applies the EQ predicate on the "model" field.

func ModelEqualFold

func ModelEqualFold(v string) predicate.Trailer

ModelEqualFold applies the EqualFold predicate on the "model" field.

func ModelGT

func ModelGT(v string) predicate.Trailer

ModelGT applies the GT predicate on the "model" field.

func ModelGTE

func ModelGTE(v string) predicate.Trailer

ModelGTE applies the GTE predicate on the "model" field.

func ModelHasPrefix

func ModelHasPrefix(v string) predicate.Trailer

ModelHasPrefix applies the HasPrefix predicate on the "model" field.

func ModelHasSuffix

func ModelHasSuffix(v string) predicate.Trailer

ModelHasSuffix applies the HasSuffix predicate on the "model" field.

func ModelIn

func ModelIn(vs ...string) predicate.Trailer

ModelIn applies the In predicate on the "model" field.

func ModelIsNil

func ModelIsNil() predicate.Trailer

ModelIsNil applies the IsNil predicate on the "model" field.

func ModelLT

func ModelLT(v string) predicate.Trailer

ModelLT applies the LT predicate on the "model" field.

func ModelLTE

func ModelLTE(v string) predicate.Trailer

ModelLTE applies the LTE predicate on the "model" field.

func ModelNEQ

func ModelNEQ(v string) predicate.Trailer

ModelNEQ applies the NEQ predicate on the "model" field.

func ModelNotIn

func ModelNotIn(vs ...string) predicate.Trailer

ModelNotIn applies the NotIn predicate on the "model" field.

func ModelNotNil

func ModelNotNil() predicate.Trailer

ModelNotNil applies the NotNil predicate on the "model" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Trailer) predicate.Trailer

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.Trailer

OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.Trailer

OrganizationIDEQ applies the EQ predicate on the "organization_id" field.

func OrganizationIDIn

func OrganizationIDIn(vs ...uuid.UUID) predicate.Trailer

OrganizationIDIn applies the In predicate on the "organization_id" field.

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.Trailer

OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.

func OrganizationIDNotIn

func OrganizationIDNotIn(vs ...uuid.UUID) predicate.Trailer

OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.

func RegistrationExpirationDate

func RegistrationExpirationDate(v *pgtype.Date) predicate.Trailer

RegistrationExpirationDate applies equality check predicate on the "registration_expiration_date" field. It's identical to RegistrationExpirationDateEQ.

func RegistrationExpirationDateEQ

func RegistrationExpirationDateEQ(v *pgtype.Date) predicate.Trailer

RegistrationExpirationDateEQ applies the EQ predicate on the "registration_expiration_date" field.

func RegistrationExpirationDateGT

func RegistrationExpirationDateGT(v *pgtype.Date) predicate.Trailer

RegistrationExpirationDateGT applies the GT predicate on the "registration_expiration_date" field.

func RegistrationExpirationDateGTE

func RegistrationExpirationDateGTE(v *pgtype.Date) predicate.Trailer

RegistrationExpirationDateGTE applies the GTE predicate on the "registration_expiration_date" field.

func RegistrationExpirationDateIn

func RegistrationExpirationDateIn(vs ...*pgtype.Date) predicate.Trailer

RegistrationExpirationDateIn applies the In predicate on the "registration_expiration_date" field.

func RegistrationExpirationDateIsNil

func RegistrationExpirationDateIsNil() predicate.Trailer

RegistrationExpirationDateIsNil applies the IsNil predicate on the "registration_expiration_date" field.

func RegistrationExpirationDateLT

func RegistrationExpirationDateLT(v *pgtype.Date) predicate.Trailer

RegistrationExpirationDateLT applies the LT predicate on the "registration_expiration_date" field.

func RegistrationExpirationDateLTE

func RegistrationExpirationDateLTE(v *pgtype.Date) predicate.Trailer

RegistrationExpirationDateLTE applies the LTE predicate on the "registration_expiration_date" field.

func RegistrationExpirationDateNEQ

func RegistrationExpirationDateNEQ(v *pgtype.Date) predicate.Trailer

RegistrationExpirationDateNEQ applies the NEQ predicate on the "registration_expiration_date" field.

func RegistrationExpirationDateNotIn

func RegistrationExpirationDateNotIn(vs ...*pgtype.Date) predicate.Trailer

RegistrationExpirationDateNotIn applies the NotIn predicate on the "registration_expiration_date" field.

func RegistrationExpirationDateNotNil

func RegistrationExpirationDateNotNil() predicate.Trailer

RegistrationExpirationDateNotNil applies the NotNil predicate on the "registration_expiration_date" field.

func RegistrationNumber

func RegistrationNumber(v string) predicate.Trailer

RegistrationNumber applies equality check predicate on the "registration_number" field. It's identical to RegistrationNumberEQ.

func RegistrationNumberContains

func RegistrationNumberContains(v string) predicate.Trailer

RegistrationNumberContains applies the Contains predicate on the "registration_number" field.

func RegistrationNumberContainsFold

func RegistrationNumberContainsFold(v string) predicate.Trailer

RegistrationNumberContainsFold applies the ContainsFold predicate on the "registration_number" field.

func RegistrationNumberEQ

func RegistrationNumberEQ(v string) predicate.Trailer

RegistrationNumberEQ applies the EQ predicate on the "registration_number" field.

func RegistrationNumberEqualFold

func RegistrationNumberEqualFold(v string) predicate.Trailer

RegistrationNumberEqualFold applies the EqualFold predicate on the "registration_number" field.

func RegistrationNumberGT

func RegistrationNumberGT(v string) predicate.Trailer

RegistrationNumberGT applies the GT predicate on the "registration_number" field.

func RegistrationNumberGTE

func RegistrationNumberGTE(v string) predicate.Trailer

RegistrationNumberGTE applies the GTE predicate on the "registration_number" field.

func RegistrationNumberHasPrefix

func RegistrationNumberHasPrefix(v string) predicate.Trailer

RegistrationNumberHasPrefix applies the HasPrefix predicate on the "registration_number" field.

func RegistrationNumberHasSuffix

func RegistrationNumberHasSuffix(v string) predicate.Trailer

RegistrationNumberHasSuffix applies the HasSuffix predicate on the "registration_number" field.

func RegistrationNumberIn

func RegistrationNumberIn(vs ...string) predicate.Trailer

RegistrationNumberIn applies the In predicate on the "registration_number" field.

func RegistrationNumberIsNil

func RegistrationNumberIsNil() predicate.Trailer

RegistrationNumberIsNil applies the IsNil predicate on the "registration_number" field.

func RegistrationNumberLT

func RegistrationNumberLT(v string) predicate.Trailer

RegistrationNumberLT applies the LT predicate on the "registration_number" field.

func RegistrationNumberLTE

func RegistrationNumberLTE(v string) predicate.Trailer

RegistrationNumberLTE applies the LTE predicate on the "registration_number" field.

func RegistrationNumberNEQ

func RegistrationNumberNEQ(v string) predicate.Trailer

RegistrationNumberNEQ applies the NEQ predicate on the "registration_number" field.

func RegistrationNumberNotIn

func RegistrationNumberNotIn(vs ...string) predicate.Trailer

RegistrationNumberNotIn applies the NotIn predicate on the "registration_number" field.

func RegistrationNumberNotNil

func RegistrationNumberNotNil() predicate.Trailer

RegistrationNumberNotNil applies the NotNil predicate on the "registration_number" field.

func RegistrationStateID

func RegistrationStateID(v uuid.UUID) predicate.Trailer

RegistrationStateID applies equality check predicate on the "registration_state_id" field. It's identical to RegistrationStateIDEQ.

func RegistrationStateIDEQ

func RegistrationStateIDEQ(v uuid.UUID) predicate.Trailer

RegistrationStateIDEQ applies the EQ predicate on the "registration_state_id" field.

func RegistrationStateIDIn

func RegistrationStateIDIn(vs ...uuid.UUID) predicate.Trailer

RegistrationStateIDIn applies the In predicate on the "registration_state_id" field.

func RegistrationStateIDIsNil

func RegistrationStateIDIsNil() predicate.Trailer

RegistrationStateIDIsNil applies the IsNil predicate on the "registration_state_id" field.

func RegistrationStateIDNEQ

func RegistrationStateIDNEQ(v uuid.UUID) predicate.Trailer

RegistrationStateIDNEQ applies the NEQ predicate on the "registration_state_id" field.

func RegistrationStateIDNotIn

func RegistrationStateIDNotIn(vs ...uuid.UUID) predicate.Trailer

RegistrationStateIDNotIn applies the NotIn predicate on the "registration_state_id" field.

func RegistrationStateIDNotNil

func RegistrationStateIDNotNil() predicate.Trailer

RegistrationStateIDNotNil applies the NotNil predicate on the "registration_state_id" field.

func StateID

func StateID(v uuid.UUID) predicate.Trailer

StateID applies equality check predicate on the "state_id" field. It's identical to StateIDEQ.

func StateIDEQ

func StateIDEQ(v uuid.UUID) predicate.Trailer

StateIDEQ applies the EQ predicate on the "state_id" field.

func StateIDIn

func StateIDIn(vs ...uuid.UUID) predicate.Trailer

StateIDIn applies the In predicate on the "state_id" field.

func StateIDIsNil

func StateIDIsNil() predicate.Trailer

StateIDIsNil applies the IsNil predicate on the "state_id" field.

func StateIDNEQ

func StateIDNEQ(v uuid.UUID) predicate.Trailer

StateIDNEQ applies the NEQ predicate on the "state_id" field.

func StateIDNotIn

func StateIDNotIn(vs ...uuid.UUID) predicate.Trailer

StateIDNotIn applies the NotIn predicate on the "state_id" field.

func StateIDNotNil

func StateIDNotNil() predicate.Trailer

StateIDNotNil applies the NotNil predicate on the "state_id" field.

func StatusEQ

func StatusEQ(v Status) predicate.Trailer

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Trailer

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Trailer

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Trailer

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Trailer

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Trailer

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Trailer

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Trailer

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Trailer

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Trailer

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Trailer

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

func UpdatedAtNotIn

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

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 Version

func Version(v int) predicate.Trailer

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ

func VersionEQ(v int) predicate.Trailer

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT

func VersionGT(v int) predicate.Trailer

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v int) predicate.Trailer

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn

func VersionIn(vs ...int) predicate.Trailer

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v int) predicate.Trailer

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v int) predicate.Trailer

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v int) predicate.Trailer

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...int) predicate.Trailer

VersionNotIn applies the NotIn predicate on the "version" field.

func Vin

func Vin(v string) predicate.Trailer

Vin applies equality check predicate on the "vin" field. It's identical to VinEQ.

func VinContains

func VinContains(v string) predicate.Trailer

VinContains applies the Contains predicate on the "vin" field.

func VinContainsFold

func VinContainsFold(v string) predicate.Trailer

VinContainsFold applies the ContainsFold predicate on the "vin" field.

func VinEQ

func VinEQ(v string) predicate.Trailer

VinEQ applies the EQ predicate on the "vin" field.

func VinEqualFold

func VinEqualFold(v string) predicate.Trailer

VinEqualFold applies the EqualFold predicate on the "vin" field.

func VinGT

func VinGT(v string) predicate.Trailer

VinGT applies the GT predicate on the "vin" field.

func VinGTE

func VinGTE(v string) predicate.Trailer

VinGTE applies the GTE predicate on the "vin" field.

func VinHasPrefix

func VinHasPrefix(v string) predicate.Trailer

VinHasPrefix applies the HasPrefix predicate on the "vin" field.

func VinHasSuffix

func VinHasSuffix(v string) predicate.Trailer

VinHasSuffix applies the HasSuffix predicate on the "vin" field.

func VinIn

func VinIn(vs ...string) predicate.Trailer

VinIn applies the In predicate on the "vin" field.

func VinIsNil

func VinIsNil() predicate.Trailer

VinIsNil applies the IsNil predicate on the "vin" field.

func VinLT

func VinLT(v string) predicate.Trailer

VinLT applies the LT predicate on the "vin" field.

func VinLTE

func VinLTE(v string) predicate.Trailer

VinLTE applies the LTE predicate on the "vin" field.

func VinNEQ

func VinNEQ(v string) predicate.Trailer

VinNEQ applies the NEQ predicate on the "vin" field.

func VinNotIn

func VinNotIn(vs ...string) predicate.Trailer

VinNotIn applies the NotIn predicate on the "vin" field.

func VinNotNil

func VinNotNil() predicate.Trailer

VinNotNil applies the NotNil predicate on the "vin" field.

func Year

func Year(v int16) predicate.Trailer

Year applies equality check predicate on the "year" field. It's identical to YearEQ.

func YearEQ

func YearEQ(v int16) predicate.Trailer

YearEQ applies the EQ predicate on the "year" field.

func YearGT

func YearGT(v int16) predicate.Trailer

YearGT applies the GT predicate on the "year" field.

func YearGTE

func YearGTE(v int16) predicate.Trailer

YearGTE applies the GTE predicate on the "year" field.

func YearIn

func YearIn(vs ...int16) predicate.Trailer

YearIn applies the In predicate on the "year" field.

func YearIsNil

func YearIsNil() predicate.Trailer

YearIsNil applies the IsNil predicate on the "year" field.

func YearLT

func YearLT(v int16) predicate.Trailer

YearLT applies the LT predicate on the "year" field.

func YearLTE

func YearLTE(v int16) predicate.Trailer

YearLTE applies the LTE predicate on the "year" field.

func YearNEQ

func YearNEQ(v int16) predicate.Trailer

YearNEQ applies the NEQ predicate on the "year" field.

func YearNotIn

func YearNotIn(vs ...int16) predicate.Trailer

YearNotIn applies the NotIn predicate on the "year" field.

func YearNotNil

func YearNotNil() predicate.Trailer

YearNotNil applies the NotNil predicate on the "year" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Trailer queries.

func ByBusinessUnitField

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

ByBusinessUnitField orders the results by business_unit field.

func ByBusinessUnitID

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

ByBusinessUnitID orders the results by the business_unit_id field.

func ByCode

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

ByCode orders the results by the code field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEquipmentManufacturerField

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

ByEquipmentManufacturerField orders the results by equipment_manufacturer field.

func ByEquipmentManufacturerID

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

ByEquipmentManufacturerID orders the results by the equipment_manufacturer_id field.

func ByEquipmentTypeField

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

ByEquipmentTypeField orders the results by equipment_type field.

func ByEquipmentTypeID

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

ByEquipmentTypeID orders the results by the equipment_type_id field.

func ByFleetCodeField

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

ByFleetCodeField orders the results by fleet_code field.

func ByFleetCodeID

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

ByFleetCodeID orders the results by the fleet_code_id field.

func ByID

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

ByID orders the results by the id field.

func ByLastInspectionDate

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

ByLastInspectionDate orders the results by the last_inspection_date field.

func ByLicensePlateNumber

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

ByLicensePlateNumber orders the results by the license_plate_number field.

func ByModel

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

ByModel orders the results by the model field.

func ByOrganizationField

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

ByOrganizationField orders the results by organization field.

func ByOrganizationID

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

ByOrganizationID orders the results by the organization_id field.

func ByRegistrationExpirationDate

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

ByRegistrationExpirationDate orders the results by the registration_expiration_date field.

func ByRegistrationNumber

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

ByRegistrationNumber orders the results by the registration_number field.

func ByRegistrationStateField

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

ByRegistrationStateField orders the results by registration_state field.

func ByRegistrationStateID

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

ByRegistrationStateID orders the results by the registration_state_id field.

func ByStateField

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

ByStateField orders the results by state field.

func ByStateID

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

ByStateID orders the results by the state_id field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVersion

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

ByVersion orders the results by the version field.

func ByVin

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

ByVin orders the results by the vin field.

func ByYear

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

ByYear orders the results by the year field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusAvailable     Status = "Available"
	StatusOutOfService  Status = "OutOfService"
	StatusAtMaintenance Status = "AtMaintenance"
	StatusSold          Status = "Sold"
	StatusLost          Status = "Lost"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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