Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Person) predicate.Person
- func AvatarURL(v string) predicate.Person
- func AvatarURLContains(v string) predicate.Person
- func AvatarURLContainsFold(v string) predicate.Person
- func AvatarURLEQ(v string) predicate.Person
- func AvatarURLEqualFold(v string) predicate.Person
- func AvatarURLGT(v string) predicate.Person
- func AvatarURLGTE(v string) predicate.Person
- func AvatarURLHasPrefix(v string) predicate.Person
- func AvatarURLHasSuffix(v string) predicate.Person
- func AvatarURLIn(vs ...string) predicate.Person
- func AvatarURLIsNil() predicate.Person
- func AvatarURLLT(v string) predicate.Person
- func AvatarURLLTE(v string) predicate.Person
- func AvatarURLNEQ(v string) predicate.Person
- func AvatarURLNotIn(vs ...string) predicate.Person
- func AvatarURLNotNil() predicate.Person
- func CreatedAt(v time.Time) predicate.Person
- func CreatedAtEQ(v time.Time) predicate.Person
- func CreatedAtGT(v time.Time) predicate.Person
- func CreatedAtGTE(v time.Time) predicate.Person
- func CreatedAtIn(vs ...time.Time) predicate.Person
- func CreatedAtLT(v time.Time) predicate.Person
- func CreatedAtLTE(v time.Time) predicate.Person
- func CreatedAtNEQ(v time.Time) predicate.Person
- func CreatedAtNotIn(vs ...time.Time) predicate.Person
- func Email(v string) predicate.Person
- func EmailContains(v string) predicate.Person
- func EmailContainsFold(v string) predicate.Person
- func EmailEQ(v string) predicate.Person
- func EmailEqualFold(v string) predicate.Person
- func EmailGT(v string) predicate.Person
- func EmailGTE(v string) predicate.Person
- func EmailHasPrefix(v string) predicate.Person
- func EmailHasSuffix(v string) predicate.Person
- func EmailIn(vs ...string) predicate.Person
- func EmailLT(v string) predicate.Person
- func EmailLTE(v string) predicate.Person
- func EmailNEQ(v string) predicate.Person
- func EmailNotIn(vs ...string) predicate.Person
- func HasAddresses() predicate.Person
- func HasAddressesWith(preds ...predicate.Address) predicate.Person
- func HasPersonAddresses() predicate.Person
- func HasPersonAddressesWith(preds ...predicate.PersonAddress) predicate.Person
- func HasWorkUnit() predicate.Person
- func HasWorkUnitWith(preds ...predicate.WorkUnitInfo) predicate.Person
- func ID(id uuid.UUID) predicate.Person
- func IDEQ(id uuid.UUID) predicate.Person
- func IDGT(id uuid.UUID) predicate.Person
- func IDGTE(id uuid.UUID) predicate.Person
- func IDIn(ids ...uuid.UUID) predicate.Person
- func IDLT(id uuid.UUID) predicate.Person
- func IDLTE(id uuid.UUID) predicate.Person
- func IDNEQ(id uuid.UUID) predicate.Person
- func IDNotIn(ids ...uuid.UUID) predicate.Person
- func IsEmailVerified(v bool) predicate.Person
- func IsEmailVerifiedEQ(v bool) predicate.Person
- func IsEmailVerifiedNEQ(v bool) predicate.Person
- func IsPhoneVerified(v bool) predicate.Person
- func IsPhoneVerifiedEQ(v bool) predicate.Person
- func IsPhoneVerifiedNEQ(v bool) predicate.Person
- func Name(v string) predicate.Person
- func NameContains(v string) predicate.Person
- func NameContainsFold(v string) predicate.Person
- func NameEQ(v string) predicate.Person
- func NameEqualFold(v string) predicate.Person
- func NameGT(v string) predicate.Person
- func NameGTE(v string) predicate.Person
- func NameHasPrefix(v string) predicate.Person
- func NameHasSuffix(v string) predicate.Person
- func NameIn(vs ...string) predicate.Person
- func NameLT(v string) predicate.Person
- func NameLTE(v string) predicate.Person
- func NameNEQ(v string) predicate.Person
- func NameNotIn(vs ...string) predicate.Person
- func Not(p predicate.Person) predicate.Person
- func Or(predicates ...predicate.Person) predicate.Person
- func PasswordHash(v []byte) predicate.Person
- func PasswordHashEQ(v []byte) predicate.Person
- func PasswordHashGT(v []byte) predicate.Person
- func PasswordHashGTE(v []byte) predicate.Person
- func PasswordHashIn(vs ...[]byte) predicate.Person
- func PasswordHashIsNil() predicate.Person
- func PasswordHashLT(v []byte) predicate.Person
- func PasswordHashLTE(v []byte) predicate.Person
- func PasswordHashNEQ(v []byte) predicate.Person
- func PasswordHashNotIn(vs ...[]byte) predicate.Person
- func PasswordHashNotNil() predicate.Person
- func Phone(v string) predicate.Person
- func PhoneContains(v string) predicate.Person
- func PhoneContainsFold(v string) predicate.Person
- func PhoneEQ(v string) predicate.Person
- func PhoneEqualFold(v string) predicate.Person
- func PhoneGT(v string) predicate.Person
- func PhoneGTE(v string) predicate.Person
- func PhoneHasPrefix(v string) predicate.Person
- func PhoneHasSuffix(v string) predicate.Person
- func PhoneIn(vs ...string) predicate.Person
- func PhoneIsNil() predicate.Person
- func PhoneLT(v string) predicate.Person
- func PhoneLTE(v string) predicate.Person
- func PhoneNEQ(v string) predicate.Person
- func PhoneNotIn(vs ...string) predicate.Person
- func PhoneNotNil() predicate.Person
- func RoleEQ(v Role) predicate.Person
- func RoleIn(vs ...Role) predicate.Person
- func RoleNEQ(v Role) predicate.Person
- func RoleNotIn(vs ...Role) predicate.Person
- func RoleValidator(r Role) error
- func UpdatedAt(v time.Time) predicate.Person
- func UpdatedAtEQ(v time.Time) predicate.Person
- func UpdatedAtGT(v time.Time) predicate.Person
- func UpdatedAtGTE(v time.Time) predicate.Person
- func UpdatedAtIn(vs ...time.Time) predicate.Person
- func UpdatedAtLT(v time.Time) predicate.Person
- func UpdatedAtLTE(v time.Time) predicate.Person
- func UpdatedAtNEQ(v time.Time) predicate.Person
- func UpdatedAtNotIn(vs ...time.Time) predicate.Person
- func ValidColumn(column string) bool
- func WorkUnitID(v uuid.UUID) predicate.Person
- func WorkUnitIDEQ(v uuid.UUID) predicate.Person
- func WorkUnitIDIn(vs ...uuid.UUID) predicate.Person
- func WorkUnitIDIsNil() predicate.Person
- func WorkUnitIDNEQ(v uuid.UUID) predicate.Person
- func WorkUnitIDNotIn(vs ...uuid.UUID) predicate.Person
- func WorkUnitIDNotNil() predicate.Person
- type OrderOption
- func ByAddresses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAddressesCount(opts ...sql.OrderTermOption) OrderOption
- func ByAvatarURL(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsEmailVerified(opts ...sql.OrderTermOption) OrderOption
- func ByIsPhoneVerified(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPersonAddresses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPersonAddressesCount(opts ...sql.OrderTermOption) OrderOption
- func ByPhone(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByWorkUnitField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkUnitID(opts ...sql.OrderTermOption) OrderOption
- type Role
Constants ¶
const ( // Label holds the string label denoting the person type in the database. Label = "person" // FieldID holds the string denoting the id field in the database. FieldID = "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" // FieldAvatarURL holds the string denoting the avatar_url field in the database. FieldAvatarURL = "avatar_url" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldPhone holds the string denoting the phone field in the database. FieldPhone = "phone" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldPasswordHash holds the string denoting the password_hash field in the database. FieldPasswordHash = "password_hash" // FieldIsEmailVerified holds the string denoting the is_email_verified field in the database. FieldIsEmailVerified = "is_email_verified" // FieldIsPhoneVerified holds the string denoting the is_phone_verified field in the database. FieldIsPhoneVerified = "is_phone_verified" // FieldWorkUnitID holds the string denoting the work_unit_id field in the database. FieldWorkUnitID = "work_unit_id" // EdgeWorkUnit holds the string denoting the work_unit edge name in mutations. EdgeWorkUnit = "work_unit" // EdgeAddresses holds the string denoting the addresses edge name in mutations. EdgeAddresses = "addresses" // EdgePersonAddresses holds the string denoting the person_addresses edge name in mutations. EdgePersonAddresses = "person_addresses" // Table holds the table name of the person in the database. Table = "persons" // WorkUnitTable is the table that holds the work_unit relation/edge. WorkUnitTable = "persons" // WorkUnitInverseTable is the table name for the WorkUnitInfo entity. // It exists in this package in order to avoid circular dependency with the "workunitinfo" package. WorkUnitInverseTable = "work_unit_info" // WorkUnitColumn is the table column denoting the work_unit relation/edge. WorkUnitColumn = "work_unit_id" // AddressesTable is the table that holds the addresses relation/edge. The primary key declared below. AddressesTable = "person_addresses" // AddressesInverseTable is the table name for the Address entity. // It exists in this package in order to avoid circular dependency with the "address" package. AddressesInverseTable = "addresses" // PersonAddressesTable is the table that holds the person_addresses relation/edge. PersonAddressesTable = "person_addresses" // PersonAddressesInverseTable is the table name for the PersonAddress entity. // It exists in this package in order to avoid circular dependency with the "personaddress" package. PersonAddressesInverseTable = "person_addresses" // PersonAddressesColumn is the table column denoting the person_addresses relation/edge. PersonAddressesColumn = "person_id" )
const DefaultRole = RoleCustomer
RoleCustomer is the default value of the Role 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 // AvatarURLValidator is a validator for the "avatar_url" field. It is called by the builders before save. AvatarURLValidator func(string) error // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // PhoneValidator is a validator for the "phone" field. It is called by the builders before save. PhoneValidator func(string) error // PasswordHashValidator is a validator for the "password_hash" field. It is called by the builders before save. PasswordHashValidator func([]byte) error // DefaultIsEmailVerified holds the default value on creation for the "is_email_verified" field. DefaultIsEmailVerified bool // DefaultIsPhoneVerified holds the default value on creation for the "is_phone_verified" field. DefaultIsPhoneVerified bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var ( // AddressesPrimaryKey and AddressesColumn2 are the table columns denoting the // primary key for the addresses relation (M2M). AddressesPrimaryKey = []string{"person_id", "address_id"} )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldAvatarURL, FieldEmail, FieldName, FieldPhone, FieldRole, FieldPasswordHash, FieldIsEmailVerified, FieldIsPhoneVerified, FieldWorkUnitID, }
Columns holds all SQL columns for person fields.
Functions ¶
func AvatarURL ¶
AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.
func AvatarURLContains ¶
AvatarURLContains applies the Contains predicate on the "avatar_url" field.
func AvatarURLContainsFold ¶
AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.
func AvatarURLEQ ¶
AvatarURLEQ applies the EQ predicate on the "avatar_url" field.
func AvatarURLEqualFold ¶
AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.
func AvatarURLGT ¶
AvatarURLGT applies the GT predicate on the "avatar_url" field.
func AvatarURLGTE ¶
AvatarURLGTE applies the GTE predicate on the "avatar_url" field.
func AvatarURLHasPrefix ¶
AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.
func AvatarURLHasSuffix ¶
AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.
func AvatarURLIn ¶
AvatarURLIn applies the In predicate on the "avatar_url" field.
func AvatarURLIsNil ¶
AvatarURLIsNil applies the IsNil predicate on the "avatar_url" field.
func AvatarURLLT ¶
AvatarURLLT applies the LT predicate on the "avatar_url" field.
func AvatarURLLTE ¶
AvatarURLLTE applies the LTE predicate on the "avatar_url" field.
func AvatarURLNEQ ¶
AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.
func AvatarURLNotIn ¶
AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.
func AvatarURLNotNil ¶
AvatarURLNotNil applies the NotNil predicate on the "avatar_url" 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 Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func HasAddresses ¶
HasAddresses applies the HasEdge predicate on the "addresses" edge.
func HasAddressesWith ¶
HasAddressesWith applies the HasEdge predicate on the "addresses" edge with a given conditions (other predicates).
func HasPersonAddresses ¶
HasPersonAddresses applies the HasEdge predicate on the "person_addresses" edge.
func HasPersonAddressesWith ¶
func HasPersonAddressesWith(preds ...predicate.PersonAddress) predicate.Person
HasPersonAddressesWith applies the HasEdge predicate on the "person_addresses" edge with a given conditions (other predicates).
func HasWorkUnit ¶
HasWorkUnit applies the HasEdge predicate on the "work_unit" edge.
func HasWorkUnitWith ¶
func HasWorkUnitWith(preds ...predicate.WorkUnitInfo) predicate.Person
HasWorkUnitWith applies the HasEdge predicate on the "work_unit" edge with a given conditions (other predicates).
func IsEmailVerified ¶
IsEmailVerified applies equality check predicate on the "is_email_verified" field. It's identical to IsEmailVerifiedEQ.
func IsEmailVerifiedEQ ¶
IsEmailVerifiedEQ applies the EQ predicate on the "is_email_verified" field.
func IsEmailVerifiedNEQ ¶
IsEmailVerifiedNEQ applies the NEQ predicate on the "is_email_verified" field.
func IsPhoneVerified ¶
IsPhoneVerified applies equality check predicate on the "is_phone_verified" field. It's identical to IsPhoneVerifiedEQ.
func IsPhoneVerifiedEQ ¶
IsPhoneVerifiedEQ applies the EQ predicate on the "is_phone_verified" field.
func IsPhoneVerifiedNEQ ¶
IsPhoneVerifiedNEQ applies the NEQ predicate on the "is_phone_verified" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func PasswordHash ¶
PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.
func PasswordHashEQ ¶
PasswordHashEQ applies the EQ predicate on the "password_hash" field.
func PasswordHashGT ¶
PasswordHashGT applies the GT predicate on the "password_hash" field.
func PasswordHashGTE ¶
PasswordHashGTE applies the GTE predicate on the "password_hash" field.
func PasswordHashIn ¶
PasswordHashIn applies the In predicate on the "password_hash" field.
func PasswordHashIsNil ¶
PasswordHashIsNil applies the IsNil predicate on the "password_hash" field.
func PasswordHashLT ¶
PasswordHashLT applies the LT predicate on the "password_hash" field.
func PasswordHashLTE ¶
PasswordHashLTE applies the LTE predicate on the "password_hash" field.
func PasswordHashNEQ ¶
PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.
func PasswordHashNotIn ¶
PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.
func PasswordHashNotNil ¶
PasswordHashNotNil applies the NotNil predicate on the "password_hash" field.
func Phone ¶
Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func PhoneContains ¶
PhoneContains applies the Contains predicate on the "phone" field.
func PhoneContainsFold ¶
PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
func PhoneEqualFold ¶
PhoneEqualFold applies the EqualFold predicate on the "phone" field.
func PhoneHasPrefix ¶
PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
func PhoneHasSuffix ¶
PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
func PhoneIsNil ¶
PhoneIsNil applies the IsNil predicate on the "phone" field.
func PhoneNotIn ¶
PhoneNotIn applies the NotIn predicate on the "phone" field.
func PhoneNotNil ¶
PhoneNotNil applies the NotNil predicate on the "phone" field.
func RoleValidator ¶
RoleValidator is a validator for the "role" 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 WorkUnitID ¶
WorkUnitID applies equality check predicate on the "work_unit_id" field. It's identical to WorkUnitIDEQ.
func WorkUnitIDEQ ¶
WorkUnitIDEQ applies the EQ predicate on the "work_unit_id" field.
func WorkUnitIDIn ¶
WorkUnitIDIn applies the In predicate on the "work_unit_id" field.
func WorkUnitIDIsNil ¶
WorkUnitIDIsNil applies the IsNil predicate on the "work_unit_id" field.
func WorkUnitIDNEQ ¶
WorkUnitIDNEQ applies the NEQ predicate on the "work_unit_id" field.
func WorkUnitIDNotIn ¶
WorkUnitIDNotIn applies the NotIn predicate on the "work_unit_id" field.
func WorkUnitIDNotNil ¶
WorkUnitIDNotNil applies the NotNil predicate on the "work_unit_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Person queries.
func ByAddresses ¶
func ByAddresses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAddresses orders the results by addresses terms.
func ByAddressesCount ¶
func ByAddressesCount(opts ...sql.OrderTermOption) OrderOption
ByAddressesCount orders the results by addresses count.
func ByAvatarURL ¶
func ByAvatarURL(opts ...sql.OrderTermOption) OrderOption
ByAvatarURL orders the results by the avatar_url field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsEmailVerified ¶
func ByIsEmailVerified(opts ...sql.OrderTermOption) OrderOption
ByIsEmailVerified orders the results by the is_email_verified field.
func ByIsPhoneVerified ¶
func ByIsPhoneVerified(opts ...sql.OrderTermOption) OrderOption
ByIsPhoneVerified orders the results by the is_phone_verified field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPersonAddresses ¶
func ByPersonAddresses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPersonAddresses orders the results by person_addresses terms.
func ByPersonAddressesCount ¶
func ByPersonAddressesCount(opts ...sql.OrderTermOption) OrderOption
ByPersonAddressesCount orders the results by person_addresses count.
func ByPhone ¶
func ByPhone(opts ...sql.OrderTermOption) OrderOption
ByPhone orders the results by the phone field.
func ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByWorkUnitField ¶
func ByWorkUnitField(field string, opts ...sql.OrderTermOption) OrderOption
ByWorkUnitField orders the results by work_unit field.
func ByWorkUnitID ¶
func ByWorkUnitID(opts ...sql.OrderTermOption) OrderOption
ByWorkUnitID orders the results by the work_unit_id field.