Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.GroupMembership) predicate.GroupMembership
- func CreatedAt(v time.Time) predicate.GroupMembership
- func CreatedAtEQ(v time.Time) predicate.GroupMembership
- func CreatedAtGT(v time.Time) predicate.GroupMembership
- func CreatedAtGTE(v time.Time) predicate.GroupMembership
- func CreatedAtIn(vs ...time.Time) predicate.GroupMembership
- func CreatedAtIsNil() predicate.GroupMembership
- func CreatedAtLT(v time.Time) predicate.GroupMembership
- func CreatedAtLTE(v time.Time) predicate.GroupMembership
- func CreatedAtNEQ(v time.Time) predicate.GroupMembership
- func CreatedAtNotIn(vs ...time.Time) predicate.GroupMembership
- func CreatedAtNotNil() predicate.GroupMembership
- func CreatedBy(v string) predicate.GroupMembership
- func CreatedByContains(v string) predicate.GroupMembership
- func CreatedByContainsFold(v string) predicate.GroupMembership
- func CreatedByEQ(v string) predicate.GroupMembership
- func CreatedByEqualFold(v string) predicate.GroupMembership
- func CreatedByGT(v string) predicate.GroupMembership
- func CreatedByGTE(v string) predicate.GroupMembership
- func CreatedByHasPrefix(v string) predicate.GroupMembership
- func CreatedByHasSuffix(v string) predicate.GroupMembership
- func CreatedByIn(vs ...string) predicate.GroupMembership
- func CreatedByIsNil() predicate.GroupMembership
- func CreatedByLT(v string) predicate.GroupMembership
- func CreatedByLTE(v string) predicate.GroupMembership
- func CreatedByNEQ(v string) predicate.GroupMembership
- func CreatedByNotIn(vs ...string) predicate.GroupMembership
- func CreatedByNotNil() predicate.GroupMembership
- func DeletedAt(v time.Time) predicate.GroupMembership
- func DeletedAtEQ(v time.Time) predicate.GroupMembership
- func DeletedAtGT(v time.Time) predicate.GroupMembership
- func DeletedAtGTE(v time.Time) predicate.GroupMembership
- func DeletedAtIn(vs ...time.Time) predicate.GroupMembership
- func DeletedAtIsNil() predicate.GroupMembership
- func DeletedAtLT(v time.Time) predicate.GroupMembership
- func DeletedAtLTE(v time.Time) predicate.GroupMembership
- func DeletedAtNEQ(v time.Time) predicate.GroupMembership
- func DeletedAtNotIn(vs ...time.Time) predicate.GroupMembership
- func DeletedAtNotNil() predicate.GroupMembership
- func DeletedBy(v string) predicate.GroupMembership
- func DeletedByContains(v string) predicate.GroupMembership
- func DeletedByContainsFold(v string) predicate.GroupMembership
- func DeletedByEQ(v string) predicate.GroupMembership
- func DeletedByEqualFold(v string) predicate.GroupMembership
- func DeletedByGT(v string) predicate.GroupMembership
- func DeletedByGTE(v string) predicate.GroupMembership
- func DeletedByHasPrefix(v string) predicate.GroupMembership
- func DeletedByHasSuffix(v string) predicate.GroupMembership
- func DeletedByIn(vs ...string) predicate.GroupMembership
- func DeletedByIsNil() predicate.GroupMembership
- func DeletedByLT(v string) predicate.GroupMembership
- func DeletedByLTE(v string) predicate.GroupMembership
- func DeletedByNEQ(v string) predicate.GroupMembership
- func DeletedByNotIn(vs ...string) predicate.GroupMembership
- func DeletedByNotNil() predicate.GroupMembership
- func GroupID(v string) predicate.GroupMembership
- func GroupIDContains(v string) predicate.GroupMembership
- func GroupIDContainsFold(v string) predicate.GroupMembership
- func GroupIDEQ(v string) predicate.GroupMembership
- func GroupIDEqualFold(v string) predicate.GroupMembership
- func GroupIDGT(v string) predicate.GroupMembership
- func GroupIDGTE(v string) predicate.GroupMembership
- func GroupIDHasPrefix(v string) predicate.GroupMembership
- func GroupIDHasSuffix(v string) predicate.GroupMembership
- func GroupIDIn(vs ...string) predicate.GroupMembership
- func GroupIDLT(v string) predicate.GroupMembership
- func GroupIDLTE(v string) predicate.GroupMembership
- func GroupIDNEQ(v string) predicate.GroupMembership
- func GroupIDNotIn(vs ...string) predicate.GroupMembership
- func HasEvents() predicate.GroupMembership
- func HasEventsWith(preds ...predicate.Event) predicate.GroupMembership
- func HasGroup() predicate.GroupMembership
- func HasGroupWith(preds ...predicate.Group) predicate.GroupMembership
- func HasUser() predicate.GroupMembership
- func HasUserWith(preds ...predicate.User) predicate.GroupMembership
- func ID(id string) predicate.GroupMembership
- func IDContainsFold(id string) predicate.GroupMembership
- func IDEQ(id string) predicate.GroupMembership
- func IDEqualFold(id string) predicate.GroupMembership
- func IDGT(id string) predicate.GroupMembership
- func IDGTE(id string) predicate.GroupMembership
- func IDIn(ids ...string) predicate.GroupMembership
- func IDLT(id string) predicate.GroupMembership
- func IDLTE(id string) predicate.GroupMembership
- func IDNEQ(id string) predicate.GroupMembership
- func IDNotIn(ids ...string) predicate.GroupMembership
- func Not(p predicate.GroupMembership) predicate.GroupMembership
- func Or(predicates ...predicate.GroupMembership) predicate.GroupMembership
- func RoleEQ(v enums.Role) predicate.GroupMembership
- func RoleIn(vs ...enums.Role) predicate.GroupMembership
- func RoleNEQ(v enums.Role) predicate.GroupMembership
- func RoleNotIn(vs ...enums.Role) predicate.GroupMembership
- func RoleValidator(r enums.Role) error
- func UpdatedAt(v time.Time) predicate.GroupMembership
- func UpdatedAtEQ(v time.Time) predicate.GroupMembership
- func UpdatedAtGT(v time.Time) predicate.GroupMembership
- func UpdatedAtGTE(v time.Time) predicate.GroupMembership
- func UpdatedAtIn(vs ...time.Time) predicate.GroupMembership
- func UpdatedAtIsNil() predicate.GroupMembership
- func UpdatedAtLT(v time.Time) predicate.GroupMembership
- func UpdatedAtLTE(v time.Time) predicate.GroupMembership
- func UpdatedAtNEQ(v time.Time) predicate.GroupMembership
- func UpdatedAtNotIn(vs ...time.Time) predicate.GroupMembership
- func UpdatedAtNotNil() predicate.GroupMembership
- func UpdatedBy(v string) predicate.GroupMembership
- func UpdatedByContains(v string) predicate.GroupMembership
- func UpdatedByContainsFold(v string) predicate.GroupMembership
- func UpdatedByEQ(v string) predicate.GroupMembership
- func UpdatedByEqualFold(v string) predicate.GroupMembership
- func UpdatedByGT(v string) predicate.GroupMembership
- func UpdatedByGTE(v string) predicate.GroupMembership
- func UpdatedByHasPrefix(v string) predicate.GroupMembership
- func UpdatedByHasSuffix(v string) predicate.GroupMembership
- func UpdatedByIn(vs ...string) predicate.GroupMembership
- func UpdatedByIsNil() predicate.GroupMembership
- func UpdatedByLT(v string) predicate.GroupMembership
- func UpdatedByLTE(v string) predicate.GroupMembership
- func UpdatedByNEQ(v string) predicate.GroupMembership
- func UpdatedByNotIn(vs ...string) predicate.GroupMembership
- func UpdatedByNotNil() predicate.GroupMembership
- func UserID(v string) predicate.GroupMembership
- func UserIDContains(v string) predicate.GroupMembership
- func UserIDContainsFold(v string) predicate.GroupMembership
- func UserIDEQ(v string) predicate.GroupMembership
- func UserIDEqualFold(v string) predicate.GroupMembership
- func UserIDGT(v string) predicate.GroupMembership
- func UserIDGTE(v string) predicate.GroupMembership
- func UserIDHasPrefix(v string) predicate.GroupMembership
- func UserIDHasSuffix(v string) predicate.GroupMembership
- func UserIDIn(vs ...string) predicate.GroupMembership
- func UserIDLT(v string) predicate.GroupMembership
- func UserIDLTE(v string) predicate.GroupMembership
- func UserIDNEQ(v string) predicate.GroupMembership
- func UserIDNotIn(vs ...string) predicate.GroupMembership
- 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 ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByGroupID(opts ...sql.OrderTermOption) OrderOption
- func ByID(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 groupmembership type in the database. Label = "group_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" // 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" // FieldGroupID holds the string denoting the group_id field in the database. FieldGroupID = "group_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // EdgeGroup holds the string denoting the group edge name in mutations. EdgeGroup = "group" // 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 groupmembership in the database. Table = "group_memberships" // GroupTable is the table that holds the group relation/edge. GroupTable = "group_memberships" // GroupInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupInverseTable = "groups" // GroupColumn is the table column denoting the group relation/edge. GroupColumn = "group_id" // UserTable is the table that holds the user relation/edge. UserTable = "group_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 = "group_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 [1]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 // 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/khulnasoft/go-template/central-server/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldDeletedAt, FieldDeletedBy, FieldRole, FieldGroupID, FieldUserID, }
Columns holds all SQL columns for groupmembership fields.
var ( // EventsPrimaryKey and EventsColumn2 are the table columns denoting the // primary key for the events relation (M2M). EventsPrimaryKey = []string{"group_membership_id", "event_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.GroupMembership) predicate.GroupMembership
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.GroupMembership
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.GroupMembership
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.GroupMembership
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.GroupMembership
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.GroupMembership
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
func CreatedAtIsNil() predicate.GroupMembership
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.GroupMembership
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.GroupMembership
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.GroupMembership
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.GroupMembership
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
func CreatedAtNotNil() predicate.GroupMembership
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v string) predicate.GroupMembership
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
func CreatedByContains(v string) predicate.GroupMembership
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
func CreatedByContainsFold(v string) predicate.GroupMembership
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
func CreatedByEQ(v string) predicate.GroupMembership
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
func CreatedByEqualFold(v string) predicate.GroupMembership
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v string) predicate.GroupMembership
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v string) predicate.GroupMembership
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
func CreatedByHasPrefix(v string) predicate.GroupMembership
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
func CreatedByHasSuffix(v string) predicate.GroupMembership
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...string) predicate.GroupMembership
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.GroupMembership
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v string) predicate.GroupMembership
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v string) predicate.GroupMembership
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v string) predicate.GroupMembership
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...string) predicate.GroupMembership
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.GroupMembership
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.GroupMembership
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.GroupMembership
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.GroupMembership
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.GroupMembership
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.GroupMembership
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.GroupMembership
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.GroupMembership
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.GroupMembership
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.GroupMembership
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.GroupMembership
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.GroupMembership
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
func DeletedBy(v string) predicate.GroupMembership
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
func DeletedByContains(v string) predicate.GroupMembership
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
func DeletedByContainsFold(v string) predicate.GroupMembership
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
func DeletedByEQ(v string) predicate.GroupMembership
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
func DeletedByEqualFold(v string) predicate.GroupMembership
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
func DeletedByGT(v string) predicate.GroupMembership
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
func DeletedByGTE(v string) predicate.GroupMembership
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
func DeletedByHasPrefix(v string) predicate.GroupMembership
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
func DeletedByHasSuffix(v string) predicate.GroupMembership
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
func DeletedByIn(vs ...string) predicate.GroupMembership
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
func DeletedByIsNil() predicate.GroupMembership
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
func DeletedByLT(v string) predicate.GroupMembership
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
func DeletedByLTE(v string) predicate.GroupMembership
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
func DeletedByNEQ(v string) predicate.GroupMembership
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
func DeletedByNotIn(vs ...string) predicate.GroupMembership
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
func DeletedByNotNil() predicate.GroupMembership
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func GroupID ¶
func GroupID(v string) predicate.GroupMembership
GroupID applies equality check predicate on the "group_id" field. It's identical to GroupIDEQ.
func GroupIDContains ¶
func GroupIDContains(v string) predicate.GroupMembership
GroupIDContains applies the Contains predicate on the "group_id" field.
func GroupIDContainsFold ¶
func GroupIDContainsFold(v string) predicate.GroupMembership
GroupIDContainsFold applies the ContainsFold predicate on the "group_id" field.
func GroupIDEQ ¶
func GroupIDEQ(v string) predicate.GroupMembership
GroupIDEQ applies the EQ predicate on the "group_id" field.
func GroupIDEqualFold ¶
func GroupIDEqualFold(v string) predicate.GroupMembership
GroupIDEqualFold applies the EqualFold predicate on the "group_id" field.
func GroupIDGT ¶
func GroupIDGT(v string) predicate.GroupMembership
GroupIDGT applies the GT predicate on the "group_id" field.
func GroupIDGTE ¶
func GroupIDGTE(v string) predicate.GroupMembership
GroupIDGTE applies the GTE predicate on the "group_id" field.
func GroupIDHasPrefix ¶
func GroupIDHasPrefix(v string) predicate.GroupMembership
GroupIDHasPrefix applies the HasPrefix predicate on the "group_id" field.
func GroupIDHasSuffix ¶
func GroupIDHasSuffix(v string) predicate.GroupMembership
GroupIDHasSuffix applies the HasSuffix predicate on the "group_id" field.
func GroupIDIn ¶
func GroupIDIn(vs ...string) predicate.GroupMembership
GroupIDIn applies the In predicate on the "group_id" field.
func GroupIDLT ¶
func GroupIDLT(v string) predicate.GroupMembership
GroupIDLT applies the LT predicate on the "group_id" field.
func GroupIDLTE ¶
func GroupIDLTE(v string) predicate.GroupMembership
GroupIDLTE applies the LTE predicate on the "group_id" field.
func GroupIDNEQ ¶
func GroupIDNEQ(v string) predicate.GroupMembership
GroupIDNEQ applies the NEQ predicate on the "group_id" field.
func GroupIDNotIn ¶
func GroupIDNotIn(vs ...string) predicate.GroupMembership
GroupIDNotIn applies the NotIn predicate on the "group_id" field.
func HasEvents ¶
func HasEvents() predicate.GroupMembership
HasEvents applies the HasEdge predicate on the "events" edge.
func HasEventsWith ¶
func HasEventsWith(preds ...predicate.Event) predicate.GroupMembership
HasEventsWith applies the HasEdge predicate on the "events" edge with a given conditions (other predicates).
func HasGroup ¶
func HasGroup() predicate.GroupMembership
HasGroup applies the HasEdge predicate on the "group" edge.
func HasGroupWith ¶
func HasGroupWith(preds ...predicate.Group) predicate.GroupMembership
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.GroupMembership
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.GroupMembership
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDContainsFold ¶
func IDContainsFold(id string) predicate.GroupMembership
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.GroupMembership
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.GroupMembership
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.GroupMembership
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.GroupMembership
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.GroupMembership
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.GroupMembership
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.GroupMembership
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.GroupMembership
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.GroupMembership
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.GroupMembership) predicate.GroupMembership
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.GroupMembership) predicate.GroupMembership
Or groups predicates with the OR operator between them.
func RoleEQ ¶
func RoleEQ(v enums.Role) predicate.GroupMembership
RoleEQ applies the EQ predicate on the "role" field.
func RoleIn ¶
func RoleIn(vs ...enums.Role) predicate.GroupMembership
RoleIn applies the In predicate on the "role" field.
func RoleNEQ ¶
func RoleNEQ(v enums.Role) predicate.GroupMembership
RoleNEQ applies the NEQ predicate on the "role" field.
func RoleNotIn ¶
func RoleNotIn(vs ...enums.Role) predicate.GroupMembership
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.GroupMembership
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.GroupMembership
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.GroupMembership
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.GroupMembership
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.GroupMembership
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.GroupMembership
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.GroupMembership
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.GroupMembership
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.GroupMembership
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.GroupMembership
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.GroupMembership
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v string) predicate.GroupMembership
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
func UpdatedByContains(v string) predicate.GroupMembership
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
func UpdatedByContainsFold(v string) predicate.GroupMembership
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
func UpdatedByEQ(v string) predicate.GroupMembership
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
func UpdatedByEqualFold(v string) predicate.GroupMembership
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v string) predicate.GroupMembership
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v string) predicate.GroupMembership
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
func UpdatedByHasPrefix(v string) predicate.GroupMembership
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
func UpdatedByHasSuffix(v string) predicate.GroupMembership
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...string) predicate.GroupMembership
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.GroupMembership
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v string) predicate.GroupMembership
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v string) predicate.GroupMembership
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v string) predicate.GroupMembership
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...string) predicate.GroupMembership
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.GroupMembership
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func UserID ¶
func UserID(v string) predicate.GroupMembership
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
func UserIDContains(v string) predicate.GroupMembership
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
func UserIDContainsFold(v string) predicate.GroupMembership
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEQ ¶
func UserIDEQ(v string) predicate.GroupMembership
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDEqualFold ¶
func UserIDEqualFold(v string) predicate.GroupMembership
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDGT ¶
func UserIDGT(v string) predicate.GroupMembership
UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGTE ¶
func UserIDGTE(v string) predicate.GroupMembership
UserIDGTE applies the GTE predicate on the "user_id" field.
func UserIDHasPrefix ¶
func UserIDHasPrefix(v string) predicate.GroupMembership
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
func UserIDHasSuffix(v string) predicate.GroupMembership
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...string) predicate.GroupMembership
UserIDIn applies the In predicate on the "user_id" field.
func UserIDLT ¶
func UserIDLT(v string) predicate.GroupMembership
UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLTE ¶
func UserIDLTE(v string) predicate.GroupMembership
UserIDLTE applies the LTE predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v string) predicate.GroupMembership
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...string) predicate.GroupMembership
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 GroupMembership 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 ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDeletedBy ¶
func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
ByDeletedBy orders the results by the deleted_by field.
func ByEvents ¶
func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEvents orders the results by events terms.
func ByEventsCount ¶
func ByEventsCount(opts ...sql.OrderTermOption) OrderOption
ByEventsCount orders the results by events count.
func ByGroupField ¶
func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
ByGroupField orders the results by group field.
func ByGroupID ¶
func ByGroupID(opts ...sql.OrderTermOption) OrderOption
ByGroupID orders the results by the group_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the 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.