Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OrgUser) predicate.OrgUser
- func CreatedAt(v time.Time) predicate.OrgUser
- func CreatedAtEQ(v time.Time) predicate.OrgUser
- func CreatedAtGT(v time.Time) predicate.OrgUser
- func CreatedAtGTE(v time.Time) predicate.OrgUser
- func CreatedAtIn(vs ...time.Time) predicate.OrgUser
- func CreatedAtLT(v time.Time) predicate.OrgUser
- func CreatedAtLTE(v time.Time) predicate.OrgUser
- func CreatedAtNEQ(v time.Time) predicate.OrgUser
- func CreatedAtNotIn(vs ...time.Time) predicate.OrgUser
- func CreatedBy(v int) predicate.OrgUser
- func CreatedByEQ(v int) predicate.OrgUser
- func CreatedByGT(v int) predicate.OrgUser
- func CreatedByGTE(v int) predicate.OrgUser
- func CreatedByIn(vs ...int) predicate.OrgUser
- func CreatedByLT(v int) predicate.OrgUser
- func CreatedByLTE(v int) predicate.OrgUser
- func CreatedByNEQ(v int) predicate.OrgUser
- func CreatedByNotIn(vs ...int) 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 HasOrg() 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 HasOrgWith(preds ...predicate.Org) predicate.OrgUser
- func HasUser() predicate.OrgUser
- func HasUserWith(preds ...predicate.User) 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 OrgIDIn(vs ...int) predicate.OrgUser
- func OrgIDNEQ(v int) predicate.OrgUser
- func OrgIDNotIn(vs ...int) predicate.OrgUser
- func UpdatedAt(v time.Time) predicate.OrgUser
- func UpdatedAtEQ(v time.Time) predicate.OrgUser
- func UpdatedAtGT(v time.Time) predicate.OrgUser
- func UpdatedAtGTE(v time.Time) predicate.OrgUser
- func UpdatedAtIn(vs ...time.Time) predicate.OrgUser
- func UpdatedAtIsNil() predicate.OrgUser
- func UpdatedAtLT(v time.Time) predicate.OrgUser
- func UpdatedAtLTE(v time.Time) predicate.OrgUser
- func UpdatedAtNEQ(v time.Time) predicate.OrgUser
- func UpdatedAtNotIn(vs ...time.Time) predicate.OrgUser
- func UpdatedAtNotNil() predicate.OrgUser
- func UpdatedBy(v int) predicate.OrgUser
- func UpdatedByEQ(v int) predicate.OrgUser
- func UpdatedByGT(v int) predicate.OrgUser
- func UpdatedByGTE(v int) predicate.OrgUser
- func UpdatedByIn(vs ...int) predicate.OrgUser
- func UpdatedByIsNil() predicate.OrgUser
- func UpdatedByLT(v int) predicate.OrgUser
- func UpdatedByLTE(v int) predicate.OrgUser
- func UpdatedByNEQ(v int) predicate.OrgUser
- func UpdatedByNotIn(vs ...int) predicate.OrgUser
- func UpdatedByNotNil() predicate.OrgUser
- func UserID(v int) predicate.OrgUser
- func UserIDEQ(v int) predicate.OrgUser
- func UserIDIn(vs ...int) predicate.OrgUser
- func UserIDNEQ(v int) predicate.OrgUser
- func UserIDNotIn(vs ...int) predicate.OrgUser
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByJoinedAt(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 ByOrgRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOrgRolesCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, 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" // 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" // 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" // EdgeOrg holds the string denoting the org edge name in mutations. EdgeOrg = "org" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // 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" // OrgTable is the table that holds the org relation/edge. OrgTable = "org_user" // 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" // UserTable is the table that holds the user relation/edge. UserTable = "org_user" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "user" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" // 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 ( Hooks [2]ent.Hook // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultJoinedAt holds the default value on creation for the "joined_at" field. DefaultJoinedAt 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, FieldUserID, FieldJoinedAt, FieldDisplayName, }
Columns holds all SQL columns for orguser fields.
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 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 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 HasOrgWith ¶
HasOrgWith applies the HasEdge predicate on the "org" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" 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 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 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 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 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 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 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 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.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.