worker

package
v0.0.0-...-4d78421 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultStatus = StatusA

StatusA is the default value of the Status enum.

View Source
const DefaultWorkerType = WorkerTypeEmployee

WorkerTypeEmployee is the default value of the WorkerType enum.

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// 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
)

Columns holds all SQL columns for worker fields.

Functions

func AddressLine1

func AddressLine1(v string) predicate.Worker

AddressLine1 applies equality check predicate on the "address_line_1" field. It's identical to AddressLine1EQ.

func AddressLine1Contains

func AddressLine1Contains(v string) predicate.Worker

AddressLine1Contains applies the Contains predicate on the "address_line_1" field.

func AddressLine1ContainsFold

func AddressLine1ContainsFold(v string) predicate.Worker

AddressLine1ContainsFold applies the ContainsFold predicate on the "address_line_1" field.

func AddressLine1EQ

func AddressLine1EQ(v string) predicate.Worker

AddressLine1EQ applies the EQ predicate on the "address_line_1" field.

func AddressLine1EqualFold

func AddressLine1EqualFold(v string) predicate.Worker

AddressLine1EqualFold applies the EqualFold predicate on the "address_line_1" field.

func AddressLine1GT

func AddressLine1GT(v string) predicate.Worker

AddressLine1GT applies the GT predicate on the "address_line_1" field.

func AddressLine1GTE

func AddressLine1GTE(v string) predicate.Worker

AddressLine1GTE applies the GTE predicate on the "address_line_1" field.

func AddressLine1HasPrefix

func AddressLine1HasPrefix(v string) predicate.Worker

AddressLine1HasPrefix applies the HasPrefix predicate on the "address_line_1" field.

func AddressLine1HasSuffix

func AddressLine1HasSuffix(v string) predicate.Worker

AddressLine1HasSuffix applies the HasSuffix predicate on the "address_line_1" field.

func AddressLine1In

func AddressLine1In(vs ...string) predicate.Worker

AddressLine1In applies the In predicate on the "address_line_1" field.

func AddressLine1IsNil

func AddressLine1IsNil() predicate.Worker

AddressLine1IsNil applies the IsNil predicate on the "address_line_1" field.

func AddressLine1LT

func AddressLine1LT(v string) predicate.Worker

AddressLine1LT applies the LT predicate on the "address_line_1" field.

func AddressLine1LTE

func AddressLine1LTE(v string) predicate.Worker

AddressLine1LTE applies the LTE predicate on the "address_line_1" field.

func AddressLine1NEQ

func AddressLine1NEQ(v string) predicate.Worker

AddressLine1NEQ applies the NEQ predicate on the "address_line_1" field.

func AddressLine1NotIn

func AddressLine1NotIn(vs ...string) predicate.Worker

AddressLine1NotIn applies the NotIn predicate on the "address_line_1" field.

func AddressLine1NotNil

func AddressLine1NotNil() predicate.Worker

AddressLine1NotNil applies the NotNil predicate on the "address_line_1" field.

func AddressLine2

func AddressLine2(v string) predicate.Worker

AddressLine2 applies equality check predicate on the "address_line_2" field. It's identical to AddressLine2EQ.

func AddressLine2Contains

func AddressLine2Contains(v string) predicate.Worker

AddressLine2Contains applies the Contains predicate on the "address_line_2" field.

func AddressLine2ContainsFold

func AddressLine2ContainsFold(v string) predicate.Worker

AddressLine2ContainsFold applies the ContainsFold predicate on the "address_line_2" field.

func AddressLine2EQ

func AddressLine2EQ(v string) predicate.Worker

AddressLine2EQ applies the EQ predicate on the "address_line_2" field.

func AddressLine2EqualFold

func AddressLine2EqualFold(v string) predicate.Worker

AddressLine2EqualFold applies the EqualFold predicate on the "address_line_2" field.

func AddressLine2GT

func AddressLine2GT(v string) predicate.Worker

