orgroleuser

package
v0.0.0-...-04b2c92 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the orgroleuser type in the database.
	Label = "org_role_user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldOrgRoleID holds the string denoting the org_role_id field in the database.
	FieldOrgRoleID = "org_role_id"
	// FieldOrgUserID holds the string denoting the org_user_id field in the database.
	FieldOrgUserID = "org_user_id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldOrgID holds the string denoting the org_id field in the database.
	FieldOrgID = "org_id"
	// EdgeOrgRole holds the string denoting the org_role edge name in mutations.
	EdgeOrgRole = "org_role"
	// EdgeOrgUser holds the string denoting the org_user edge name in mutations.
	EdgeOrgUser = "org_user"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeOrg holds the string denoting the org edge name in mutations.
	EdgeOrg = "org"
	// Table holds the table name of the orgroleuser in the database.
	Table = "org_role_user"
	// OrgRoleTable is the table that holds the org_role relation/edge.
	OrgRoleTable = "org_role_user"
	// OrgRoleInverseTable is the table name for the OrgRole entity.
	// It exists in this package in order to avoid circular dependency with the "orgrole" package.
	OrgRoleInverseTable = "org_role"
	// OrgRoleColumn is the table column denoting the org_role relation/edge.
	OrgRoleColumn = "org_role_id"
	// OrgUserTable is the table that holds the org_user relation/edge.
	OrgUserTable = "org_role_user"
	// OrgUserInverseTable is the table name for the OrgUser entity.
	// It exists in this package in order to avoid circular dependency with the "orguser" package.
	OrgUserInverseTable = "org_user"
	// OrgUserColumn is the table column denoting the org_user relation/edge.
	OrgUserColumn = "org_user_id"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "org_role_user"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "user"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
	// OrgTable is the table that holds the org relation/edge.
	OrgTable = "org_role_user"
	// OrgInverseTable is the table name for the Org entity.
	// It exists in this package in order to avoid circular dependency with the "org" package.
	OrgInverseTable = "org"
	// OrgColumn is the table column denoting the org relation/edge.
	OrgColumn = "org_id"
)

Variables

View Source
var (
	Hooks [1]ent.Hook
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/woocoos/knockout/ent/runtime"

Columns holds all SQL columns for orgroleuser fields.

Functions

func And

func And(predicates ...predicate.OrgRoleUser) predicate.OrgRoleUser

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.OrgRoleUser

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.OrgRoleUser

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.OrgRoleUser

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.OrgRoleUser

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.OrgRoleUser

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.OrgRoleUser

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.OrgRoleUser

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v int) predicate.OrgRoleUser

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int) predicate.OrgRoleUser

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int) predicate.OrgRoleUser

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int) predicate.OrgRoleUser

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int) predicate.OrgRoleUser

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int) predicate.OrgRoleUser

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int) predicate.OrgRoleUser

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int) predicate.OrgRoleUser

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int) predicate.OrgRoleUser

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func HasOrg

func HasOrg() predicate.OrgRoleUser

HasOrg applies the HasEdge predicate on the "org" edge.

func HasOrgRole

func HasOrgRole() predicate.OrgRoleUser

HasOrgRole applies the HasEdge predicate on the "org_role" edge.

func HasOrgRoleWith

func HasOrgRoleWith(preds ...predicate.OrgRole) predicate.OrgRoleUser

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

func HasOrgUser

func HasOrgUser() predicate.OrgRoleUser

HasOrgUser applies the HasEdge predicate on the "org_user" edge.

func HasOrgUserWith

func HasOrgUserWith(preds ...predicate.OrgUser) predicate.OrgRoleUser

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

func HasOrgWith

func HasOrgWith(preds ...predicate.Org) predicate.OrgRoleUser

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

func HasUser

func HasUser() predicate.OrgRoleUser

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.OrgRoleUser

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

func ID

func ID(id int) predicate.OrgRoleUser

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.OrgRoleUser

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.OrgRoleUser

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.OrgRoleUser

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.OrgRoleUser

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.OrgRoleUser

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.OrgRoleUser

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.OrgRoleUser

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.OrgRoleUser

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.OrgRoleUser) predicate.OrgRoleUser

Or groups predicates with the OR operator between them.

func OrgID

