company

package
v0.0.0-...-c43fb32 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the company type in the database.
	Label = "company"
	// 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"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldSort holds the string denoting the sort field in the database.
	FieldSort = "sort"
	// FieldCode holds the string denoting the code field in the database.
	FieldCode = "code"
	// FieldNickname holds the string denoting the nickname field in the database.
	FieldNickname = "nickname"
	// FieldAddress holds the string denoting the address field in the database.
	FieldAddress = "address"
	// FieldRemark holds the string denoting the remark field in the database.
	FieldRemark = "remark"
	// EdgeDevices holds the string denoting the devices edge name in mutations.
	EdgeDevices = "devices"
	// EdgeMembers holds the string denoting the members edge name in mutations.
	EdgeMembers = "members"
	// Table holds the table name of the company in the database.
	Table = "client_companies"
	// DevicesTable is the table that holds the devices relation/edge. The primary key declared below.
	DevicesTable = "company_devices"
	// DevicesInverseTable is the table name for the Device entity.
	// It exists in this package in order to avoid circular dependency with the "device" package.
	DevicesInverseTable = "equip_devices"
	// MembersTable is the table that holds the members relation/edge.
	MembersTable = "client_members"
	// MembersInverseTable is the table name for the Member entity.
	// It exists in this package in order to avoid circular dependency with the "member" package.
	MembersInverseTable = "client_members"
	// MembersColumn is the table column denoting the members relation/edge.
	MembersColumn = "company_members"
)

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
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus uint8
	// DefaultSort holds the default value on creation for the "sort" field.
	DefaultSort uint32
)

Columns holds all SQL columns for company fields.

View Source
var (
	// DevicesPrimaryKey and DevicesColumn2 are the table columns denoting the
	// primary key for the devices relation (M2M).
	DevicesPrimaryKey = []string{"company_id", "device_id"}
)

Functions

func Address

func Address(v string) predicate.Company

Address applies equality check predicate on the "address" field. It's identical to AddressEQ.

func AddressContains

func AddressContains(v string) predicate.Company

AddressContains applies the Contains predicate on the "address" field.

func AddressContainsFold

func AddressContainsFold(v string) predicate.Company

AddressContainsFold applies the ContainsFold predicate on the "address" field.

func AddressEQ

func AddressEQ(v string) predicate.Company

AddressEQ applies the EQ predicate on the "address" field.

func AddressEqualFold

func AddressEqualFold(v string) predicate.Company

AddressEqualFold applies the EqualFold predicate on the "address" field.

func AddressGT

func AddressGT(v string) predicate.Company

AddressGT applies the GT predicate on the "address" field.

func AddressGTE

func AddressGTE(v string) predicate.Company

AddressGTE applies the GTE predicate on the "address" field.

func AddressHasPrefix

func AddressHasPrefix(v string) predicate.Company

AddressHasPrefix applies the HasPrefix predicate on the "address" field.

func AddressHasSuffix

func AddressHasSuffix(v string) predicate.Company

AddressHasSuffix applies the HasSuffix predicate on the "address" field.

func AddressIn

func AddressIn(vs ...string) predicate.Company

AddressIn applies the In predicate on the "address" field.

func AddressIsNil

func AddressIsNil() predicate.Company

AddressIsNil applies the IsNil predicate on the "address" field.

func AddressLT

func AddressLT(v string) predicate.Company

AddressLT applies the LT predicate on the "address" field.

func AddressLTE

func AddressLTE(v string) predicate.Company

AddressLTE applies the LTE predicate on the "address" field.

func AddressNEQ

func AddressNEQ(v string) predicate.Company

AddressNEQ applies the NEQ predicate on the "address" field.

func AddressNotIn

func AddressNotIn(vs ...string) predicate.Company

AddressNotIn applies the NotIn predicate on the "address" field.

func AddressNotNil

func AddressNotNil() predicate.Company

