orgrole

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the orgrole type in the database.
	Label = "org_role"
	// 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"
	// FieldOrgID holds the string denoting the org_id field in the database.
	FieldOrgID = "org_id"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldAppRoleID holds the string denoting the app_role_id field in the database.
	FieldAppRoleID = "app_role_id"
	// FieldComments holds the string denoting the comments field in the database.
	FieldComments = "comments"
	// EdgeOrg holds the string denoting the org edge name in mutations.
	EdgeOrg = "org"
	// EdgeOrgUsers holds the string denoting the org_users edge name in mutations.
	EdgeOrgUsers = "org_users"
	// EdgeOrgRoleUser holds the string denoting the org_role_user edge name in mutations.
	EdgeOrgRoleUser = "org_role_user"
	// Table holds the table name of the orgrole in the database.
	Table = "org_role"
	// OrgTable is the table that holds the org relation/edge.
	OrgTable = "org_role"
	// 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"
	// OrgUsersTable is the table that holds the org_users relation/edge. The primary key declared below.
	OrgUsersTable = "org_role_user"
	// OrgUsersInverseTable is the table name for the OrgUser entity.
	// It exists in this package in order to avoid circular dependency with the "orguser" package.
	OrgUsersInverseTable = "org_user"
	// 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_role_id"
)

Variables

View Source
var (
	Hooks [2]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 orgrole fields.

View Source
var (
	// OrgUsersPrimaryKey and OrgUsersColumn2 are the table columns denoting the
	// primary key for the org_users relation (M2M).
	OrgUsersPrimaryKey = []string{"org_role_id", "org_user_id"}
)

Functions

func And

func And(predicates ...predicate.OrgRole) predicate.OrgRole

And groups predicates with the AND operator between them.

func AppRoleID

func AppRoleID(v int) predicate.OrgRole

AppRoleID applies equality check predicate on the "app_role_id" field. It's identical to AppRoleIDEQ.

func AppRoleIDEQ

func AppRoleIDEQ(v int) predicate.OrgRole

AppRoleIDEQ applies the EQ predicate on the "app_role_id" field.

func AppRoleIDGT

func AppRoleIDGT(v int) predicate.OrgRole

AppRoleIDGT applies the GT predicate on the "app_role_id" field.

func AppRoleIDGTE

func AppRoleIDGTE(v int) predicate.OrgRole

AppRoleIDGTE applies the GTE predicate on the "app_role_id" field.

func AppRoleIDIn

func AppRoleIDIn(vs ...int) predicate.OrgRole

AppRoleIDIn applies the In predicate on the "app_role_id" field.

func AppRoleIDIsNil

func AppRoleIDIsNil() predicate.OrgRole

AppRoleIDIsNil applies the IsNil predicate on the "app_role_id" field.

func AppRoleIDLT

func AppRoleIDLT(v int) predicate.OrgRole

AppRoleIDLT applies the LT predicate on the "app_role_id" field.

func AppRoleIDLTE

func AppRoleIDLTE(v int) predicate.OrgRole

AppRoleIDLTE applies the LTE predicate on the "app_role_id" field.

func AppRoleIDNEQ

func AppRoleIDNEQ(v int) predicate.OrgRole

AppRoleIDNEQ applies the NEQ predicate on the "app_role_id" field.

func AppRoleIDNotIn

func AppRoleIDNotIn(vs ...int) predicate.OrgRole

AppRoleIDNotIn applies the NotIn predicate on the "app_role_id" field.

func AppRoleIDNotNil

func AppRoleIDNotNil() predicate.OrgRole

AppRoleIDNotNil applies the NotNil predicate on the "app_role_id" field.

func Comments

func Comments(v string) predicate.OrgRole

Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.

func CommentsContains

func CommentsContains(v string) predicate.OrgRole

CommentsContains applies the Contains predicate on the "comments" field.

func CommentsContainsFold

func CommentsContainsFold(v string) predicate.OrgRole

CommentsContainsFold applies the ContainsFold predicate on the "comments" field.

func CommentsEQ

func CommentsEQ(v string) predicate.OrgRole

CommentsEQ applies the EQ predicate on the "comments" field.

func CommentsEqualFold

func CommentsEqualFold(v string) predicate.OrgRole

CommentsEqualFold applies the EqualFold predicate on the "comments" field.

func CommentsGT

func CommentsGT(v string) predicate.OrgRole

CommentsGT applies the GT predicate on the "comments" field.

func CommentsGTE

func CommentsGTE(v string) predicate.OrgRole

CommentsGTE applies the GTE predicate on the "comments" field.

func CommentsHasPrefix

func CommentsHasPrefix(v string) predicate.OrgRole

CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.

func CommentsHasSuffix

func CommentsHasSuffix(v string) predicate.OrgRole

CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.

func CommentsIn

func CommentsIn(vs ...string) predicate.OrgRole

CommentsIn applies the In predicate on the "comments" field.

func CommentsIsNil

func CommentsIsNil() predicate.OrgRole

CommentsIsNil applies the IsNil predicate on the "comments" field.

func CommentsLT

func CommentsLT(v string) predicate.OrgRole

CommentsLT applies the LT predicate on the "comments" field.

func CommentsLTE

func CommentsLTE(v string) predicate.OrgRole

CommentsLTE applies the LTE predicate on the "comments" field.

func CommentsNEQ

func CommentsNEQ(v string) predicate.OrgRole

CommentsNEQ applies the NEQ predicate on the "comments" field.

func CommentsNotIn

func CommentsNotIn(vs ...string) predicate.OrgRole

CommentsNotIn applies the NotIn predicate on the "comments" field.

func CommentsNotNil

func CommentsNotNil() predicate.OrgRole

CommentsNotNil applies the NotNil predicate on the "comments" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.OrgRole

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.OrgRole

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.OrgRole

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.OrgRole

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.OrgRole

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.OrgRole

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.OrgRole

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v int) predicate.OrgRole

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

