Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DomainMembership) predicate.DomainMembership
- func ArchivedAt(v time.Time) predicate.DomainMembership
- func ArchivedAtEQ(v time.Time) predicate.DomainMembership
- func ArchivedAtGT(v time.Time) predicate.DomainMembership
- func ArchivedAtGTE(v time.Time) predicate.DomainMembership
- func ArchivedAtIn(vs ...time.Time) predicate.DomainMembership
- func ArchivedAtIsNil() predicate.DomainMembership
- func ArchivedAtLT(v time.Time) predicate.DomainMembership
- func ArchivedAtLTE(v time.Time) predicate.DomainMembership
- func ArchivedAtNEQ(v time.Time) predicate.DomainMembership
- func ArchivedAtNotIn(vs ...time.Time) predicate.DomainMembership
- func ArchivedAtNotNil() predicate.DomainMembership
- func CreatedAt(v time.Time) predicate.DomainMembership
- func CreatedAtEQ(v time.Time) predicate.DomainMembership
- func CreatedAtGT(v time.Time) predicate.DomainMembership
- func CreatedAtGTE(v time.Time) predicate.DomainMembership
- func CreatedAtIn(vs ...time.Time) predicate.DomainMembership
- func CreatedAtIsNil() predicate.DomainMembership
- func CreatedAtLT(v time.Time) predicate.DomainMembership
- func CreatedAtLTE(v time.Time) predicate.DomainMembership
- func CreatedAtNEQ(v time.Time) predicate.DomainMembership
- func CreatedAtNotIn(vs ...time.Time) predicate.DomainMembership
- func CreatedAtNotNil() predicate.DomainMembership
- func CreatedByID(v uuid.UUID) predicate.DomainMembership
- func CreatedByIDEQ(v uuid.UUID) predicate.DomainMembership
- func CreatedByIDGT(v uuid.UUID) predicate.DomainMembership
- func CreatedByIDGTE(v uuid.UUID) predicate.DomainMembership
- func CreatedByIDIn(vs ...uuid.UUID) predicate.DomainMembership
- func CreatedByIDIsNil() predicate.DomainMembership
- func CreatedByIDLT(v uuid.UUID) predicate.DomainMembership
- func CreatedByIDLTE(v uuid.UUID) predicate.DomainMembership
- func CreatedByIDNEQ(v uuid.UUID) predicate.DomainMembership
- func CreatedByIDNotIn(vs ...uuid.UUID) predicate.DomainMembership
- func CreatedByIDNotNil() predicate.DomainMembership
- func DeletedAt(v time.Time) predicate.DomainMembership
- func DeletedAtEQ(v time.Time) predicate.DomainMembership
- func DeletedAtGT(v time.Time) predicate.DomainMembership
- func DeletedAtGTE(v time.Time) predicate.DomainMembership
- func DeletedAtIn(vs ...time.Time) predicate.DomainMembership
- func DeletedAtIsNil() predicate.DomainMembership
- func DeletedAtLT(v time.Time) predicate.DomainMembership
- func DeletedAtLTE(v time.Time) predicate.DomainMembership
- func DeletedAtNEQ(v time.Time) predicate.DomainMembership
- func DeletedAtNotIn(vs ...time.Time) predicate.DomainMembership
- func DeletedAtNotNil() predicate.DomainMembership
- func DeletedByID(v uuid.UUID) predicate.DomainMembership
- func DeletedByIDEQ(v uuid.UUID) predicate.DomainMembership
- func DeletedByIDGT(v uuid.UUID) predicate.DomainMembership
- func DeletedByIDGTE(v uuid.UUID) predicate.DomainMembership
- func DeletedByIDIn(vs ...uuid.UUID) predicate.DomainMembership
- func DeletedByIDIsNil() predicate.DomainMembership
- func DeletedByIDLT(v uuid.UUID) predicate.DomainMembership
- func DeletedByIDLTE(v uuid.UUID) predicate.DomainMembership
- func DeletedByIDNEQ(v uuid.UUID) predicate.DomainMembership
- func DeletedByIDNotIn(vs ...uuid.UUID) predicate.DomainMembership
- func DeletedByIDNotNil() predicate.DomainMembership
- func DomainID(v uuid.UUID) predicate.DomainMembership
- func DomainIDEQ(v uuid.UUID) predicate.DomainMembership
- func DomainIDIn(vs ...uuid.UUID) predicate.DomainMembership
- func DomainIDNEQ(v uuid.UUID) predicate.DomainMembership
- func DomainIDNotIn(vs ...uuid.UUID) predicate.DomainMembership
- func HasDomain() predicate.DomainMembership
- func HasDomainWith(preds ...predicate.Domain) predicate.DomainMembership
- func ID(id uuid.UUID) predicate.DomainMembership
- func IDEQ(id uuid.UUID) predicate.DomainMembership
- func IDGT(id uuid.UUID) predicate.DomainMembership
- func IDGTE(id uuid.UUID) predicate.DomainMembership
- func IDIn(ids ...uuid.UUID) predicate.DomainMembership
- func IDLT(id uuid.UUID) predicate.DomainMembership
- func IDLTE(id uuid.UUID) predicate.DomainMembership
- func IDNEQ(id uuid.UUID) predicate.DomainMembership
- func IDNotIn(ids ...uuid.UUID) predicate.DomainMembership
- func IsDefault(v bool) predicate.DomainMembership
- func IsDefaultEQ(v bool) predicate.DomainMembership
- func IsDefaultNEQ(v bool) predicate.DomainMembership
- func MemberRole(v string) predicate.DomainMembership
- func MemberRoleContains(v string) predicate.DomainMembership
- func MemberRoleContainsFold(v string) predicate.DomainMembership
- func MemberRoleEQ(v string) predicate.DomainMembership
- func MemberRoleEqualFold(v string) predicate.DomainMembership
- func MemberRoleGT(v string) predicate.DomainMembership
- func MemberRoleGTE(v string) predicate.DomainMembership
- func MemberRoleHasPrefix(v string) predicate.DomainMembership
- func MemberRoleHasSuffix(v string) predicate.DomainMembership
- func MemberRoleIn(vs ...string) predicate.DomainMembership
- func MemberRoleLT(v string) predicate.DomainMembership
- func MemberRoleLTE(v string) predicate.DomainMembership
- func MemberRoleNEQ(v string) predicate.DomainMembership
- func MemberRoleNotIn(vs ...string) predicate.DomainMembership
- func Not(p predicate.DomainMembership) predicate.DomainMembership
- func Or(predicates ...predicate.DomainMembership) predicate.DomainMembership
- func PublishedAt(v time.Time) predicate.DomainMembership
- func PublishedAtEQ(v time.Time) predicate.DomainMembership
- func PublishedAtGT(v time.Time) predicate.DomainMembership
- func PublishedAtGTE(v time.Time) predicate.DomainMembership
- func PublishedAtIn(vs ...time.Time) predicate.DomainMembership
- func PublishedAtIsNil() predicate.DomainMembership
- func PublishedAtLT(v time.Time) predicate.DomainMembership
- func PublishedAtLTE(v time.Time) predicate.DomainMembership
- func PublishedAtNEQ(v time.Time) predicate.DomainMembership
- func PublishedAtNotIn(vs ...time.Time) predicate.DomainMembership
- func PublishedAtNotNil() predicate.DomainMembership
- func StatusEQ(v Status) predicate.DomainMembership
- func StatusIn(vs ...Status) predicate.DomainMembership
- func StatusNEQ(v Status) predicate.DomainMembership
- func StatusNotIn(vs ...Status) predicate.DomainMembership
- func StatusValidator(s Status) error
- func SubjectID(v uuid.UUID) predicate.DomainMembership
- func SubjectIDEQ(v uuid.UUID) predicate.DomainMembership
- func SubjectIDGT(v uuid.UUID) predicate.DomainMembership
- func SubjectIDGTE(v uuid.UUID) predicate.DomainMembership
- func SubjectIDIn(vs ...uuid.UUID) predicate.DomainMembership
- func SubjectIDLT(v uuid.UUID) predicate.DomainMembership
- func SubjectIDLTE(v uuid.UUID) predicate.DomainMembership
- func SubjectIDNEQ(v uuid.UUID) predicate.DomainMembership
- func SubjectIDNotIn(vs ...uuid.UUID) predicate.DomainMembership
- func SubjectTypeEQ(v SubjectType) predicate.DomainMembership
- func SubjectTypeIn(vs ...SubjectType) predicate.DomainMembership
- func SubjectTypeNEQ(v SubjectType) predicate.DomainMembership
- func SubjectTypeNotIn(vs ...SubjectType) predicate.DomainMembership
- func SubjectTypeValidator(st SubjectType) error
- func UpdatedAt(v time.Time) predicate.DomainMembership
- func UpdatedAtEQ(v time.Time) predicate.DomainMembership
- func UpdatedAtGT(v time.Time) predicate.DomainMembership
- func UpdatedAtGTE(v time.Time) predicate.DomainMembership
- func UpdatedAtIn(vs ...time.Time) predicate.DomainMembership
- func UpdatedAtIsNil() predicate.DomainMembership
- func UpdatedAtLT(v time.Time) predicate.DomainMembership
- func UpdatedAtLTE(v time.Time) predicate.DomainMembership
- func UpdatedAtNEQ(v time.Time) predicate.DomainMembership
- func UpdatedAtNotIn(vs ...time.Time) predicate.DomainMembership
- func UpdatedAtNotNil() predicate.DomainMembership
- func UpdatedByID(v uuid.UUID) predicate.DomainMembership
- func UpdatedByIDEQ(v uuid.UUID) predicate.DomainMembership
- func UpdatedByIDGT(v uuid.UUID) predicate.DomainMembership
- func UpdatedByIDGTE(v uuid.UUID) predicate.DomainMembership
- func UpdatedByIDIn(vs ...uuid.UUID) predicate.DomainMembership
- func UpdatedByIDIsNil() predicate.DomainMembership
- func UpdatedByIDLT(v uuid.UUID) predicate.DomainMembership
- func UpdatedByIDLTE(v uuid.UUID) predicate.DomainMembership
- func UpdatedByIDNEQ(v uuid.UUID) predicate.DomainMembership
- func UpdatedByIDNotIn(vs ...uuid.UUID) predicate.DomainMembership
- func UpdatedByIDNotNil() predicate.DomainMembership
- func ValidColumn(column string) bool
- type OrderOption
- func ByArchivedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedByID(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedByID(opts ...sql.OrderTermOption) OrderOption
- func ByDomainField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByDomainID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
- func ByMemberRole(opts ...sql.OrderTermOption) OrderOption
- func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func BySubjectID(opts ...sql.OrderTermOption) OrderOption
- func BySubjectType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedByID(opts ...sql.OrderTermOption) OrderOption
- type Status
- type SubjectType
Constants ¶
const ( // Label holds the string label denoting the domainmembership type in the database. Label = "domain_membership" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedByID holds the string denoting the created_by_id field in the database. FieldCreatedByID = "created_by_id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedByID holds the string denoting the updated_by_id field in the database. FieldUpdatedByID = "updated_by_id" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedByID holds the string denoting the deleted_by_id field in the database. FieldDeletedByID = "deleted_by_id" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldPublishedAt holds the string denoting the published_at field in the database. FieldPublishedAt = "published_at" // FieldArchivedAt holds the string denoting the archived_at field in the database. FieldArchivedAt = "archived_at" // FieldDomainID holds the string denoting the domain_id field in the database. FieldDomainID = "domain_id" // FieldSubjectType holds the string denoting the subject_type field in the database. FieldSubjectType = "subject_type" // FieldSubjectID holds the string denoting the subject_id field in the database. FieldSubjectID = "subject_id" // FieldMemberRole holds the string denoting the member_role field in the database. FieldMemberRole = "member_role" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldIsDefault holds the string denoting the is_default field in the database. FieldIsDefault = "is_default" // EdgeDomain holds the string denoting the domain edge name in mutations. EdgeDomain = "domain" // Table holds the table name of the domainmembership in the database. Table = "domain_memberships" // DomainTable is the table that holds the domain relation/edge. DomainTable = "domain_memberships" // DomainInverseTable is the table name for the Domain entity. // It exists in this package in order to avoid circular dependency with the "domain" package. DomainInverseTable = "domains" // DomainColumn is the table column denoting the domain relation/edge. DomainColumn = "domain_id" )
const DefaultStatus = StatusActive
StatusActive is the default value of the Status enum.
const DefaultSubjectType = SubjectTypeUser
SubjectTypeUser is the default value of the SubjectType enum.
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 // DefaultMemberRole holds the default value on creation for the "member_role" field. DefaultMemberRole string // MemberRoleValidator is a validator for the "member_role" field. It is called by the builders before save. MemberRoleValidator func(string) error // DefaultIsDefault holds the default value on creation for the "is_default" field. DefaultIsDefault bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedByID, FieldCreatedAt, FieldUpdatedByID, FieldUpdatedAt, FieldDeletedByID, FieldDeletedAt, FieldPublishedAt, FieldArchivedAt, FieldDomainID, FieldSubjectType, FieldSubjectID, FieldMemberRole, FieldStatus, FieldIsDefault, }
Columns holds all SQL columns for domainmembership fields.
Functions ¶
func And ¶
func And(predicates ...predicate.DomainMembership) predicate.DomainMembership
And groups predicates with the AND operator between them.
func ArchivedAt ¶
func ArchivedAt(v time.Time) predicate.DomainMembership
ArchivedAt applies equality check predicate on the "archived_at" field. It's identical to ArchivedAtEQ.
func ArchivedAtEQ ¶
func ArchivedAtEQ(v time.Time) predicate.DomainMembership
ArchivedAtEQ applies the EQ predicate on the "archived_at" field.
func ArchivedAtGT ¶
func ArchivedAtGT(v time.Time) predicate.DomainMembership
ArchivedAtGT applies the GT predicate on the "archived_at" field.
func ArchivedAtGTE ¶
func ArchivedAtGTE(v time.Time) predicate.DomainMembership
ArchivedAtGTE applies the GTE predicate on the "archived_at" field.
func ArchivedAtIn ¶
func ArchivedAtIn(vs ...time.Time) predicate.DomainMembership
ArchivedAtIn applies the In predicate on the "archived_at" field.
func ArchivedAtIsNil ¶
func ArchivedAtIsNil() predicate.DomainMembership
ArchivedAtIsNil applies the IsNil predicate on the "archived_at" field.
func ArchivedAtLT ¶
func ArchivedAtLT(v time.Time) predicate.DomainMembership
ArchivedAtLT applies the LT predicate on the "archived_at" field.
func ArchivedAtLTE ¶
func ArchivedAtLTE(v time.Time) predicate.DomainMembership
ArchivedAtLTE applies the LTE predicate on the "archived_at" field.
func ArchivedAtNEQ ¶
func ArchivedAtNEQ(v time.Time) predicate.DomainMembership
ArchivedAtNEQ applies the NEQ predicate on the "archived_at" field.
func ArchivedAtNotIn ¶
func ArchivedAtNotIn(vs ...time.Time) predicate.DomainMembership
ArchivedAtNotIn applies the NotIn predicate on the "archived_at" field.
func ArchivedAtNotNil ¶
func ArchivedAtNotNil() predicate.DomainMembership
ArchivedAtNotNil applies the NotNil predicate on the "archived_at" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.DomainMembership
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.DomainMembership
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.DomainMembership
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.DomainMembership
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.DomainMembership
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
func CreatedAtIsNil() predicate.DomainMembership
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.DomainMembership
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.DomainMembership
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.DomainMembership
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.DomainMembership
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
func CreatedAtNotNil() predicate.DomainMembership
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedByID ¶
func CreatedByID(v uuid.UUID) predicate.DomainMembership
CreatedByID applies equality check predicate on the "created_by_id" field. It's identical to CreatedByIDEQ.
func CreatedByIDEQ ¶
func CreatedByIDEQ(v uuid.UUID) predicate.DomainMembership
CreatedByIDEQ applies the EQ predicate on the "created_by_id" field.
func CreatedByIDGT ¶
func CreatedByIDGT(v uuid.UUID) predicate.DomainMembership
CreatedByIDGT applies the GT predicate on the "created_by_id" field.
func CreatedByIDGTE ¶
func CreatedByIDGTE(v uuid.UUID) predicate.DomainMembership
CreatedByIDGTE applies the GTE predicate on the "created_by_id" field.
func CreatedByIDIn ¶
func CreatedByIDIn(vs ...uuid.UUID) predicate.DomainMembership
CreatedByIDIn applies the In predicate on the "created_by_id" field.
func CreatedByIDIsNil ¶
func CreatedByIDIsNil() predicate.DomainMembership
CreatedByIDIsNil applies the IsNil predicate on the "created_by_id" field.
func CreatedByIDLT ¶
func CreatedByIDLT(v uuid.UUID) predicate.DomainMembership
CreatedByIDLT applies the LT predicate on the "created_by_id" field.
func CreatedByIDLTE ¶
func CreatedByIDLTE(v uuid.UUID) predicate.DomainMembership
CreatedByIDLTE applies the LTE predicate on the "created_by_id" field.
func CreatedByIDNEQ ¶
func CreatedByIDNEQ(v uuid.UUID) predicate.DomainMembership
CreatedByIDNEQ applies the NEQ predicate on the "created_by_id" field.
func CreatedByIDNotIn ¶
func CreatedByIDNotIn(vs ...uuid.UUID) predicate.DomainMembership
CreatedByIDNotIn applies the NotIn predicate on the "created_by_id" field.
func CreatedByIDNotNil ¶
func CreatedByIDNotNil() predicate.DomainMembership
CreatedByIDNotNil applies the NotNil predicate on the "created_by_id" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.DomainMembership
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.DomainMembership
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.DomainMembership
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.DomainMembership
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.DomainMembership
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.DomainMembership
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.DomainMembership
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.DomainMembership
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.DomainMembership
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.DomainMembership
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.DomainMembership
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedByID ¶
func DeletedByID(v uuid.UUID) predicate.DomainMembership
DeletedByID applies equality check predicate on the "deleted_by_id" field. It's identical to DeletedByIDEQ.
func DeletedByIDEQ ¶
func DeletedByIDEQ(v uuid.UUID) predicate.DomainMembership
DeletedByIDEQ applies the EQ predicate on the "deleted_by_id" field.
func DeletedByIDGT ¶
func DeletedByIDGT(v uuid.UUID) predicate.DomainMembership
DeletedByIDGT applies the GT predicate on the "deleted_by_id" field.
func DeletedByIDGTE ¶
func DeletedByIDGTE(v uuid.UUID) predicate.DomainMembership
DeletedByIDGTE applies the GTE predicate on the "deleted_by_id" field.
func DeletedByIDIn ¶
func DeletedByIDIn(vs ...uuid.UUID) predicate.DomainMembership
DeletedByIDIn applies the In predicate on the "deleted_by_id" field.
func DeletedByIDIsNil ¶
func DeletedByIDIsNil() predicate.DomainMembership
DeletedByIDIsNil applies the IsNil predicate on the "deleted_by_id" field.
func DeletedByIDLT ¶
func DeletedByIDLT(v uuid.UUID) predicate.DomainMembership
DeletedByIDLT applies the LT predicate on the "deleted_by_id" field.
func DeletedByIDLTE ¶
func DeletedByIDLTE(v uuid.UUID) predicate.DomainMembership
DeletedByIDLTE applies the LTE predicate on the "deleted_by_id" field.
func DeletedByIDNEQ ¶
func DeletedByIDNEQ(v uuid.UUID) predicate.DomainMembership
DeletedByIDNEQ applies the NEQ predicate on the "deleted_by_id" field.
func DeletedByIDNotIn ¶
func DeletedByIDNotIn(vs ...uuid.UUID) predicate.DomainMembership
DeletedByIDNotIn applies the NotIn predicate on the "deleted_by_id" field.
func DeletedByIDNotNil ¶
func DeletedByIDNotNil() predicate.DomainMembership
DeletedByIDNotNil applies the NotNil predicate on the "deleted_by_id" field.
func DomainID ¶
func DomainID(v uuid.UUID) predicate.DomainMembership
DomainID applies equality check predicate on the "domain_id" field. It's identical to DomainIDEQ.
func DomainIDEQ ¶
func DomainIDEQ(v uuid.UUID) predicate.DomainMembership
DomainIDEQ applies the EQ predicate on the "domain_id" field.
func DomainIDIn ¶
func DomainIDIn(vs ...uuid.UUID) predicate.DomainMembership
DomainIDIn applies the In predicate on the "domain_id" field.
func DomainIDNEQ ¶
func DomainIDNEQ(v uuid.UUID) predicate.DomainMembership
DomainIDNEQ applies the NEQ predicate on the "domain_id" field.
func DomainIDNotIn ¶
func DomainIDNotIn(vs ...uuid.UUID) predicate.DomainMembership
DomainIDNotIn applies the NotIn predicate on the "domain_id" field.
func HasDomain ¶
func HasDomain() predicate.DomainMembership
HasDomain applies the HasEdge predicate on the "domain" edge.
func HasDomainWith ¶
func HasDomainWith(preds ...predicate.Domain) predicate.DomainMembership
HasDomainWith applies the HasEdge predicate on the "domain" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.DomainMembership
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.DomainMembership
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.DomainMembership
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.DomainMembership
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.DomainMembership
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.DomainMembership
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.DomainMembership
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.DomainMembership
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.DomainMembership
IDNotIn applies the NotIn predicate on the ID field.
func IsDefault ¶
func IsDefault(v bool) predicate.DomainMembership
IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.
func IsDefaultEQ ¶
func IsDefaultEQ(v bool) predicate.DomainMembership
IsDefaultEQ applies the EQ predicate on the "is_default" field.
func IsDefaultNEQ ¶
func IsDefaultNEQ(v bool) predicate.DomainMembership
IsDefaultNEQ applies the NEQ predicate on the "is_default" field.
func MemberRole ¶
func MemberRole(v string) predicate.DomainMembership
MemberRole applies equality check predicate on the "member_role" field. It's identical to MemberRoleEQ.
func MemberRoleContains ¶
func MemberRoleContains(v string) predicate.DomainMembership
MemberRoleContains applies the Contains predicate on the "member_role" field.
func MemberRoleContainsFold ¶
func MemberRoleContainsFold(v string) predicate.DomainMembership
MemberRoleContainsFold applies the ContainsFold predicate on the "member_role" field.
func MemberRoleEQ ¶
func MemberRoleEQ(v string) predicate.DomainMembership
MemberRoleEQ applies the EQ predicate on the "member_role" field.
func MemberRoleEqualFold ¶
func MemberRoleEqualFold(v string) predicate.DomainMembership
MemberRoleEqualFold applies the EqualFold predicate on the "member_role" field.
func MemberRoleGT ¶
func MemberRoleGT(v string) predicate.DomainMembership
MemberRoleGT applies the GT predicate on the "member_role" field.
func MemberRoleGTE ¶
func MemberRoleGTE(v string) predicate.DomainMembership
MemberRoleGTE applies the GTE predicate on the "member_role" field.
func MemberRoleHasPrefix ¶
func MemberRoleHasPrefix(v string) predicate.DomainMembership
MemberRoleHasPrefix applies the HasPrefix predicate on the "member_role" field.
func MemberRoleHasSuffix ¶
func MemberRoleHasSuffix(v string) predicate.DomainMembership
MemberRoleHasSuffix applies the HasSuffix predicate on the "member_role" field.
func MemberRoleIn ¶
func MemberRoleIn(vs ...string) predicate.DomainMembership
MemberRoleIn applies the In predicate on the "member_role" field.
func MemberRoleLT ¶
func MemberRoleLT(v string) predicate.DomainMembership
MemberRoleLT applies the LT predicate on the "member_role" field.
func MemberRoleLTE ¶
func MemberRoleLTE(v string) predicate.DomainMembership
MemberRoleLTE applies the LTE predicate on the "member_role" field.
func MemberRoleNEQ ¶
func MemberRoleNEQ(v string) predicate.DomainMembership
MemberRoleNEQ applies the NEQ predicate on the "member_role" field.
func MemberRoleNotIn ¶
func MemberRoleNotIn(vs ...string) predicate.DomainMembership
MemberRoleNotIn applies the NotIn predicate on the "member_role" field.
func Not ¶
func Not(p predicate.DomainMembership) predicate.DomainMembership
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.DomainMembership) predicate.DomainMembership
Or groups predicates with the OR operator between them.
func PublishedAt ¶
func PublishedAt(v time.Time) predicate.DomainMembership
PublishedAt applies equality check predicate on the "published_at" field. It's identical to PublishedAtEQ.
func PublishedAtEQ ¶
func PublishedAtEQ(v time.Time) predicate.DomainMembership
PublishedAtEQ applies the EQ predicate on the "published_at" field.
func PublishedAtGT ¶
func PublishedAtGT(v time.Time) predicate.DomainMembership
PublishedAtGT applies the GT predicate on the "published_at" field.
func PublishedAtGTE ¶
func PublishedAtGTE(v time.Time) predicate.DomainMembership
PublishedAtGTE applies the GTE predicate on the "published_at" field.
func PublishedAtIn ¶
func PublishedAtIn(vs ...time.Time) predicate.DomainMembership
PublishedAtIn applies the In predicate on the "published_at" field.
func PublishedAtIsNil ¶
func PublishedAtIsNil() predicate.DomainMembership
PublishedAtIsNil applies the IsNil predicate on the "published_at" field.
func PublishedAtLT ¶
func PublishedAtLT(v time.Time) predicate.DomainMembership
PublishedAtLT applies the LT predicate on the "published_at" field.
func PublishedAtLTE ¶
func PublishedAtLTE(v time.Time) predicate.DomainMembership
PublishedAtLTE applies the LTE predicate on the "published_at" field.
func PublishedAtNEQ ¶
func PublishedAtNEQ(v time.Time) predicate.DomainMembership
PublishedAtNEQ applies the NEQ predicate on the "published_at" field.
func PublishedAtNotIn ¶
func PublishedAtNotIn(vs ...time.Time) predicate.DomainMembership
PublishedAtNotIn applies the NotIn predicate on the "published_at" field.
func PublishedAtNotNil ¶
func PublishedAtNotNil() predicate.DomainMembership
PublishedAtNotNil applies the NotNil predicate on the "published_at" field.
func StatusEQ ¶
func StatusEQ(v Status) predicate.DomainMembership
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...Status) predicate.DomainMembership
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v Status) predicate.DomainMembership
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...Status) predicate.DomainMembership
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func SubjectID ¶
func SubjectID(v uuid.UUID) predicate.DomainMembership
SubjectID applies equality check predicate on the "subject_id" field. It's identical to SubjectIDEQ.
func SubjectIDEQ ¶
func SubjectIDEQ(v uuid.UUID) predicate.DomainMembership
SubjectIDEQ applies the EQ predicate on the "subject_id" field.
func SubjectIDGT ¶
func SubjectIDGT(v uuid.UUID) predicate.DomainMembership
SubjectIDGT applies the GT predicate on the "subject_id" field.
func SubjectIDGTE ¶
func SubjectIDGTE(v uuid.UUID) predicate.DomainMembership
SubjectIDGTE applies the GTE predicate on the "subject_id" field.
func SubjectIDIn ¶
func SubjectIDIn(vs ...uuid.UUID) predicate.DomainMembership
SubjectIDIn applies the In predicate on the "subject_id" field.
func SubjectIDLT ¶
func SubjectIDLT(v uuid.UUID) predicate.DomainMembership
SubjectIDLT applies the LT predicate on the "subject_id" field.
func SubjectIDLTE ¶
func SubjectIDLTE(v uuid.UUID) predicate.DomainMembership
SubjectIDLTE applies the LTE predicate on the "subject_id" field.
func SubjectIDNEQ ¶
func SubjectIDNEQ(v uuid.UUID) predicate.DomainMembership
SubjectIDNEQ applies the NEQ predicate on the "subject_id" field.
func SubjectIDNotIn ¶
func SubjectIDNotIn(vs ...uuid.UUID) predicate.DomainMembership
SubjectIDNotIn applies the NotIn predicate on the "subject_id" field.
func SubjectTypeEQ ¶
func SubjectTypeEQ(v SubjectType) predicate.DomainMembership
SubjectTypeEQ applies the EQ predicate on the "subject_type" field.
func SubjectTypeIn ¶
func SubjectTypeIn(vs ...SubjectType) predicate.DomainMembership
SubjectTypeIn applies the In predicate on the "subject_type" field.
func SubjectTypeNEQ ¶
func SubjectTypeNEQ(v SubjectType) predicate.DomainMembership
SubjectTypeNEQ applies the NEQ predicate on the "subject_type" field.
func SubjectTypeNotIn ¶
func SubjectTypeNotIn(vs ...SubjectType) predicate.DomainMembership
SubjectTypeNotIn applies the NotIn predicate on the "subject_type" field.
func SubjectTypeValidator ¶
func SubjectTypeValidator(st SubjectType) error
SubjectTypeValidator is a validator for the "subject_type" field enum values. It is called by the builders before save.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.DomainMembership
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.DomainMembership
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.DomainMembership
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.DomainMembership
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.DomainMembership
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.DomainMembership
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.DomainMembership
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.DomainMembership
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.DomainMembership
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.DomainMembership
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.DomainMembership
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedByID ¶
func UpdatedByID(v uuid.UUID) predicate.DomainMembership
UpdatedByID applies equality check predicate on the "updated_by_id" field. It's identical to UpdatedByIDEQ.
func UpdatedByIDEQ ¶
func UpdatedByIDEQ(v uuid.UUID) predicate.DomainMembership
UpdatedByIDEQ applies the EQ predicate on the "updated_by_id" field.
func UpdatedByIDGT ¶
func UpdatedByIDGT(v uuid.UUID) predicate.DomainMembership
UpdatedByIDGT applies the GT predicate on the "updated_by_id" field.
func UpdatedByIDGTE ¶
func UpdatedByIDGTE(v uuid.UUID) predicate.DomainMembership
UpdatedByIDGTE applies the GTE predicate on the "updated_by_id" field.
func UpdatedByIDIn ¶
func UpdatedByIDIn(vs ...uuid.UUID) predicate.DomainMembership
UpdatedByIDIn applies the In predicate on the "updated_by_id" field.
func UpdatedByIDIsNil ¶
func UpdatedByIDIsNil() predicate.DomainMembership
UpdatedByIDIsNil applies the IsNil predicate on the "updated_by_id" field.
func UpdatedByIDLT ¶
func UpdatedByIDLT(v uuid.UUID) predicate.DomainMembership
UpdatedByIDLT applies the LT predicate on the "updated_by_id" field.
func UpdatedByIDLTE ¶
func UpdatedByIDLTE(v uuid.UUID) predicate.DomainMembership
UpdatedByIDLTE applies the LTE predicate on the "updated_by_id" field.
func UpdatedByIDNEQ ¶
func UpdatedByIDNEQ(v uuid.UUID) predicate.DomainMembership
UpdatedByIDNEQ applies the NEQ predicate on the "updated_by_id" field.
func UpdatedByIDNotIn ¶
func UpdatedByIDNotIn(vs ...uuid.UUID) predicate.DomainMembership
UpdatedByIDNotIn applies the NotIn predicate on the "updated_by_id" field.
func UpdatedByIDNotNil ¶
func UpdatedByIDNotNil() predicate.DomainMembership
UpdatedByIDNotNil applies the NotNil predicate on the "updated_by_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 DomainMembership queries.
func ByArchivedAt ¶
func ByArchivedAt(opts ...sql.OrderTermOption) OrderOption
ByArchivedAt orders the results by the archived_at field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedByID ¶
func ByCreatedByID(opts ...sql.OrderTermOption) OrderOption
ByCreatedByID orders the results by the created_by_id field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDeletedByID ¶
func ByDeletedByID(opts ...sql.OrderTermOption) OrderOption
ByDeletedByID orders the results by the deleted_by_id field.
func ByDomainField ¶
func ByDomainField(field string, opts ...sql.OrderTermOption) OrderOption
ByDomainField orders the results by domain field.
func ByDomainID ¶
func ByDomainID(opts ...sql.OrderTermOption) OrderOption
ByDomainID orders the results by the domain_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsDefault ¶
func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
ByIsDefault orders the results by the is_default field.
func ByMemberRole ¶
func ByMemberRole(opts ...sql.OrderTermOption) OrderOption
ByMemberRole orders the results by the member_role field.
func ByPublishedAt ¶
func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption
ByPublishedAt orders the results by the published_at field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func BySubjectID ¶
func BySubjectID(opts ...sql.OrderTermOption) OrderOption
BySubjectID orders the results by the subject_id field.
func BySubjectType ¶
func BySubjectType(opts ...sql.OrderTermOption) OrderOption
BySubjectType orders the results by the subject_type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedByID ¶
func ByUpdatedByID(opts ...sql.OrderTermOption) OrderOption
ByUpdatedByID orders the results by the updated_by_id field.
type Status ¶
type Status string
Status defines the type for the "status" enum field.
type SubjectType ¶
type SubjectType string
SubjectType defines the type for the "subject_type" enum field.
const ( SubjectTypeUser SubjectType = "user" SubjectTypeServiceAccount SubjectType = "service_account" )
SubjectType values.
func (SubjectType) String ¶
func (st SubjectType) String() string