hazardousmaterialsegregation

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 hazardousmaterialsegregation type in the database.
	Label = "hazardous_material_segregation"
	// 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"
	// FieldClassA holds the string denoting the class_a field in the database.
	FieldClassA = "class_a"
	// FieldClassB holds the string denoting the class_b field in the database.
	FieldClassB = "class_b"
	// FieldSegregationType holds the string denoting the segregation_type field in the database.
	FieldSegregationType = "segregation_type"
	// 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"
	// Table holds the table name of the hazardousmaterialsegregation in the database.
	Table = "hazardous_material_segregations"
	// BusinessUnitTable is the table that holds the business_unit relation/edge.
	BusinessUnitTable = "hazardous_material_segregations"
	// 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 = "hazardous_material_segregations"
	// 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"
)
View Source
const DefaultClassA = ClassAHazardClass1And1

ClassAHazardClass1And1 is the default value of the ClassA enum.

View Source
const DefaultClassB = ClassBHazardClass1And1

ClassBHazardClass1And1 is the default value of the ClassB enum.

View Source
const DefaultSegregationType = SegregationTypeNotAllowed

SegregationTypeNotAllowed is the default value of the SegregationType 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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for hazardousmaterialsegregation fields.

Functions

func And

And groups predicates with the AND operator between them.

func BusinessUnitID

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

func BusinessUnitIDEQ

func BusinessUnitIDEQ(v uuid.UUID) predicate.HazardousMaterialSegregation

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

func BusinessUnitIDIn

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

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

func BusinessUnitIDNEQ

func BusinessUnitIDNEQ(v uuid.UUID) predicate.HazardousMaterialSegregation

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

func BusinessUnitIDNotIn

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

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

func ClassAEQ

ClassAEQ applies the EQ predicate on the "class_a" field.

func ClassAIn

ClassAIn applies the In predicate on the "class_a" field.

func ClassANEQ

ClassANEQ applies the NEQ predicate on the "class_a" field.

func ClassANotIn

ClassANotIn applies the NotIn predicate on the "class_a" field.

func ClassAValidator

func ClassAValidator(class_a ClassA) error

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

func ClassBEQ

ClassBEQ applies the EQ predicate on the "class_b" field.

func ClassBIn

ClassBIn applies the In predicate on the "class_b" field.

func ClassBNEQ

ClassBNEQ applies the NEQ predicate on the "class_b" field.

func ClassBNotIn

ClassBNotIn applies the NotIn predicate on the "class_b" field.

func ClassBValidator

func ClassBValidator(class_b ClassB) error

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

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

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

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

func HasBusinessUnit

func HasBusinessUnit() predicate.HazardousMaterialSegregation

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

func HasBusinessUnitWith

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

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

func HasOrganization

func HasOrganization() predicate.HazardousMaterialSegregation

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

func HasOrganizationWith

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func OrganizationID

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

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.HazardousMaterialSegregation

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

func OrganizationIDIn

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

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

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.HazardousMaterialSegregation

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

func OrganizationIDNotIn

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

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

func SegregationTypeEQ

SegregationTypeEQ applies the EQ predicate on the "segregation_type" field.

func SegregationTypeIn

SegregationTypeIn applies the In predicate on the "segregation_type" field.

func SegregationTypeNEQ

SegregationTypeNEQ applies the NEQ predicate on the "segregation_type" field.

func SegregationTypeNotIn

func SegregationTypeNotIn(vs ...SegregationType) predicate.HazardousMaterialSegregation

SegregationTypeNotIn applies the NotIn predicate on the "segregation_type" field.

func SegregationTypeValidator

func SegregationTypeValidator(st SegregationType) error

SegregationTypeValidator is a validator for the "segregation_type" 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

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

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

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

func VersionEQ

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

func VersionGT

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

func VersionGTE

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

func VersionIn

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

func VersionLT

VersionLT applies the LT 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

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

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

Types

type ClassA

type ClassA string

ClassA defines the type for the "class_a" enum field.