AddressNotNil applies the NotNil predicate on the "address" field.

func And

func And(predicates ...predicate.Company) predicate.Company

And groups predicates with the AND operator between them.

func Code

func Code(v int32) predicate.Company

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

func CodeEQ

func CodeEQ(v int32) predicate.Company

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

func CodeGT

func CodeGT(v int32) predicate.Company

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

func CodeGTE

func CodeGTE(v int32) predicate.Company

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

func CodeIn

func CodeIn(vs ...int32) predicate.Company

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

func CodeLT

func CodeLT(v int32) predicate.Company

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

func CodeLTE

func CodeLTE(v int32) predicate.Company

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

func CodeNEQ

func CodeNEQ(v int32) predicate.Company

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

func CodeNotIn

func CodeNotIn(vs ...int32) predicate.Company

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Company

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Company

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Company

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Company

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Company

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Company

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Company

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

func CreatedAtNotIn

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

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

func HasDevices

func HasDevices() predicate.Company

HasDevices applies the HasEdge predicate on the "devices" edge.

func HasDevicesWith

func HasDevicesWith(preds ...predicate.Device) predicate.Company

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

func HasMembers

func HasMembers() predicate.Company

HasMembers applies the HasEdge predicate on the "members" edge.

func HasMembersWith

func HasMembersWith(preds ...predicate.Member) predicate.Company

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

func ID

func ID(id uint64) predicate.Company

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Company

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Company

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Company

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.Company

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Company

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Company

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Company

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.Company

IDNotIn applies the NotIn predicate on the ID field.

func Nickname

func Nickname(v string) predicate.Company

Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.

func NicknameContains

func NicknameContains(v string) predicate.Company

NicknameContains applies the Contains predicate on the "nickname" field.

func NicknameContainsFold

func NicknameContainsFold(v string) predicate.Company

NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.

func NicknameEQ

func NicknameEQ(v string) predicate.Company

NicknameEQ applies the EQ predicate on the "nickname" field.

func NicknameEqualFold

func NicknameEqualFold(v string) predicate.Company

NicknameEqualFold applies the EqualFold predicate on the "nickname" field.

func NicknameGT

func NicknameGT(v string) predicate.Company

NicknameGT applies the GT predicate on the "nickname" field.

func NicknameGTE

func NicknameGTE(v string) predicate.Company

NicknameGTE applies the GTE predicate on the "nickname" field.

func NicknameHasPrefix

func NicknameHasPrefix(v string) predicate.Company

NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.

func NicknameHasSuffix

func NicknameHasSuffix(v string) predicate.Company

NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.

func NicknameIn

func NicknameIn(vs ...string) predicate.Company

NicknameIn applies the In predicate on the "nickname" field.

func NicknameLT

func NicknameLT(v string) predicate.Company

NicknameLT applies the LT predicate on the "nickname" field.

func NicknameLTE

func NicknameLTE(v string) predicate.Company

NicknameLTE applies the LTE predicate on the "nickname" field.

func NicknameNEQ

func NicknameNEQ(v string) predicate.Company

NicknameNEQ applies the NEQ predicate on the "nickname" field.

func NicknameNotIn

func NicknameNotIn(vs ...string) predicate.Company

NicknameNotIn applies the NotIn predicate on the "nickname" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Company) predicate.Company

Or groups predicates with the OR operator between them.

func Remark

func Remark(v string) predicate.Company

Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.

func RemarkContains

func RemarkContains(v string) predicate.Company

RemarkContains applies the Contains predicate on the "remark" field.

func RemarkContainsFold

func RemarkContainsFold(v string) predicate.Company

RemarkContainsFold applies the ContainsFold predicate on the "remark" field.

func RemarkEQ

func RemarkEQ(v string) predicate.Company

RemarkEQ applies the EQ predicate on the "remark" field.

func RemarkEqualFold

func RemarkEqualFold(v string) predicate.Company

RemarkEqualFold applies the EqualFold predicate on the "remark" field.

