Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OrgMembership) predicate.OrgMembership
- func CreatedAt(v time.Time) predicate.OrgMembership
- func CreatedAtEQ(v time.Time) predicate.OrgMembership
- func CreatedAtGT(v time.Time) predicate.OrgMembership
- func CreatedAtGTE(v time.Time) predicate.OrgMembership
- func CreatedAtIn(vs ...time.Time) predicate.OrgMembership
- func CreatedAtIsNil() predicate.OrgMembership
- func CreatedAtLT(v time.Time) predicate.OrgMembership
- func CreatedAtLTE(v time.Time) predicate.OrgMembership
- func CreatedAtNEQ(v time.Time) predicate.OrgMembership
- func CreatedAtNotIn(vs ...time.Time) predicate.OrgMembership
- func CreatedAtNotNil() predicate.OrgMembership
- func CreatedBy(v string) predicate.OrgMembership
- func CreatedByContains(v string) predicate.OrgMembership
- func CreatedByContainsFold(v string) predicate.OrgMembership
- func CreatedByEQ(v string) predicate.OrgMembership
- func CreatedByEqualFold(v string) predicate.OrgMembership
- func CreatedByGT(v string) predicate.OrgMembership
- func CreatedByGTE(v string) predicate.OrgMembership
- func CreatedByHasPrefix(v string) predicate.OrgMembership
- func CreatedByHasSuffix(v string) predicate.OrgMembership
- func CreatedByIn(vs ...string) predicate.OrgMembership
- func CreatedByIsNil() predicate.OrgMembership
- func CreatedByLT(v string) predicate.OrgMembership
- func CreatedByLTE(v string) predicate.OrgMembership
- func CreatedByNEQ(v string) predicate.OrgMembership
- func CreatedByNotIn(vs ...string) predicate.OrgMembership
- func CreatedByNotNil() predicate.OrgMembership
- func DeletedAt(v time.Time) predicate.OrgMembership
- func DeletedAtEQ(v time.Time) predicate.OrgMembership
- func DeletedAtGT(v time.Time) predicate.OrgMembership
- func DeletedAtGTE(v time.Time) predicate.OrgMembership
- func DeletedAtIn(vs ...time.Time) predicate.OrgMembership
- func DeletedAtIsNil() predicate.OrgMembership
- func DeletedAtLT(v time.Time) predicate.OrgMembership
- func DeletedAtLTE(v time.Time) predicate.OrgMembership
- func DeletedAtNEQ(v time.Time) predicate.OrgMembership
- func DeletedAtNotIn(vs ...time.Time) predicate.OrgMembership
- func DeletedAtNotNil() predicate.OrgMembership
- func DeletedBy(v string) predicate.OrgMembership
- func DeletedByContains(v string) predicate.OrgMembership
- func DeletedByContainsFold(v string) predicate.OrgMembership
- func DeletedByEQ(v string) predicate.OrgMembership
- func DeletedByEqualFold(v string) predicate.OrgMembership
- func DeletedByGT(v string) predicate.OrgMembership
- func DeletedByGTE(v string) predicate.OrgMembership
- func DeletedByHasPrefix(v string) predicate.OrgMembership
- func DeletedByHasSuffix(v string) predicate.OrgMembership
- func DeletedByIn(vs ...string) predicate.OrgMembership
- func DeletedByIsNil() predicate.OrgMembership
- func DeletedByLT(v string) predicate.OrgMembership
- func DeletedByLTE(v string) predicate.OrgMembership
- func DeletedByNEQ(v string) predicate.OrgMembership
- func DeletedByNotIn(vs ...string) predicate.OrgMembership
- func DeletedByNotNil() predicate.OrgMembership
- func HasEvents() predicate.OrgMembership
- func HasEventsWith(preds ...predicate.Event) predicate.OrgMembership
- func HasOrganization() predicate.OrgMembership
- func HasOrganizationWith(preds ...predicate.Organization) predicate.OrgMembership
- func HasUser() predicate.OrgMembership
- func HasUserWith(preds ...predicate.User) predicate.OrgMembership
- func ID(id string) predicate.OrgMembership
- func IDContainsFold(id string) predicate.OrgMembership
- func IDEQ(id string) predicate.OrgMembership
- func IDEqualFold(id string) predicate.OrgMembership
- func IDGT(id string) predicate.OrgMembership
- func IDGTE(id string) predicate.OrgMembership
- func IDIn(ids ...string) predicate.OrgMembership
- func IDLT(id string) predicate.OrgMembership
- func IDLTE(id string) predicate.OrgMembership
- func IDNEQ(id string) predicate.OrgMembership
- func IDNotIn(ids ...string) predicate.OrgMembership
- func MappingID(v string) predicate.OrgMembership
- func MappingIDContains(v string) predicate.OrgMembership
- func MappingIDContainsFold(v string) predicate.OrgMembership
- func MappingIDEQ(v string) predicate.OrgMembership
- func MappingIDEqualFold(v string) predicate.OrgMembership
- func MappingIDGT(v string) predicate.OrgMembership
- func MappingIDGTE(v string) predicate.OrgMembership
- func MappingIDHasPrefix(v string) predicate.OrgMembership
- func MappingIDHasSuffix(v string) predicate.OrgMembership
- func MappingIDIn(vs ...string) predicate.OrgMembership
- func MappingIDLT(v string) predicate.OrgMembership
- func MappingIDLTE(v string) predicate.OrgMembership
- func MappingIDNEQ(v string) predicate.OrgMembership
- func MappingIDNotIn(vs ...string) predicate.OrgMembership
- func Not(p predicate.OrgMembership) predicate.OrgMembership
- func Or(predicates ...predicate.OrgMembership) predicate.OrgMembership
- func OrganizationID(v string) predicate.OrgMembership
- func OrganizationIDContains(v string) predicate.OrgMembership
- func OrganizationIDContainsFold(v string) predicate.OrgMembership
- func OrganizationIDEQ(v string) predicate.OrgMembership
- func OrganizationIDEqualFold(v string) predicate.OrgMembership
- func OrganizationIDGT(v string) predicate.OrgMembership
- func OrganizationIDGTE(v string) predicate.OrgMembership
- func OrganizationIDHasPrefix(v string) predicate.OrgMembership
- func OrganizationIDHasSuffix(v string) predicate.OrgMembership
- func OrganizationIDIn(vs ...string) predicate.OrgMembership
- func OrganizationIDLT(v string) predicate.OrgMembership
- func OrganizationIDLTE(v string) predicate.OrgMembership
- func OrganizationIDNEQ(v string) predicate.OrgMembership
- func OrganizationIDNotIn(vs ...string) predicate.OrgMembership
- func RoleEQ(v enums.Role) predicate.OrgMembership
- func RoleIn(vs ...enums.Role) predicate.OrgMembership
- func RoleNEQ(v enums.Role) predicate.OrgMembership
- func RoleNotIn(vs ...enums.Role) predicate.OrgMembership
- func RoleValidator(r enums.Role) error
- func UpdatedAt(v time.Time) predicate.OrgMembership
- func UpdatedAtEQ(v time.Time) predicate.OrgMembership
- func UpdatedAtGT(v time.Time) predicate.OrgMembership
- func UpdatedAtGTE(v time.Time) predicate.OrgMembership
- func UpdatedAtIn(vs ...time.Time) predicate.OrgMembership
- func UpdatedAtIsNil() predicate.OrgMembership
- func UpdatedAtLT(v time.Time) predicate.OrgMembership
- func UpdatedAtLTE(v time.Time) predicate.OrgMembership
- func UpdatedAtNEQ(v time.Time) predicate.OrgMembership
- func UpdatedAtNotIn(vs ...time.Time) predicate.OrgMembership
- func UpdatedAtNotNil() predicate.OrgMembership
- func UpdatedBy(v string) predicate.OrgMembership
- func UpdatedByContains(v string) predicate.OrgMembership
- func UpdatedByContainsFold(v string) predicate.OrgMembership
- func UpdatedByEQ(v string) predicate.OrgMembership
- func UpdatedByEqualFold(v string) predicate.OrgMembership
- func UpdatedByGT(v string) predicate.OrgMembership
- func UpdatedByGTE(v string) predicate.OrgMembership
- func UpdatedByHasPrefix(v string) predicate.OrgMembership
- func UpdatedByHasSuffix(v string) predicate.OrgMembership
- func UpdatedByIn(vs ...string) predicate.OrgMembership
- func UpdatedByIsNil() predicate.OrgMembership
- func UpdatedByLT(v string) predicate.OrgMembership
- func UpdatedByLTE(v string) predicate.OrgMembership
- func UpdatedByNEQ(v string) predicate.OrgMembership
- func UpdatedByNotIn(vs ...string) predicate.OrgMembership
- func UpdatedByNotNil() predicate.OrgMembership
- func UserID(v string) predicate.OrgMembership
- func UserIDContains(v string) predicate.OrgMembership
- func UserIDContainsFold(v string) predicate.OrgMembership
- func UserIDEQ(v string) predicate.OrgMembership
- func UserIDEqualFold(v string) predicate.OrgMembership
- func UserIDGT(v string) predicate.OrgMembership
- func UserIDGTE(v string) predicate.OrgMembership
- func UserIDHasPrefix(v string) predicate.OrgMembership
- func UserIDHasSuffix(v string) predicate.OrgMembership
- func UserIDIn(vs ...string) predicate.OrgMembership
- func UserIDLT(v string) predicate.OrgMembership
- func UserIDLTE(v string) predicate.OrgMembership
- func UserIDNEQ(v string) predicate.OrgMembership
- func UserIDNotIn(vs ...string) predicate.OrgMembership
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEventsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMappingID(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByRole(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 orgmembership type in the database. Label = "org_membership" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldMappingID holds the string denoting the mapping_id field in the database. FieldMappingID = "mapping_id" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldDeletedBy holds the string denoting the deleted_by field in the database. FieldDeletedBy = "deleted_by" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldOrganizationID holds the string denoting the organization_id field in the database. FieldOrganizationID = "organization_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // EdgeOrganization holds the string denoting the organization edge name in mutations. EdgeOrganization = "organization" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeEvents holds the string denoting the events edge name in mutations. EdgeEvents = "events" // Table holds the table name of the orgmembership in the database. Table = "org_memberships" // OrganizationTable is the table that holds the organization relation/edge. OrganizationTable = "org_memberships" // OrganizationInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OrganizationInverseTable = "organizations" // OrganizationColumn is the table column denoting the organization relation/edge. OrganizationColumn = "organization_id" // UserTable is the table that holds the user relation/edge. UserTable = "org_memberships" // 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 = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" // EventsTable is the table that holds the events relation/edge. The primary key declared below. EventsTable = "org_membership_events" // EventsInverseTable is the table name for the Event entity. // It exists in this package in order to avoid circular dependency with the "event" package. EventsInverseTable = "events" )
const DefaultRole enums.Role = "MEMBER"
Variables ¶
var ( Hooks [4]ent.Hook Interceptors [2]ent.Interceptor Policy ent.Policy // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultMappingID holds the default value on creation for the "mapping_id" field. DefaultMappingID func() string // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
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/datumforge/datum/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldMappingID, FieldDeletedAt, FieldDeletedBy, FieldRole, FieldOrganizationID, FieldUserID, }
Columns holds all SQL columns for orgmembership fields.
var ( // EventsPrimaryKey and EventsColumn2 are the table columns denoting the // primary key for the events relation (M2M). EventsPrimaryKey = []string{"org_membership_id", "event_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.OrgMembership) predicate.OrgMembership
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.OrgMembership
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.OrgMembership
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.OrgMembership
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.OrgMembership
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.OrgMembership
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶ added in v0.3.4
func CreatedAtIsNil() predicate.OrgMembership
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.OrgMembership
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.OrgMembership
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.OrgMembership
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.OrgMembership
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶ added in v0.3.4
func CreatedAtNotNil() predicate.OrgMembership
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v string) predicate.OrgMembership
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
func CreatedByContains(v string) predicate.OrgMembership
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
func CreatedByContainsFold(v string) predicate.OrgMembership
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
func CreatedByEQ(v string) predicate.OrgMembership
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
func CreatedByEqualFold(v string) predicate.OrgMembership
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v string) predicate.OrgMembership
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v string) predicate.OrgMembership
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
func CreatedByHasPrefix(v string) predicate.OrgMembership
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
func CreatedByHasSuffix(v string) predicate.OrgMembership
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...string) predicate.OrgMembership
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.OrgMembership
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v string) predicate.OrgMembership
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v string) predicate.OrgMembership
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v string) predicate.OrgMembership
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...string) predicate.OrgMembership
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.OrgMembership
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶ added in v0.2.5
func DeletedAt(v time.Time) predicate.OrgMembership
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶ added in v0.2.5
func DeletedAtEQ(v time.Time) predicate.OrgMembership
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶ added in v0.2.5
func DeletedAtGT(v time.Time) predicate.OrgMembership
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶ added in v0.2.5
func DeletedAtGTE(v time.Time) predicate.OrgMembership
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶ added in v0.2.5
func DeletedAtIn(vs ...time.Time) predicate.OrgMembership
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶ added in v0.2.5
func DeletedAtIsNil() predicate.OrgMembership
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶ added in v0.2.5
func DeletedAtLT(v time.Time) predicate.OrgMembership
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶ added in v0.2.5
func DeletedAtLTE(v time.Time) predicate.OrgMembership
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶ added in v0.2.5
func DeletedAtNEQ(v time.Time) predicate.OrgMembership
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶ added in v0.2.5
func DeletedAtNotIn(vs ...time.Time) predicate.OrgMembership
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶ added in v0.2.5
func DeletedAtNotNil() predicate.OrgMembership
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶ added in v0.2.5
func DeletedBy(v string) predicate.OrgMembership
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶ added in v0.2.5
func DeletedByContains(v string) predicate.OrgMembership
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶ added in v0.2.5
func DeletedByContainsFold(v string) predicate.OrgMembership
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶ added in v0.2.5
func DeletedByEQ(v string) predicate.OrgMembership
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶ added in v0.2.5
func DeletedByEqualFold(v string) predicate.OrgMembership
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶ added in v0.2.5
func DeletedByGT(v string) predicate.OrgMembership
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶ added in v0.2.5
func DeletedByGTE(v string) predicate.OrgMembership
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶ added in v0.2.5
func DeletedByHasPrefix(v string) predicate.OrgMembership
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶ added in v0.2.5
func DeletedByHasSuffix(v string) predicate.OrgMembership
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶ added in v0.2.5
func DeletedByIn(vs ...string) predicate.OrgMembership
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶ added in v0.2.5
func DeletedByIsNil() predicate.OrgMembership
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶ added in v0.2.5
func DeletedByLT(v string) predicate.OrgMembership
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶ added in v0.2.5
func DeletedByLTE(v string) predicate.OrgMembership
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶ added in v0.2.5
func DeletedByNEQ(v string) predicate.OrgMembership
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶ added in v0.2.5
func DeletedByNotIn(vs ...string) predicate.OrgMembership
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶ added in v0.2.5
func DeletedByNotNil() predicate.OrgMembership
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func HasEvents ¶ added in v0.5.0
func HasEvents() predicate.OrgMembership
HasEvents applies the HasEdge predicate on the "events" edge.
func HasEventsWith ¶ added in v0.5.0
func HasEventsWith(preds ...predicate.Event) predicate.OrgMembership
HasEventsWith applies the HasEdge predicate on the "events" edge with a given conditions (other predicates).
func HasOrganization ¶ added in v0.2.7
func HasOrganization() predicate.OrgMembership
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶ added in v0.2.7
func HasOrganizationWith(preds ...predicate.Organization) predicate.OrgMembership
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.OrgMembership
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.OrgMembership
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDContainsFold ¶
func IDContainsFold(id string) predicate.OrgMembership
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.OrgMembership
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.OrgMembership
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.OrgMembership
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.OrgMembership
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.OrgMembership
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.OrgMembership
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.OrgMembership
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.OrgMembership
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.OrgMembership
IDNotIn applies the NotIn predicate on the ID field.
func MappingID ¶ added in v0.5.0
func MappingID(v string) predicate.OrgMembership
MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.
func MappingIDContains ¶ added in v0.5.0
func MappingIDContains(v string) predicate.OrgMembership
MappingIDContains applies the Contains predicate on the "mapping_id" field.
func MappingIDContainsFold ¶ added in v0.5.0
func MappingIDContainsFold(v string) predicate.OrgMembership
MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.
func MappingIDEQ ¶ added in v0.5.0
func MappingIDEQ(v string) predicate.OrgMembership
MappingIDEQ applies the EQ predicate on the "mapping_id" field.
func MappingIDEqualFold ¶ added in v0.5.0
func MappingIDEqualFold(v string) predicate.OrgMembership
MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.
func MappingIDGT ¶ added in v0.5.0
func MappingIDGT(v string) predicate.OrgMembership
MappingIDGT applies the GT predicate on the "mapping_id" field.
func MappingIDGTE ¶ added in v0.5.0
func MappingIDGTE(v string) predicate.OrgMembership
MappingIDGTE applies the GTE predicate on the "mapping_id" field.
func MappingIDHasPrefix ¶ added in v0.5.0
func MappingIDHasPrefix(v string) predicate.OrgMembership
MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.
func MappingIDHasSuffix ¶ added in v0.5.0
func MappingIDHasSuffix(v string) predicate.OrgMembership
MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.
func MappingIDIn ¶ added in v0.5.0
func MappingIDIn(vs ...string) predicate.OrgMembership
MappingIDIn applies the In predicate on the "mapping_id" field.
func MappingIDLT ¶ added in v0.5.0
func MappingIDLT(v string) predicate.OrgMembership
MappingIDLT applies the LT predicate on the "mapping_id" field.
func MappingIDLTE ¶ added in v0.5.0
func MappingIDLTE(v string) predicate.OrgMembership
MappingIDLTE applies the LTE predicate on the "mapping_id" field.
func MappingIDNEQ ¶ added in v0.5.0
func MappingIDNEQ(v string) predicate.OrgMembership
MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.
func MappingIDNotIn ¶ added in v0.5.0
func MappingIDNotIn(vs ...string) predicate.OrgMembership
MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.
func Not ¶
func Not(p predicate.OrgMembership) predicate.OrgMembership
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.OrgMembership) predicate.OrgMembership
Or groups predicates with the OR operator between them.
func OrganizationID ¶ added in v0.2.7
func OrganizationID(v string) predicate.OrgMembership
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDContains ¶ added in v0.2.7
func OrganizationIDContains(v string) predicate.OrgMembership
OrganizationIDContains applies the Contains predicate on the "organization_id" field.
func OrganizationIDContainsFold ¶ added in v0.2.7
func OrganizationIDContainsFold(v string) predicate.OrgMembership
OrganizationIDContainsFold applies the ContainsFold predicate on the "organization_id" field.
func OrganizationIDEQ ¶ added in v0.2.7
func OrganizationIDEQ(v string) predicate.OrgMembership
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDEqualFold ¶ added in v0.2.7
func OrganizationIDEqualFold(v string) predicate.OrgMembership
OrganizationIDEqualFold applies the EqualFold predicate on the "organization_id" field.
func OrganizationIDGT ¶ added in v0.2.7
func OrganizationIDGT(v string) predicate.OrgMembership
OrganizationIDGT applies the GT predicate on the "organization_id" field.
func OrganizationIDGTE ¶ added in v0.2.7
func OrganizationIDGTE(v string) predicate.OrgMembership
OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
func OrganizationIDHasPrefix ¶ added in v0.2.7
func OrganizationIDHasPrefix(v string) predicate.OrgMembership
OrganizationIDHasPrefix applies the HasPrefix predicate on the "organization_id" field.
func OrganizationIDHasSuffix ¶ added in v0.2.7
func OrganizationIDHasSuffix(v string) predicate.OrgMembership
OrganizationIDHasSuffix applies the HasSuffix predicate on the "organization_id" field.
func OrganizationIDIn ¶ added in v0.2.7
func OrganizationIDIn(vs ...string) predicate.OrgMembership
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDLT ¶ added in v0.2.7
func OrganizationIDLT(v string) predicate.OrgMembership
OrganizationIDLT applies the LT predicate on the "organization_id" field.
func OrganizationIDLTE ¶ added in v0.2.7
func OrganizationIDLTE(v string) predicate.OrgMembership
OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
func OrganizationIDNEQ ¶ added in v0.2.7
func OrganizationIDNEQ(v string) predicate.OrgMembership
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶ added in v0.2.7
func OrganizationIDNotIn(vs ...string) predicate.OrgMembership
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func RoleEQ ¶
func RoleEQ(v enums.Role) predicate.OrgMembership
RoleEQ applies the EQ predicate on the "role" field.
func RoleIn ¶
func RoleIn(vs ...enums.Role) predicate.OrgMembership
RoleIn applies the In predicate on the "role" field.
func RoleNEQ ¶
func RoleNEQ(v enums.Role) predicate.OrgMembership
RoleNEQ applies the NEQ predicate on the "role" field.
func RoleNotIn ¶
func RoleNotIn(vs ...enums.Role) predicate.OrgMembership
RoleNotIn applies the NotIn predicate on the "role" field.
func RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.OrgMembership
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.OrgMembership
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.OrgMembership
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.OrgMembership
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.OrgMembership
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶ added in v0.3.4
func UpdatedAtIsNil() predicate.OrgMembership
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.OrgMembership
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.OrgMembership
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.OrgMembership
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.OrgMembership
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶ added in v0.3.4
func UpdatedAtNotNil() predicate.OrgMembership
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v string) predicate.OrgMembership
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
func UpdatedByContains(v string) predicate.OrgMembership
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
func UpdatedByContainsFold(v string) predicate.OrgMembership
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
func UpdatedByEQ(v string) predicate.OrgMembership
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
func UpdatedByEqualFold(v string) predicate.OrgMembership
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v string) predicate.OrgMembership
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v string) predicate.OrgMembership
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
func UpdatedByHasPrefix(v string) predicate.OrgMembership
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
func UpdatedByHasSuffix(v string) predicate.OrgMembership
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...string) predicate.OrgMembership
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.OrgMembership
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v string) predicate.OrgMembership
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v string) predicate.OrgMembership
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v string) predicate.OrgMembership
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...string) predicate.OrgMembership
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.OrgMembership
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func UserID ¶
func UserID(v string) predicate.OrgMembership
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
func UserIDContains(v string) predicate.OrgMembership
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
func UserIDContainsFold(v string) predicate.OrgMembership
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEQ ¶
func UserIDEQ(v string) predicate.OrgMembership
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDEqualFold ¶
func UserIDEqualFold(v string) predicate.OrgMembership
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDGT ¶
func UserIDGT(v string) predicate.OrgMembership
UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGTE ¶
func UserIDGTE(v string) predicate.OrgMembership
UserIDGTE applies the GTE predicate on the "user_id" field.
func UserIDHasPrefix ¶
func UserIDHasPrefix(v string) predicate.OrgMembership
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
func UserIDHasSuffix(v string) predicate.OrgMembership
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...string) predicate.OrgMembership
UserIDIn applies the In predicate on the "user_id" field.
func UserIDLT ¶
func UserIDLT(v string) predicate.OrgMembership
UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLTE ¶
func UserIDLTE(v string) predicate.OrgMembership
UserIDLTE applies the LTE predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v string) predicate.OrgMembership
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...string) predicate.OrgMembership
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 OrgMembership 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 ByDeletedAt ¶ added in v0.2.5
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDeletedBy ¶ added in v0.2.5
func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
ByDeletedBy orders the results by the deleted_by field.
func ByEvents ¶ added in v0.5.0
func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEvents orders the results by events terms.
func ByEventsCount ¶ added in v0.5.0
func ByEventsCount(opts ...sql.OrderTermOption) OrderOption
ByEventsCount orders the results by events count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMappingID ¶ added in v0.5.0
func ByMappingID(opts ...sql.OrderTermOption) OrderOption
ByMappingID orders the results by the mapping_id field.
func ByOrganizationField ¶ added in v0.2.7
func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrganizationField orders the results by organization field.
func ByOrganizationID ¶ added in v0.2.7
func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
ByOrganizationID orders the results by the organization_id field.
func ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
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.