const (
	ClassAHazardClass1And1 ClassA = "HazardClass1And1"
	ClassAHazardClass1And2 ClassA = "HazardClass1And2"
	ClassAHazardClass1And3 ClassA = "HazardClass1And3"
	ClassAHazardClass1And4 ClassA = "HazardClass1And4"
	ClassAHazardClass1And5 ClassA = "HazardClass1And5"
	ClassAHazardClass1And6 ClassA = "HazardClass1And6"
	ClassAHazardClass2And1 ClassA = "HazardClass2And1"
	ClassAHazardClass2And2 ClassA = "HazardClass2And2"
	ClassAHazardClass2And3 ClassA = "HazardClass2And3"
	ClassAHazardClass3     ClassA = "HazardClass3"
	ClassAHazardClass4And1 ClassA = "HazardClass4And1"
	ClassAHazardClass4And2 ClassA = "HazardClass4And2"
	ClassAHazardClass4And3 ClassA = "HazardClass4And3"
	ClassAHazardClass5And1 ClassA = "HazardClass5And1"
	ClassAHazardClass5And2 ClassA = "HazardClass5And2"
	ClassAHazardClass6And1 ClassA = "HazardClass6And1"
	ClassAHazardClass6And2 ClassA = "HazardClass6And2"
	ClassAHazardClass7     ClassA = "HazardClass7"
	ClassAHazardClass8     ClassA = "HazardClass8"
	ClassAHazardClass9     ClassA = "HazardClass9"
)

ClassA values.

func (ClassA) String

func (class_a ClassA) String() string

type ClassB

type ClassB string

ClassB defines the type for the "class_b" enum field.

const (
	ClassBHazardClass1And1 ClassB = "HazardClass1And1"
	ClassBHazardClass1And2 ClassB = "HazardClass1And2"
	ClassBHazardClass1And3 ClassB = "HazardClass1And3"
	ClassBHazardClass1And4 ClassB = "HazardClass1And4"
	ClassBHazardClass1And5 ClassB = "HazardClass1And5"
	ClassBHazardClass1And6 ClassB = "HazardClass1And6"
	ClassBHazardClass2And1 ClassB = "HazardClass2And1"
	ClassBHazardClass2And2 ClassB = "HazardClass2And2"
	ClassBHazardClass2And3 ClassB = "HazardClass2And3"
	ClassBHazardClass3     ClassB = "HazardClass3"
	ClassBHazardClass4And1 ClassB = "HazardClass4And1"
	ClassBHazardClass4And2 ClassB = "HazardClass4And2"
	ClassBHazardClass4And3 ClassB = "HazardClass4And3"
	ClassBHazardClass5And1 ClassB = "HazardClass5And1"
	ClassBHazardClass5And2 ClassB = "HazardClass5And2"
	ClassBHazardClass6And1 ClassB = "HazardClass6And1"
	ClassBHazardClass6And2 ClassB = "HazardClass6And2"
	ClassBHazardClass7     ClassB = "HazardClass7"
	ClassBHazardClass8     ClassB = "HazardClass8"
	ClassBHazardClass9     ClassB = "HazardClass9"
)

ClassB values.

func (ClassB) String

func (class_b ClassB) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the HazardousMaterialSegregation queries.

func ByBusinessUnitField

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

ByBusinessUnitField orders the results by business_unit field.

func ByBusinessUnitID

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

ByBusinessUnitID orders the results by the business_unit_id field.

func ByClassA

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

ByClassA orders the results by the class_a field.

func ByClassB

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

ByClassB orders the results by the class_b field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the 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 BySegregationType

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

BySegregationType orders the results by the segregation_type 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.

type SegregationType

type SegregationType string

SegregationType defines the type for the "segregation_type" enum field.

const (
	SegregationTypeNotAllowed            SegregationType = "NotAllowed"
	SegregationTypeAllowedWithConditions SegregationType = "AllowedWithConditions"
)

SegregationType values.

func (SegregationType) String

func (st SegregationType) String() string

Jump to

Keyboard shortcuts

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