Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OrgUser) predicate.OrgUser
- func DisplayName(v string) predicate.OrgUser
- func DisplayNameContains(v string) predicate.OrgUser
- func DisplayNameContainsFold(v string) predicate.OrgUser
- func DisplayNameEQ(v string) predicate.OrgUser
- func DisplayNameEqualFold(v string) predicate.OrgUser
- func DisplayNameGT(v string) predicate.OrgUser
- func DisplayNameGTE(v string) predicate.OrgUser
- func DisplayNameHasPrefix(v string) predicate.OrgUser
- func DisplayNameHasSuffix(v string) predicate.OrgUser
- func DisplayNameIn(vs ...string) predicate.OrgUser
- func DisplayNameLT(v string) predicate.OrgUser
- func DisplayNameLTE(v string) predicate.OrgUser
- func DisplayNameNEQ(v string) predicate.OrgUser
- func DisplayNameNotIn(vs ...string) predicate.OrgUser
- func HasOrgRoleUser() predicate.OrgUser
- func HasOrgRoleUserWith(preds ...predicate.OrgRoleUser) predicate.OrgUser
- func HasOrgRoles() predicate.OrgUser
- func HasOrgRolesWith(preds ...predicate.OrgRole) predicate.OrgUser
- func ID(id int) predicate.OrgUser
- func IDEQ(id int) predicate.OrgUser
- func IDGT(id int) predicate.OrgUser
- func IDGTE(id int) predicate.OrgUser
- func IDIn(ids ...int) predicate.OrgUser
- func IDLT(id int) predicate.OrgUser
- func IDLTE(id int) predicate.OrgUser
- func IDNEQ(id int) predicate.OrgUser
- func IDNotIn(ids ...int) predicate.OrgUser
- func JoinedAt(v time.Time) predicate.OrgUser
- func JoinedAtEQ(v time.Time) predicate.OrgUser
- func JoinedAtGT(v time.Time) predicate.OrgUser
- func JoinedAtGTE(v time.Time) predicate.OrgUser
- func JoinedAtIn(vs ...time.Time) predicate.OrgUser
- func JoinedAtLT(v time.Time) predicate.OrgUser
- func JoinedAtLTE(v time.Time) predicate.OrgUser
- func JoinedAtNEQ(v time.Time) predicate.OrgUser
- func JoinedAtNotIn(vs ...time.Time) predicate.OrgUser
- func Not(p predicate.OrgUser) predicate.OrgUser
- func Or(predicates ...predicate.OrgUser) predicate.OrgUser
- func OrgID(v int) predicate.OrgUser
- func OrgIDEQ(v int) predicate.OrgUser
- func OrgIDGT(v int) predicate.OrgUser
- func OrgIDGTE(v int) predicate.OrgUser
- func OrgIDIn(vs ...int) predicate.OrgUser
- func OrgIDLT(v int) predicate.OrgUser
- func OrgIDLTE(v int) predicate.OrgUser
- func OrgIDNEQ(v int) predicate.OrgUser
- func OrgIDNotIn(vs ...int) predicate.OrgUser
- func UserID(v int) predicate.OrgUser
- func UserIDEQ(v int) predicate.OrgUser
- func UserIDGT(v int) predicate.OrgUser
- func UserIDGTE(v int) predicate.OrgUser
- func UserIDIn(vs ...int) predicate.OrgUser
- func UserIDLT(v int) predicate.OrgUser
- func UserIDLTE(v int) predicate.OrgUser
- func UserIDNEQ(v int) predicate.OrgUser
- func UserIDNotIn(vs ...int) predicate.OrgUser
- func ValidColumn(column string) bool
- type OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByJoinedAt(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 ByOrgRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOrgRolesCount(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldOrgID, FieldUserID, FieldJoinedAt, FieldDisplayName, }
Columns holds all SQL columns for orguser fields.
var ( // DefaultJoinedAt holds the default value on creation for the "joined_at" field. DefaultJoinedAt func() time.Time )
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 DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func HasOrgRoleUser ¶
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 ¶
HasOrgRoles applies the HasEdge predicate on the "org_roles" edge.
func HasOrgRolesWith ¶
HasOrgRolesWith applies the HasEdge predicate on the "org_roles" edge with a given conditions (other predicates).
func JoinedAt ¶
JoinedAt applies equality check predicate on the "joined_at" field. It's identical to JoinedAtEQ.
func JoinedAtEQ ¶
JoinedAtEQ applies the EQ predicate on the "joined_at" field.
func JoinedAtGT ¶
JoinedAtGT applies the GT predicate on the "joined_at" field.
func JoinedAtGTE ¶
JoinedAtGTE applies the GTE predicate on the "joined_at" field.
func JoinedAtIn ¶
JoinedAtIn applies the In predicate on the "joined_at" field.
func JoinedAtLT ¶
JoinedAtLT applies the LT predicate on the "joined_at" field.
func JoinedAtLTE ¶
JoinedAtLTE applies the LTE predicate on the "joined_at" field.
func JoinedAtNEQ ¶
JoinedAtNEQ applies the NEQ predicate on the "joined_at" field.
func JoinedAtNotIn ¶
JoinedAtNotIn applies the NotIn predicate on the "joined_at" field.
func OrgID ¶
OrgID applies equality check predicate on the "org_id" field. It's identical to OrgIDEQ.
func OrgIDNotIn ¶
OrgIDNotIn applies the NotIn predicate on the "org_id" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
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 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.