func RemarkGT

func RemarkGT(v string) predicate.Company

RemarkGT applies the GT predicate on the "remark" field.

func RemarkGTE

func RemarkGTE(v string) predicate.Company

RemarkGTE applies the GTE predicate on the "remark" field.

func RemarkHasPrefix

func RemarkHasPrefix(v string) predicate.Company

RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.

func RemarkHasSuffix

func RemarkHasSuffix(v string) predicate.Company

RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.

func RemarkIn

func RemarkIn(vs ...string) predicate.Company

RemarkIn applies the In predicate on the "remark" field.

func RemarkIsNil

func RemarkIsNil() predicate.Company

RemarkIsNil applies the IsNil predicate on the "remark" field.

func RemarkLT

func RemarkLT(v string) predicate.Company

RemarkLT applies the LT predicate on the "remark" field.

func RemarkLTE

func RemarkLTE(v string) predicate.Company

RemarkLTE applies the LTE predicate on the "remark" field.

func RemarkNEQ

func RemarkNEQ(v string) predicate.Company

RemarkNEQ applies the NEQ predicate on the "remark" field.

func RemarkNotIn

func RemarkNotIn(vs ...string) predicate.Company

RemarkNotIn applies the NotIn predicate on the "remark" field.

func RemarkNotNil

func RemarkNotNil() predicate.Company

RemarkNotNil applies the NotNil predicate on the "remark" field.

func Sort

func Sort(v uint32) predicate.Company

Sort applies equality check predicate on the "sort" field. It's identical to SortEQ.

func SortEQ

func SortEQ(v uint32) predicate.Company

SortEQ applies the EQ predicate on the "sort" field.

func SortGT

func SortGT(v uint32) predicate.Company

SortGT applies the GT predicate on the "sort" field.

func SortGTE

func SortGTE(v uint32) predicate.Company

SortGTE applies the GTE predicate on the "sort" field.

func SortIn

func SortIn(vs ...uint32) predicate.Company

SortIn applies the In predicate on the "sort" field.

func SortLT

func SortLT(v uint32) predicate.Company

SortLT applies the LT predicate on the "sort" field.

func SortLTE

func SortLTE(v uint32) predicate.Company

SortLTE applies the LTE predicate on the "sort" field.

func SortNEQ

func SortNEQ(v uint32) predicate.Company

SortNEQ applies the NEQ predicate on the "sort" field.

func SortNotIn

func SortNotIn(vs ...uint32) predicate.Company

SortNotIn applies the NotIn predicate on the "sort" field.

func Status

func Status(v uint8) predicate.Company

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v uint8) predicate.Company

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

func StatusGT

func StatusGT(v uint8) predicate.Company

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v uint8) predicate.Company

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

func StatusIn(vs ...uint8) predicate.Company

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

func StatusIsNil

func StatusIsNil() predicate.Company

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusLT

func StatusLT(v uint8) predicate.Company

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v uint8) predicate.Company

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v uint8) predicate.Company

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

func StatusNotIn

func StatusNotIn(vs ...uint8) predicate.Company

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.Company

StatusNotNil applies the NotNil predicate on the "status" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Company

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Company

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Company

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Company

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Company

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Company

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Company

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

func UpdatedAtNotIn

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

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Company queries.

func ByAddress

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

ByAddress orders the results by the address 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 ByDevices

func ByDevices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByDevices orders the results by devices terms.

func ByDevicesCount

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

ByDevicesCount orders the results by devices count.

func ByID

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

ByID orders the results by the id field.

func ByMembers

func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByMembers orders the results by members terms.

func ByMembersCount

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

ByMembersCount orders the results by members count.

func ByNickname

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

ByNickname orders the results by the nickname field.

func ByRemark

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

ByRemark orders the results by the remark field.

func BySort

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

BySort orders the results by the sort 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.

Jump to

Keyboard shortcuts

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