Documentation ¶
Index ¶
- Constants
- Variables
- func AddressLine1(v string) predicate.Worker
- func AddressLine1Contains(v string) predicate.Worker
- func AddressLine1ContainsFold(v string) predicate.Worker
- func AddressLine1EQ(v string) predicate.Worker
- func AddressLine1EqualFold(v string) predicate.Worker
- func AddressLine1GT(v string) predicate.Worker
- func AddressLine1GTE(v string) predicate.Worker
- func AddressLine1HasPrefix(v string) predicate.Worker
- func AddressLine1HasSuffix(v string) predicate.Worker
- func AddressLine1In(vs ...string) predicate.Worker
- func AddressLine1IsNil() predicate.Worker
- func AddressLine1LT(v string) predicate.Worker
- func AddressLine1LTE(v string) predicate.Worker
- func AddressLine1NEQ(v string) predicate.Worker
- func AddressLine1NotIn(vs ...string) predicate.Worker
- func AddressLine1NotNil() predicate.Worker
- func AddressLine2(v string) predicate.Worker
- func AddressLine2Contains(v string) predicate.Worker
- func AddressLine2ContainsFold(v string) predicate.Worker
- func AddressLine2EQ(v string) predicate.Worker
- func AddressLine2EqualFold(v string) predicate.Worker
- func AddressLine2GT(v string) predicate.Worker
- func AddressLine2GTE(v string) predicate.Worker
- func AddressLine2HasPrefix(v string) predicate.Worker
- func AddressLine2HasSuffix(v string) predicate.Worker
- func AddressLine2In(vs ...string) predicate.Worker
- func AddressLine2IsNil() predicate.Worker
- func AddressLine2LT(v string) predicate.Worker
- func AddressLine2LTE(v string) predicate.Worker
- func AddressLine2NEQ(v string) predicate.Worker
- func AddressLine2NotIn(vs ...string) predicate.Worker
- func AddressLine2NotNil() predicate.Worker
- func And(predicates ...predicate.Worker) predicate.Worker
- func BusinessUnitID(v uuid.UUID) predicate.Worker
- func BusinessUnitIDEQ(v uuid.UUID) predicate.Worker
- func BusinessUnitIDIn(vs ...uuid.UUID) predicate.Worker
- func BusinessUnitIDNEQ(v uuid.UUID) predicate.Worker
- func BusinessUnitIDNotIn(vs ...uuid.UUID) predicate.Worker
- func City(v string) predicate.Worker
- func CityContains(v string) predicate.Worker
- func CityContainsFold(v string) predicate.Worker
- func CityEQ(v string) predicate.Worker
- func CityEqualFold(v string) predicate.Worker
- func CityGT(v string) predicate.Worker
- func CityGTE(v string) predicate.Worker
- func CityHasPrefix(v string) predicate.Worker
- func CityHasSuffix(v string) predicate.Worker
- func CityIn(vs ...string) predicate.Worker
- func CityIsNil() predicate.Worker
- func CityLT(v string) predicate.Worker
- func CityLTE(v string) predicate.Worker
- func CityNEQ(v string) predicate.Worker
- func CityNotIn(vs ...string) predicate.Worker
- func CityNotNil() predicate.Worker
- func Code(v string) predicate.Worker
- func CodeContains(v string) predicate.Worker
- func CodeContainsFold(v string) predicate.Worker
- func CodeEQ(v string) predicate.Worker
- func CodeEqualFold(v string) predicate.Worker
- func CodeGT(v string) predicate.Worker
- func CodeGTE(v string) predicate.Worker
- func CodeHasPrefix(v string) predicate.Worker
- func CodeHasSuffix(v string) predicate.Worker
- func CodeIn(vs ...string) predicate.Worker
- func CodeLT(v string) predicate.Worker
- func CodeLTE(v string) predicate.Worker
- func CodeNEQ(v string) predicate.Worker
- func CodeNotIn(vs ...string) predicate.Worker
- func CreatedAt(v time.Time) predicate.Worker
- func CreatedAtEQ(v time.Time) predicate.Worker
- func CreatedAtGT(v time.Time) predicate.Worker
- func CreatedAtGTE(v time.Time) predicate.Worker
- func CreatedAtIn(vs ...time.Time) predicate.Worker
- func CreatedAtLT(v time.Time) predicate.Worker
- func CreatedAtLTE(v time.Time) predicate.Worker
- func CreatedAtNEQ(v time.Time) predicate.Worker
- func CreatedAtNotIn(vs ...time.Time) predicate.Worker
- func FirstName(v string) predicate.Worker
- func FirstNameContains(v string) predicate.Worker
- func FirstNameContainsFold(v string) predicate.Worker
- func FirstNameEQ(v string) predicate.Worker
- func FirstNameEqualFold(v string) predicate.Worker
- func FirstNameGT(v string) predicate.Worker
- func FirstNameGTE(v string) predicate.Worker
- func FirstNameHasPrefix(v string) predicate.Worker
- func FirstNameHasSuffix(v string) predicate.Worker
- func FirstNameIn(vs ...string) predicate.Worker
- func FirstNameLT(v string) predicate.Worker
- func FirstNameLTE(v string) predicate.Worker
- func FirstNameNEQ(v string) predicate.Worker
- func FirstNameNotIn(vs ...string) predicate.Worker
- func FleetCodeID(v uuid.UUID) predicate.Worker
- func FleetCodeIDEQ(v uuid.UUID) predicate.Worker
- func FleetCodeIDIn(vs ...uuid.UUID) predicate.Worker
- func FleetCodeIDIsNil() predicate.Worker
- func FleetCodeIDNEQ(v uuid.UUID) predicate.Worker
- func FleetCodeIDNotIn(vs ...uuid.UUID) predicate.Worker
- func FleetCodeIDNotNil() predicate.Worker
- func HasBusinessUnit() predicate.Worker
- func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.Worker
- func HasFleetCode() predicate.Worker
- func HasFleetCodeWith(preds ...predicate.FleetCode) predicate.Worker
- func HasManager() predicate.Worker
- func HasManagerWith(preds ...predicate.User) predicate.Worker
- func HasOrganization() predicate.Worker
- func HasOrganizationWith(preds ...predicate.Organization) predicate.Worker
- func HasPrimaryTractor() predicate.Worker
- func HasPrimaryTractorWith(preds ...predicate.Tractor) predicate.Worker
- func HasSecondaryTractor() predicate.Worker
- func HasSecondaryTractorWith(preds ...predicate.Tractor) predicate.Worker
- func HasState() predicate.Worker
- func HasStateWith(preds ...predicate.UsState) predicate.Worker
- func HasWorkerComments() predicate.Worker
- func HasWorkerCommentsWith(preds ...predicate.WorkerComment) predicate.Worker
- func HasWorkerContacts() predicate.Worker
- func HasWorkerContactsWith(preds ...predicate.WorkerContact) predicate.Worker
- func HasWorkerProfile() predicate.Worker
- func HasWorkerProfileWith(preds ...predicate.WorkerProfile) predicate.Worker
- func ID(id uuid.UUID) predicate.Worker
- func IDEQ(id uuid.UUID) predicate.Worker
- func IDGT(id uuid.UUID) predicate.Worker
- func IDGTE(id uuid.UUID) predicate.Worker
- func IDIn(ids ...uuid.UUID) predicate.Worker
- func IDLT(id uuid.UUID) predicate.Worker
- func IDLTE(id uuid.UUID) predicate.Worker
- func IDNEQ(id uuid.UUID) predicate.Worker
- func IDNotIn(ids ...uuid.UUID) predicate.Worker
- func LastName(v string) predicate.Worker
- func LastNameContains(v string) predicate.Worker
- func LastNameContainsFold(v string) predicate.Worker
- func LastNameEQ(v string) predicate.Worker
- func LastNameEqualFold(v string) predicate.Worker
- func LastNameGT(v string) predicate.Worker
- func LastNameGTE(v string) predicate.Worker
- func LastNameHasPrefix(v string) predicate.Worker
- func LastNameHasSuffix(v string) predicate.Worker
- func LastNameIn(vs ...string) predicate.Worker
- func LastNameLT(v string) predicate.Worker
- func LastNameLTE(v string) predicate.Worker
- func LastNameNEQ(v string) predicate.Worker
- func LastNameNotIn(vs ...string) predicate.Worker
- func ManagerID(v uuid.UUID) predicate.Worker
- func ManagerIDEQ(v uuid.UUID) predicate.Worker
- func ManagerIDIn(vs ...uuid.UUID) predicate.Worker
- func ManagerIDIsNil() predicate.Worker
- func ManagerIDNEQ(v uuid.UUID) predicate.Worker
- func ManagerIDNotIn(vs ...uuid.UUID) predicate.Worker
- func ManagerIDNotNil() predicate.Worker
- func Not(p predicate.Worker) predicate.Worker
- func Or(predicates ...predicate.Worker) predicate.Worker
- func OrganizationID(v uuid.UUID) predicate.Worker
- func OrganizationIDEQ(v uuid.UUID) predicate.Worker
- func OrganizationIDIn(vs ...uuid.UUID) predicate.Worker
- func OrganizationIDNEQ(v uuid.UUID) predicate.Worker
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.Worker
- func PostalCode(v string) predicate.Worker
- func PostalCodeContains(v string) predicate.Worker
- func PostalCodeContainsFold(v string) predicate.Worker
- func PostalCodeEQ(v string) predicate.Worker
- func PostalCodeEqualFold(v string) predicate.Worker
- func PostalCodeGT(v string) predicate.Worker
- func PostalCodeGTE(v string) predicate.Worker
- func PostalCodeHasPrefix(v string) predicate.Worker
- func PostalCodeHasSuffix(v string) predicate.Worker
- func PostalCodeIn(vs ...string) predicate.Worker
- func PostalCodeIsNil() predicate.Worker
- func PostalCodeLT(v string) predicate.Worker
- func PostalCodeLTE(v string) predicate.Worker
- func PostalCodeNEQ(v string) predicate.Worker
- func PostalCodeNotIn(vs ...string) predicate.Worker
- func PostalCodeNotNil() predicate.Worker
- func ProfilePictureURL(v string) predicate.Worker
- func ProfilePictureURLContains(v string) predicate.Worker
- func ProfilePictureURLContainsFold(v string) predicate.Worker
- func ProfilePictureURLEQ(v string) predicate.Worker
- func ProfilePictureURLEqualFold(v string) predicate.Worker
- func ProfilePictureURLGT(v string) predicate.Worker
- func ProfilePictureURLGTE(v string) predicate.Worker
- func ProfilePictureURLHasPrefix(v string) predicate.Worker
- func ProfilePictureURLHasSuffix(v string) predicate.Worker
- func ProfilePictureURLIn(vs ...string) predicate.Worker
- func ProfilePictureURLIsNil() predicate.Worker
- func ProfilePictureURLLT(v string) predicate.Worker
- func ProfilePictureURLLTE(v string) predicate.Worker
- func ProfilePictureURLNEQ(v string) predicate.Worker
- func ProfilePictureURLNotIn(vs ...string) predicate.Worker
- func ProfilePictureURLNotNil() predicate.Worker
- func StateID(v uuid.UUID) predicate.Worker
- func StateIDEQ(v uuid.UUID) predicate.Worker
- func StateIDIn(vs ...uuid.UUID) predicate.Worker
- func StateIDIsNil() predicate.Worker
- func StateIDNEQ(v uuid.UUID) predicate.Worker
- func StateIDNotIn(vs ...uuid.UUID) predicate.Worker
- func StateIDNotNil() predicate.Worker
- func StatusEQ(v Status) predicate.Worker
- func StatusIn(vs ...Status) predicate.Worker
- func StatusNEQ(v Status) predicate.Worker
- func StatusNotIn(vs ...Status) predicate.Worker
- func StatusValidator(s Status) error
- func UpdatedAt(v time.Time) predicate.Worker
- func UpdatedAtEQ(v time.Time) predicate.Worker
- func UpdatedAtGT(v time.Time) predicate.Worker
- func UpdatedAtGTE(v time.Time) predicate.Worker
- func UpdatedAtIn(vs ...time.Time) predicate.Worker
- func UpdatedAtLT(v time.Time) predicate.Worker
- func UpdatedAtLTE(v time.Time) predicate.Worker
- func UpdatedAtNEQ(v time.Time) predicate.Worker
- func UpdatedAtNotIn(vs ...time.Time) predicate.Worker
- func ValidColumn(column string) bool
- func Version(v int) predicate.Worker
- func VersionEQ(v int) predicate.Worker
- func VersionGT(v int) predicate.Worker
- func VersionGTE(v int) predicate.Worker
- func VersionIn(vs ...int) predicate.Worker
- func VersionLT(v int) predicate.Worker
- func VersionLTE(v int) predicate.Worker
- func VersionNEQ(v int) predicate.Worker
- func VersionNotIn(vs ...int) predicate.Worker
- func WorkerTypeEQ(v WorkerType) predicate.Worker
- func WorkerTypeIn(vs ...WorkerType) predicate.Worker
- func WorkerTypeNEQ(v WorkerType) predicate.Worker
- func WorkerTypeNotIn(vs ...WorkerType) predicate.Worker
- func WorkerTypeValidator(wt WorkerType) error
- type OrderOption
- func ByAddressLine1(opts ...sql.OrderTermOption) OrderOption
- func ByAddressLine2(opts ...sql.OrderTermOption) OrderOption
- func ByBusinessUnitField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBusinessUnitID(opts ...sql.OrderTermOption) OrderOption
- func ByCity(opts ...sql.OrderTermOption) OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFirstName(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 ByLastName(opts ...sql.OrderTermOption) OrderOption
- func ByManagerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByManagerID(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByPostalCode(opts ...sql.OrderTermOption) OrderOption
- func ByPrimaryTractorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProfilePictureURL(opts ...sql.OrderTermOption) OrderOption
- func BySecondaryTractorField(field string, 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 ByWorkerComments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByWorkerCommentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByWorkerContacts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByWorkerContactsCount(opts ...sql.OrderTermOption) OrderOption
- func ByWorkerProfileField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkerType(opts ...sql.OrderTermOption) OrderOption
- type Status
- type WorkerType
Constants ¶
const ( // Label holds the string label denoting the worker type in the database. Label = "worker" // 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" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldProfilePictureURL holds the string denoting the profile_picture_url field in the database. FieldProfilePictureURL = "profile_picture_url" // FieldWorkerType holds the string denoting the worker_type field in the database. FieldWorkerType = "worker_type" // FieldFirstName holds the string denoting the first_name field in the database. FieldFirstName = "first_name" // FieldLastName holds the string denoting the last_name field in the database. FieldLastName = "last_name" // FieldAddressLine1 holds the string denoting the address_line_1 field in the database. FieldAddressLine1 = "address_line_1" // FieldAddressLine2 holds the string denoting the address_line_2 field in the database. FieldAddressLine2 = "address_line_2" // FieldCity holds the string denoting the city field in the database. FieldCity = "city" // FieldPostalCode holds the string denoting the postal_code field in the database. FieldPostalCode = "postal_code" // 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" // FieldManagerID holds the string denoting the manager_id field in the database. FieldManagerID = "manager_id" // 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" // EdgeState holds the string denoting the state edge name in mutations. EdgeState = "state" // EdgeFleetCode holds the string denoting the fleet_code edge name in mutations. EdgeFleetCode = "fleet_code" // EdgeManager holds the string denoting the manager edge name in mutations. EdgeManager = "manager" // EdgePrimaryTractor holds the string denoting the primary_tractor edge name in mutations. EdgePrimaryTractor = "primary_tractor" // EdgeSecondaryTractor holds the string denoting the secondary_tractor edge name in mutations. EdgeSecondaryTractor = "secondary_tractor" // EdgeWorkerProfile holds the string denoting the worker_profile edge name in mutations. EdgeWorkerProfile = "worker_profile" // EdgeWorkerComments holds the string denoting the worker_comments edge name in mutations. EdgeWorkerComments = "worker_comments" // EdgeWorkerContacts holds the string denoting the worker_contacts edge name in mutations. EdgeWorkerContacts = "worker_contacts" // Table holds the table name of the worker in the database. Table = "workers" // BusinessUnitTable is the table that holds the business_unit relation/edge. BusinessUnitTable = "workers" // 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 = "workers" // 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" // StateTable is the table that holds the state relation/edge. StateTable = "workers" // 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" // FleetCodeTable is the table that holds the fleet_code relation/edge. FleetCodeTable = "workers" // 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" // ManagerTable is the table that holds the manager relation/edge. ManagerTable = "workers" // ManagerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. ManagerInverseTable = "users" // ManagerColumn is the table column denoting the manager relation/edge. ManagerColumn = "manager_id" // PrimaryTractorTable is the table that holds the primary_tractor relation/edge. PrimaryTractorTable = "tractors" // PrimaryTractorInverseTable is the table name for the Tractor entity. // It exists in this package in order to avoid circular dependency with the "tractor" package. PrimaryTractorInverseTable = "tractors" // PrimaryTractorColumn is the table column denoting the primary_tractor relation/edge. PrimaryTractorColumn = "primary_worker_id" // SecondaryTractorTable is the table that holds the secondary_tractor relation/edge. SecondaryTractorTable = "tractors" // SecondaryTractorInverseTable is the table name for the Tractor entity. // It exists in this package in order to avoid circular dependency with the "tractor" package. SecondaryTractorInverseTable = "tractors" // SecondaryTractorColumn is the table column denoting the secondary_tractor relation/edge. SecondaryTractorColumn = "secondary_worker_id" // WorkerProfileTable is the table that holds the worker_profile relation/edge. WorkerProfileTable = "worker_profiles" // WorkerProfileInverseTable is the table name for the WorkerProfile entity. // It exists in this package in order to avoid circular dependency with the "workerprofile" package. WorkerProfileInverseTable = "worker_profiles" // WorkerProfileColumn is the table column denoting the worker_profile relation/edge. WorkerProfileColumn = "worker_id" // WorkerCommentsTable is the table that holds the worker_comments relation/edge. WorkerCommentsTable = "worker_comments" // WorkerCommentsInverseTable is the table name for the WorkerComment entity. // It exists in this package in order to avoid circular dependency with the "workercomment" package. WorkerCommentsInverseTable = "worker_comments" // WorkerCommentsColumn is the table column denoting the worker_comments relation/edge. WorkerCommentsColumn = "worker_id" // WorkerContactsTable is the table that holds the worker_contacts relation/edge. WorkerContactsTable = "worker_contacts" // WorkerContactsInverseTable is the table name for the WorkerContact entity. // It exists in this package in order to avoid circular dependency with the "workercontact" package. WorkerContactsInverseTable = "worker_contacts" // WorkerContactsColumn is the table column denoting the worker_contacts relation/edge. WorkerContactsColumn = "worker_id" )
const DefaultStatus = StatusA
StatusA is the default value of the Status enum.
const DefaultWorkerType = WorkerTypeEmployee
WorkerTypeEmployee is the default value of the WorkerType enum.
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 // 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 // FirstNameValidator is a validator for the "first_name" field. It is called by the builders before save. FirstNameValidator func(string) error // LastNameValidator is a validator for the "last_name" field. It is called by the builders before save. LastNameValidator func(string) error // AddressLine1Validator is a validator for the "address_line_1" field. It is called by the builders before save. AddressLine1Validator func(string) error // AddressLine2Validator is a validator for the "address_line_2" field. It is called by the builders before save. AddressLine2Validator func(string) error // CityValidator is a validator for the "city" field. It is called by the builders before save. CityValidator func(string) error // PostalCodeValidator is a validator for the "postal_code" field. It is called by the builders before save. PostalCodeValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldBusinessUnitID, FieldOrganizationID, FieldCreatedAt, FieldUpdatedAt, FieldVersion, FieldStatus, FieldCode, FieldProfilePictureURL, FieldWorkerType, FieldFirstName, FieldLastName, FieldAddressLine1, FieldAddressLine2, FieldCity, FieldPostalCode, FieldStateID, FieldFleetCodeID, FieldManagerID, }
Columns holds all SQL columns for worker fields.
Functions ¶
func AddressLine1 ¶
AddressLine1 applies equality check predicate on the "address_line_1" field. It's identical to AddressLine1EQ.
func AddressLine1Contains ¶
AddressLine1Contains applies the Contains predicate on the "address_line_1" field.
func AddressLine1ContainsFold ¶
AddressLine1ContainsFold applies the ContainsFold predicate on the "address_line_1" field.
func AddressLine1EQ ¶
AddressLine1EQ applies the EQ predicate on the "address_line_1" field.
func AddressLine1EqualFold ¶
AddressLine1EqualFold applies the EqualFold predicate on the "address_line_1" field.
func AddressLine1GT ¶
AddressLine1GT applies the GT predicate on the "address_line_1" field.
func AddressLine1GTE ¶
AddressLine1GTE applies the GTE predicate on the "address_line_1" field.
func AddressLine1HasPrefix ¶
AddressLine1HasPrefix applies the HasPrefix predicate on the "address_line_1" field.
func AddressLine1HasSuffix ¶
AddressLine1HasSuffix applies the HasSuffix predicate on the "address_line_1" field.
func AddressLine1In ¶
AddressLine1In applies the In predicate on the "address_line_1" field.
func AddressLine1IsNil ¶
AddressLine1IsNil applies the IsNil predicate on the "address_line_1" field.
func AddressLine1LT ¶
AddressLine1LT applies the LT predicate on the "address_line_1" field.
func AddressLine1LTE ¶
AddressLine1LTE applies the LTE predicate on the "address_line_1" field.
func AddressLine1NEQ ¶
AddressLine1NEQ applies the NEQ predicate on the "address_line_1" field.
func AddressLine1NotIn ¶
AddressLine1NotIn applies the NotIn predicate on the "address_line_1" field.
func AddressLine1NotNil ¶
AddressLine1NotNil applies the NotNil predicate on the "address_line_1" field.
func AddressLine2 ¶
AddressLine2 applies equality check predicate on the "address_line_2" field. It's identical to AddressLine2EQ.
func AddressLine2Contains ¶
AddressLine2Contains applies the Contains predicate on the "address_line_2" field.
func AddressLine2ContainsFold ¶
AddressLine2ContainsFold applies the ContainsFold predicate on the "address_line_2" field.
func AddressLine2EQ ¶
AddressLine2EQ applies the EQ predicate on the "address_line_2" field.
func AddressLine2EqualFold ¶
AddressLine2EqualFold applies the EqualFold predicate on the "address_line_2" field.
func AddressLine2GT ¶
AddressLine2GT applies the GT predicate on the "address_line_2" field.
func AddressLine2GTE ¶
AddressLine2GTE applies the GTE predicate on the "address_line_2" field.
func AddressLine2HasPrefix ¶
AddressLine2HasPrefix applies the HasPrefix predicate on the "address_line_2" field.
func AddressLine2HasSuffix ¶
AddressLine2HasSuffix applies the HasSuffix predicate on the "address_line_2" field.
func AddressLine2In ¶
AddressLine2In applies the In predicate on the "address_line_2" field.
func AddressLine2IsNil ¶
AddressLine2IsNil applies the IsNil predicate on the "address_line_2" field.
func AddressLine2LT ¶
AddressLine2LT applies the LT predicate on the "address_line_2" field.
func AddressLine2LTE ¶
AddressLine2LTE applies the LTE predicate on the "address_line_2" field.
func AddressLine2NEQ ¶
AddressLine2NEQ applies the NEQ predicate on the "address_line_2" field.
func AddressLine2NotIn ¶
AddressLine2NotIn applies the NotIn predicate on the "address_line_2" field.
func AddressLine2NotNil ¶
AddressLine2NotNil applies the NotNil predicate on the "address_line_2" field.
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 CityContains ¶
CityContains applies the Contains predicate on the "city" field.
func CityContainsFold ¶
CityContainsFold applies the ContainsFold predicate on the "city" field.
func CityEqualFold ¶
CityEqualFold applies the EqualFold predicate on the "city" field.
func CityHasPrefix ¶
CityHasPrefix applies the HasPrefix predicate on the "city" field.
func CityHasSuffix ¶
CityHasSuffix applies the HasSuffix predicate on the "city" field.
func CityNotNil ¶
CityNotNil applies the NotNil predicate on the "city" 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 FirstName ¶
FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.
func FirstNameContains ¶
FirstNameContains applies the Contains predicate on the "first_name" field.
func FirstNameContainsFold ¶
FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.
func FirstNameEQ ¶
FirstNameEQ applies the EQ predicate on the "first_name" field.
func FirstNameEqualFold ¶
FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.
func FirstNameGT ¶
FirstNameGT applies the GT predicate on the "first_name" field.
func FirstNameGTE ¶
FirstNameGTE applies the GTE predicate on the "first_name" field.
func FirstNameHasPrefix ¶
FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.
func FirstNameHasSuffix ¶
FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.
func FirstNameIn ¶
FirstNameIn applies the In predicate on the "first_name" field.
func FirstNameLT ¶
FirstNameLT applies the LT predicate on the "first_name" field.
func FirstNameLTE ¶
FirstNameLTE applies the LTE predicate on the "first_name" field.
func FirstNameNEQ ¶
FirstNameNEQ applies the NEQ predicate on the "first_name" field.
func FirstNameNotIn ¶
FirstNameNotIn applies the NotIn predicate on the "first_name" 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 FleetCodeIDIsNil ¶
FleetCodeIDIsNil applies the IsNil 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 FleetCodeIDNotNil ¶
FleetCodeIDNotNil applies the NotNil 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.Worker
HasBusinessUnitWith applies the HasEdge predicate on the "business_unit" 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 HasManager ¶
HasManager applies the HasEdge predicate on the "manager" edge.
func HasManagerWith ¶
HasManagerWith applies the HasEdge predicate on the "manager" 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.Worker
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func HasPrimaryTractor ¶
HasPrimaryTractor applies the HasEdge predicate on the "primary_tractor" edge.
func HasPrimaryTractorWith ¶
HasPrimaryTractorWith applies the HasEdge predicate on the "primary_tractor" edge with a given conditions (other predicates).
func HasSecondaryTractor ¶
HasSecondaryTractor applies the HasEdge predicate on the "secondary_tractor" edge.
func HasSecondaryTractorWith ¶
HasSecondaryTractorWith applies the HasEdge predicate on the "secondary_tractor" 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 HasWorkerComments ¶
HasWorkerComments applies the HasEdge predicate on the "worker_comments" edge.
func HasWorkerCommentsWith ¶
func HasWorkerCommentsWith(preds ...predicate.WorkerComment) predicate.Worker
HasWorkerCommentsWith applies the HasEdge predicate on the "worker_comments" edge with a given conditions (other predicates).
func HasWorkerContacts ¶
HasWorkerContacts applies the HasEdge predicate on the "worker_contacts" edge.
func HasWorkerContactsWith ¶
func HasWorkerContactsWith(preds ...predicate.WorkerContact) predicate.Worker
HasWorkerContactsWith applies the HasEdge predicate on the "worker_contacts" edge with a given conditions (other predicates).
func HasWorkerProfile ¶
HasWorkerProfile applies the HasEdge predicate on the "worker_profile" edge.
func HasWorkerProfileWith ¶
func HasWorkerProfileWith(preds ...predicate.WorkerProfile) predicate.Worker
HasWorkerProfileWith applies the HasEdge predicate on the "worker_profile" edge with a given conditions (other predicates).
func LastName ¶
LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.
func LastNameContains ¶
LastNameContains applies the Contains predicate on the "last_name" field.
func LastNameContainsFold ¶
LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.
func LastNameEQ ¶
LastNameEQ applies the EQ predicate on the "last_name" field.
func LastNameEqualFold ¶
LastNameEqualFold applies the EqualFold predicate on the "last_name" field.
func LastNameGT ¶
LastNameGT applies the GT predicate on the "last_name" field.
func LastNameGTE ¶
LastNameGTE applies the GTE predicate on the "last_name" field.
func LastNameHasPrefix ¶
LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.
func LastNameHasSuffix ¶
LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.
func LastNameIn ¶
LastNameIn applies the In predicate on the "last_name" field.
func LastNameLT ¶
LastNameLT applies the LT predicate on the "last_name" field.
func LastNameLTE ¶
LastNameLTE applies the LTE predicate on the "last_name" field.
func LastNameNEQ ¶
LastNameNEQ applies the NEQ predicate on the "last_name" field.
func LastNameNotIn ¶
LastNameNotIn applies the NotIn predicate on the "last_name" field.
func ManagerID ¶
ManagerID applies equality check predicate on the "manager_id" field. It's identical to ManagerIDEQ.
func ManagerIDEQ ¶
ManagerIDEQ applies the EQ predicate on the "manager_id" field.
func ManagerIDIn ¶
ManagerIDIn applies the In predicate on the "manager_id" field.
func ManagerIDIsNil ¶
ManagerIDIsNil applies the IsNil predicate on the "manager_id" field.
func ManagerIDNEQ ¶
ManagerIDNEQ applies the NEQ predicate on the "manager_id" field.
func ManagerIDNotIn ¶
ManagerIDNotIn applies the NotIn predicate on the "manager_id" field.
func ManagerIDNotNil ¶
ManagerIDNotNil applies the NotNil predicate on the "manager_id" 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 PostalCode ¶
PostalCode applies equality check predicate on the "postal_code" field. It's identical to PostalCodeEQ.
func PostalCodeContains ¶
PostalCodeContains applies the Contains predicate on the "postal_code" field.
func PostalCodeContainsFold ¶
PostalCodeContainsFold applies the ContainsFold predicate on the "postal_code" field.
func PostalCodeEQ ¶
PostalCodeEQ applies the EQ predicate on the "postal_code" field.
func PostalCodeEqualFold ¶
PostalCodeEqualFold applies the EqualFold predicate on the "postal_code" field.
func PostalCodeGT ¶
PostalCodeGT applies the GT predicate on the "postal_code" field.
func PostalCodeGTE ¶
PostalCodeGTE applies the GTE predicate on the "postal_code" field.
func PostalCodeHasPrefix ¶
PostalCodeHasPrefix applies the HasPrefix predicate on the "postal_code" field.
func PostalCodeHasSuffix ¶
PostalCodeHasSuffix applies the HasSuffix predicate on the "postal_code" field.
func PostalCodeIn ¶
PostalCodeIn applies the In predicate on the "postal_code" field.
func PostalCodeIsNil ¶
PostalCodeIsNil applies the IsNil predicate on the "postal_code" field.
func PostalCodeLT ¶
PostalCodeLT applies the LT predicate on the "postal_code" field.
func PostalCodeLTE ¶
PostalCodeLTE applies the LTE predicate on the "postal_code" field.
func PostalCodeNEQ ¶
PostalCodeNEQ applies the NEQ predicate on the "postal_code" field.
func PostalCodeNotIn ¶
PostalCodeNotIn applies the NotIn predicate on the "postal_code" field.
func PostalCodeNotNil ¶
PostalCodeNotNil applies the NotNil predicate on the "postal_code" field.
func ProfilePictureURL ¶
ProfilePictureURL applies equality check predicate on the "profile_picture_url" field. It's identical to ProfilePictureURLEQ.
func ProfilePictureURLContains ¶
ProfilePictureURLContains applies the Contains predicate on the "profile_picture_url" field.
func ProfilePictureURLContainsFold ¶
ProfilePictureURLContainsFold applies the ContainsFold predicate on the "profile_picture_url" field.
func ProfilePictureURLEQ ¶
ProfilePictureURLEQ applies the EQ predicate on the "profile_picture_url" field.
func ProfilePictureURLEqualFold ¶
ProfilePictureURLEqualFold applies the EqualFold predicate on the "profile_picture_url" field.
func ProfilePictureURLGT ¶
ProfilePictureURLGT applies the GT predicate on the "profile_picture_url" field.
func ProfilePictureURLGTE ¶
ProfilePictureURLGTE applies the GTE predicate on the "profile_picture_url" field.
func ProfilePictureURLHasPrefix ¶
ProfilePictureURLHasPrefix applies the HasPrefix predicate on the "profile_picture_url" field.
func ProfilePictureURLHasSuffix ¶
ProfilePictureURLHasSuffix applies the HasSuffix predicate on the "profile_picture_url" field.
func ProfilePictureURLIn ¶
ProfilePictureURLIn applies the In predicate on the "profile_picture_url" field.
func ProfilePictureURLIsNil ¶
ProfilePictureURLIsNil applies the IsNil predicate on the "profile_picture_url" field.
func ProfilePictureURLLT ¶
ProfilePictureURLLT applies the LT predicate on the "profile_picture_url" field.
func ProfilePictureURLLTE ¶
ProfilePictureURLLTE applies the LTE predicate on the "profile_picture_url" field.
func ProfilePictureURLNEQ ¶
ProfilePictureURLNEQ applies the NEQ predicate on the "profile_picture_url" field.
func ProfilePictureURLNotIn ¶
ProfilePictureURLNotIn applies the NotIn predicate on the "profile_picture_url" field.
func ProfilePictureURLNotNil ¶
ProfilePictureURLNotNil applies the NotNil predicate on the "profile_picture_url" 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 WorkerTypeEQ ¶
func WorkerTypeEQ(v WorkerType) predicate.Worker
WorkerTypeEQ applies the EQ predicate on the "worker_type" field.
func WorkerTypeIn ¶
func WorkerTypeIn(vs ...WorkerType) predicate.Worker
WorkerTypeIn applies the In predicate on the "worker_type" field.
func WorkerTypeNEQ ¶
func WorkerTypeNEQ(v WorkerType) predicate.Worker
WorkerTypeNEQ applies the NEQ predicate on the "worker_type" field.
func WorkerTypeNotIn ¶
func WorkerTypeNotIn(vs ...WorkerType) predicate.Worker
WorkerTypeNotIn applies the NotIn predicate on the "worker_type" field.
func WorkerTypeValidator ¶
func WorkerTypeValidator(wt WorkerType) error
WorkerTypeValidator is a validator for the "worker_type" field enum values. It is called by the builders before save.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Worker queries.
func ByAddressLine1 ¶
func ByAddressLine1(opts ...sql.OrderTermOption) OrderOption
ByAddressLine1 orders the results by the address_line_1 field.
func ByAddressLine2 ¶
func ByAddressLine2(opts ...sql.OrderTermOption) OrderOption
ByAddressLine2 orders the results by the address_line_2 field.
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 ByCity ¶
func ByCity(opts ...sql.OrderTermOption) OrderOption
ByCity orders the results by the city 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 ByFirstName ¶
func ByFirstName(opts ...sql.OrderTermOption) OrderOption
ByFirstName orders the results by the first_name 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 ByLastName ¶
func ByLastName(opts ...sql.OrderTermOption) OrderOption
ByLastName orders the results by the last_name field.
func ByManagerField ¶
func ByManagerField(field string, opts ...sql.OrderTermOption) OrderOption
ByManagerField orders the results by manager field.
func ByManagerID ¶
func ByManagerID(opts ...sql.OrderTermOption) OrderOption
ByManagerID orders the results by the manager_id 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 ByPostalCode ¶
func ByPostalCode(opts ...sql.OrderTermOption) OrderOption
ByPostalCode orders the results by the postal_code field.
func ByPrimaryTractorField ¶
func ByPrimaryTractorField(field string, opts ...sql.OrderTermOption) OrderOption
ByPrimaryTractorField orders the results by primary_tractor field.
func ByProfilePictureURL ¶
func ByProfilePictureURL(opts ...sql.OrderTermOption) OrderOption
ByProfilePictureURL orders the results by the profile_picture_url field.
func BySecondaryTractorField ¶
func BySecondaryTractorField(field string, opts ...sql.OrderTermOption) OrderOption
BySecondaryTractorField orders the results by secondary_tractor 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 ByWorkerComments ¶
func ByWorkerComments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByWorkerComments orders the results by worker_comments terms.
func ByWorkerCommentsCount ¶
func ByWorkerCommentsCount(opts ...sql.OrderTermOption) OrderOption
ByWorkerCommentsCount orders the results by worker_comments count.
func ByWorkerContacts ¶
func ByWorkerContacts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByWorkerContacts orders the results by worker_contacts terms.
func ByWorkerContactsCount ¶
func ByWorkerContactsCount(opts ...sql.OrderTermOption) OrderOption
ByWorkerContactsCount orders the results by worker_contacts count.
func ByWorkerProfileField ¶
func ByWorkerProfileField(field string, opts ...sql.OrderTermOption) OrderOption
ByWorkerProfileField orders the results by worker_profile field.
func ByWorkerType ¶
func ByWorkerType(opts ...sql.OrderTermOption) OrderOption
ByWorkerType orders the results by the worker_type field.
type WorkerType ¶
type WorkerType string
WorkerType defines the type for the "worker_type" enum field.
const ( WorkerTypeEmployee WorkerType = "Employee" WorkerTypeContractor WorkerType = "Contractor" )
WorkerType values.
func (WorkerType) String ¶
func (wt WorkerType) String() string