12
This commit is contained in:
151
internal/ent/cloudflareaccounts/cloudflareaccounts.go
Normal file
151
internal/ent/cloudflareaccounts/cloudflareaccounts.go
Normal file
@ -0,0 +1,151 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package cloudflareaccounts
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the cloudflareaccounts type in the database.
|
||||
Label = "cloudflare_accounts"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldName holds the string denoting the name field in the database.
|
||||
FieldName = "name"
|
||||
// FieldAccountID holds the string denoting the account_id field in the database.
|
||||
FieldAccountID = "account_id"
|
||||
// FieldAPIToken holds the string denoting the api_token field in the database.
|
||||
FieldAPIToken = "api_token"
|
||||
// FieldEmail holds the string denoting the email field in the database.
|
||||
FieldEmail = "email"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// FieldRemark holds the string denoting the remark field in the database.
|
||||
FieldRemark = "remark"
|
||||
// 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"
|
||||
// EdgeCloudflareBuckets holds the string denoting the cloudflare_buckets edge name in mutations.
|
||||
EdgeCloudflareBuckets = "cloudflare_buckets"
|
||||
// Table holds the table name of the cloudflareaccounts in the database.
|
||||
Table = "cloudflare_accounts"
|
||||
// CloudflareBucketsTable is the table that holds the cloudflare_buckets relation/edge.
|
||||
CloudflareBucketsTable = "cloudflare_r2s"
|
||||
// CloudflareBucketsInverseTable is the table name for the CloudflareR2 entity.
|
||||
// It exists in this package in order to avoid circular dependency with the "cloudflarer2" package.
|
||||
CloudflareBucketsInverseTable = "cloudflare_r2s"
|
||||
// CloudflareBucketsColumn is the table column denoting the cloudflare_buckets relation/edge.
|
||||
CloudflareBucketsColumn = "cloudflare_accounts_cloudflare_buckets"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for cloudflareaccounts fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldName,
|
||||
FieldAccountID,
|
||||
FieldAPIToken,
|
||||
FieldEmail,
|
||||
FieldStatus,
|
||||
FieldRemark,
|
||||
FieldCreatedAt,
|
||||
FieldUpdatedAt,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
NameValidator func(string) error
|
||||
// AccountIDValidator is a validator for the "account_id" field. It is called by the builders before save.
|
||||
AccountIDValidator func(string) error
|
||||
// DefaultStatus holds the default value on creation for the "status" field.
|
||||
DefaultStatus int8
|
||||
// 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
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the CloudflareAccounts queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByName orders the results by the name field.
|
||||
func ByName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByAccountID orders the results by the account_id field.
|
||||
func ByAccountID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldAccountID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByAPIToken orders the results by the api_token field.
|
||||
func ByAPIToken(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldAPIToken, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByEmail orders the results by the email field.
|
||||
func ByEmail(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldEmail, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRemark orders the results by the remark field.
|
||||
func ByRemark(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRemark, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUpdatedAt orders the results by the updated_at field.
|
||||
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCloudflareBucketsCount orders the results by cloudflare_buckets count.
|
||||
func ByCloudflareBucketsCount(opts ...sql.OrderTermOption) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborsCount(s, newCloudflareBucketsStep(), opts...)
|
||||
}
|
||||
}
|
||||
|
||||
// ByCloudflareBuckets orders the results by cloudflare_buckets terms.
|
||||
func ByCloudflareBuckets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborTerms(s, newCloudflareBucketsStep(), append([]sql.OrderTerm{term}, terms...)...)
|
||||
}
|
||||
}
|
||||
func newCloudflareBucketsStep() *sqlgraph.Step {
|
||||
return sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(CloudflareBucketsInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.O2M, false, CloudflareBucketsTable, CloudflareBucketsColumn),
|
||||
)
|
||||
}
|
||||
599
internal/ent/cloudflareaccounts/where.go
Normal file
599
internal/ent/cloudflareaccounts/where.go
Normal file
@ -0,0 +1,599 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package cloudflareaccounts
|
||||
|
||||
import (
|
||||
"time"
|
||||
"unR2/internal/ent/predicate"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
||||
func Name(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// AccountID applies equality check predicate on the "account_id" field. It's identical to AccountIDEQ.
|
||||
func AccountID(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldAccountID, v))
|
||||
}
|
||||
|
||||
// APIToken applies equality check predicate on the "api_token" field. It's identical to APITokenEQ.
|
||||
func APIToken(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldAPIToken, v))
|
||||
}
|
||||
|
||||
// Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
|
||||
func Email(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldEmail, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v int8) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
|
||||
func Remark(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
||||
func UpdatedAt(v time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// NameEQ applies the EQ predicate on the "name" field.
|
||||
func NameEQ(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// NameNEQ applies the NEQ predicate on the "name" field.
|
||||
func NameNEQ(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// NameIn applies the In predicate on the "name" field.
|
||||
func NameIn(vs ...string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldIn(FieldName, vs...))
|
||||
}
|
||||
|
||||
// NameNotIn applies the NotIn predicate on the "name" field.
|
||||
func NameNotIn(vs ...string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNotIn(FieldName, vs...))
|
||||
}
|
||||
|
||||
// NameGT applies the GT predicate on the "name" field.
|
||||
func NameGT(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGT(FieldName, v))
|
||||
}
|
||||
|
||||
// NameGTE applies the GTE predicate on the "name" field.
|
||||
func NameGTE(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGTE(FieldName, v))
|
||||
}
|
||||
|
||||
// NameLT applies the LT predicate on the "name" field.
|
||||
func NameLT(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLT(FieldName, v))
|
||||
}
|
||||
|
||||
// NameLTE applies the LTE predicate on the "name" field.
|
||||
func NameLTE(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLTE(FieldName, v))
|
||||
}
|
||||
|
||||
// NameContains applies the Contains predicate on the "name" field.
|
||||
func NameContains(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldContains(FieldName, v))
|
||||
}
|
||||
|
||||
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
||||
func NameHasPrefix(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldHasPrefix(FieldName, v))
|
||||
}
|
||||
|
||||
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
||||
func NameHasSuffix(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldHasSuffix(FieldName, v))
|
||||
}
|
||||
|
||||
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
||||
func NameEqualFold(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEqualFold(FieldName, v))
|
||||
}
|
||||
|
||||
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
||||
func NameContainsFold(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldContainsFold(FieldName, v))
|
||||
}
|
||||
|
||||
// AccountIDEQ applies the EQ predicate on the "account_id" field.
|
||||
func AccountIDEQ(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldAccountID, v))
|
||||
}
|
||||
|
||||
// AccountIDNEQ applies the NEQ predicate on the "account_id" field.
|
||||
func AccountIDNEQ(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNEQ(FieldAccountID, v))
|
||||
}
|
||||
|
||||
// AccountIDIn applies the In predicate on the "account_id" field.
|
||||
func AccountIDIn(vs ...string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldIn(FieldAccountID, vs...))
|
||||
}
|
||||
|
||||
// AccountIDNotIn applies the NotIn predicate on the "account_id" field.
|
||||
func AccountIDNotIn(vs ...string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNotIn(FieldAccountID, vs...))
|
||||
}
|
||||
|
||||
// AccountIDGT applies the GT predicate on the "account_id" field.
|
||||
func AccountIDGT(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGT(FieldAccountID, v))
|
||||
}
|
||||
|
||||
// AccountIDGTE applies the GTE predicate on the "account_id" field.
|
||||
func AccountIDGTE(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGTE(FieldAccountID, v))
|
||||
}
|
||||
|
||||
// AccountIDLT applies the LT predicate on the "account_id" field.
|
||||
func AccountIDLT(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLT(FieldAccountID, v))
|
||||
}
|
||||
|
||||
// AccountIDLTE applies the LTE predicate on the "account_id" field.
|
||||
func AccountIDLTE(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLTE(FieldAccountID, v))
|
||||
}
|
||||
|
||||
// AccountIDContains applies the Contains predicate on the "account_id" field.
|
||||
func AccountIDContains(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldContains(FieldAccountID, v))
|
||||
}
|
||||
|
||||
// AccountIDHasPrefix applies the HasPrefix predicate on the "account_id" field.
|
||||
func AccountIDHasPrefix(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldHasPrefix(FieldAccountID, v))
|
||||
}
|
||||
|
||||
// AccountIDHasSuffix applies the HasSuffix predicate on the "account_id" field.
|
||||
func AccountIDHasSuffix(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldHasSuffix(FieldAccountID, v))
|
||||
}
|
||||
|
||||
// AccountIDEqualFold applies the EqualFold predicate on the "account_id" field.
|
||||
func AccountIDEqualFold(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEqualFold(FieldAccountID, v))
|
||||
}
|
||||
|
||||
// AccountIDContainsFold applies the ContainsFold predicate on the "account_id" field.
|
||||
func AccountIDContainsFold(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldContainsFold(FieldAccountID, v))
|
||||
}
|
||||
|
||||
// APITokenEQ applies the EQ predicate on the "api_token" field.
|
||||
func APITokenEQ(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldAPIToken, v))
|
||||
}
|
||||
|
||||
// APITokenNEQ applies the NEQ predicate on the "api_token" field.
|
||||
func APITokenNEQ(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNEQ(FieldAPIToken, v))
|
||||
}
|
||||
|
||||
// APITokenIn applies the In predicate on the "api_token" field.
|
||||
func APITokenIn(vs ...string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldIn(FieldAPIToken, vs...))
|
||||
}
|
||||
|
||||
// APITokenNotIn applies the NotIn predicate on the "api_token" field.
|
||||
func APITokenNotIn(vs ...string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNotIn(FieldAPIToken, vs...))
|
||||
}
|
||||
|
||||
// APITokenGT applies the GT predicate on the "api_token" field.
|
||||
func APITokenGT(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGT(FieldAPIToken, v))
|
||||
}
|
||||
|
||||
// APITokenGTE applies the GTE predicate on the "api_token" field.
|
||||
func APITokenGTE(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGTE(FieldAPIToken, v))
|
||||
}
|
||||
|
||||
// APITokenLT applies the LT predicate on the "api_token" field.
|
||||
func APITokenLT(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLT(FieldAPIToken, v))
|
||||
}
|
||||
|
||||
// APITokenLTE applies the LTE predicate on the "api_token" field.
|
||||
func APITokenLTE(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLTE(FieldAPIToken, v))
|
||||
}
|
||||
|
||||
// APITokenContains applies the Contains predicate on the "api_token" field.
|
||||
func APITokenContains(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldContains(FieldAPIToken, v))
|
||||
}
|
||||
|
||||
// APITokenHasPrefix applies the HasPrefix predicate on the "api_token" field.
|
||||
func APITokenHasPrefix(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldHasPrefix(FieldAPIToken, v))
|
||||
}
|
||||
|
||||
// APITokenHasSuffix applies the HasSuffix predicate on the "api_token" field.
|
||||
func APITokenHasSuffix(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldHasSuffix(FieldAPIToken, v))
|
||||
}
|
||||
|
||||
// APITokenEqualFold applies the EqualFold predicate on the "api_token" field.
|
||||
func APITokenEqualFold(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEqualFold(FieldAPIToken, v))
|
||||
}
|
||||
|
||||
// APITokenContainsFold applies the ContainsFold predicate on the "api_token" field.
|
||||
func APITokenContainsFold(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldContainsFold(FieldAPIToken, v))
|
||||
}
|
||||
|
||||
// EmailEQ applies the EQ predicate on the "email" field.
|
||||
func EmailEQ(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldEmail, v))
|
||||
}
|
||||
|
||||
// EmailNEQ applies the NEQ predicate on the "email" field.
|
||||
func EmailNEQ(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNEQ(FieldEmail, v))
|
||||
}
|
||||
|
||||
// EmailIn applies the In predicate on the "email" field.
|
||||
func EmailIn(vs ...string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldIn(FieldEmail, vs...))
|
||||
}
|
||||
|
||||
// EmailNotIn applies the NotIn predicate on the "email" field.
|
||||
func EmailNotIn(vs ...string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNotIn(FieldEmail, vs...))
|
||||
}
|
||||
|
||||
// EmailGT applies the GT predicate on the "email" field.
|
||||
func EmailGT(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGT(FieldEmail, v))
|
||||
}
|
||||
|
||||
// EmailGTE applies the GTE predicate on the "email" field.
|
||||
func EmailGTE(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGTE(FieldEmail, v))
|
||||
}
|
||||
|
||||
// EmailLT applies the LT predicate on the "email" field.
|
||||
func EmailLT(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLT(FieldEmail, v))
|
||||
}
|
||||
|
||||
// EmailLTE applies the LTE predicate on the "email" field.
|
||||
func EmailLTE(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLTE(FieldEmail, v))
|
||||
}
|
||||
|
||||
// EmailContains applies the Contains predicate on the "email" field.
|
||||
func EmailContains(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldContains(FieldEmail, v))
|
||||
}
|
||||
|
||||
// EmailHasPrefix applies the HasPrefix predicate on the "email" field.
|
||||
func EmailHasPrefix(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldHasPrefix(FieldEmail, v))
|
||||
}
|
||||
|
||||
// EmailHasSuffix applies the HasSuffix predicate on the "email" field.
|
||||
func EmailHasSuffix(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldHasSuffix(FieldEmail, v))
|
||||
}
|
||||
|
||||
// EmailIsNil applies the IsNil predicate on the "email" field.
|
||||
func EmailIsNil() predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldIsNull(FieldEmail))
|
||||
}
|
||||
|
||||
// EmailNotNil applies the NotNil predicate on the "email" field.
|
||||
func EmailNotNil() predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNotNull(FieldEmail))
|
||||
}
|
||||
|
||||
// EmailEqualFold applies the EqualFold predicate on the "email" field.
|
||||
func EmailEqualFold(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEqualFold(FieldEmail, v))
|
||||
}
|
||||
|
||||
// EmailContainsFold applies the ContainsFold predicate on the "email" field.
|
||||
func EmailContainsFold(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldContainsFold(FieldEmail, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v int8) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusNEQ applies the NEQ predicate on the "status" field.
|
||||
func StatusNEQ(v int8) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusIn applies the In predicate on the "status" field.
|
||||
func StatusIn(vs ...int8) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusNotIn applies the NotIn predicate on the "status" field.
|
||||
func StatusNotIn(vs ...int8) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNotIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusGT applies the GT predicate on the "status" field.
|
||||
func StatusGT(v int8) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusGTE applies the GTE predicate on the "status" field.
|
||||
func StatusGTE(v int8) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLT applies the LT predicate on the "status" field.
|
||||
func StatusLT(v int8) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLTE applies the LTE predicate on the "status" field.
|
||||
func StatusLTE(v int8) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// RemarkEQ applies the EQ predicate on the "remark" field.
|
||||
func RemarkEQ(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkNEQ applies the NEQ predicate on the "remark" field.
|
||||
func RemarkNEQ(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkIn applies the In predicate on the "remark" field.
|
||||
func RemarkIn(vs ...string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldIn(FieldRemark, vs...))
|
||||
}
|
||||
|
||||
// RemarkNotIn applies the NotIn predicate on the "remark" field.
|
||||
func RemarkNotIn(vs ...string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNotIn(FieldRemark, vs...))
|
||||
}
|
||||
|
||||
// RemarkGT applies the GT predicate on the "remark" field.
|
||||
func RemarkGT(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGT(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkGTE applies the GTE predicate on the "remark" field.
|
||||
func RemarkGTE(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGTE(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkLT applies the LT predicate on the "remark" field.
|
||||
func RemarkLT(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLT(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkLTE applies the LTE predicate on the "remark" field.
|
||||
func RemarkLTE(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLTE(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkContains applies the Contains predicate on the "remark" field.
|
||||
func RemarkContains(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldContains(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
|
||||
func RemarkHasPrefix(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldHasPrefix(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
|
||||
func RemarkHasSuffix(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldHasSuffix(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkIsNil applies the IsNil predicate on the "remark" field.
|
||||
func RemarkIsNil() predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldIsNull(FieldRemark))
|
||||
}
|
||||
|
||||
// RemarkNotNil applies the NotNil predicate on the "remark" field.
|
||||
func RemarkNotNil() predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNotNull(FieldRemark))
|
||||
}
|
||||
|
||||
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
|
||||
func RemarkEqualFold(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEqualFold(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
|
||||
func RemarkContainsFold(v string) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldContainsFold(FieldRemark, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
||||
func UpdatedAtEQ(v time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
||||
func UpdatedAtNEQ(v time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
||||
func UpdatedAtIn(vs ...time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
||||
func UpdatedAtNotIn(vs ...time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
||||
func UpdatedAtGT(v time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
||||
func UpdatedAtGTE(v time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldGTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
||||
func UpdatedAtLT(v time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
||||
func UpdatedAtLTE(v time.Time) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.FieldLTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// HasCloudflareBuckets applies the HasEdge predicate on the "cloudflare_buckets" edge.
|
||||
func HasCloudflareBuckets() predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(func(s *sql.Selector) {
|
||||
step := sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.O2M, false, CloudflareBucketsTable, CloudflareBucketsColumn),
|
||||
)
|
||||
sqlgraph.HasNeighbors(s, step)
|
||||
})
|
||||
}
|
||||
|
||||
// HasCloudflareBucketsWith applies the HasEdge predicate on the "cloudflare_buckets" edge with a given conditions (other predicates).
|
||||
func HasCloudflareBucketsWith(preds ...predicate.CloudflareR2) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(func(s *sql.Selector) {
|
||||
step := newCloudflareBucketsStep()
|
||||
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.CloudflareAccounts) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.CloudflareAccounts) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.CloudflareAccounts) predicate.CloudflareAccounts {
|
||||
return predicate.CloudflareAccounts(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user