AddressLine2GT applies the GT predicate on the "address_line_2" field.

func AddressLine2GTE

func AddressLine2GTE(v string) predicate.Worker

AddressLine2GTE applies the GTE predicate on the "address_line_2" field.

func AddressLine2HasPrefix

func AddressLine2HasPrefix(v string) predicate.Worker

AddressLine2HasPrefix applies the HasPrefix predicate on the "address_line_2" field.

func AddressLine2HasSuffix

func AddressLine2HasSuffix(v string) predicate.Worker

AddressLine2HasSuffix applies the HasSuffix predicate on the "address_line_2" field.

func AddressLine2In

func AddressLine2In(vs ...string) predicate.Worker

AddressLine2In applies the In predicate on the "address_line_2" field.

func AddressLine2IsNil

func AddressLine2IsNil() predicate.Worker

AddressLine2IsNil applies the IsNil predicate on the "address_line_2" field.

func AddressLine2LT

func AddressLine2LT(v string) predicate.Worker

AddressLine2LT applies the LT predicate on the "address_line_2" field.

func AddressLine2LTE

func AddressLine2LTE(v string) predicate.Worker

AddressLine2LTE applies the LTE predicate on the "address_line_2" field.

func AddressLine2NEQ

func AddressLine2NEQ(v string) predicate.Worker

AddressLine2NEQ applies the NEQ predicate on the "address_line_2" field.

func AddressLine2NotIn

func AddressLine2NotIn(vs ...string) predicate.Worker

AddressLine2NotIn applies the NotIn predicate on the "address_line_2" field.

func AddressLine2NotNil

func AddressLine2NotNil() predicate.Worker

AddressLine2NotNil applies the NotNil predicate on the "address_line_2" field.

func And

func And(predicates ...predicate.Worker) predicate.Worker

And groups predicates with the AND operator between them.

func BusinessUnitID

func BusinessUnitID(v uuid.UUID) predicate.Worker

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

func BusinessUnitIDEQ

func BusinessUnitIDEQ(v uuid.UUID) predicate.Worker

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

func BusinessUnitIDIn

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

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

func BusinessUnitIDNEQ

func BusinessUnitIDNEQ(v uuid.UUID) predicate.Worker

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

func BusinessUnitIDNotIn

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

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

func City

func City(v string) predicate.Worker

City applies equality check predicate on the "city" field. It's identical to CityEQ.

func CityContains

func CityContains(v string) predicate.Worker

CityContains applies the Contains predicate on the "city" field.

func CityContainsFold

func CityContainsFold(v string) predicate.Worker

CityContainsFold applies the ContainsFold predicate on the "city" field.

func CityEQ

func CityEQ(v string) predicate.Worker

CityEQ applies the EQ predicate on the "city" field.

func CityEqualFold

func CityEqualFold(v string) predicate.Worker

CityEqualFold applies the EqualFold predicate on the "city" field.

func CityGT

func CityGT(v string) predicate.Worker

CityGT applies the GT predicate on the "city" field.

func CityGTE

func CityGTE(v string) predicate.Worker

CityGTE applies the GTE predicate on the "city" field.

func CityHasPrefix

func CityHasPrefix(v string) predicate.Worker

CityHasPrefix applies the HasPrefix predicate on the "city" field.

func CityHasSuffix

func CityHasSuffix(v string) predicate.Worker

CityHasSuffix applies the HasSuffix predicate on the "city" field.

func CityIn

func CityIn(vs ...string) predicate.Worker

CityIn applies the In predicate on the "city" field.

func CityIsNil

func CityIsNil() predicate.Worker

CityIsNil applies the IsNil predicate on the "city" field.

func CityLT

func CityLT(v string) predicate.Worker

CityLT applies the LT predicate on the "city" field.

func CityLTE

func CityLTE(v string) predicate.Worker

CityLTE applies the LTE predicate on the "city" field.

func CityNEQ