func CreatedByEQ

func CreatedByEQ(v int) predicate.OrgRole

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

func CreatedByGT

func CreatedByGT(v int) predicate.OrgRole

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

func CreatedByGTE

func CreatedByGTE(v int) predicate.OrgRole

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

func CreatedByIn

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

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

func CreatedByLT

func CreatedByLT(v int) predicate.OrgRole

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

func CreatedByLTE

func CreatedByLTE(v int) predicate.OrgRole

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

func CreatedByNEQ

func CreatedByNEQ(v int) predicate.OrgRole

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

func CreatedByNotIn

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

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

func HasOrg

func HasOrg() predicate.OrgRole

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

func HasOrgRoleUser

func HasOrgRoleUser() predicate.OrgRole

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

func HasOrgRoleUserWith

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

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

func HasOrgUsers

func HasOrgUsers() predicate.OrgRole

HasOrgUsers applies the HasEdge predicate on the "org_users" edge.

func HasOrgUsersWith

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

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

func HasOrgWith

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

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

func ID

func ID(id int) predicate.OrgRole

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.OrgRole

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.OrgRole

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.OrgRole

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.OrgRole

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.OrgRole

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.OrgRole

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func KindEQ

func KindEQ(v Kind) predicate.OrgRole

KindEQ applies the EQ predicate on the "kind" field.

func KindIn

func KindIn(vs ...Kind) predicate.OrgRole

KindIn applies the In predicate on the "kind" field.

func KindNEQ

func KindNEQ(v Kind) predicate.OrgRole

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...Kind) predicate.OrgRole

KindNotIn applies the NotIn predicate on the "kind" field.

func KindValidator

func KindValidator(k Kind) error

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

func Name

func Name(v string) predicate.OrgRole

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.OrgRole

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.OrgRole

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.OrgRole

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.OrgRole

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.OrgRole

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.OrgRole

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.OrgRole

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.OrgRole

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.OrgRole

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.OrgRole

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.OrgRole

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.OrgRole

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.OrgRole

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.OrgRole) predicate.OrgRole

Or groups predicates with the OR operator between them.

func OrgID

func OrgID(v int) predicate.OrgRole

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

func OrgIDEQ

func OrgIDEQ(v int) predicate.OrgRole

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

func OrgIDIn

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

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

func OrgIDIsNil

func OrgIDIsNil() predicate.OrgRole

OrgIDIsNil applies the IsNil predicate on the "org_id" field.

func OrgIDNEQ

func OrgIDNEQ(v int) predicate.OrgRole

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

func OrgIDNotIn

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

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

func OrgIDNotNil

func OrgIDNotNil() predicate.OrgRole

OrgIDNotNil applies the NotNil predicate on the "org_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.OrgRole

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.OrgRole

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.OrgRole

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.OrgRole

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.OrgRole

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.OrgRole

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.OrgRole

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.OrgRole

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.OrgRole

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

func UpdatedBy

func UpdatedBy(v int) predicate.OrgRole

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

func UpdatedByEQ

func UpdatedByEQ(v int) predicate.OrgRole

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

func UpdatedByGT

func UpdatedByGT(v int) predicate.OrgRole

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

func UpdatedByGTE

func UpdatedByGTE(v int) predicate.OrgRole

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

func UpdatedByIn

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

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.OrgRole

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

func UpdatedByLT

func UpdatedByLT(v int) predicate.OrgRole

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

func UpdatedByLTE

func UpdatedByLTE(v int) predicate.OrgRole

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

func UpdatedByNEQ

func UpdatedByNEQ(v int) predicate.OrgRole

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

func UpdatedByNotIn

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

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.OrgRole

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

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type Kind

type Kind string

Kind defines the type for the "kind" enum field.

const (
	KindGroup Kind = "group"
	KindRole  Kind = "role"
)

Kind values.

func (Kind) MarshalGQL

func (e Kind) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Kind) String

func (k Kind) String() string

func (*Kind) UnmarshalGQL

func (e *Kind) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the OrgRole queries.

func ByAppRoleID

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

ByAppRoleID orders the results by the app_role_id field.

func ByComments

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

ByComments orders the results by the comments field.

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 ByKind

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

ByKind orders the results by the kind field.

func ByName

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

ByName orders the results by the name 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 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 ByOrgUsers

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

ByOrgUsers orders the results by org_users terms.

func ByOrgUsersCount

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

ByOrgUsersCount orders the results by org_users count.

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.

Jump to

Keyboard shortcuts

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