Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ProgramMembership) predicate.ProgramMembership
- func CreatedAt(v time.Time) predicate.ProgramMembership
- func CreatedAtEQ(v time.Time) predicate.ProgramMembership
- func CreatedAtGT(v time.Time) predicate.ProgramMembership
- func CreatedAtGTE(v time.Time) predicate.ProgramMembership
- func CreatedAtIn(vs ...time.Time) predicate.ProgramMembership
- func CreatedAtIsNil() predicate.ProgramMembership
- func CreatedAtLT(v time.Time) predicate.ProgramMembership
- func CreatedAtLTE(v time.Time) predicate.ProgramMembership
- func CreatedAtNEQ(v time.Time) predicate.ProgramMembership
- func CreatedAtNotIn(vs ...time.Time) predicate.ProgramMembership
- func CreatedAtNotNil() predicate.ProgramMembership
- func CreatedBy(v string) predicate.ProgramMembership
- func CreatedByContains(v string) predicate.ProgramMembership
- func CreatedByContainsFold(v string) predicate.ProgramMembership
- func CreatedByEQ(v string) predicate.ProgramMembership
- func CreatedByEqualFold(v string) predicate.ProgramMembership
- func CreatedByGT(v string) predicate.ProgramMembership
- func CreatedByGTE(v string) predicate.ProgramMembership
- func CreatedByHasPrefix(v string) predicate.ProgramMembership
- func CreatedByHasSuffix(v string) predicate.ProgramMembership
- func CreatedByIn(vs ...string) predicate.ProgramMembership
- func CreatedByIsNil() predicate.ProgramMembership
- func CreatedByLT(v string) predicate.ProgramMembership
- func CreatedByLTE(v string) predicate.ProgramMembership
- func CreatedByNEQ(v string) predicate.ProgramMembership
- func CreatedByNotIn(vs ...string) predicate.ProgramMembership
- func CreatedByNotNil() predicate.ProgramMembership
- func DeletedAt(v time.Time) predicate.ProgramMembership
- func DeletedAtEQ(v time.Time) predicate.ProgramMembership
- func DeletedAtGT(v time.Time) predicate.ProgramMembership
- func DeletedAtGTE(v time.Time) predicate.ProgramMembership
- func DeletedAtIn(vs ...time.Time) predicate.ProgramMembership
- func DeletedAtIsNil() predicate.ProgramMembership
- func DeletedAtLT(v time.Time) predicate.ProgramMembership
- func DeletedAtLTE(v time.Time) predicate.ProgramMembership
- func DeletedAtNEQ(v time.Time) predicate.ProgramMembership
- func DeletedAtNotIn(vs ...time.Time) predicate.ProgramMembership
- func DeletedAtNotNil() predicate.ProgramMembership
- func DeletedBy(v string) predicate.ProgramMembership
- func DeletedByContains(v string) predicate.ProgramMembership
- func DeletedByContainsFold(v string) predicate.ProgramMembership
- func DeletedByEQ(v string) predicate.ProgramMembership
- func DeletedByEqualFold(v string) predicate.ProgramMembership
- func DeletedByGT(v string) predicate.ProgramMembership
- func DeletedByGTE(v string) predicate.ProgramMembership
- func DeletedByHasPrefix(v string) predicate.ProgramMembership
- func DeletedByHasSuffix(v string) predicate.ProgramMembership
- func DeletedByIn(vs ...string) predicate.ProgramMembership
- func DeletedByIsNil() predicate.ProgramMembership
- func DeletedByLT(v string) predicate.ProgramMembership
- func DeletedByLTE(v string) predicate.ProgramMembership
- func DeletedByNEQ(v string) predicate.ProgramMembership
- func DeletedByNotIn(vs ...string) predicate.ProgramMembership
- func DeletedByNotNil() predicate.ProgramMembership
- func HasProgram() predicate.ProgramMembership
- func HasProgramWith(preds ...predicate.Program) predicate.ProgramMembership
- func HasUser() predicate.ProgramMembership
- func HasUserWith(preds ...predicate.User) predicate.ProgramMembership
- func ID(id string) predicate.ProgramMembership
- func IDContainsFold(id string) predicate.ProgramMembership
- func IDEQ(id string) predicate.ProgramMembership
- func IDEqualFold(id string) predicate.ProgramMembership
- func IDGT(id string) predicate.ProgramMembership
- func IDGTE(id string) predicate.ProgramMembership
- func IDIn(ids ...string) predicate.ProgramMembership
- func IDLT(id string) predicate.ProgramMembership
- func IDLTE(id string) predicate.ProgramMembership
- func IDNEQ(id string) predicate.ProgramMembership
- func IDNotIn(ids ...string) predicate.ProgramMembership
- func MappingID(v string) predicate.ProgramMembership
- func MappingIDContains(v string) predicate.ProgramMembership
- func MappingIDContainsFold(v string) predicate.ProgramMembership
- func MappingIDEQ(v string) predicate.ProgramMembership
- func MappingIDEqualFold(v string) predicate.ProgramMembership
- func MappingIDGT(v string) predicate.ProgramMembership
- func MappingIDGTE(v string) predicate.ProgramMembership
- func MappingIDHasPrefix(v string) predicate.ProgramMembership
- func MappingIDHasSuffix(v string) predicate.ProgramMembership
- func MappingIDIn(vs ...string) predicate.ProgramMembership
- func MappingIDLT(v string) predicate.ProgramMembership
- func MappingIDLTE(v string) predicate.ProgramMembership
- func MappingIDNEQ(v string) predicate.ProgramMembership
- func MappingIDNotIn(vs ...string) predicate.ProgramMembership
- func Not(p predicate.ProgramMembership) predicate.ProgramMembership
- func Or(predicates ...predicate.ProgramMembership) predicate.ProgramMembership
- func ProgramID(v string) predicate.ProgramMembership
- func ProgramIDContains(v string) predicate.ProgramMembership
- func ProgramIDContainsFold(v string) predicate.ProgramMembership
- func ProgramIDEQ(v string) predicate.ProgramMembership
- func ProgramIDEqualFold(v string) predicate.ProgramMembership
- func ProgramIDGT(v string) predicate.ProgramMembership
- func ProgramIDGTE(v string) predicate.ProgramMembership
- func ProgramIDHasPrefix(v string) predicate.ProgramMembership
- func ProgramIDHasSuffix(v string) predicate.ProgramMembership
- func ProgramIDIn(vs ...string) predicate.ProgramMembership
- func ProgramIDLT(v string) predicate.ProgramMembership
- func ProgramIDLTE(v string) predicate.ProgramMembership
- func ProgramIDNEQ(v string) predicate.ProgramMembership
- func ProgramIDNotIn(vs ...string) predicate.ProgramMembership
- func RoleEQ(v enums.Role) predicate.ProgramMembership
- func RoleIn(vs ...enums.Role) predicate.ProgramMembership
- func RoleNEQ(v enums.Role) predicate.ProgramMembership
- func RoleNotIn(vs ...enums.Role) predicate.ProgramMembership
- func RoleValidator(r enums.Role) error
- func UpdatedAt(v time.Time) predicate.ProgramMembership
- func UpdatedAtEQ(v time.Time) predicate.ProgramMembership
- func UpdatedAtGT(v time.Time) predicate.ProgramMembership
- func UpdatedAtGTE(v time.Time) predicate.ProgramMembership
- func UpdatedAtIn(vs ...time.Time) predicate.ProgramMembership
- func UpdatedAtIsNil() predicate.ProgramMembership
- func UpdatedAtLT(v time.Time) predicate.ProgramMembership
- func UpdatedAtLTE(v time.Time) predicate.ProgramMembership
- func UpdatedAtNEQ(v time.Time) predicate.ProgramMembership
- func UpdatedAtNotIn(vs ...time.Time) predicate.ProgramMembership
- func UpdatedAtNotNil() predicate.ProgramMembership
- func UpdatedBy(v string) predicate.ProgramMembership
- func UpdatedByContains(v string) predicate.ProgramMembership
- func UpdatedByContainsFold(v string) predicate.ProgramMembership
- func UpdatedByEQ(v string) predicate.ProgramMembership
- func UpdatedByEqualFold(v string) predicate.ProgramMembership
- func UpdatedByGT(v string) predicate.ProgramMembership
- func UpdatedByGTE(v string) predicate.ProgramMembership
- func UpdatedByHasPrefix(v string) predicate.ProgramMembership
- func UpdatedByHasSuffix(v string) predicate.ProgramMembership
- func UpdatedByIn(vs ...string) predicate.ProgramMembership
- func UpdatedByIsNil() predicate.ProgramMembership
- func UpdatedByLT(v string) predicate.ProgramMembership
- func UpdatedByLTE(v string) predicate.ProgramMembership
- func UpdatedByNEQ(v string) predicate.ProgramMembership
- func UpdatedByNotIn(vs ...string) predicate.ProgramMembership
- func UpdatedByNotNil() predicate.ProgramMembership
- func UserID(v string) predicate.ProgramMembership
- func UserIDContains(v string) predicate.ProgramMembership
- func UserIDContainsFold(v string) predicate.ProgramMembership
- func UserIDEQ(v string) predicate.ProgramMembership
- func UserIDEqualFold(v string) predicate.ProgramMembership
- func UserIDGT(v string) predicate.ProgramMembership
- func UserIDGTE(v string) predicate.ProgramMembership
- func UserIDHasPrefix(v string) predicate.ProgramMembership
- func UserIDHasSuffix(v string) predicate.ProgramMembership
- func UserIDIn(vs ...string) predicate.ProgramMembership
- func UserIDLT(v string) predicate.ProgramMembership
- func UserIDLTE(v string) predicate.ProgramMembership
- func UserIDNEQ(v string) predicate.ProgramMembership
- func UserIDNotIn(vs ...string) predicate.ProgramMembership
- 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 ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMappingID(opts ...sql.OrderTermOption) OrderOption
- func ByProgramField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProgramID(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 programmembership type in the database. Label = "program_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" // FieldProgramID holds the string denoting the program_id field in the database. FieldProgramID = "program_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // EdgeProgram holds the string denoting the program edge name in mutations. EdgeProgram = "program" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the programmembership in the database. Table = "program_memberships" // ProgramTable is the table that holds the program relation/edge. ProgramTable = "program_memberships" // ProgramInverseTable is the table name for the Program entity. // It exists in this package in order to avoid circular dependency with the "program" package. ProgramInverseTable = "programs" // ProgramColumn is the table column denoting the program relation/edge. ProgramColumn = "program_id" // UserTable is the table that holds the user relation/edge. UserTable = "program_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" )
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 // 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/theopenlane/core/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldMappingID, FieldDeletedAt, FieldDeletedBy, FieldRole, FieldProgramID, FieldUserID, }
Columns holds all SQL columns for programmembership fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ProgramMembership) predicate.ProgramMembership
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ProgramMembership
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ProgramMembership
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ProgramMembership
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ProgramMembership
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ProgramMembership
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
func CreatedAtIsNil() predicate.ProgramMembership
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ProgramMembership
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ProgramMembership
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ProgramMembership
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ProgramMembership
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
func CreatedAtNotNil() predicate.ProgramMembership
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v string) predicate.ProgramMembership
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
func CreatedByContains(v string) predicate.ProgramMembership
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
func CreatedByContainsFold(v string) predicate.ProgramMembership
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
func CreatedByEQ(v string) predicate.ProgramMembership
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
func CreatedByEqualFold(v string) predicate.ProgramMembership
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v string) predicate.ProgramMembership
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v string) predicate.ProgramMembership
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
func CreatedByHasPrefix(v string) predicate.ProgramMembership
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
func CreatedByHasSuffix(v string) predicate.ProgramMembership
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...string) predicate.ProgramMembership
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.ProgramMembership
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v string) predicate.ProgramMembership
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v string) predicate.ProgramMembership
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v string) predicate.ProgramMembership
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...string) predicate.ProgramMembership
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.ProgramMembership
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.ProgramMembership
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.ProgramMembership
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.ProgramMembership
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.ProgramMembership
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.ProgramMembership
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.ProgramMembership
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.ProgramMembership
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.ProgramMembership
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.ProgramMembership
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.ProgramMembership
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.ProgramMembership
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
func DeletedBy(v string) predicate.ProgramMembership
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
func DeletedByContains(v string) predicate.ProgramMembership
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
func DeletedByContainsFold(v string) predicate.ProgramMembership
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
func DeletedByEQ(v string) predicate.ProgramMembership
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
func DeletedByEqualFold(v string) predicate.ProgramMembership
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
func DeletedByGT(v string) predicate.ProgramMembership
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
func DeletedByGTE(v string) predicate.ProgramMembership
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
func DeletedByHasPrefix(v string) predicate.ProgramMembership
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
func DeletedByHasSuffix(v string) predicate.ProgramMembership
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
func DeletedByIn(vs ...string) predicate.ProgramMembership
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
func DeletedByIsNil() predicate.ProgramMembership
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
func DeletedByLT(v string) predicate.ProgramMembership
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
func DeletedByLTE(v string) predicate.ProgramMembership
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
func DeletedByNEQ(v string) predicate.ProgramMembership
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
func DeletedByNotIn(vs ...string) predicate.ProgramMembership
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
func DeletedByNotNil() predicate.ProgramMembership
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func HasProgram ¶
func HasProgram() predicate.ProgramMembership
HasProgram applies the HasEdge predicate on the "program" edge.
func HasProgramWith ¶
func HasProgramWith(preds ...predicate.Program) predicate.ProgramMembership
HasProgramWith applies the HasEdge predicate on the "program" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.ProgramMembership
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.ProgramMembership
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func ID ¶
func ID(id string) predicate.ProgramMembership
ID filters vertices based on their ID field.
func IDContainsFold ¶
func IDContainsFold(id string) predicate.ProgramMembership
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.ProgramMembership
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.ProgramMembership
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.ProgramMembership
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.ProgramMembership
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.ProgramMembership
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.ProgramMembership
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.ProgramMembership
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.ProgramMembership
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.ProgramMembership
IDNotIn applies the NotIn predicate on the ID field.
func MappingID ¶
func MappingID(v string) predicate.ProgramMembership
MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.
func MappingIDContains ¶
func MappingIDContains(v string) predicate.ProgramMembership
MappingIDContains applies the Contains predicate on the "mapping_id" field.
func MappingIDContainsFold ¶
func MappingIDContainsFold(v string) predicate.ProgramMembership
MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.
func MappingIDEQ ¶
func MappingIDEQ(v string) predicate.ProgramMembership
MappingIDEQ applies the EQ predicate on the "mapping_id" field.
func MappingIDEqualFold ¶
func MappingIDEqualFold(v string) predicate.ProgramMembership
MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.
func MappingIDGT ¶
func MappingIDGT(v string) predicate.ProgramMembership
MappingIDGT applies the GT predicate on the "mapping_id" field.
func MappingIDGTE ¶
func MappingIDGTE(v string) predicate.ProgramMembership
MappingIDGTE applies the GTE predicate on the "mapping_id" field.
func MappingIDHasPrefix ¶
func MappingIDHasPrefix(v string) predicate.ProgramMembership
MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.
func MappingIDHasSuffix ¶
func MappingIDHasSuffix(v string) predicate.ProgramMembership
MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.
func MappingIDIn ¶
func MappingIDIn(vs ...string) predicate.ProgramMembership
MappingIDIn applies the In predicate on the "mapping_id" field.
func MappingIDLT ¶
func MappingIDLT(v string) predicate.ProgramMembership
MappingIDLT applies the LT predicate on the "mapping_id" field.
func MappingIDLTE ¶
func MappingIDLTE(v string) predicate.ProgramMembership
MappingIDLTE applies the LTE predicate on the "mapping_id" field.
func MappingIDNEQ ¶
func MappingIDNEQ(v string) predicate.ProgramMembership
MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.
func MappingIDNotIn ¶
func MappingIDNotIn(vs ...string) predicate.ProgramMembership
MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.
func Not ¶
func Not(p predicate.ProgramMembership) predicate.ProgramMembership
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ProgramMembership) predicate.ProgramMembership
Or groups predicates with the OR operator between them.
func ProgramID ¶
func ProgramID(v string) predicate.ProgramMembership
ProgramID applies equality check predicate on the "program_id" field. It's identical to ProgramIDEQ.
func ProgramIDContains ¶
func ProgramIDContains(v string) predicate.ProgramMembership
ProgramIDContains applies the Contains predicate on the "program_id" field.
func ProgramIDContainsFold ¶
func ProgramIDContainsFold(v string) predicate.ProgramMembership
ProgramIDContainsFold applies the ContainsFold predicate on the "program_id" field.
func ProgramIDEQ ¶
func ProgramIDEQ(v string) predicate.ProgramMembership
ProgramIDEQ applies the EQ predicate on the "program_id" field.
func ProgramIDEqualFold ¶
func ProgramIDEqualFold(v string) predicate.ProgramMembership
ProgramIDEqualFold applies the EqualFold predicate on the "program_id" field.
func ProgramIDGT ¶
func ProgramIDGT(v string) predicate.ProgramMembership
ProgramIDGT applies the GT predicate on the "program_id" field.
func ProgramIDGTE ¶
func ProgramIDGTE(v string) predicate.ProgramMembership
ProgramIDGTE applies the GTE predicate on the "program_id" field.
func ProgramIDHasPrefix ¶
func ProgramIDHasPrefix(v string) predicate.ProgramMembership
ProgramIDHasPrefix applies the HasPrefix predicate on the "program_id" field.
func ProgramIDHasSuffix ¶
func ProgramIDHasSuffix(v string) predicate.ProgramMembership
ProgramIDHasSuffix applies the HasSuffix predicate on the "program_id" field.
func ProgramIDIn ¶
func ProgramIDIn(vs ...string) predicate.ProgramMembership
ProgramIDIn applies the In predicate on the "program_id" field.
func ProgramIDLT ¶
func ProgramIDLT(v string) predicate.ProgramMembership
ProgramIDLT applies the LT predicate on the "program_id" field.
func ProgramIDLTE ¶
func ProgramIDLTE(v string) predicate.ProgramMembership
ProgramIDLTE applies the LTE predicate on the "program_id" field.
func ProgramIDNEQ ¶
func ProgramIDNEQ(v string) predicate.ProgramMembership
ProgramIDNEQ applies the NEQ predicate on the "program_id" field.
func ProgramIDNotIn ¶
func ProgramIDNotIn(vs ...string) predicate.ProgramMembership
ProgramIDNotIn applies the NotIn predicate on the "program_id" field.
func RoleEQ ¶
func RoleEQ(v enums.Role) predicate.ProgramMembership
RoleEQ applies the EQ predicate on the "role" field.
func RoleIn ¶
func RoleIn(vs ...enums.Role) predicate.ProgramMembership
RoleIn applies the In predicate on the "role" field.
func RoleNEQ ¶
func RoleNEQ(v enums.Role) predicate.ProgramMembership
RoleNEQ applies the NEQ predicate on the "role" field.
func RoleNotIn ¶
func RoleNotIn(vs ...enums.Role) predicate.ProgramMembership
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.ProgramMembership
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ProgramMembership
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ProgramMembership
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ProgramMembership
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ProgramMembership
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.ProgramMembership
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ProgramMembership
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ProgramMembership
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ProgramMembership
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ProgramMembership
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.ProgramMembership
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v string) predicate.ProgramMembership
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
func UpdatedByContains(v string) predicate.ProgramMembership
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
func UpdatedByContainsFold(v string) predicate.ProgramMembership
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
func UpdatedByEQ(v string) predicate.ProgramMembership
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
func UpdatedByEqualFold(v string) predicate.ProgramMembership
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v string) predicate.ProgramMembership
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v string) predicate.ProgramMembership
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
func UpdatedByHasPrefix(v string) predicate.ProgramMembership
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
func UpdatedByHasSuffix(v string) predicate.ProgramMembership
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...string) predicate.ProgramMembership
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.ProgramMembership
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v string) predicate.ProgramMembership
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v string) predicate.ProgramMembership
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v string) predicate.ProgramMembership
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...string) predicate.ProgramMembership
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.ProgramMembership
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func UserID ¶
func UserID(v string) predicate.ProgramMembership
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
func UserIDContains(v string) predicate.ProgramMembership
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
func UserIDContainsFold(v string) predicate.ProgramMembership
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEQ ¶
func UserIDEQ(v string) predicate.ProgramMembership
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDEqualFold ¶
func UserIDEqualFold(v string) predicate.ProgramMembership
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDGT ¶
func UserIDGT(v string) predicate.ProgramMembership
UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGTE ¶
func UserIDGTE(v string) predicate.ProgramMembership
UserIDGTE applies the GTE predicate on the "user_id" field.
func UserIDHasPrefix ¶
func UserIDHasPrefix(v string) predicate.ProgramMembership
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
func UserIDHasSuffix(v string) predicate.ProgramMembership
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...string) predicate.ProgramMembership
UserIDIn applies the In predicate on the "user_id" field.
func UserIDLT ¶
func UserIDLT(v string) predicate.ProgramMembership
UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLTE ¶
func UserIDLTE(v string) predicate.ProgramMembership
UserIDLTE applies the LTE predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v string) predicate.ProgramMembership
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...string) predicate.ProgramMembership
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 ProgramMembership 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 ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMappingID ¶
func ByMappingID(opts ...sql.OrderTermOption) OrderOption
ByMappingID orders the results by the mapping_id field.
func ByProgramField ¶
func ByProgramField(field string, opts ...sql.OrderTermOption) OrderOption
ByProgramField orders the results by program field.
func ByProgramID ¶
func ByProgramID(opts ...sql.OrderTermOption) OrderOption
ByProgramID orders the results by the program_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.