func CityNEQ(v string) predicate.Worker

CityNEQ applies the NEQ predicate on the "city" field.

func CityNotIn

func CityNotIn(vs ...string) predicate.Worker

CityNotIn applies the NotIn predicate on the "city" field.

func CityNotNil

func CityNotNil() predicate.Worker

CityNotNil applies the NotNil predicate on the "city" field.

func Code

func Code(v string) predicate.Worker

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

func CodeContains

func CodeContains(v string) predicate.Worker

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

func CodeContainsFold

func CodeContainsFold(v string) predicate.Worker

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

func CodeEQ

func CodeEQ(v string) predicate.Worker

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

func CodeEqualFold

func CodeEqualFold(v string) predicate.Worker

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

func CodeGT

func CodeGT(v string) predicate.Worker

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

func CodeGTE

func CodeGTE(v string) predicate.Worker

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

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.Worker

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

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.Worker

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

func CodeIn

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

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

func CodeLT

func CodeLT(v string) predicate.Worker

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

func CodeLTE

func CodeLTE(v string) predicate.Worker

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

func CodeNEQ

func CodeNEQ(v string) predicate.Worker

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

func CodeNotIn

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

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Worker

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Worker

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Worker

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Worker

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Worker

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Worker

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Worker

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

func CreatedAtNotIn

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

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

func FirstName

func FirstName(v string) predicate.Worker

FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.

func FirstNameContains

func FirstNameContains(v string) predicate.Worker

FirstNameContains applies the Contains predicate on the "first_name" field.

func FirstNameContainsFold

func FirstNameContainsFold(v string) predicate.Worker

FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.

func FirstNameEQ

func FirstNameEQ(v string) predicate.Worker

FirstNameEQ applies the EQ predicate on the "first_name" field.

func FirstNameEqualFold

func FirstNameEqualFold(v string) predicate.Worker

FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.

func FirstNameGT

func FirstNameGT(v string) predicate.Worker

FirstNameGT applies the GT predicate on the "first_name" field.

func FirstNameGTE

func FirstNameGTE(v string) predicate.Worker

FirstNameGTE applies the GTE predicate on the "first_name" field.

func FirstNameHasPrefix

func FirstNameHasPrefix(v string) predicate.Worker

FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.

func FirstNameHasSuffix

func FirstNameHasSuffix(v string) predicate.Worker

FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.

func FirstNameIn

func FirstNameIn(vs ...string) predicate.Worker

FirstNameIn applies the In predicate on the "first_name" field.

func FirstNameLT

func FirstNameLT(v string) predicate.Worker

FirstNameLT applies the LT predicate on the "first_name" field.

func FirstNameLTE

func FirstNameLTE(v string) predicate.Worker

FirstNameLTE applies the LTE predicate on the "first_name" field.

func FirstNameNEQ

func FirstNameNEQ(v string) predicate.Worker

FirstNameNEQ applies the NEQ predicate on the "first_name" field.

func FirstNameNotIn

func FirstNameNotIn(vs ...string) predicate.Worker

FirstNameNotIn applies the NotIn predicate on the "first_name" field.

func FleetCodeID

func FleetCodeID(v uuid.UUID) predicate.Worker

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

func FleetCodeIDEQ

func FleetCodeIDEQ(v uuid.UUID) predicate.Worker

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

func FleetCodeIDIn

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

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

func FleetCodeIDIsNil

func FleetCodeIDIsNil() predicate.Worker

FleetCodeIDIsNil applies the IsNil predicate on the "fleet_code_id" field.

func FleetCodeIDNEQ

func FleetCodeIDNEQ(v uuid.UUID) predicate.Worker

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

func FleetCodeIDNotIn

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

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

func FleetCodeIDNotNil

func FleetCodeIDNotNil() predicate.Worker

FleetCodeIDNotNil applies the NotNil predicate on the "fleet_code_id" field.

func HasBusinessUnit

func HasBusinessUnit() predicate.Worker

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

