orguser

package
v0.0.0-...-738d89c Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the orguser type in the database.
	Label = "org_user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldOrgID holds the string denoting the org_id field in the database.
	FieldOrgID = "org_id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldJoinedAt holds the string denoting the joined_at field in the database.
	FieldJoinedAt = "joined_at"
	// FieldDisplayName holds the string denoting the display_name field in the database.
	FieldDisplayName = "display_name"
	// EdgeOrgRoles holds the string denoting the org_roles edge name in mutations.
	EdgeOrgRoles = "org_roles"
	// EdgeOrgRoleUser holds the string denoting the org_role_user edge name in mutations.
	EdgeOrgRoleUser = "org_role_user"
	// Table holds the table name of the orguser in the database.
	Table = "org_user"
	// OrgRolesTable is the table that holds the org_roles relation/edge. The primary key declared below.
	OrgRolesTable = "org_role_user"
	// OrgRolesInverseTable is the table name for the OrgRole entity.
	// It exists in this package in order to avoid circular dependency with the "orgrole" package.
	OrgRolesInverseTable = "org_role"
	// OrgRoleUserTable is the table that holds the org_role_user relation/edge.
	OrgRoleUserTable = "org_role_user"
	// OrgRoleUserInverseTable is the table name for the OrgRoleUser entity.
	// It exists in this package in order to avoid circular dependency with the "orgroleuser" package.
	OrgRoleUserInverseTable = "org_role_user"
	// OrgRoleUserColumn is the table column denoting the org_role_user relation/edge.
	OrgRoleUserColumn = "org_user_id"
)

Variables

Columns holds all SQL columns for orguser fields.

View Source
var (
	// DefaultJoinedAt holds the default value on creation for the "joined_at" field.
	DefaultJoinedAt func() time.Time
)
View Source
var (
	// OrgRolesPrimaryKey and OrgRolesColumn2 are the table columns denoting the
	// primary key for the org_roles relation (M2M).
	OrgRolesPrimaryKey = []string{"org_role_id", "org_user_id"}
)

Functions

func And

func And(predicates ...predicate.OrgUser) predicate.OrgUser

And groups predicates with the AND operator between them.

func DisplayName

func DisplayName(v string) predicate.OrgUser

DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.OrgUser

DisplayNameContains applies the Contains predicate on the "display_name" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.OrgUser

DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.OrgUser

DisplayNameEQ applies the EQ predicate on the "display_name" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.OrgUser

DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.OrgUser

DisplayNameGT applies the GT predicate on the "display_name" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.OrgUser

DisplayNameGTE applies the GTE predicate on the "display_name" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.OrgUser

DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.OrgUser

DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.

func DisplayNameIn

func DisplayNameIn(vs ...string) predicate.OrgUser

DisplayNameIn applies the In predicate on the "display_name" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.OrgUser

DisplayNameLT applies the LT predicate on the "display_name" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.OrgUser

DisplayNameLTE applies the LTE predicate on the "display_name" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.OrgUser

DisplayNameNEQ applies the NEQ predicate on the "display_name" field.

func DisplayNameNotIn

func DisplayNameNotIn(vs ...string) predicate.OrgUser

DisplayNameNotIn applies the NotIn predicate on the "display_name" field.

func HasOrgRoleUser

func HasOrgRoleUser() predicate.OrgUser

HasOrgRoleUser applies the HasEdge predicate on the "org_role_user" edge.

func HasOrgRoleUserWith

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

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

func HasOrgRoles

func HasOrgRoles() predicate.OrgUser

HasOrgRoles applies the HasEdge predicate on the "org_roles" edge.

func HasOrgRolesWith

func HasOrgRolesWith(preds ...predicate.OrgRole) predicate.OrgUser

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

func ID

func ID(id int) predicate.OrgUser

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.OrgUser

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.OrgUser

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.OrgUser

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.OrgUser

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.OrgUser

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.OrgUser

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func JoinedAt

func JoinedAt(v time.Time) predicate.OrgUser

JoinedAt applies equality check predicate on the "joined_at" field. It's identical to JoinedAtEQ.

func JoinedAtEQ

func JoinedAtEQ(v time.Time) predicate.OrgUser

JoinedAtEQ applies the EQ predicate on the "joined_at" field.

func JoinedAtGT

func JoinedAtGT(v time.Time) predicate.OrgUser

JoinedAtGT applies the GT predicate on the "joined_at" field.

func JoinedAtGTE

func JoinedAtGTE(v time.Time) predicate.OrgUser

JoinedAtGTE applies the GTE predicate on the "joined_at" field.

func JoinedAtIn

func JoinedAtIn(vs ...time.Time) predicate.OrgUser

JoinedAtIn applies the In predicate on the "joined_at" field.

func JoinedAtLT

func JoinedAtLT(v time.Time) predicate.OrgUser

JoinedAtLT applies the LT predicate on the "joined_at" field.

func JoinedAtLTE

func JoinedAtLTE(v time.Time) predicate.OrgUser

JoinedAtLTE applies the LTE predicate on the "joined_at" field.

func JoinedAtNEQ

func JoinedAtNEQ(v time.Time) predicate.OrgUser

JoinedAtNEQ applies the NEQ predicate on the "joined_at" field.

func JoinedAtNotIn

func JoinedAtNotIn(vs ...time.Time) predicate.OrgUser

JoinedAtNotIn applies the NotIn predicate on the "joined_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.OrgUser) predicate.OrgUser

Or groups predicates with the OR operator between them.

func OrgID

func OrgID(v int) predicate.OrgUser

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

func OrgIDEQ

func OrgIDEQ(v int) predicate.OrgUser

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

func OrgIDGT

func OrgIDGT(v int) predicate.OrgUser

OrgIDGT applies the GT predicate on the "org_id" field.

func OrgIDGTE

func OrgIDGTE(v int) predicate.OrgUser

OrgIDGTE applies the GTE predicate on the "org_id" field.

func OrgIDIn

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

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

func OrgIDLT

func OrgIDLT(v int) predicate.OrgUser

OrgIDLT applies the LT predicate on the "org_id" field.

func OrgIDLTE

func OrgIDLTE(v int) predicate.OrgUser

OrgIDLTE applies the LTE predicate on the "org_id" field.

func OrgIDNEQ

func OrgIDNEQ(v int) predicate.OrgUser

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

func OrgIDNotIn

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

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

func UserID

func UserID(v int) predicate.OrgUser

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

func UserIDEQ

func UserIDEQ(v int) predicate.OrgUser

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

func UserIDGT

func UserIDGT(v int) predicate.OrgUser

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v int) predicate.OrgUser

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDIn

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

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

func UserIDLT

func UserIDLT(v int) predicate.OrgUser

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v int) predicate.OrgUser

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int) predicate.OrgUser

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

func UserIDNotIn

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

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 OrgUser queries.

func ByDisplayName

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

ByDisplayName orders the results by the display_name field.

func ByID

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

ByID orders the results by the id field.

func ByJoinedAt

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

ByJoinedAt orders the results by the joined_at field.

func ByOrgID

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

ByOrgID orders the results by the org_id field.

func ByOrgRoleUser

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

ByOrgRoleUser orders the results by org_role_user terms.

func ByOrgRoleUserCount

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

ByOrgRoleUserCount orders the results by org_role_user count.

func ByOrgRoles

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

ByOrgRoles orders the results by org_roles terms.

func ByOrgRolesCount

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

ByOrgRolesCount orders the results by org_roles count.

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