Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OrgRole) predicate.OrgRole
- func AppRoleID(v int) predicate.OrgRole
- func AppRoleIDEQ(v int) predicate.OrgRole
- func AppRoleIDGT(v int) predicate.OrgRole
- func AppRoleIDGTE(v int) predicate.OrgRole
- func AppRoleIDIn(vs ...int) predicate.OrgRole
- func AppRoleIDIsNil() predicate.OrgRole
- func AppRoleIDLT(v int) predicate.OrgRole
- func AppRoleIDLTE(v int) predicate.OrgRole
- func AppRoleIDNEQ(v int) predicate.OrgRole
- func AppRoleIDNotIn(vs ...int) predicate.OrgRole
- func AppRoleIDNotNil() predicate.OrgRole
- func Comments(v string) predicate.OrgRole
- func CommentsContains(v string) predicate.OrgRole
- func CommentsContainsFold(v string) predicate.OrgRole
- func CommentsEQ(v string) predicate.OrgRole
- func CommentsEqualFold(v string) predicate.OrgRole
- func CommentsGT(v string) predicate.OrgRole
- func CommentsGTE(v string) predicate.OrgRole
- func CommentsHasPrefix(v string) predicate.OrgRole
- func CommentsHasSuffix(v string) predicate.OrgRole
- func CommentsIn(vs ...string) predicate.OrgRole
- func CommentsIsNil() predicate.OrgRole
- func CommentsLT(v string) predicate.OrgRole
- func CommentsLTE(v string) predicate.OrgRole
- func CommentsNEQ(v string) predicate.OrgRole
- func CommentsNotIn(vs ...string) predicate.OrgRole
- func CommentsNotNil() predicate.OrgRole
- func CreatedAt(v time.Time) predicate.OrgRole
- func CreatedAtEQ(v time.Time) predicate.OrgRole
- func CreatedAtGT(v time.Time) predicate.OrgRole
- func CreatedAtGTE(v time.Time) predicate.OrgRole
- func CreatedAtIn(vs ...time.Time) predicate.OrgRole
- func CreatedAtLT(v time.Time) predicate.OrgRole
- func CreatedAtLTE(v time.Time) predicate.OrgRole
- func CreatedAtNEQ(v time.Time) predicate.OrgRole
- func CreatedAtNotIn(vs ...time.Time) predicate.OrgRole
- func CreatedBy(v int) predicate.OrgRole
- func CreatedByEQ(v int) predicate.OrgRole
- func CreatedByGT(v int) predicate.OrgRole
- func CreatedByGTE(v int) predicate.OrgRole
- func CreatedByIn(vs ...int) predicate.OrgRole
- func CreatedByLT(v int) predicate.OrgRole
- func CreatedByLTE(v int) predicate.OrgRole
- func CreatedByNEQ(v int) predicate.OrgRole
- func CreatedByNotIn(vs ...int) predicate.OrgRole
- func HasOrg() predicate.OrgRole
- func HasOrgRoleUser() predicate.OrgRole
- func HasOrgRoleUserWith(preds ...predicate.OrgRoleUser) predicate.OrgRole
- func HasOrgUsers() predicate.OrgRole
- func HasOrgUsersWith(preds ...predicate.OrgUser) predicate.OrgRole
- func HasOrgWith(preds ...predicate.Org) predicate.OrgRole
- func ID(id int) predicate.OrgRole
- func IDEQ(id int) predicate.OrgRole
- func IDGT(id int) predicate.OrgRole
- func IDGTE(id int) predicate.OrgRole
- func IDIn(ids ...int) predicate.OrgRole
- func IDLT(id int) predicate.OrgRole
- func IDLTE(id int) predicate.OrgRole
- func IDNEQ(id int) predicate.OrgRole
- func IDNotIn(ids ...int) predicate.OrgRole
- func KindEQ(v Kind) predicate.OrgRole
- func KindIn(vs ...Kind) predicate.OrgRole
- func KindNEQ(v Kind) predicate.OrgRole
- func KindNotIn(vs ...Kind) predicate.OrgRole
- func KindValidator(k Kind) error
- func Name(v string) predicate.OrgRole
- func NameContains(v string) predicate.OrgRole
- func NameContainsFold(v string) predicate.OrgRole
- func NameEQ(v string) predicate.OrgRole
- func NameEqualFold(v string) predicate.OrgRole
- func NameGT(v string) predicate.OrgRole
- func NameGTE(v string) predicate.OrgRole
- func NameHasPrefix(v string) predicate.OrgRole
- func NameHasSuffix(v string) predicate.OrgRole
- func NameIn(vs ...string) predicate.OrgRole
- func NameLT(v string) predicate.OrgRole
- func NameLTE(v string) predicate.OrgRole
- func NameNEQ(v string) predicate.OrgRole
- func NameNotIn(vs ...string) predicate.OrgRole
- func Not(p predicate.OrgRole) predicate.OrgRole
- func Or(predicates ...predicate.OrgRole) predicate.OrgRole
- func OrgID(v int) predicate.OrgRole
- func OrgIDEQ(v int) predicate.OrgRole
- func OrgIDIn(vs ...int) predicate.OrgRole
- func OrgIDIsNil() predicate.OrgRole
- func OrgIDNEQ(v int) predicate.OrgRole
- func OrgIDNotIn(vs ...int) predicate.OrgRole
- func OrgIDNotNil() predicate.OrgRole
- func UpdatedAt(v time.Time) predicate.OrgRole
- func UpdatedAtEQ(v time.Time) predicate.OrgRole
- func UpdatedAtGT(v time.Time) predicate.OrgRole
- func UpdatedAtGTE(v time.Time) predicate.OrgRole
- func UpdatedAtIn(vs ...time.Time) predicate.OrgRole
- func UpdatedAtIsNil() predicate.OrgRole
- func UpdatedAtLT(v time.Time) predicate.OrgRole
- func UpdatedAtLTE(v time.Time) predicate.OrgRole
- func UpdatedAtNEQ(v time.Time) predicate.OrgRole
- func UpdatedAtNotIn(vs ...time.Time) predicate.OrgRole
- func UpdatedAtNotNil() predicate.OrgRole
- func UpdatedBy(v int) predicate.OrgRole
- func UpdatedByEQ(v int) predicate.OrgRole
- func UpdatedByGT(v int) predicate.OrgRole
- func UpdatedByGTE(v int) predicate.OrgRole
- func UpdatedByIn(vs ...int) predicate.OrgRole
- func UpdatedByIsNil() predicate.OrgRole
- func UpdatedByLT(v int) predicate.OrgRole
- func UpdatedByLTE(v int) predicate.OrgRole
- func UpdatedByNEQ(v int) predicate.OrgRole
- func UpdatedByNotIn(vs ...int) predicate.OrgRole
- func UpdatedByNotNil() predicate.OrgRole
- func ValidColumn(column string) bool
- type Kind
- type OrderOption
- func ByAppRoleID(opts ...sql.OrderTermOption) OrderOption
- func ByComments(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKind(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrgField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrgID(opts ...sql.OrderTermOption) OrderOption
- func ByOrgRoleUser(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOrgRoleUserCount(opts ...sql.OrderTermOption) OrderOption
- func ByOrgUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOrgUsersCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"
var Columns = []string{ FieldID, FieldCreatedBy, FieldCreatedAt, FieldUpdatedBy, FieldUpdatedAt, FieldOrgID, FieldKind, FieldName, FieldAppRoleID, FieldComments, }
Columns holds all SQL columns for orgrole fields.
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 AppRoleID ¶
AppRoleID applies equality check predicate on the "app_role_id" field. It's identical to AppRoleIDEQ.
func AppRoleIDEQ ¶
AppRoleIDEQ applies the EQ predicate on the "app_role_id" field.
func AppRoleIDGT ¶
AppRoleIDGT applies the GT predicate on the "app_role_id" field.
func AppRoleIDGTE ¶
AppRoleIDGTE applies the GTE predicate on the "app_role_id" field.
func AppRoleIDIn ¶
AppRoleIDIn applies the In predicate on the "app_role_id" field.
func AppRoleIDIsNil ¶
AppRoleIDIsNil applies the IsNil predicate on the "app_role_id" field.
func AppRoleIDLT ¶
AppRoleIDLT applies the LT predicate on the "app_role_id" field.
func AppRoleIDLTE ¶
AppRoleIDLTE applies the LTE predicate on the "app_role_id" field.
func AppRoleIDNEQ ¶
AppRoleIDNEQ applies the NEQ predicate on the "app_role_id" field.
func AppRoleIDNotIn ¶
AppRoleIDNotIn applies the NotIn predicate on the "app_role_id" field.
func AppRoleIDNotNil ¶
AppRoleIDNotNil applies the NotNil predicate on the "app_role_id" field.
func Comments ¶
Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.
func CommentsContains ¶
CommentsContains applies the Contains predicate on the "comments" field.
func CommentsContainsFold ¶
CommentsContainsFold applies the ContainsFold predicate on the "comments" field.
func CommentsEQ ¶
CommentsEQ applies the EQ predicate on the "comments" field.
func CommentsEqualFold ¶
CommentsEqualFold applies the EqualFold predicate on the "comments" field.
func CommentsGT ¶
CommentsGT applies the GT predicate on the "comments" field.
func CommentsGTE ¶
CommentsGTE applies the GTE predicate on the "comments" field.
func CommentsHasPrefix ¶
CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.
func CommentsHasSuffix ¶
CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.
func CommentsIn ¶
CommentsIn applies the In predicate on the "comments" field.
func CommentsIsNil ¶
CommentsIsNil applies the IsNil predicate on the "comments" field.
func CommentsLT ¶
CommentsLT applies the LT predicate on the "comments" field.
func CommentsLTE ¶
CommentsLTE applies the LTE predicate on the "comments" field.
func CommentsNEQ ¶
CommentsNEQ applies the NEQ predicate on the "comments" field.
func CommentsNotIn ¶
CommentsNotIn applies the NotIn predicate on the "comments" field.
func CommentsNotNil ¶
CommentsNotNil applies the NotNil predicate on the "comments" 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 CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func HasOrgRoleUser ¶
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 ¶
HasOrgUsers applies the HasEdge predicate on the "org_users" edge.
func HasOrgUsersWith ¶
HasOrgUsersWith applies the HasEdge predicate on the "org_users" edge with a given conditions (other predicates).
func HasOrgWith ¶
HasOrgWith applies the HasEdge predicate on the "org" edge with a given conditions (other predicates).
func KindValidator ¶
KindValidator is a validator for the "kind" field enum values. It is called by the builders before save.
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 OrgID ¶
OrgID applies equality check predicate on the "org_id" field. It's identical to OrgIDEQ.
func OrgIDIsNil ¶
OrgIDIsNil applies the IsNil predicate on the "org_id" field.
func OrgIDNotIn ¶
OrgIDNotIn applies the NotIn predicate on the "org_id" field.
func OrgIDNotNil ¶
OrgIDNotNil applies the NotNil predicate on the "org_id" field.
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 UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func ValidColumn ¶
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.
func (Kind) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Kind) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.
type OrderOption ¶
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.