func HasFleetCode() predicate.Worker

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

func HasFleetCodeWith

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

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

func HasManager

func HasManager() predicate.Worker

HasManager applies the HasEdge predicate on the "manager" edge.

func HasManagerWith

func HasManagerWith(preds ...predicate.User) predicate.Worker

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

func HasOrganization

func HasOrganization() predicate.Worker

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

func HasPrimaryTractor() predicate.Worker

HasPrimaryTractor applies the HasEdge predicate on the "primary_tractor" edge.

func HasPrimaryTractorWith

func HasPrimaryTractorWith(preds ...predicate.Tractor) predicate.Worker

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

func HasSecondaryTractor

func HasSecondaryTractor() predicate.Worker

HasSecondaryTractor applies the HasEdge predicate on the "secondary_tractor" edge.

func HasSecondaryTractorWith

func HasSecondaryTractorWith(preds ...predicate.Tractor) predicate.Worker

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

func HasState

func HasState() predicate.Worker

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

func HasStateWith

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

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

func HasWorkerComments

func HasWorkerComments() predicate.Worker

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

func HasWorkerContacts() predicate.Worker

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

func HasWorkerProfile() predicate.Worker

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 ID

func ID(id uuid.UUID) predicate.Worker

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Worker

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Worker

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Worker

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Worker

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Worker

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Worker

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastName

func LastName(v string) predicate.Worker

LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.

func LastNameContains

func LastNameContains(v string) predicate.Worker

LastNameContains applies the Contains predicate on the "last_name" field.

func LastNameContainsFold

func LastNameContainsFold(v string) predicate.Worker

LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.

func LastNameEQ

func LastNameEQ(v string) predicate.Worker

LastNameEQ applies the EQ predicate on the "last_name" field.

func LastNameEqualFold

func LastNameEqualFold(v string) predicate.Worker

LastNameEqualFold applies the EqualFold predicate on the "last_name" field.

func LastNameGT

func LastNameGT(v string) predicate.Worker

LastNameGT applies the GT predicate on the "last_name" field.

func LastNameGTE

func LastNameGTE(v string) predicate.Worker

LastNameGTE applies the GTE predicate on the "last_name" field.

func LastNameHasPrefix

func LastNameHasPrefix(v string) predicate.Worker

LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.

func LastNameHasSuffix

func LastNameHasSuffix(v string) predicate.Worker

LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.

func LastNameIn

func LastNameIn(vs ...string) predicate.Worker

LastNameIn applies the In predicate on the "last_name" field.

func LastNameLT

func LastNameLT(v string) predicate.Worker

LastNameLT applies the LT predicate on the "last_name" field.

func LastNameLTE

func LastNameLTE(v string) predicate.Worker

LastNameLTE applies the LTE predicate on the "last_name" field.

func LastNameNEQ

func LastNameNEQ(v string) predicate.Worker

LastNameNEQ applies the NEQ predicate on the "last_name" field.

func LastNameNotIn

func LastNameNotIn(vs ...string) predicate.Worker

LastNameNotIn applies the NotIn predicate on the "last_name" field.

func ManagerID

func ManagerID(v uuid.UUID) predicate.Worker

ManagerID applies equality check predicate on the "manager_id" field. It's identical to ManagerIDEQ.

func ManagerIDEQ

func ManagerIDEQ(v uuid.UUID) predicate.Worker

ManagerIDEQ applies the EQ predicate on the "manager_id" field.

func ManagerIDIn

func ManagerIDIn(vs ...uuid.UUID) predicate.Worker

ManagerIDIn applies the In predicate on the "manager_id" field.

func ManagerIDIsNil

func ManagerIDIsNil() predicate.Worker

ManagerIDIsNil applies the IsNil predicate on the "manager_id" field.

func ManagerIDNEQ

func ManagerIDNEQ(v uuid.UUID) predicate.Worker

