Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserMemberships) predicate.UserMemberships
- func CreatedAt(v time.Time) predicate.UserMemberships
- func CreatedAtEQ(v time.Time) predicate.UserMemberships
- func CreatedAtGT(v time.Time) predicate.UserMemberships
- func CreatedAtGTE(v time.Time) predicate.UserMemberships
- func CreatedAtIn(vs ...time.Time) predicate.UserMemberships
- func CreatedAtLT(v time.Time) predicate.UserMemberships
- func CreatedAtLTE(v time.Time) predicate.UserMemberships
- func CreatedAtNEQ(v time.Time) predicate.UserMemberships
- func CreatedAtNotIn(vs ...time.Time) predicate.UserMemberships
- func CreatedBy(v int64) predicate.UserMemberships
- func CreatedByEQ(v int64) predicate.UserMemberships
- func CreatedByGT(v int64) predicate.UserMemberships
- func CreatedByGTE(v int64) predicate.UserMemberships
- func CreatedByIn(vs ...int64) predicate.UserMemberships
- func CreatedByIsNil() predicate.UserMemberships
- func CreatedByLT(v int64) predicate.UserMemberships
- func CreatedByLTE(v int64) predicate.UserMemberships
- func CreatedByNEQ(v int64) predicate.UserMemberships
- func CreatedByNotIn(vs ...int64) predicate.UserMemberships
- func CreatedByNotNil() predicate.UserMemberships
- func Description(v string) predicate.UserMemberships
- func DescriptionContains(v string) predicate.UserMemberships
- func DescriptionContainsFold(v string) predicate.UserMemberships
- func DescriptionEQ(v string) predicate.UserMemberships
- func DescriptionEqualFold(v string) predicate.UserMemberships
- func DescriptionGT(v string) predicate.UserMemberships
- func DescriptionGTE(v string) predicate.UserMemberships
- func DescriptionHasPrefix(v string) predicate.UserMemberships
- func DescriptionHasSuffix(v string) predicate.UserMemberships
- func DescriptionIn(vs ...string) predicate.UserMemberships
- func DescriptionLT(v string) predicate.UserMemberships
- func DescriptionLTE(v string) predicate.UserMemberships
- func DescriptionNEQ(v string) predicate.UserMemberships
- func DescriptionNotIn(vs ...string) predicate.UserMemberships
- func ExpiresAt(v time.Time) predicate.UserMemberships
- func ExpiresAtEQ(v time.Time) predicate.UserMemberships
- func ExpiresAtGT(v time.Time) predicate.UserMemberships
- func ExpiresAtGTE(v time.Time) predicate.UserMemberships
- func ExpiresAtIn(vs ...time.Time) predicate.UserMemberships
- func ExpiresAtIsNil() predicate.UserMemberships
- func ExpiresAtLT(v time.Time) predicate.UserMemberships
- func ExpiresAtLTE(v time.Time) predicate.UserMemberships
- func ExpiresAtNEQ(v time.Time) predicate.UserMemberships
- func ExpiresAtNotIn(vs ...time.Time) predicate.UserMemberships
- func ExpiresAtNotNil() predicate.UserMemberships
- func HasLionUsers() predicate.UserMemberships
- func HasLionUsersWith(preds ...predicate.Users) predicate.UserMemberships
- func ID(id int) predicate.UserMemberships
- func IDEQ(id int) predicate.UserMemberships
- func IDGT(id int) predicate.UserMemberships
- func IDGTE(id int) predicate.UserMemberships
- func IDIn(ids ...int) predicate.UserMemberships
- func IDLT(id int) predicate.UserMemberships
- func IDLTE(id int) predicate.UserMemberships
- func IDNEQ(id int) predicate.UserMemberships
- func IDNotIn(ids ...int) predicate.UserMemberships
- func JoinedAt(v time.Time) predicate.UserMemberships
- func JoinedAtEQ(v time.Time) predicate.UserMemberships
- func JoinedAtGT(v time.Time) predicate.UserMemberships
- func JoinedAtGTE(v time.Time) predicate.UserMemberships
- func JoinedAtIn(vs ...time.Time) predicate.UserMemberships
- func JoinedAtIsNil() predicate.UserMemberships
- func JoinedAtLT(v time.Time) predicate.UserMemberships
- func JoinedAtLTE(v time.Time) predicate.UserMemberships
- func JoinedAtNEQ(v time.Time) predicate.UserMemberships
- func JoinedAtNotIn(vs ...time.Time) predicate.UserMemberships
- func JoinedAtNotNil() predicate.UserMemberships
- func MemberRole(v int) predicate.UserMemberships
- func MemberRoleEQ(v int) predicate.UserMemberships
- func MemberRoleGT(v int) predicate.UserMemberships
- func MemberRoleGTE(v int) predicate.UserMemberships
- func MemberRoleIn(vs ...int) predicate.UserMemberships
- func MemberRoleLT(v int) predicate.UserMemberships
- func MemberRoleLTE(v int) predicate.UserMemberships
- func MemberRoleNEQ(v int) predicate.UserMemberships
- func MemberRoleNotIn(vs ...int) predicate.UserMemberships
- func MemberStatus(v int) predicate.UserMemberships
- func MemberStatusEQ(v int) predicate.UserMemberships
- func MemberStatusGT(v int) predicate.UserMemberships
- func MemberStatusGTE(v int) predicate.UserMemberships
- func MemberStatusIn(vs ...int) predicate.UserMemberships
- func MemberStatusLT(v int) predicate.UserMemberships
- func MemberStatusLTE(v int) predicate.UserMemberships
- func MemberStatusNEQ(v int) predicate.UserMemberships
- func MemberStatusNotIn(vs ...int) predicate.UserMemberships
- func MemberType(v int) predicate.UserMemberships
- func MemberTypeEQ(v int) predicate.UserMemberships
- func MemberTypeGT(v int) predicate.UserMemberships
- func MemberTypeGTE(v int) predicate.UserMemberships
- func MemberTypeIn(vs ...int) predicate.UserMemberships
- func MemberTypeLT(v int) predicate.UserMemberships
- func MemberTypeLTE(v int) predicate.UserMemberships
- func MemberTypeNEQ(v int) predicate.UserMemberships
- func MemberTypeNotIn(vs ...int) predicate.UserMemberships
- func MetadataIsNil() predicate.UserMemberships
- func MetadataNotNil() predicate.UserMemberships
- func Not(p predicate.UserMemberships) predicate.UserMemberships
- func Or(predicates ...predicate.UserMemberships) predicate.UserMemberships
- func TargetID(v int) predicate.UserMemberships
- func TargetIDEQ(v int) predicate.UserMemberships
- func TargetIDGT(v int) predicate.UserMemberships
- func TargetIDGTE(v int) predicate.UserMemberships
- func TargetIDIn(vs ...int) predicate.UserMemberships
- func TargetIDLT(v int) predicate.UserMemberships
- func TargetIDLTE(v int) predicate.UserMemberships
- func TargetIDNEQ(v int) predicate.UserMemberships
- func TargetIDNotIn(vs ...int) predicate.UserMemberships
- func TargetType(v int) predicate.UserMemberships
- func TargetTypeEQ(v int) predicate.UserMemberships
- func TargetTypeGT(v int) predicate.UserMemberships
- func TargetTypeGTE(v int) predicate.UserMemberships
- func TargetTypeIn(vs ...int) predicate.UserMemberships
- func TargetTypeLT(v int) predicate.UserMemberships
- func TargetTypeLTE(v int) predicate.UserMemberships
- func TargetTypeNEQ(v int) predicate.UserMemberships
- func TargetTypeNotIn(vs ...int) predicate.UserMemberships
- func UpdatedAt(v time.Time) predicate.UserMemberships
- func UpdatedAtEQ(v time.Time) predicate.UserMemberships
- func UpdatedAtGT(v time.Time) predicate.UserMemberships
- func UpdatedAtGTE(v time.Time) predicate.UserMemberships
- func UpdatedAtIn(vs ...time.Time) predicate.UserMemberships
- func UpdatedAtLT(v time.Time) predicate.UserMemberships
- func UpdatedAtLTE(v time.Time) predicate.UserMemberships
- func UpdatedAtNEQ(v time.Time) predicate.UserMemberships
- func UpdatedAtNotIn(vs ...time.Time) predicate.UserMemberships
- func UpdatedBy(v int64) predicate.UserMemberships
- func UpdatedByEQ(v int64) predicate.UserMemberships
- func UpdatedByGT(v int64) predicate.UserMemberships
- func UpdatedByGTE(v int64) predicate.UserMemberships
- func UpdatedByIn(vs ...int64) predicate.UserMemberships
- func UpdatedByIsNil() predicate.UserMemberships
- func UpdatedByLT(v int64) predicate.UserMemberships
- func UpdatedByLTE(v int64) predicate.UserMemberships
- func UpdatedByNEQ(v int64) predicate.UserMemberships
- func UpdatedByNotIn(vs ...int64) predicate.UserMemberships
- func UpdatedByNotNil() predicate.UserMemberships
- func UserID(v int) predicate.UserMemberships
- func UserIDEQ(v int) predicate.UserMemberships
- func UserIDIn(vs ...int) predicate.UserMemberships
- func UserIDNEQ(v int) predicate.UserMemberships
- func UserIDNotIn(vs ...int) predicate.UserMemberships
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByJoinedAt(opts ...sql.OrderTermOption) OrderOption
- func ByLionUsersField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByMemberRole(opts ...sql.OrderTermOption) OrderOption
- func ByMemberStatus(opts ...sql.OrderTermOption) OrderOption
- func ByMemberType(opts ...sql.OrderTermOption) OrderOption
- func ByTargetID(opts ...sql.OrderTermOption) OrderOption
- func ByTargetType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the usermemberships type in the database. Label = "user_memberships" // 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" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldTargetType holds the string denoting the target_type field in the database. FieldTargetType = "target_type" // FieldTargetID holds the string denoting the target_id field in the database. FieldTargetID = "target_id" // FieldMemberRole holds the string denoting the member_role field in the database. FieldMemberRole = "member_role" // FieldMemberStatus holds the string denoting the member_status field in the database. FieldMemberStatus = "member_status" // FieldMemberType holds the string denoting the member_type field in the database. FieldMemberType = "member_type" // FieldJoinedAt holds the string denoting the joined_at field in the database. FieldJoinedAt = "joined_at" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeLionUsers holds the string denoting the lion_users edge name in mutations. EdgeLionUsers = "lion_users" // Table holds the table name of the usermemberships in the database. Table = "lion_user_memberships" // LionUsersTable is the table that holds the lion_users relation/edge. LionUsersTable = "lion_user_memberships" // LionUsersInverseTable is the table name for the Users entity. // It exists in this package in order to avoid circular dependency with the "users" package. LionUsersInverseTable = "lion_users" // LionUsersColumn is the table column denoting the lion_users relation/edge. LionUsersColumn = "user_id" )
Variables ¶
var ( // 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 // DefaultCreatedBy holds the default value on creation for the "created_by" field. DefaultCreatedBy int64 // DefaultUpdatedBy holds the default value on creation for the "updated_by" field. DefaultUpdatedBy int64 // UserIDValidator is a validator for the "user_id" field. It is called by the builders before save. UserIDValidator func(int) error // DefaultTargetType holds the default value on creation for the "target_type" field. DefaultTargetType int // TargetIDValidator is a validator for the "target_id" field. It is called by the builders before save. TargetIDValidator func(int) error // DefaultMemberRole holds the default value on creation for the "member_role" field. DefaultMemberRole int // DefaultMemberStatus holds the default value on creation for the "member_status" field. DefaultMemberStatus int // DefaultMemberType holds the default value on creation for the "member_type" field. DefaultMemberType int // DefaultDescription holds the default value on creation for the "description" field. DefaultDescription string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldUserID, FieldTargetType, FieldTargetID, FieldMemberRole, FieldMemberStatus, FieldMemberType, FieldJoinedAt, FieldExpiresAt, FieldMetadata, FieldDescription, }
Columns holds all SQL columns for usermemberships fields.
Functions ¶
func And ¶
func And(predicates ...predicate.UserMemberships) predicate.UserMemberships
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.UserMemberships
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.UserMemberships
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.UserMemberships
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.UserMemberships
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.UserMemberships
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.UserMemberships
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.UserMemberships
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.UserMemberships
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.UserMemberships
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v int64) predicate.UserMemberships
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
func CreatedByEQ(v int64) predicate.UserMemberships
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v int64) predicate.UserMemberships
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v int64) predicate.UserMemberships
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...int64) predicate.UserMemberships
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.UserMemberships
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v int64) predicate.UserMemberships
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v int64) predicate.UserMemberships
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v int64) predicate.UserMemberships
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...int64) predicate.UserMemberships
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.UserMemberships
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func Description ¶
func Description(v string) predicate.UserMemberships
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.UserMemberships
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.UserMemberships
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.UserMemberships
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.UserMemberships
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.UserMemberships
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.UserMemberships
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.UserMemberships
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.UserMemberships
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.UserMemberships
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.UserMemberships
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.UserMemberships
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.UserMemberships
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.UserMemberships
DescriptionNotIn applies the NotIn predicate on the "description" field.
func ExpiresAt ¶
func ExpiresAt(v time.Time) predicate.UserMemberships
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
func ExpiresAtEQ(v time.Time) predicate.UserMemberships
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
func ExpiresAtGT(v time.Time) predicate.UserMemberships
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
func ExpiresAtGTE(v time.Time) predicate.UserMemberships
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
func ExpiresAtIn(vs ...time.Time) predicate.UserMemberships
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtIsNil ¶
func ExpiresAtIsNil() predicate.UserMemberships
ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
func ExpiresAtLT ¶
func ExpiresAtLT(v time.Time) predicate.UserMemberships
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
func ExpiresAtLTE(v time.Time) predicate.UserMemberships
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
func ExpiresAtNEQ(v time.Time) predicate.UserMemberships
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
func ExpiresAtNotIn(vs ...time.Time) predicate.UserMemberships
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func ExpiresAtNotNil ¶
func ExpiresAtNotNil() predicate.UserMemberships
ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
func HasLionUsers ¶
func HasLionUsers() predicate.UserMemberships
HasLionUsers applies the HasEdge predicate on the "lion_users" edge.
func HasLionUsersWith ¶
func HasLionUsersWith(preds ...predicate.Users) predicate.UserMemberships
HasLionUsersWith applies the HasEdge predicate on the "lion_users" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.UserMemberships
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.UserMemberships
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.UserMemberships
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserMemberships
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.UserMemberships
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserMemberships
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserMemberships
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserMemberships
IDNotIn applies the NotIn predicate on the ID field.
func JoinedAt ¶
func JoinedAt(v time.Time) predicate.UserMemberships
JoinedAt applies equality check predicate on the "joined_at" field. It's identical to JoinedAtEQ.
func JoinedAtEQ ¶
func JoinedAtEQ(v time.Time) predicate.UserMemberships
JoinedAtEQ applies the EQ predicate on the "joined_at" field.
func JoinedAtGT ¶
func JoinedAtGT(v time.Time) predicate.UserMemberships
JoinedAtGT applies the GT predicate on the "joined_at" field.
func JoinedAtGTE ¶
func JoinedAtGTE(v time.Time) predicate.UserMemberships
JoinedAtGTE applies the GTE predicate on the "joined_at" field.
func JoinedAtIn ¶
func JoinedAtIn(vs ...time.Time) predicate.UserMemberships
JoinedAtIn applies the In predicate on the "joined_at" field.
func JoinedAtIsNil ¶
func JoinedAtIsNil() predicate.UserMemberships
JoinedAtIsNil applies the IsNil predicate on the "joined_at" field.
func JoinedAtLT ¶
func JoinedAtLT(v time.Time) predicate.UserMemberships
JoinedAtLT applies the LT predicate on the "joined_at" field.
func JoinedAtLTE ¶
func JoinedAtLTE(v time.Time) predicate.UserMemberships
JoinedAtLTE applies the LTE predicate on the "joined_at" field.
func JoinedAtNEQ ¶
func JoinedAtNEQ(v time.Time) predicate.UserMemberships
JoinedAtNEQ applies the NEQ predicate on the "joined_at" field.
func JoinedAtNotIn ¶
func JoinedAtNotIn(vs ...time.Time) predicate.UserMemberships
JoinedAtNotIn applies the NotIn predicate on the "joined_at" field.
func JoinedAtNotNil ¶
func JoinedAtNotNil() predicate.UserMemberships
JoinedAtNotNil applies the NotNil predicate on the "joined_at" field.
func MemberRole ¶
func MemberRole(v int) predicate.UserMemberships
MemberRole applies equality check predicate on the "member_role" field. It's identical to MemberRoleEQ.
func MemberRoleEQ ¶
func MemberRoleEQ(v int) predicate.UserMemberships
MemberRoleEQ applies the EQ predicate on the "member_role" field.
func MemberRoleGT ¶
func MemberRoleGT(v int) predicate.UserMemberships
MemberRoleGT applies the GT predicate on the "member_role" field.
func MemberRoleGTE ¶
func MemberRoleGTE(v int) predicate.UserMemberships
MemberRoleGTE applies the GTE predicate on the "member_role" field.
func MemberRoleIn ¶
func MemberRoleIn(vs ...int) predicate.UserMemberships
MemberRoleIn applies the In predicate on the "member_role" field.
func MemberRoleLT ¶
func MemberRoleLT(v int) predicate.UserMemberships
MemberRoleLT applies the LT predicate on the "member_role" field.
func MemberRoleLTE ¶
func MemberRoleLTE(v int) predicate.UserMemberships
MemberRoleLTE applies the LTE predicate on the "member_role" field.
func MemberRoleNEQ ¶
func MemberRoleNEQ(v int) predicate.UserMemberships
MemberRoleNEQ applies the NEQ predicate on the "member_role" field.
func MemberRoleNotIn ¶
func MemberRoleNotIn(vs ...int) predicate.UserMemberships
MemberRoleNotIn applies the NotIn predicate on the "member_role" field.
func MemberStatus ¶
func MemberStatus(v int) predicate.UserMemberships
MemberStatus applies equality check predicate on the "member_status" field. It's identical to MemberStatusEQ.
func MemberStatusEQ ¶
func MemberStatusEQ(v int) predicate.UserMemberships
MemberStatusEQ applies the EQ predicate on the "member_status" field.
func MemberStatusGT ¶
func MemberStatusGT(v int) predicate.UserMemberships
MemberStatusGT applies the GT predicate on the "member_status" field.
func MemberStatusGTE ¶
func MemberStatusGTE(v int) predicate.UserMemberships
MemberStatusGTE applies the GTE predicate on the "member_status" field.
func MemberStatusIn ¶
func MemberStatusIn(vs ...int) predicate.UserMemberships
MemberStatusIn applies the In predicate on the "member_status" field.
func MemberStatusLT ¶
func MemberStatusLT(v int) predicate.UserMemberships
MemberStatusLT applies the LT predicate on the "member_status" field.
func MemberStatusLTE ¶
func MemberStatusLTE(v int) predicate.UserMemberships
MemberStatusLTE applies the LTE predicate on the "member_status" field.
func MemberStatusNEQ ¶
func MemberStatusNEQ(v int) predicate.UserMemberships
MemberStatusNEQ applies the NEQ predicate on the "member_status" field.
func MemberStatusNotIn ¶
func MemberStatusNotIn(vs ...int) predicate.UserMemberships
MemberStatusNotIn applies the NotIn predicate on the "member_status" field.
func MemberType ¶
func MemberType(v int) predicate.UserMemberships
MemberType applies equality check predicate on the "member_type" field. It's identical to MemberTypeEQ.
func MemberTypeEQ ¶
func MemberTypeEQ(v int) predicate.UserMemberships
MemberTypeEQ applies the EQ predicate on the "member_type" field.
func MemberTypeGT ¶
func MemberTypeGT(v int) predicate.UserMemberships
MemberTypeGT applies the GT predicate on the "member_type" field.
func MemberTypeGTE ¶
func MemberTypeGTE(v int) predicate.UserMemberships
MemberTypeGTE applies the GTE predicate on the "member_type" field.
func MemberTypeIn ¶
func MemberTypeIn(vs ...int) predicate.UserMemberships
MemberTypeIn applies the In predicate on the "member_type" field.
func MemberTypeLT ¶
func MemberTypeLT(v int) predicate.UserMemberships
MemberTypeLT applies the LT predicate on the "member_type" field.
func MemberTypeLTE ¶
func MemberTypeLTE(v int) predicate.UserMemberships
MemberTypeLTE applies the LTE predicate on the "member_type" field.
func MemberTypeNEQ ¶
func MemberTypeNEQ(v int) predicate.UserMemberships
MemberTypeNEQ applies the NEQ predicate on the "member_type" field.
func MemberTypeNotIn ¶
func MemberTypeNotIn(vs ...int) predicate.UserMemberships
MemberTypeNotIn applies the NotIn predicate on the "member_type" field.
func MetadataIsNil ¶
func MetadataIsNil() predicate.UserMemberships
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
func MetadataNotNil() predicate.UserMemberships
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func Not ¶
func Not(p predicate.UserMemberships) predicate.UserMemberships
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserMemberships) predicate.UserMemberships
Or groups predicates with the OR operator between them.
func TargetID ¶
func TargetID(v int) predicate.UserMemberships
TargetID applies equality check predicate on the "target_id" field. It's identical to TargetIDEQ.
func TargetIDEQ ¶
func TargetIDEQ(v int) predicate.UserMemberships
TargetIDEQ applies the EQ predicate on the "target_id" field.
func TargetIDGT ¶
func TargetIDGT(v int) predicate.UserMemberships
TargetIDGT applies the GT predicate on the "target_id" field.
func TargetIDGTE ¶
func TargetIDGTE(v int) predicate.UserMemberships
TargetIDGTE applies the GTE predicate on the "target_id" field.
func TargetIDIn ¶
func TargetIDIn(vs ...int) predicate.UserMemberships
TargetIDIn applies the In predicate on the "target_id" field.
func TargetIDLT ¶
func TargetIDLT(v int) predicate.UserMemberships
TargetIDLT applies the LT predicate on the "target_id" field.
func TargetIDLTE ¶
func TargetIDLTE(v int) predicate.UserMemberships
TargetIDLTE applies the LTE predicate on the "target_id" field.
func TargetIDNEQ ¶
func TargetIDNEQ(v int) predicate.UserMemberships
TargetIDNEQ applies the NEQ predicate on the "target_id" field.
func TargetIDNotIn ¶
func TargetIDNotIn(vs ...int) predicate.UserMemberships
TargetIDNotIn applies the NotIn predicate on the "target_id" field.
func TargetType ¶
func TargetType(v int) predicate.UserMemberships
TargetType applies equality check predicate on the "target_type" field. It's identical to TargetTypeEQ.
func TargetTypeEQ ¶
func TargetTypeEQ(v int) predicate.UserMemberships
TargetTypeEQ applies the EQ predicate on the "target_type" field.
func TargetTypeGT ¶
func TargetTypeGT(v int) predicate.UserMemberships
TargetTypeGT applies the GT predicate on the "target_type" field.
func TargetTypeGTE ¶
func TargetTypeGTE(v int) predicate.UserMemberships
TargetTypeGTE applies the GTE predicate on the "target_type" field.
func TargetTypeIn ¶
func TargetTypeIn(vs ...int) predicate.UserMemberships
TargetTypeIn applies the In predicate on the "target_type" field.
func TargetTypeLT ¶
func TargetTypeLT(v int) predicate.UserMemberships
TargetTypeLT applies the LT predicate on the "target_type" field.
func TargetTypeLTE ¶
func TargetTypeLTE(v int) predicate.UserMemberships
TargetTypeLTE applies the LTE predicate on the "target_type" field.
func TargetTypeNEQ ¶
func TargetTypeNEQ(v int) predicate.UserMemberships
TargetTypeNEQ applies the NEQ predicate on the "target_type" field.
func TargetTypeNotIn ¶
func TargetTypeNotIn(vs ...int) predicate.UserMemberships
TargetTypeNotIn applies the NotIn predicate on the "target_type" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.UserMemberships
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.UserMemberships
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.UserMemberships
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.UserMemberships
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.UserMemberships
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.UserMemberships
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.UserMemberships
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.UserMemberships
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.UserMemberships
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v int64) predicate.UserMemberships
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
func UpdatedByEQ(v int64) predicate.UserMemberships
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v int64) predicate.UserMemberships
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v int64) predicate.UserMemberships
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...int64) predicate.UserMemberships
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.UserMemberships
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v int64) predicate.UserMemberships
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v int64) predicate.UserMemberships
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v int64) predicate.UserMemberships
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...int64) predicate.UserMemberships
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.UserMemberships
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func UserID ¶
func UserID(v int) predicate.UserMemberships
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v int) predicate.UserMemberships
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...int) predicate.UserMemberships
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v int) predicate.UserMemberships
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...int) predicate.UserMemberships
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 UserMemberships 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 ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at 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 ByLionUsersField ¶
func ByLionUsersField(field string, opts ...sql.OrderTermOption) OrderOption
ByLionUsersField orders the results by lion_users field.
func ByMemberRole ¶
func ByMemberRole(opts ...sql.OrderTermOption) OrderOption
ByMemberRole orders the results by the member_role field.
func ByMemberStatus ¶
func ByMemberStatus(opts ...sql.OrderTermOption) OrderOption
ByMemberStatus orders the results by the member_status field.
func ByMemberType ¶
func ByMemberType(opts ...sql.OrderTermOption) OrderOption
ByMemberType orders the results by the member_type field.
func ByTargetID ¶
func ByTargetID(opts ...sql.OrderTermOption) OrderOption
ByTargetID orders the results by the target_id field.
func ByTargetType ¶
func ByTargetType(opts ...sql.OrderTermOption) OrderOption
ByTargetType orders the results by the target_type 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 ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.