func OrgID(v int) predicate.OrgRoleUser

OrgID applies equality check predicate on the "org_id" field. It's identical to OrgIDEQ.

func OrgIDEQ

func OrgIDEQ(v int) predicate.OrgRoleUser

OrgIDEQ applies the EQ predicate on the "org_id" field.

func OrgIDIn

func OrgIDIn(vs ...int) predicate.OrgRoleUser

OrgIDIn applies the In predicate on the "org_id" field.

func OrgIDNEQ

func OrgIDNEQ(v int) predicate.OrgRoleUser

OrgIDNEQ applies the NEQ predicate on the "org_id" field.

func OrgIDNotIn

func OrgIDNotIn(vs ...int) predicate.OrgRoleUser

OrgIDNotIn applies the NotIn predicate on the "org_id" field.

func OrgRoleID

func OrgRoleID(v int) predicate.OrgRoleUser

OrgRoleID applies equality check predicate on the "org_role_id" field. It's identical to OrgRoleIDEQ.

func OrgRoleIDEQ

func OrgRoleIDEQ(v int) predicate.OrgRoleUser

OrgRoleIDEQ applies the EQ predicate on the "org_role_id" field.

func OrgRoleIDIn

func OrgRoleIDIn(vs ...int) predicate.OrgRoleUser

OrgRoleIDIn applies the In predicate on the "org_role_id" field.

func OrgRoleIDNEQ

func OrgRoleIDNEQ(v int) predicate.OrgRoleUser

OrgRoleIDNEQ applies the NEQ predicate on the "org_role_id" field.

func OrgRoleIDNotIn

func OrgRoleIDNotIn(vs ...int) predicate.OrgRoleUser

OrgRoleIDNotIn applies the NotIn predicate on the "org_role_id" field.

func OrgUserID

func OrgUserID(v int) predicate.OrgRoleUser

OrgUserID applies equality check predicate on the "org_user_id" field. It's identical to OrgUserIDEQ.

func OrgUserIDEQ

func OrgUserIDEQ(v int) predicate.OrgRoleUser

OrgUserIDEQ applies the EQ predicate on the "org_user_id" field.

func OrgUserIDIn

func OrgUserIDIn(vs ...int) predicate.OrgRoleUser

OrgUserIDIn applies the In predicate on the "org_user_id" field.

func OrgUserIDNEQ

func OrgUserIDNEQ(v int) predicate.OrgRoleUser

OrgUserIDNEQ applies the NEQ predicate on the "org_user_id" field.

func OrgUserIDNotIn

func OrgUserIDNotIn(vs ...int) predicate.OrgRoleUser

OrgUserIDNotIn applies the NotIn predicate on the "org_user_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.OrgRoleUser

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.OrgRoleUser

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.OrgRoleUser

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.OrgRoleUser

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.OrgRoleUser

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.OrgRoleUser

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.OrgRoleUser

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.OrgRoleUser

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.OrgRoleUser

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int) predicate.OrgRoleUser

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int) predicate.OrgRoleUser

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int) predicate.OrgRoleUser

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int) predicate.OrgRoleUser

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int) predicate.OrgRoleUser

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.OrgRoleUser

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int) predicate.OrgRoleUser

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int) predicate.OrgRoleUser

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int) predicate.OrgRoleUser

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int) predicate.OrgRoleUser

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.OrgRoleUser

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func UserID

func UserID(v int) predicate.OrgRoleUser

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int) predicate.OrgRoleUser

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int) predicate.OrgRoleUser

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int) predicate.OrgRoleUser

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int) predicate.OrgRoleUser

UserIDNotIn applies the NotIn predicate on the "user_id" 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 OrgRoleUser queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByID

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

ByID orders the results by the id field.

func ByOrgField

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

ByOrgField orders the results by org field.

func ByOrgID

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

ByOrgID orders the results by the org_id field.

func ByOrgRoleField

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

ByOrgRoleField orders the results by org_role field.

func ByOrgRoleID

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

ByOrgRoleID orders the results by the org_role_id field.

func ByOrgUserField

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

ByOrgUserField orders the results by org_user field.

func ByOrgUserID

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

ByOrgUserID orders the results by the org_user_id field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by field.

func ByUserField

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

ByUserField orders the results by user field.

func ByUserID

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

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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