ManagerIDNEQ applies the NEQ predicate on the "manager_id" field.

func ManagerIDNotIn

func ManagerIDNotIn(vs ...uuid.UUID) predicate.Worker

ManagerIDNotIn applies the NotIn predicate on the "manager_id" field.

func ManagerIDNotNil

func ManagerIDNotNil() predicate.Worker

ManagerIDNotNil applies the NotNil predicate on the "manager_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Worker) predicate.Worker

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.Worker

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

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.Worker

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

func OrganizationIDIn

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

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

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.Worker

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

func OrganizationIDNotIn

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

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

func PostalCode

func PostalCode(v string) predicate.Worker

PostalCode applies equality check predicate on the "postal_code" field. It's identical to PostalCodeEQ.

func PostalCodeContains

func PostalCodeContains(v string) predicate.Worker

PostalCodeContains applies the Contains predicate on the "postal_code" field.

func PostalCodeContainsFold

func PostalCodeContainsFold(v string) predicate.Worker

PostalCodeContainsFold applies the ContainsFold predicate on the "postal_code" field.

func PostalCodeEQ

func PostalCodeEQ(v string) predicate.Worker

PostalCodeEQ applies the EQ predicate on the "postal_code" field.

func PostalCodeEqualFold

func PostalCodeEqualFold(v string) predicate.Worker

PostalCodeEqualFold applies the EqualFold predicate on the "postal_code" field.

func PostalCodeGT

func PostalCodeGT(v string) predicate.Worker

PostalCodeGT applies the GT predicate on the "postal_code" field.

func PostalCodeGTE

func PostalCodeGTE(v string) predicate.Worker

PostalCodeGTE applies the GTE predicate on the "postal_code" field.

func PostalCodeHasPrefix

func PostalCodeHasPrefix(v string) predicate.Worker

PostalCodeHasPrefix applies the HasPrefix predicate on the "postal_code" field.

func PostalCodeHasSuffix

func PostalCodeHasSuffix(v string) predicate.Worker

PostalCodeHasSuffix applies the HasSuffix predicate on the "postal_code" field.

func PostalCodeIn

func PostalCodeIn(vs ...string) predicate.Worker

PostalCodeIn applies the In predicate on the "postal_code" field.

func PostalCodeIsNil

func PostalCodeIsNil() predicate.Worker

PostalCodeIsNil applies the IsNil predicate on the "postal_code" field.

func PostalCodeLT

func PostalCodeLT(v string) predicate.Worker

PostalCodeLT applies the LT predicate on the "postal_code" field.

func PostalCodeLTE

func PostalCodeLTE(v string) predicate.Worker

PostalCodeLTE applies the LTE predicate on the "postal_code" field.

func PostalCodeNEQ

func PostalCodeNEQ(v string) predicate.Worker

PostalCodeNEQ applies the NEQ predicate on the "postal_code" field.

func PostalCodeNotIn

func PostalCodeNotIn(vs ...string) predicate.Worker

PostalCodeNotIn applies the NotIn predicate on the "postal_code" field.

func PostalCodeNotNil

func PostalCodeNotNil() predicate.Worker

PostalCodeNotNil applies the NotNil predicate on the "postal_code" field.

func ProfilePictureURL

func ProfilePictureURL(v string) predicate.Worker

ProfilePictureURL applies equality check predicate on the "profile_picture_url" field. It's identical to ProfilePictureURLEQ.

func ProfilePictureURLContains

func ProfilePictureURLContains(v string) predicate.Worker

ProfilePictureURLContains applies the Contains predicate on the "profile_picture_url" field.

func ProfilePictureURLContainsFold

func ProfilePictureURLContainsFold(v string) predicate.Worker

ProfilePictureURLContainsFold applies the ContainsFold predicate on the "profile_picture_url" field.

func ProfilePictureURLEQ

func ProfilePictureURLEQ(v string) predicate.Worker

ProfilePictureURLEQ applies the EQ predicate on the "profile_picture_url" field.

