// Code generated by entc, DO NOT EDIT. package domain import ( "time" "code.icod.de/postfix/manager/ent/predicate" "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" ) // ID filters vertices based on their ID field. func ID(id int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldID), id)) }) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldID), id)) }) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldID), id)) }) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(ids) == 0 { s.Where(sql.False()) return } v := make([]interface{}, len(ids)) for i := range v { v[i] = ids[i] } s.Where(sql.In(s.C(FieldID), v...)) }) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(ids) == 0 { s.Where(sql.False()) return } v := make([]interface{}, len(ids)) for i := range v { v[i] = ids[i] } s.Where(sql.NotIn(s.C(FieldID), v...)) }) } // IDGT applies the GT predicate on the ID field. func IDGT(id int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GT(s.C(FieldID), id)) }) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldID), id)) }) } // IDLT applies the LT predicate on the ID field. func IDLT(id int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldID), id)) }) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldID), id)) }) } // Created applies equality check predicate on the "created" field. It's identical to CreatedEQ. func Created(v time.Time) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldCreated), v)) }) } // Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ. func Modified(v time.Time) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldModified), v)) }) } // Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ. func Domain(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldDomain), v)) }) } // Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. func Description(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldDescription), v)) }) } // MaxAliases applies equality check predicate on the "max_aliases" field. It's identical to MaxAliasesEQ. func MaxAliases(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldMaxAliases), v)) }) } // MaxMailboxes applies equality check predicate on the "max_mailboxes" field. It's identical to MaxMailboxesEQ. func MaxMailboxes(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldMaxMailboxes), v)) }) } // MaxQuota applies equality check predicate on the "max_quota" field. It's identical to MaxQuotaEQ. func MaxQuota(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldMaxQuota), v)) }) } // Quota applies equality check predicate on the "quota" field. It's identical to QuotaEQ. func Quota(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldQuota), v)) }) } // Transport applies equality check predicate on the "transport" field. It's identical to TransportEQ. func Transport(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldTransport), v)) }) } // BackupMx applies equality check predicate on the "backup_mx" field. It's identical to BackupMxEQ. func BackupMx(v bool) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldBackupMx), v)) }) } // Active applies equality check predicate on the "active" field. It's identical to ActiveEQ. func Active(v bool) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldActive), v)) }) } // CreatedEQ applies the EQ predicate on the "created" field. func CreatedEQ(v time.Time) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldCreated), v)) }) } // CreatedNEQ applies the NEQ predicate on the "created" field. func CreatedNEQ(v time.Time) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldCreated), v)) }) } // CreatedIn applies the In predicate on the "created" field. func CreatedIn(vs ...time.Time) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.In(s.C(FieldCreated), v...)) }) } // CreatedNotIn applies the NotIn predicate on the "created" field. func CreatedNotIn(vs ...time.Time) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.NotIn(s.C(FieldCreated), v...)) }) } // CreatedGT applies the GT predicate on the "created" field. func CreatedGT(v time.Time) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GT(s.C(FieldCreated), v)) }) } // CreatedGTE applies the GTE predicate on the "created" field. func CreatedGTE(v time.Time) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldCreated), v)) }) } // CreatedLT applies the LT predicate on the "created" field. func CreatedLT(v time.Time) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldCreated), v)) }) } // CreatedLTE applies the LTE predicate on the "created" field. func CreatedLTE(v time.Time) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldCreated), v)) }) } // ModifiedEQ applies the EQ predicate on the "modified" field. func ModifiedEQ(v time.Time) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldModified), v)) }) } // ModifiedNEQ applies the NEQ predicate on the "modified" field. func ModifiedNEQ(v time.Time) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldModified), v)) }) } // ModifiedIn applies the In predicate on the "modified" field. func ModifiedIn(vs ...time.Time) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.In(s.C(FieldModified), v...)) }) } // ModifiedNotIn applies the NotIn predicate on the "modified" field. func ModifiedNotIn(vs ...time.Time) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.NotIn(s.C(FieldModified), v...)) }) } // ModifiedGT applies the GT predicate on the "modified" field. func ModifiedGT(v time.Time) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GT(s.C(FieldModified), v)) }) } // ModifiedGTE applies the GTE predicate on the "modified" field. func ModifiedGTE(v time.Time) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldModified), v)) }) } // ModifiedLT applies the LT predicate on the "modified" field. func ModifiedLT(v time.Time) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldModified), v)) }) } // ModifiedLTE applies the LTE predicate on the "modified" field. func ModifiedLTE(v time.Time) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldModified), v)) }) } // ModifiedIsNil applies the IsNil predicate on the "modified" field. func ModifiedIsNil() predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.IsNull(s.C(FieldModified))) }) } // ModifiedNotNil applies the NotNil predicate on the "modified" field. func ModifiedNotNil() predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.NotNull(s.C(FieldModified))) }) } // DomainEQ applies the EQ predicate on the "domain" field. func DomainEQ(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldDomain), v)) }) } // DomainNEQ applies the NEQ predicate on the "domain" field. func DomainNEQ(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldDomain), v)) }) } // DomainIn applies the In predicate on the "domain" field. func DomainIn(vs ...string) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.In(s.C(FieldDomain), v...)) }) } // DomainNotIn applies the NotIn predicate on the "domain" field. func DomainNotIn(vs ...string) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.NotIn(s.C(FieldDomain), v...)) }) } // DomainGT applies the GT predicate on the "domain" field. func DomainGT(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GT(s.C(FieldDomain), v)) }) } // DomainGTE applies the GTE predicate on the "domain" field. func DomainGTE(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldDomain), v)) }) } // DomainLT applies the LT predicate on the "domain" field. func DomainLT(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldDomain), v)) }) } // DomainLTE applies the LTE predicate on the "domain" field. func DomainLTE(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldDomain), v)) }) } // DomainContains applies the Contains predicate on the "domain" field. func DomainContains(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.Contains(s.C(FieldDomain), v)) }) } // DomainHasPrefix applies the HasPrefix predicate on the "domain" field. func DomainHasPrefix(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.HasPrefix(s.C(FieldDomain), v)) }) } // DomainHasSuffix applies the HasSuffix predicate on the "domain" field. func DomainHasSuffix(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.HasSuffix(s.C(FieldDomain), v)) }) } // DomainEqualFold applies the EqualFold predicate on the "domain" field. func DomainEqualFold(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EqualFold(s.C(FieldDomain), v)) }) } // DomainContainsFold applies the ContainsFold predicate on the "domain" field. func DomainContainsFold(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.ContainsFold(s.C(FieldDomain), v)) }) } // DescriptionEQ applies the EQ predicate on the "description" field. func DescriptionEQ(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldDescription), v)) }) } // DescriptionNEQ applies the NEQ predicate on the "description" field. func DescriptionNEQ(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldDescription), v)) }) } // DescriptionIn applies the In predicate on the "description" field. func DescriptionIn(vs ...string) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.In(s.C(FieldDescription), v...)) }) } // DescriptionNotIn applies the NotIn predicate on the "description" field. func DescriptionNotIn(vs ...string) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.NotIn(s.C(FieldDescription), v...)) }) } // DescriptionGT applies the GT predicate on the "description" field. func DescriptionGT(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GT(s.C(FieldDescription), v)) }) } // DescriptionGTE applies the GTE predicate on the "description" field. func DescriptionGTE(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldDescription), v)) }) } // DescriptionLT applies the LT predicate on the "description" field. func DescriptionLT(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldDescription), v)) }) } // DescriptionLTE applies the LTE predicate on the "description" field. func DescriptionLTE(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldDescription), v)) }) } // DescriptionContains applies the Contains predicate on the "description" field. func DescriptionContains(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.Contains(s.C(FieldDescription), v)) }) } // DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. func DescriptionHasPrefix(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.HasPrefix(s.C(FieldDescription), v)) }) } // DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. func DescriptionHasSuffix(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.HasSuffix(s.C(FieldDescription), v)) }) } // DescriptionIsNil applies the IsNil predicate on the "description" field. func DescriptionIsNil() predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.IsNull(s.C(FieldDescription))) }) } // DescriptionNotNil applies the NotNil predicate on the "description" field. func DescriptionNotNil() predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.NotNull(s.C(FieldDescription))) }) } // DescriptionEqualFold applies the EqualFold predicate on the "description" field. func DescriptionEqualFold(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EqualFold(s.C(FieldDescription), v)) }) } // DescriptionContainsFold applies the ContainsFold predicate on the "description" field. func DescriptionContainsFold(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.ContainsFold(s.C(FieldDescription), v)) }) } // MaxAliasesEQ applies the EQ predicate on the "max_aliases" field. func MaxAliasesEQ(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldMaxAliases), v)) }) } // MaxAliasesNEQ applies the NEQ predicate on the "max_aliases" field. func MaxAliasesNEQ(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldMaxAliases), v)) }) } // MaxAliasesIn applies the In predicate on the "max_aliases" field. func MaxAliasesIn(vs ...int64) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.In(s.C(FieldMaxAliases), v...)) }) } // MaxAliasesNotIn applies the NotIn predicate on the "max_aliases" field. func MaxAliasesNotIn(vs ...int64) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.NotIn(s.C(FieldMaxAliases), v...)) }) } // MaxAliasesGT applies the GT predicate on the "max_aliases" field. func MaxAliasesGT(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GT(s.C(FieldMaxAliases), v)) }) } // MaxAliasesGTE applies the GTE predicate on the "max_aliases" field. func MaxAliasesGTE(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldMaxAliases), v)) }) } // MaxAliasesLT applies the LT predicate on the "max_aliases" field. func MaxAliasesLT(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldMaxAliases), v)) }) } // MaxAliasesLTE applies the LTE predicate on the "max_aliases" field. func MaxAliasesLTE(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldMaxAliases), v)) }) } // MaxMailboxesEQ applies the EQ predicate on the "max_mailboxes" field. func MaxMailboxesEQ(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldMaxMailboxes), v)) }) } // MaxMailboxesNEQ applies the NEQ predicate on the "max_mailboxes" field. func MaxMailboxesNEQ(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldMaxMailboxes), v)) }) } // MaxMailboxesIn applies the In predicate on the "max_mailboxes" field. func MaxMailboxesIn(vs ...int64) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.In(s.C(FieldMaxMailboxes), v...)) }) } // MaxMailboxesNotIn applies the NotIn predicate on the "max_mailboxes" field. func MaxMailboxesNotIn(vs ...int64) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.NotIn(s.C(FieldMaxMailboxes), v...)) }) } // MaxMailboxesGT applies the GT predicate on the "max_mailboxes" field. func MaxMailboxesGT(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GT(s.C(FieldMaxMailboxes), v)) }) } // MaxMailboxesGTE applies the GTE predicate on the "max_mailboxes" field. func MaxMailboxesGTE(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldMaxMailboxes), v)) }) } // MaxMailboxesLT applies the LT predicate on the "max_mailboxes" field. func MaxMailboxesLT(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldMaxMailboxes), v)) }) } // MaxMailboxesLTE applies the LTE predicate on the "max_mailboxes" field. func MaxMailboxesLTE(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldMaxMailboxes), v)) }) } // MaxQuotaEQ applies the EQ predicate on the "max_quota" field. func MaxQuotaEQ(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldMaxQuota), v)) }) } // MaxQuotaNEQ applies the NEQ predicate on the "max_quota" field. func MaxQuotaNEQ(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldMaxQuota), v)) }) } // MaxQuotaIn applies the In predicate on the "max_quota" field. func MaxQuotaIn(vs ...int64) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.In(s.C(FieldMaxQuota), v...)) }) } // MaxQuotaNotIn applies the NotIn predicate on the "max_quota" field. func MaxQuotaNotIn(vs ...int64) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.NotIn(s.C(FieldMaxQuota), v...)) }) } // MaxQuotaGT applies the GT predicate on the "max_quota" field. func MaxQuotaGT(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GT(s.C(FieldMaxQuota), v)) }) } // MaxQuotaGTE applies the GTE predicate on the "max_quota" field. func MaxQuotaGTE(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldMaxQuota), v)) }) } // MaxQuotaLT applies the LT predicate on the "max_quota" field. func MaxQuotaLT(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldMaxQuota), v)) }) } // MaxQuotaLTE applies the LTE predicate on the "max_quota" field. func MaxQuotaLTE(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldMaxQuota), v)) }) } // QuotaEQ applies the EQ predicate on the "quota" field. func QuotaEQ(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldQuota), v)) }) } // QuotaNEQ applies the NEQ predicate on the "quota" field. func QuotaNEQ(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldQuota), v)) }) } // QuotaIn applies the In predicate on the "quota" field. func QuotaIn(vs ...int64) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.In(s.C(FieldQuota), v...)) }) } // QuotaNotIn applies the NotIn predicate on the "quota" field. func QuotaNotIn(vs ...int64) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.NotIn(s.C(FieldQuota), v...)) }) } // QuotaGT applies the GT predicate on the "quota" field. func QuotaGT(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GT(s.C(FieldQuota), v)) }) } // QuotaGTE applies the GTE predicate on the "quota" field. func QuotaGTE(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldQuota), v)) }) } // QuotaLT applies the LT predicate on the "quota" field. func QuotaLT(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldQuota), v)) }) } // QuotaLTE applies the LTE predicate on the "quota" field. func QuotaLTE(v int64) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldQuota), v)) }) } // TransportEQ applies the EQ predicate on the "transport" field. func TransportEQ(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldTransport), v)) }) } // TransportNEQ applies the NEQ predicate on the "transport" field. func TransportNEQ(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldTransport), v)) }) } // TransportIn applies the In predicate on the "transport" field. func TransportIn(vs ...string) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.In(s.C(FieldTransport), v...)) }) } // TransportNotIn applies the NotIn predicate on the "transport" field. func TransportNotIn(vs ...string) predicate.Domain { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Domain(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v) == 0 { s.Where(sql.False()) return } s.Where(sql.NotIn(s.C(FieldTransport), v...)) }) } // TransportGT applies the GT predicate on the "transport" field. func TransportGT(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GT(s.C(FieldTransport), v)) }) } // TransportGTE applies the GTE predicate on the "transport" field. func TransportGTE(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldTransport), v)) }) } // TransportLT applies the LT predicate on the "transport" field. func TransportLT(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldTransport), v)) }) } // TransportLTE applies the LTE predicate on the "transport" field. func TransportLTE(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldTransport), v)) }) } // TransportContains applies the Contains predicate on the "transport" field. func TransportContains(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.Contains(s.C(FieldTransport), v)) }) } // TransportHasPrefix applies the HasPrefix predicate on the "transport" field. func TransportHasPrefix(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.HasPrefix(s.C(FieldTransport), v)) }) } // TransportHasSuffix applies the HasSuffix predicate on the "transport" field. func TransportHasSuffix(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.HasSuffix(s.C(FieldTransport), v)) }) } // TransportEqualFold applies the EqualFold predicate on the "transport" field. func TransportEqualFold(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EqualFold(s.C(FieldTransport), v)) }) } // TransportContainsFold applies the ContainsFold predicate on the "transport" field. func TransportContainsFold(v string) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.ContainsFold(s.C(FieldTransport), v)) }) } // BackupMxEQ applies the EQ predicate on the "backup_mx" field. func BackupMxEQ(v bool) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldBackupMx), v)) }) } // BackupMxNEQ applies the NEQ predicate on the "backup_mx" field. func BackupMxNEQ(v bool) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldBackupMx), v)) }) } // ActiveEQ applies the EQ predicate on the "active" field. func ActiveEQ(v bool) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldActive), v)) }) } // ActiveNEQ applies the NEQ predicate on the "active" field. func ActiveNEQ(v bool) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldActive), v)) }) } // HasMailboxes applies the HasEdge predicate on the "mailboxes" edge. func HasMailboxes() predicate.Domain { return predicate.Domain(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.To(MailboxesTable, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, MailboxesTable, MailboxesColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasMailboxesWith applies the HasEdge predicate on the "mailboxes" edge with a given conditions (other predicates). func HasMailboxesWith(preds ...predicate.Mailbox) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.To(MailboxesInverseTable, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, MailboxesTable, MailboxesColumn), ) sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasAliases applies the HasEdge predicate on the "aliases" edge. func HasAliases() predicate.Domain { return predicate.Domain(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.To(AliasesTable, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, AliasesTable, AliasesColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasAliasesWith applies the HasEdge predicate on the "aliases" edge with a given conditions (other predicates). func HasAliasesWith(preds ...predicate.Alias) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.To(AliasesInverseTable, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, AliasesTable, AliasesColumn), ) sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasLogs applies the HasEdge predicate on the "logs" edge. func HasLogs() predicate.Domain { return predicate.Domain(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.To(LogsTable, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, LogsTable, LogsColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasLogsWith applies the HasEdge predicate on the "logs" edge with a given conditions (other predicates). func HasLogsWith(preds ...predicate.Logentry) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.To(LogsInverseTable, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, LogsTable, LogsColumn), ) sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasAccounts applies the HasEdge predicate on the "accounts" edge. func HasAccounts() predicate.Domain { return predicate.Domain(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.To(AccountsTable, FieldID), sqlgraph.Edge(sqlgraph.M2M, true, AccountsTable, AccountsPrimaryKey...), ) sqlgraph.HasNeighbors(s, step) }) } // HasAccountsWith applies the HasEdge predicate on the "accounts" edge with a given conditions (other predicates). func HasAccountsWith(preds ...predicate.Account) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.To(AccountsInverseTable, FieldID), sqlgraph.Edge(sqlgraph.M2M, true, AccountsTable, AccountsPrimaryKey...), ) sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // And groups predicates with the AND operator between them. func And(predicates ...predicate.Domain) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s1 := s.Clone().SetP(nil) for _, p := range predicates { p(s1) } s.Where(s1.P()) }) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.Domain) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { s1 := s.Clone().SetP(nil) for i, p := range predicates { if i > 0 { s1.Or() } p(s1) } s.Where(s1.P()) }) } // Not applies the not operator on the given predicate. func Not(p predicate.Domain) predicate.Domain { return predicate.Domain(func(s *sql.Selector) { p(s.Not()) }) }