Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Trailer) predicate.Trailer
- func BusinessUnitID(v uuid.UUID) predicate.Trailer
- func BusinessUnitIDEQ(v uuid.UUID) predicate.Trailer
- func BusinessUnitIDIn(vs ...uuid.UUID) predicate.Trailer
- func BusinessUnitIDNEQ(v uuid.UUID) predicate.Trailer
- func BusinessUnitIDNotIn(vs ...uuid.UUID) predicate.Trailer
- func Code(v string) predicate.Trailer
- func CodeContains(v string) predicate.Trailer
- func CodeContainsFold(v string) predicate.Trailer
- func CodeEQ(v string) predicate.Trailer
- func CodeEqualFold(v string) predicate.Trailer
- func CodeGT(v string) predicate.Trailer
- func CodeGTE(v string) predicate.Trailer
- func CodeHasPrefix(v string) predicate.Trailer
- func CodeHasSuffix(v string) predicate.Trailer
- func CodeIn(vs ...string) predicate.Trailer
- func CodeLT(v string) predicate.Trailer
- func CodeLTE(v string) predicate.Trailer
- func CodeNEQ(v string) predicate.Trailer
- func CodeNotIn(vs ...string) predicate.Trailer
- func CreatedAt(v time.Time) predicate.Trailer
- func CreatedAtEQ(v time.Time) predicate.Trailer
- func CreatedAtGT(v time.Time) predicate.Trailer
- func CreatedAtGTE(v time.Time) predicate.Trailer
- func CreatedAtIn(vs ...time.Time) predicate.Trailer
- func CreatedAtLT(v time.Time) predicate.Trailer
- func CreatedAtLTE(v time.Time) predicate.Trailer
- func CreatedAtNEQ(v time.Time) predicate.Trailer
- func CreatedAtNotIn(vs ...time.Time) predicate.Trailer
- func EquipmentManufacturerID(v uuid.UUID) predicate.Trailer
- func EquipmentManufacturerIDEQ(v uuid.UUID) predicate.Trailer
- func EquipmentManufacturerIDIn(vs ...uuid.UUID) predicate.Trailer
- func EquipmentManufacturerIDIsNil() predicate.Trailer
- func EquipmentManufacturerIDNEQ(v uuid.UUID) predicate.Trailer
- func EquipmentManufacturerIDNotIn(vs ...uuid.UUID) predicate.Trailer
- func EquipmentManufacturerIDNotNil() predicate.Trailer
- func EquipmentTypeID(v uuid.UUID) predicate.Trailer
- func EquipmentTypeIDEQ(v uuid.UUID) predicate.Trailer
- func EquipmentTypeIDIn(vs ...uuid.UUID) predicate.Trailer
- func EquipmentTypeIDNEQ(v uuid.UUID) predicate.Trailer
- func EquipmentTypeIDNotIn(vs ...uuid.UUID) predicate.Trailer
- func FleetCodeID(v uuid.UUID) predicate.Trailer
- func FleetCodeIDEQ(v uuid.UUID) predicate.Trailer
- func FleetCodeIDIn(vs ...uuid.UUID) predicate.Trailer
- func FleetCodeIDNEQ(v uuid.UUID) predicate.Trailer
- func FleetCodeIDNotIn(vs ...uuid.UUID) predicate.Trailer
- func HasBusinessUnit() predicate.Trailer
- func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.Trailer
- func HasEquipmentManufacturer() predicate.Trailer
- func HasEquipmentManufacturerWith(preds ...predicate.EquipmentManufactuer) predicate.Trailer
- func HasEquipmentType() predicate.Trailer
- func HasEquipmentTypeWith(preds ...predicate.EquipmentType) predicate.Trailer
- func HasFleetCode() predicate.Trailer
- func HasFleetCodeWith(preds ...predicate.FleetCode) predicate.Trailer
- func HasOrganization() predicate.Trailer
- func HasOrganizationWith(preds ...predicate.Organization) predicate.Trailer
- func HasRegistrationState() predicate.Trailer
- func HasRegistrationStateWith(preds ...predicate.UsState) predicate.Trailer
- func HasState() predicate.Trailer
- func HasStateWith(preds ...predicate.UsState) predicate.Trailer
- func ID(id uuid.UUID) predicate.Trailer
- func IDEQ(id uuid.UUID) predicate.Trailer
- func IDGT(id uuid.UUID) predicate.Trailer
- func IDGTE(id uuid.UUID) predicate.Trailer
- func IDIn(ids ...uuid.UUID) predicate.Trailer
- func IDLT(id uuid.UUID) predicate.Trailer
- func IDLTE(id uuid.UUID) predicate.Trailer
- func IDNEQ(id uuid.UUID) predicate.Trailer
- func IDNotIn(ids ...uuid.UUID) predicate.Trailer
- func LastInspectionDate(v *pgtype.Date) predicate.Trailer
- func LastInspectionDateEQ(v *pgtype.Date) predicate.Trailer
- func LastInspectionDateGT(v *pgtype.Date) predicate.Trailer
- func LastInspectionDateGTE(v *pgtype.Date) predicate.Trailer
- func LastInspectionDateIn(vs ...*pgtype.Date) predicate.Trailer
- func LastInspectionDateIsNil() predicate.Trailer
- func LastInspectionDateLT(v *pgtype.Date) predicate.Trailer
- func LastInspectionDateLTE(v *pgtype.Date) predicate.Trailer
- func LastInspectionDateNEQ(v *pgtype.Date) predicate.Trailer
- func LastInspectionDateNotIn(vs ...*pgtype.Date) predicate.Trailer
- func LastInspectionDateNotNil() predicate.Trailer
- func LicensePlateNumber(v string) predicate.Trailer
- func LicensePlateNumberContains(v string) predicate.Trailer
- func LicensePlateNumberContainsFold(v string) predicate.Trailer
- func LicensePlateNumberEQ(v string) predicate.Trailer
- func LicensePlateNumberEqualFold(v string) predicate.Trailer
- func LicensePlateNumberGT(v string) predicate.Trailer
- func LicensePlateNumberGTE(v string) predicate.Trailer
- func LicensePlateNumberHasPrefix(v string) predicate.Trailer
- func LicensePlateNumberHasSuffix(v string) predicate.Trailer
- func LicensePlateNumberIn(vs ...string) predicate.Trailer
- func LicensePlateNumberIsNil() predicate.Trailer
- func LicensePlateNumberLT(v string) predicate.Trailer
- func LicensePlateNumberLTE(v string) predicate.Trailer
- func LicensePlateNumberNEQ(v string) predicate.Trailer
- func LicensePlateNumberNotIn(vs ...string) predicate.Trailer
- func LicensePlateNumberNotNil() predicate.Trailer
- func Model(v string) predicate.Trailer
- func ModelContains(v string) predicate.Trailer
- func ModelContainsFold(v string) predicate.Trailer
- func ModelEQ(v string) predicate.Trailer
- func ModelEqualFold(v string) predicate.Trailer
- func ModelGT(v string) predicate.Trailer
- func ModelGTE(v string) predicate.Trailer
- func ModelHasPrefix(v string) predicate.Trailer
- func ModelHasSuffix(v string) predicate.Trailer
- func ModelIn(vs ...string) predicate.Trailer
- func ModelIsNil() predicate.Trailer
- func ModelLT(v string) predicate.Trailer
- func ModelLTE(v string) predicate.Trailer
- func ModelNEQ(v string) predicate.Trailer
- func ModelNotIn(vs ...string) predicate.Trailer
- func ModelNotNil() predicate.Trailer
- func Not(p predicate.Trailer) predicate.Trailer
- func Or(predicates ...predicate.Trailer) predicate.Trailer
- func OrganizationID(v uuid.UUID) predicate.Trailer
- func OrganizationIDEQ(v uuid.UUID) predicate.Trailer
- func OrganizationIDIn(vs ...uuid.UUID) predicate.Trailer
- func OrganizationIDNEQ(v uuid.UUID) predicate.Trailer
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.Trailer
- func RegistrationExpirationDate(v *pgtype.Date) predicate.Trailer
- func RegistrationExpirationDateEQ(v *pgtype.Date) predicate.Trailer
- func RegistrationExpirationDateGT(v *pgtype.Date) predicate.Trailer
- func RegistrationExpirationDateGTE(v *pgtype.Date) predicate.Trailer
- func RegistrationExpirationDateIn(vs ...*pgtype.Date) predicate.Trailer
- func RegistrationExpirationDateIsNil() predicate.Trailer
- func RegistrationExpirationDateLT(v *pgtype.Date) predicate.Trailer
- func RegistrationExpirationDateLTE(v *pgtype.Date) predicate.Trailer
- func RegistrationExpirationDateNEQ(v *pgtype.Date) predicate.Trailer
- func RegistrationExpirationDateNotIn(vs ...*pgtype.Date) predicate.Trailer
- func RegistrationExpirationDateNotNil() predicate.Trailer
- func RegistrationNumber(v string) predicate.Trailer
- func RegistrationNumberContains(v string) predicate.Trailer
- func RegistrationNumberContainsFold(v string) predicate.Trailer
- func RegistrationNumberEQ(v string) predicate.Trailer
- func RegistrationNumberEqualFold(v string) predicate.Trailer
- func RegistrationNumberGT(v string) predicate.Trailer
- func RegistrationNumberGTE(v string) predicate.Trailer
- func RegistrationNumberHasPrefix(v string) predicate.Trailer
- func RegistrationNumberHasSuffix(v string) predicate.Trailer
- func RegistrationNumberIn(vs ...string) predicate.Trailer
- func RegistrationNumberIsNil() predicate.Trailer
- func RegistrationNumberLT(v string) predicate.Trailer
- func RegistrationNumberLTE(v string) predicate.Trailer
- func RegistrationNumberNEQ(v string) predicate.Trailer
- func RegistrationNumberNotIn(vs ...string) predicate.Trailer
- func RegistrationNumberNotNil() predicate.Trailer
- func RegistrationStateID(v uuid.UUID) predicate.Trailer
- func RegistrationStateIDEQ(v uuid.UUID) predicate.Trailer
- func RegistrationStateIDIn(vs ...uuid.UUID) predicate.Trailer
- func RegistrationStateIDIsNil() predicate.Trailer
- func RegistrationStateIDNEQ(v uuid.UUID) predicate.Trailer
- func RegistrationStateIDNotIn(vs ...uuid.UUID) predicate.Trailer
- func RegistrationStateIDNotNil() predicate.Trailer
- func StateID(v uuid.UUID) predicate.Trailer
- func StateIDEQ(v uuid.UUID) predicate.Trailer
- func StateIDIn(vs ...uuid.UUID) predicate.Trailer
- func StateIDIsNil() predicate.Trailer
- func StateIDNEQ(v uuid.UUID) predicate.Trailer
- func StateIDNotIn(vs ...uuid.UUID) predicate.Trailer
- func StateIDNotNil() predicate.Trailer
- func StatusEQ(v Status) predicate.Trailer
- func StatusIn(vs ...Status) predicate.Trailer
- func StatusNEQ(v Status) predicate.Trailer
- func StatusNotIn(vs ...Status) predicate.Trailer
- func StatusValidator(s Status) error
- func UpdatedAt(v time.Time) predicate.Trailer
- func UpdatedAtEQ(v time.Time) predicate.Trailer
- func UpdatedAtGT(v time.Time) predicate.Trailer
- func UpdatedAtGTE(v time.Time) predicate.Trailer
- func UpdatedAtIn(vs ...time.Time) predicate.Trailer
- func UpdatedAtLT(v time.Time) predicate.Trailer
- func UpdatedAtLTE(v time.Time) predicate.Trailer
- func UpdatedAtNEQ(v time.Time) predicate.Trailer
- func UpdatedAtNotIn(vs ...time.Time) predicate.Trailer
- func ValidColumn(column string) bool
- func Version(v int) predicate.Trailer
- func VersionEQ(v int) predicate.Trailer
- func VersionGT(v int) predicate.Trailer
- func VersionGTE(v int) predicate.Trailer
- func VersionIn(vs ...int) predicate.Trailer
- func VersionLT(v int) predicate.Trailer
- func VersionLTE(v int) predicate.Trailer
- func VersionNEQ(v int) predicate.Trailer
- func VersionNotIn(vs ...int) predicate.Trailer
- func Vin(v string) predicate.Trailer
- func VinContains(v string) predicate.Trailer
- func VinContainsFold(v string) predicate.Trailer
- func VinEQ(v string) predicate.Trailer
- func VinEqualFold(v string) predicate.Trailer
- func VinGT(v string) predicate.Trailer
- func VinGTE(v string) predicate.Trailer
- func VinHasPrefix(v string) predicate.Trailer
- func VinHasSuffix(v string) predicate.Trailer
- func VinIn(vs ...string) predicate.Trailer
- func VinIsNil() predicate.Trailer
- func VinLT(v string) predicate.Trailer
- func VinLTE(v string) predicate.Trailer
- func VinNEQ(v string) predicate.Trailer
- func VinNotIn(vs ...string) predicate.Trailer
- func VinNotNil() predicate.Trailer
- func Year(v int16) predicate.Trailer
- func YearEQ(v int16) predicate.Trailer
- func YearGT(v int16) predicate.Trailer
- func YearGTE(v int16) predicate.Trailer
- func YearIn(vs ...int16) predicate.Trailer
- func YearIsNil() predicate.Trailer
- func YearLT(v int16) predicate.Trailer
- func YearLTE(v int16) predicate.Trailer
- func YearNEQ(v int16) predicate.Trailer
- func YearNotIn(vs ...int16) predicate.Trailer
- func YearNotNil() predicate.Trailer
- type OrderOption
- func ByBusinessUnitField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBusinessUnitID(opts ...sql.OrderTermOption) OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEquipmentManufacturerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEquipmentManufacturerID(opts ...sql.OrderTermOption) OrderOption
- func ByEquipmentTypeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEquipmentTypeID(opts ...sql.OrderTermOption) OrderOption
- func ByFleetCodeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByFleetCodeID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastInspectionDate(opts ...sql.OrderTermOption) OrderOption
- func ByLicensePlateNumber(opts ...sql.OrderTermOption) OrderOption
- func ByModel(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByRegistrationExpirationDate(opts ...sql.OrderTermOption) OrderOption
- func ByRegistrationNumber(opts ...sql.OrderTermOption) OrderOption
- func ByRegistrationStateField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByRegistrationStateID(opts ...sql.OrderTermOption) OrderOption
- func ByStateField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByStateID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
- func ByVin(opts ...sql.OrderTermOption) OrderOption
- func ByYear(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
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" )
const DefaultStatus = StatusAvailable
StatusAvailable is the default value of the Status enum.
Variables ¶
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"
var Columns = []string{ FieldID, FieldBusinessUnitID, FieldOrganizationID, FieldCreatedAt, FieldUpdatedAt, FieldVersion, FieldCode, FieldStatus, FieldEquipmentTypeID, FieldVin, FieldEquipmentManufacturerID, FieldModel, FieldYear, FieldLicensePlateNumber, FieldStateID, FieldFleetCodeID, FieldLastInspectionDate, FieldRegistrationNumber, FieldRegistrationStateID, FieldRegistrationExpirationDate, }
Columns holds all SQL columns for trailer fields.
Functions ¶
func BusinessUnitID ¶
BusinessUnitID applies equality check predicate on the "business_unit_id" field. It's identical to BusinessUnitIDEQ.
func BusinessUnitIDEQ ¶
BusinessUnitIDEQ applies the EQ predicate on the "business_unit_id" field.
func BusinessUnitIDIn ¶
BusinessUnitIDIn applies the In predicate on the "business_unit_id" field.
func BusinessUnitIDNEQ ¶
BusinessUnitIDNEQ applies the NEQ predicate on the "business_unit_id" field.
func BusinessUnitIDNotIn ¶
BusinessUnitIDNotIn applies the NotIn predicate on the "business_unit_id" field.
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" 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 EquipmentManufacturerID ¶
EquipmentManufacturerID applies equality check predicate on the "equipment_manufacturer_id" field. It's identical to EquipmentManufacturerIDEQ.
func EquipmentManufacturerIDEQ ¶
EquipmentManufacturerIDEQ applies the EQ predicate on the "equipment_manufacturer_id" field.
func EquipmentManufacturerIDIn ¶
EquipmentManufacturerIDIn applies the In predicate on the "equipment_manufacturer_id" field.
func EquipmentManufacturerIDIsNil ¶
EquipmentManufacturerIDIsNil applies the IsNil predicate on the "equipment_manufacturer_id" field.
func EquipmentManufacturerIDNEQ ¶
EquipmentManufacturerIDNEQ applies the NEQ predicate on the "equipment_manufacturer_id" field.
func EquipmentManufacturerIDNotIn ¶
EquipmentManufacturerIDNotIn applies the NotIn predicate on the "equipment_manufacturer_id" field.
func EquipmentManufacturerIDNotNil ¶
EquipmentManufacturerIDNotNil applies the NotNil predicate on the "equipment_manufacturer_id" field.
func EquipmentTypeID ¶
EquipmentTypeID applies equality check predicate on the "equipment_type_id" field. It's identical to EquipmentTypeIDEQ.
func EquipmentTypeIDEQ ¶
EquipmentTypeIDEQ applies the EQ predicate on the "equipment_type_id" field.
func EquipmentTypeIDIn ¶
EquipmentTypeIDIn applies the In predicate on the "equipment_type_id" field.
func EquipmentTypeIDNEQ ¶
EquipmentTypeIDNEQ applies the NEQ predicate on the "equipment_type_id" field.
func EquipmentTypeIDNotIn ¶
EquipmentTypeIDNotIn applies the NotIn predicate on the "equipment_type_id" field.
func FleetCodeID ¶
FleetCodeID applies equality check predicate on the "fleet_code_id" field. It's identical to FleetCodeIDEQ.
func FleetCodeIDEQ ¶
FleetCodeIDEQ applies the EQ predicate on the "fleet_code_id" field.
func FleetCodeIDIn ¶
FleetCodeIDIn applies the In predicate on the "fleet_code_id" field.
func FleetCodeIDNEQ ¶
FleetCodeIDNEQ applies the NEQ predicate on the "fleet_code_id" field.
func FleetCodeIDNotIn ¶
FleetCodeIDNotIn applies the NotIn predicate on the "fleet_code_id" field.
func HasBusinessUnit ¶
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 ¶
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 ¶
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 ¶
HasFleetCode applies the HasEdge predicate on the "fleet_code" edge.
func HasFleetCodeWith ¶
HasFleetCodeWith applies the HasEdge predicate on the "fleet_code" edge with a given conditions (other predicates).
func HasOrganization ¶
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 ¶
HasRegistrationState applies the HasEdge predicate on the "registration_state" edge.
func HasRegistrationStateWith ¶
HasRegistrationStateWith applies the HasEdge predicate on the "registration_state" edge with a given conditions (other predicates).
func HasStateWith ¶
HasStateWith applies the HasEdge predicate on the "state" edge with a given conditions (other predicates).
func LastInspectionDate ¶
LastInspectionDate applies equality check predicate on the "last_inspection_date" field. It's identical to LastInspectionDateEQ.
func LastInspectionDateEQ ¶
LastInspectionDateEQ applies the EQ predicate on the "last_inspection_date" field.
func LastInspectionDateGT ¶
LastInspectionDateGT applies the GT predicate on the "last_inspection_date" field.
func LastInspectionDateGTE ¶
LastInspectionDateGTE applies the GTE predicate on the "last_inspection_date" field.
func LastInspectionDateIn ¶
LastInspectionDateIn applies the In predicate on the "last_inspection_date" field.
func LastInspectionDateIsNil ¶
LastInspectionDateIsNil applies the IsNil predicate on the "last_inspection_date" field.
func LastInspectionDateLT ¶
LastInspectionDateLT applies the LT predicate on the "last_inspection_date" field.
func LastInspectionDateLTE ¶
LastInspectionDateLTE applies the LTE predicate on the "last_inspection_date" field.
func LastInspectionDateNEQ ¶
LastInspectionDateNEQ applies the NEQ predicate on the "last_inspection_date" field.
func LastInspectionDateNotIn ¶
LastInspectionDateNotIn applies the NotIn predicate on the "last_inspection_date" field.
func LastInspectionDateNotNil ¶
LastInspectionDateNotNil applies the NotNil predicate on the "last_inspection_date" field.
func LicensePlateNumber ¶
LicensePlateNumber applies equality check predicate on the "license_plate_number" field. It's identical to LicensePlateNumberEQ.
func LicensePlateNumberContains ¶
LicensePlateNumberContains applies the Contains predicate on the "license_plate_number" field.
func LicensePlateNumberContainsFold ¶
LicensePlateNumberContainsFold applies the ContainsFold predicate on the "license_plate_number" field.
func LicensePlateNumberEQ ¶
LicensePlateNumberEQ applies the EQ predicate on the "license_plate_number" field.
func LicensePlateNumberEqualFold ¶
LicensePlateNumberEqualFold applies the EqualFold predicate on the "license_plate_number" field.
func LicensePlateNumberGT ¶
LicensePlateNumberGT applies the GT predicate on the "license_plate_number" field.
func LicensePlateNumberGTE ¶
LicensePlateNumberGTE applies the GTE predicate on the "license_plate_number" field.
func LicensePlateNumberHasPrefix ¶
LicensePlateNumberHasPrefix applies the HasPrefix predicate on the "license_plate_number" field.
func LicensePlateNumberHasSuffix ¶
LicensePlateNumberHasSuffix applies the HasSuffix predicate on the "license_plate_number" field.
func LicensePlateNumberIn ¶
LicensePlateNumberIn applies the In predicate on the "license_plate_number" field.
func LicensePlateNumberIsNil ¶
LicensePlateNumberIsNil applies the IsNil predicate on the "license_plate_number" field.
func LicensePlateNumberLT ¶
LicensePlateNumberLT applies the LT predicate on the "license_plate_number" field.
func LicensePlateNumberLTE ¶
LicensePlateNumberLTE applies the LTE predicate on the "license_plate_number" field.
func LicensePlateNumberNEQ ¶
LicensePlateNumberNEQ applies the NEQ predicate on the "license_plate_number" field.
func LicensePlateNumberNotIn ¶
LicensePlateNumberNotIn applies the NotIn predicate on the "license_plate_number" field.
func LicensePlateNumberNotNil ¶
LicensePlateNumberNotNil applies the NotNil predicate on the "license_plate_number" field.
func Model ¶
Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
func ModelContains ¶
ModelContains applies the Contains predicate on the "model" field.
func ModelContainsFold ¶
ModelContainsFold applies the ContainsFold predicate on the "model" field.
func ModelEqualFold ¶
ModelEqualFold applies the EqualFold predicate on the "model" field.
func ModelHasPrefix ¶
ModelHasPrefix applies the HasPrefix predicate on the "model" field.
func ModelHasSuffix ¶
ModelHasSuffix applies the HasSuffix predicate on the "model" field.
func ModelIsNil ¶
ModelIsNil applies the IsNil predicate on the "model" field.
func ModelNotIn ¶
ModelNotIn applies the NotIn predicate on the "model" field.
func ModelNotNil ¶
ModelNotNil applies the NotNil predicate on the "model" field.
func OrganizationID ¶
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDEQ ¶
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDIn ¶
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func RegistrationExpirationDate ¶
RegistrationExpirationDate applies equality check predicate on the "registration_expiration_date" field. It's identical to RegistrationExpirationDateEQ.
func RegistrationExpirationDateEQ ¶
RegistrationExpirationDateEQ applies the EQ predicate on the "registration_expiration_date" field.
func RegistrationExpirationDateGT ¶
RegistrationExpirationDateGT applies the GT predicate on the "registration_expiration_date" field.
func RegistrationExpirationDateGTE ¶
RegistrationExpirationDateGTE applies the GTE predicate on the "registration_expiration_date" field.
func RegistrationExpirationDateIn ¶
RegistrationExpirationDateIn applies the In predicate on the "registration_expiration_date" field.
func RegistrationExpirationDateIsNil ¶
RegistrationExpirationDateIsNil applies the IsNil predicate on the "registration_expiration_date" field.
func RegistrationExpirationDateLT ¶
RegistrationExpirationDateLT applies the LT predicate on the "registration_expiration_date" field.
func RegistrationExpirationDateLTE ¶
RegistrationExpirationDateLTE applies the LTE predicate on the "registration_expiration_date" field.
func RegistrationExpirationDateNEQ ¶
RegistrationExpirationDateNEQ applies the NEQ predicate on the "registration_expiration_date" field.
func RegistrationExpirationDateNotIn ¶
RegistrationExpirationDateNotIn applies the NotIn predicate on the "registration_expiration_date" field.
func RegistrationExpirationDateNotNil ¶
RegistrationExpirationDateNotNil applies the NotNil predicate on the "registration_expiration_date" field.
func RegistrationNumber ¶
RegistrationNumber applies equality check predicate on the "registration_number" field. It's identical to RegistrationNumberEQ.
func RegistrationNumberContains ¶
RegistrationNumberContains applies the Contains predicate on the "registration_number" field.
func RegistrationNumberContainsFold ¶
RegistrationNumberContainsFold applies the ContainsFold predicate on the "registration_number" field.
func RegistrationNumberEQ ¶
RegistrationNumberEQ applies the EQ predicate on the "registration_number" field.
func RegistrationNumberEqualFold ¶
RegistrationNumberEqualFold applies the EqualFold predicate on the "registration_number" field.
func RegistrationNumberGT ¶
RegistrationNumberGT applies the GT predicate on the "registration_number" field.
func RegistrationNumberGTE ¶
RegistrationNumberGTE applies the GTE predicate on the "registration_number" field.
func RegistrationNumberHasPrefix ¶
RegistrationNumberHasPrefix applies the HasPrefix predicate on the "registration_number" field.
func RegistrationNumberHasSuffix ¶
RegistrationNumberHasSuffix applies the HasSuffix predicate on the "registration_number" field.
func RegistrationNumberIn ¶
RegistrationNumberIn applies the In predicate on the "registration_number" field.
func RegistrationNumberIsNil ¶
RegistrationNumberIsNil applies the IsNil predicate on the "registration_number" field.
func RegistrationNumberLT ¶
RegistrationNumberLT applies the LT predicate on the "registration_number" field.
func RegistrationNumberLTE ¶
RegistrationNumberLTE applies the LTE predicate on the "registration_number" field.
func RegistrationNumberNEQ ¶
RegistrationNumberNEQ applies the NEQ predicate on the "registration_number" field.
func RegistrationNumberNotIn ¶
RegistrationNumberNotIn applies the NotIn predicate on the "registration_number" field.
func RegistrationNumberNotNil ¶
RegistrationNumberNotNil applies the NotNil predicate on the "registration_number" field.
func RegistrationStateID ¶
RegistrationStateID applies equality check predicate on the "registration_state_id" field. It's identical to RegistrationStateIDEQ.
func RegistrationStateIDEQ ¶
RegistrationStateIDEQ applies the EQ predicate on the "registration_state_id" field.
func RegistrationStateIDIn ¶
RegistrationStateIDIn applies the In predicate on the "registration_state_id" field.
func RegistrationStateIDIsNil ¶
RegistrationStateIDIsNil applies the IsNil predicate on the "registration_state_id" field.
func RegistrationStateIDNEQ ¶
RegistrationStateIDNEQ applies the NEQ predicate on the "registration_state_id" field.
func RegistrationStateIDNotIn ¶
RegistrationStateIDNotIn applies the NotIn predicate on the "registration_state_id" field.
func RegistrationStateIDNotNil ¶
RegistrationStateIDNotNil applies the NotNil predicate on the "registration_state_id" field.
func StateID ¶
StateID applies equality check predicate on the "state_id" field. It's identical to StateIDEQ.
func StateIDIsNil ¶
StateIDIsNil applies the IsNil predicate on the "state_id" field.
func StateIDNEQ ¶
StateIDNEQ applies the NEQ predicate on the "state_id" field.
func StateIDNotIn ¶
StateIDNotIn applies the NotIn predicate on the "state_id" field.
func StateIDNotNil ¶
StateIDNotNil applies the NotNil predicate on the "state_id" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
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 Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
func VinContains ¶
VinContains applies the Contains predicate on the "vin" field.
func VinContainsFold ¶
VinContainsFold applies the ContainsFold predicate on the "vin" field.
func VinEqualFold ¶
VinEqualFold applies the EqualFold predicate on the "vin" field.
func VinHasPrefix ¶
VinHasPrefix applies the HasPrefix predicate on the "vin" field.
func VinHasSuffix ¶
VinHasSuffix applies the HasSuffix predicate on the "vin" field.
func YearNotNil ¶
YearNotNil applies the NotNil predicate on the "year" field.
Types ¶
type OrderOption ¶
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.