func ProfilePictureURLEqualFold

func ProfilePictureURLEqualFold(v string) predicate.Worker

ProfilePictureURLEqualFold applies the EqualFold predicate on the "profile_picture_url" field.

func ProfilePictureURLGT

func ProfilePictureURLGT(v string) predicate.Worker

ProfilePictureURLGT applies the GT predicate on the "profile_picture_url" field.

func ProfilePictureURLGTE

func ProfilePictureURLGTE(v string) predicate.Worker

ProfilePictureURLGTE applies the GTE predicate on the "profile_picture_url" field.

func ProfilePictureURLHasPrefix

func ProfilePictureURLHasPrefix(v string) predicate.Worker

ProfilePictureURLHasPrefix applies the HasPrefix predicate on the "profile_picture_url" field.

func ProfilePictureURLHasSuffix

func ProfilePictureURLHasSuffix(v string) predicate.Worker

ProfilePictureURLHasSuffix applies the HasSuffix predicate on the "profile_picture_url" field.

func ProfilePictureURLIn

func ProfilePictureURLIn(vs ...string) predicate.Worker

ProfilePictureURLIn applies the In predicate on the "profile_picture_url" field.

func ProfilePictureURLIsNil

func ProfilePictureURLIsNil() predicate.Worker

ProfilePictureURLIsNil applies the IsNil predicate on the "profile_picture_url" field.

func ProfilePictureURLLT

func ProfilePictureURLLT(v string) predicate.Worker

ProfilePictureURLLT applies the LT predicate on the "profile_picture_url" field.

func ProfilePictureURLLTE

func ProfilePictureURLLTE(v string) predicate.Worker

ProfilePictureURLLTE applies the LTE predicate on the "profile_picture_url" field.

func ProfilePictureURLNEQ

func ProfilePictureURLNEQ(v string) predicate.Worker

ProfilePictureURLNEQ applies the NEQ predicate on the "profile_picture_url" field.

func ProfilePictureURLNotIn

func ProfilePictureURLNotIn(vs ...string) predicate.Worker

ProfilePictureURLNotIn applies the NotIn predicate on the "profile_picture_url" field.

func ProfilePictureURLNotNil

func ProfilePictureURLNotNil() predicate.Worker

ProfilePictureURLNotNil applies the NotNil predicate on the "profile_picture_url" field.

func StateID

func StateID(v uuid.UUID) predicate.Worker

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

func StateIDEQ

func StateIDEQ(v uuid.UUID) predicate.Worker

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

func StateIDIn

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

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

func StateIDIsNil

func StateIDIsNil() predicate.Worker

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

func StateIDNEQ

func StateIDNEQ(v uuid.UUID) predicate.Worker

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

func StateIDNotIn

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

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

func StateIDNotNil

func StateIDNotNil() predicate.Worker

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

func StatusEQ

func StatusEQ(v Status) predicate.Worker

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

func StatusIn

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

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

func StatusNEQ

func StatusNEQ(v Status) predicate.Worker

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

func StatusNotIn

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

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

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Worker

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Worker

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Worker

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Worker

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Worker

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Worker

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

func UpdatedAtNotIn

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

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

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

func VersionEQ

func VersionEQ(v int) predicate.Worker

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

func VersionGT

func VersionGT(v int) predicate.Worker

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

func VersionGTE

func VersionGTE(v int) predicate.Worker

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

func VersionIn

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

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

func VersionLT

func VersionLT(v int) predicate.Worker

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

func VersionLTE

func VersionLTE(v int) predicate.Worker

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

func VersionNEQ

func VersionNEQ(v int) predicate.Worker

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

func VersionNotIn

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

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

type OrderOption func(*sql.Selector)

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 Status

type Status string

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

const (
	StatusA Status = "A"
	StatusI Status = "I"
)

Status values.

func (Status) String

func (s Status) String() string

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

Jump to

Keyboard shortcuts

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