Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OrgRoleUser) predicate.OrgRoleUser
- func ID(id int) predicate.OrgRoleUser
- func IDEQ(id int) predicate.OrgRoleUser
- func IDGT(id int) predicate.OrgRoleUser
- func IDGTE(id int) predicate.OrgRoleUser
- func IDIn(ids ...int) predicate.OrgRoleUser
- func IDLT(id int) predicate.OrgRoleUser
- func IDLTE(id int) predicate.OrgRoleUser
- func IDNEQ(id int) predicate.OrgRoleUser
- func IDNotIn(ids ...int) predicate.OrgRoleUser
- func Not(p predicate.OrgRoleUser) predicate.OrgRoleUser
- func Or(predicates ...predicate.OrgRoleUser) predicate.OrgRoleUser
- func OrgID(v int) predicate.OrgRoleUser
- func OrgIDEQ(v int) predicate.OrgRoleUser
- func OrgIDGT(v int) predicate.OrgRoleUser
- func OrgIDGTE(v int) predicate.OrgRoleUser
- func OrgIDIn(vs ...int) predicate.OrgRoleUser
- func OrgIDLT(v int) predicate.OrgRoleUser
- func OrgIDLTE(v int) predicate.OrgRoleUser
- func OrgIDNEQ(v int) predicate.OrgRoleUser
- func OrgIDNotIn(vs ...int) predicate.OrgRoleUser
- func OrgRoleID(v int) predicate.OrgRoleUser
- func OrgRoleIDEQ(v int) predicate.OrgRoleUser
- func OrgRoleIDGT(v int) predicate.OrgRoleUser
- func OrgRoleIDGTE(v int) predicate.OrgRoleUser
- func OrgRoleIDIn(vs ...int) predicate.OrgRoleUser
- func OrgRoleIDLT(v int) predicate.OrgRoleUser
- func OrgRoleIDLTE(v int) predicate.OrgRoleUser
- func OrgRoleIDNEQ(v int) predicate.OrgRoleUser
- func OrgRoleIDNotIn(vs ...int) predicate.OrgRoleUser
- func OrgUserID(v int) predicate.OrgRoleUser
- func OrgUserIDEQ(v int) predicate.OrgRoleUser
- func OrgUserIDGT(v int) predicate.OrgRoleUser
- func OrgUserIDGTE(v int) predicate.OrgRoleUser
- func OrgUserIDIn(vs ...int) predicate.OrgRoleUser
- func OrgUserIDLT(v int) predicate.OrgRoleUser
- func OrgUserIDLTE(v int) predicate.OrgRoleUser
- func OrgUserIDNEQ(v int) predicate.OrgRoleUser
- func OrgUserIDNotIn(vs ...int) predicate.OrgRoleUser
- func UserID(v int) predicate.OrgRoleUser
- func UserIDEQ(v int) predicate.OrgRoleUser
- func UserIDGT(v int) predicate.OrgRoleUser
- func UserIDGTE(v int) predicate.OrgRoleUser
- func UserIDIn(vs ...int) predicate.OrgRoleUser
- func UserIDLT(v int) predicate.OrgRoleUser
- func UserIDLTE(v int) predicate.OrgRoleUser
- func UserIDNEQ(v int) predicate.OrgRoleUser
- func UserIDNotIn(vs ...int) predicate.OrgRoleUser
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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" // 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" // 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" // Table holds the table name of the orgroleuser in the database. Table = "org_role_user" )
Variables ¶
var Columns = []string{ FieldID, FieldOrgRoleID, FieldOrgUserID, FieldOrgID, FieldUserID, }
Columns holds all SQL columns for orgroleuser fields.
var (
Hooks [1]ent.Hook
)
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/msgcenter/ent/runtime"
Functions ¶
func And ¶
func And(predicates ...predicate.OrgRoleUser) predicate.OrgRoleUser
And groups predicates with the AND operator between them.
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 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 ¶
func Not(p predicate.OrgRoleUser) predicate.OrgRoleUser
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 OrgIDGT ¶
func OrgIDGT(v int) predicate.OrgRoleUser
OrgIDGT applies the GT predicate on the "org_id" field.
func OrgIDGTE ¶
func OrgIDGTE(v int) predicate.OrgRoleUser
OrgIDGTE applies the GTE 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 OrgIDLT ¶
func OrgIDLT(v int) predicate.OrgRoleUser
OrgIDLT applies the LT predicate on the "org_id" field.
func OrgIDLTE ¶
func OrgIDLTE(v int) predicate.OrgRoleUser
OrgIDLTE applies the LTE 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 OrgRoleIDGT ¶
func OrgRoleIDGT(v int) predicate.OrgRoleUser
OrgRoleIDGT applies the GT predicate on the "org_role_id" field.
func OrgRoleIDGTE ¶
func OrgRoleIDGTE(v int) predicate.OrgRoleUser
OrgRoleIDGTE applies the GTE 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 OrgRoleIDLT ¶
func OrgRoleIDLT(v int) predicate.OrgRoleUser
OrgRoleIDLT applies the LT predicate on the "org_role_id" field.
func OrgRoleIDLTE ¶
func OrgRoleIDLTE(v int) predicate.OrgRoleUser
OrgRoleIDLTE applies the LTE 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 OrgUserIDGT ¶
func OrgUserIDGT(v int) predicate.OrgRoleUser
OrgUserIDGT applies the GT predicate on the "org_user_id" field.
func OrgUserIDGTE ¶
func OrgUserIDGTE(v int) predicate.OrgRoleUser
OrgUserIDGTE applies the GTE 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 OrgUserIDLT ¶
func OrgUserIDLT(v int) predicate.OrgRoleUser
OrgUserIDLT applies the LT predicate on the "org_user_id" field.
func OrgUserIDLTE ¶
func OrgUserIDLTE(v int) predicate.OrgRoleUser
OrgUserIDLTE applies the LTE 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 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 UserIDGT ¶
func UserIDGT(v int) predicate.OrgRoleUser
UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGTE ¶
func UserIDGTE(v int) predicate.OrgRoleUser
UserIDGTE applies the GTE 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 UserIDLT ¶
func UserIDLT(v int) predicate.OrgRoleUser
UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLTE ¶
func UserIDLTE(v int) predicate.OrgRoleUser
UserIDLTE applies the LTE 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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the OrgRoleUser queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOrgID ¶
func ByOrgID(opts ...sql.OrderTermOption) OrderOption
ByOrgID orders the results by the org_id field.
func ByOrgRoleID ¶
func ByOrgRoleID(opts ...sql.OrderTermOption) OrderOption
ByOrgRoleID orders the results by the org_role_id field.
func ByOrgUserID ¶
func ByOrgUserID(opts ...sql.OrderTermOption) OrderOption
ByOrgUserID orders the results by the org_user_id field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.