🎉 init
This commit is contained in:
151
common/ent/scaauthusersocial/scaauthusersocial.go
Normal file
151
common/ent/scaauthusersocial/scaauthusersocial.go
Normal file
@@ -0,0 +1,151 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package scaauthusersocial
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the scaauthusersocial type in the database.
|
||||
Label = "sca_auth_user_social"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldUserID holds the string denoting the user_id field in the database.
|
||||
FieldUserID = "user_id"
|
||||
// FieldOpenID holds the string denoting the open_id field in the database.
|
||||
FieldOpenID = "open_id"
|
||||
// FieldSource holds the string denoting the source field in the database.
|
||||
FieldSource = "source"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// FieldUpdateAt holds the string denoting the update_at field in the database.
|
||||
FieldUpdateAt = "update_at"
|
||||
// FieldDeleted holds the string denoting the deleted field in the database.
|
||||
FieldDeleted = "deleted"
|
||||
// EdgeScaAuthUser holds the string denoting the sca_auth_user edge name in mutations.
|
||||
EdgeScaAuthUser = "sca_auth_user"
|
||||
// Table holds the table name of the scaauthusersocial in the database.
|
||||
Table = "sca_auth_user_socials"
|
||||
// ScaAuthUserTable is the table that holds the sca_auth_user relation/edge.
|
||||
ScaAuthUserTable = "sca_auth_user_socials"
|
||||
// ScaAuthUserInverseTable is the table name for the ScaAuthUser entity.
|
||||
// It exists in this package in order to avoid circular dependency with the "scaauthuser" package.
|
||||
ScaAuthUserInverseTable = "sca_auth_users"
|
||||
// ScaAuthUserColumn is the table column denoting the sca_auth_user relation/edge.
|
||||
ScaAuthUserColumn = "sca_auth_user_sca_auth_user_social"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for scaauthusersocial fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldUserID,
|
||||
FieldOpenID,
|
||||
FieldSource,
|
||||
FieldStatus,
|
||||
FieldCreatedAt,
|
||||
FieldUpdateAt,
|
||||
FieldDeleted,
|
||||
}
|
||||
|
||||
// ForeignKeys holds the SQL foreign-keys that are owned by the "sca_auth_user_socials"
|
||||
// table and are not defined as standalone fields in the schema.
|
||||
var ForeignKeys = []string{
|
||||
"sca_auth_user_sca_auth_user_social",
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
}
|
||||
for i := range ForeignKeys {
|
||||
if column == ForeignKeys[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// UserIDValidator is a validator for the "user_id" field. It is called by the builders before save.
|
||||
UserIDValidator func(string) error
|
||||
// OpenIDValidator is a validator for the "open_id" field. It is called by the builders before save.
|
||||
OpenIDValidator func(string) error
|
||||
// SourceValidator is a validator for the "source" field. It is called by the builders before save.
|
||||
SourceValidator func(string) error
|
||||
// DefaultStatus holds the default value on creation for the "status" field.
|
||||
DefaultStatus int
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt func() time.Time
|
||||
// DefaultUpdateAt holds the default value on creation for the "update_at" field.
|
||||
DefaultUpdateAt func() time.Time
|
||||
// UpdateDefaultUpdateAt holds the default value on update for the "update_at" field.
|
||||
UpdateDefaultUpdateAt func() time.Time
|
||||
// DefaultDeleted holds the default value on creation for the "deleted" field.
|
||||
DefaultDeleted int
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the ScaAuthUserSocial 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()
|
||||
}
|
||||
|
||||
// ByUserID orders the results by the user_id field.
|
||||
func ByUserID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUserID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOpenID orders the results by the open_id field.
|
||||
func ByOpenID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOpenID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySource orders the results by the source field.
|
||||
func BySource(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSource, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUpdateAt orders the results by the update_at field.
|
||||
func ByUpdateAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdateAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDeleted orders the results by the deleted field.
|
||||
func ByDeleted(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDeleted, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByScaAuthUserField orders the results by sca_auth_user field.
|
||||
func ByScaAuthUserField(field string, opts ...sql.OrderTermOption) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborTerms(s, newScaAuthUserStep(), sql.OrderByField(field, opts...))
|
||||
}
|
||||
}
|
||||
func newScaAuthUserStep() *sqlgraph.Step {
|
||||
return sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(ScaAuthUserInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.M2O, true, ScaAuthUserTable, ScaAuthUserColumn),
|
||||
)
|
||||
}
|
494
common/ent/scaauthusersocial/where.go
Normal file
494
common/ent/scaauthusersocial/where.go
Normal file
@@ -0,0 +1,494 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package scaauthusersocial
|
||||
|
||||
import (
|
||||
"schisandra-album-cloud-microservices/common/ent/predicate"
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int64) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int64) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int64) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int64) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int64) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int64) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int64) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int64) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int64) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
|
||||
func UserID(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldUserID, v))
|
||||
}
|
||||
|
||||
// OpenID applies equality check predicate on the "open_id" field. It's identical to OpenIDEQ.
|
||||
func OpenID(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldOpenID, v))
|
||||
}
|
||||
|
||||
// Source applies equality check predicate on the "source" field. It's identical to SourceEQ.
|
||||
func Source(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldSource, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdateAt applies equality check predicate on the "update_at" field. It's identical to UpdateAtEQ.
|
||||
func UpdateAt(v time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldUpdateAt, v))
|
||||
}
|
||||
|
||||
// Deleted applies equality check predicate on the "deleted" field. It's identical to DeletedEQ.
|
||||
func Deleted(v int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// UserIDEQ applies the EQ predicate on the "user_id" field.
|
||||
func UserIDEQ(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldUserID, v))
|
||||
}
|
||||
|
||||
// UserIDNEQ applies the NEQ predicate on the "user_id" field.
|
||||
func UserIDNEQ(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNEQ(FieldUserID, v))
|
||||
}
|
||||
|
||||
// UserIDIn applies the In predicate on the "user_id" field.
|
||||
func UserIDIn(vs ...string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldIn(FieldUserID, vs...))
|
||||
}
|
||||
|
||||
// UserIDNotIn applies the NotIn predicate on the "user_id" field.
|
||||
func UserIDNotIn(vs ...string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNotIn(FieldUserID, vs...))
|
||||
}
|
||||
|
||||
// UserIDGT applies the GT predicate on the "user_id" field.
|
||||
func UserIDGT(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGT(FieldUserID, v))
|
||||
}
|
||||
|
||||
// UserIDGTE applies the GTE predicate on the "user_id" field.
|
||||
func UserIDGTE(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGTE(FieldUserID, v))
|
||||
}
|
||||
|
||||
// UserIDLT applies the LT predicate on the "user_id" field.
|
||||
func UserIDLT(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLT(FieldUserID, v))
|
||||
}
|
||||
|
||||
// UserIDLTE applies the LTE predicate on the "user_id" field.
|
||||
func UserIDLTE(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLTE(FieldUserID, v))
|
||||
}
|
||||
|
||||
// UserIDContains applies the Contains predicate on the "user_id" field.
|
||||
func UserIDContains(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldContains(FieldUserID, v))
|
||||
}
|
||||
|
||||
// UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
|
||||
func UserIDHasPrefix(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldHasPrefix(FieldUserID, v))
|
||||
}
|
||||
|
||||
// UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
|
||||
func UserIDHasSuffix(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldHasSuffix(FieldUserID, v))
|
||||
}
|
||||
|
||||
// UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
|
||||
func UserIDEqualFold(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEqualFold(FieldUserID, v))
|
||||
}
|
||||
|
||||
// UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
|
||||
func UserIDContainsFold(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldContainsFold(FieldUserID, v))
|
||||
}
|
||||
|
||||
// OpenIDEQ applies the EQ predicate on the "open_id" field.
|
||||
func OpenIDEQ(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldOpenID, v))
|
||||
}
|
||||
|
||||
// OpenIDNEQ applies the NEQ predicate on the "open_id" field.
|
||||
func OpenIDNEQ(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNEQ(FieldOpenID, v))
|
||||
}
|
||||
|
||||
// OpenIDIn applies the In predicate on the "open_id" field.
|
||||
func OpenIDIn(vs ...string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldIn(FieldOpenID, vs...))
|
||||
}
|
||||
|
||||
// OpenIDNotIn applies the NotIn predicate on the "open_id" field.
|
||||
func OpenIDNotIn(vs ...string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNotIn(FieldOpenID, vs...))
|
||||
}
|
||||
|
||||
// OpenIDGT applies the GT predicate on the "open_id" field.
|
||||
func OpenIDGT(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGT(FieldOpenID, v))
|
||||
}
|
||||
|
||||
// OpenIDGTE applies the GTE predicate on the "open_id" field.
|
||||
func OpenIDGTE(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGTE(FieldOpenID, v))
|
||||
}
|
||||
|
||||
// OpenIDLT applies the LT predicate on the "open_id" field.
|
||||
func OpenIDLT(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLT(FieldOpenID, v))
|
||||
}
|
||||
|
||||
// OpenIDLTE applies the LTE predicate on the "open_id" field.
|
||||
func OpenIDLTE(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLTE(FieldOpenID, v))
|
||||
}
|
||||
|
||||
// OpenIDContains applies the Contains predicate on the "open_id" field.
|
||||
func OpenIDContains(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldContains(FieldOpenID, v))
|
||||
}
|
||||
|
||||
// OpenIDHasPrefix applies the HasPrefix predicate on the "open_id" field.
|
||||
func OpenIDHasPrefix(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldHasPrefix(FieldOpenID, v))
|
||||
}
|
||||
|
||||
// OpenIDHasSuffix applies the HasSuffix predicate on the "open_id" field.
|
||||
func OpenIDHasSuffix(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldHasSuffix(FieldOpenID, v))
|
||||
}
|
||||
|
||||
// OpenIDEqualFold applies the EqualFold predicate on the "open_id" field.
|
||||
func OpenIDEqualFold(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEqualFold(FieldOpenID, v))
|
||||
}
|
||||
|
||||
// OpenIDContainsFold applies the ContainsFold predicate on the "open_id" field.
|
||||
func OpenIDContainsFold(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldContainsFold(FieldOpenID, v))
|
||||
}
|
||||
|
||||
// SourceEQ applies the EQ predicate on the "source" field.
|
||||
func SourceEQ(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceNEQ applies the NEQ predicate on the "source" field.
|
||||
func SourceNEQ(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNEQ(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceIn applies the In predicate on the "source" field.
|
||||
func SourceIn(vs ...string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldIn(FieldSource, vs...))
|
||||
}
|
||||
|
||||
// SourceNotIn applies the NotIn predicate on the "source" field.
|
||||
func SourceNotIn(vs ...string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNotIn(FieldSource, vs...))
|
||||
}
|
||||
|
||||
// SourceGT applies the GT predicate on the "source" field.
|
||||
func SourceGT(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGT(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceGTE applies the GTE predicate on the "source" field.
|
||||
func SourceGTE(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGTE(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceLT applies the LT predicate on the "source" field.
|
||||
func SourceLT(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLT(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceLTE applies the LTE predicate on the "source" field.
|
||||
func SourceLTE(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLTE(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceContains applies the Contains predicate on the "source" field.
|
||||
func SourceContains(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldContains(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceHasPrefix applies the HasPrefix predicate on the "source" field.
|
||||
func SourceHasPrefix(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldHasPrefix(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceHasSuffix applies the HasSuffix predicate on the "source" field.
|
||||
func SourceHasSuffix(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldHasSuffix(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceEqualFold applies the EqualFold predicate on the "source" field.
|
||||
func SourceEqualFold(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEqualFold(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceContainsFold applies the ContainsFold predicate on the "source" field.
|
||||
func SourceContainsFold(v string) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldContainsFold(FieldSource, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusNEQ applies the NEQ predicate on the "status" field.
|
||||
func StatusNEQ(v int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusIn applies the In predicate on the "status" field.
|
||||
func StatusIn(vs ...int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusNotIn applies the NotIn predicate on the "status" field.
|
||||
func StatusNotIn(vs ...int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNotIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusGT applies the GT predicate on the "status" field.
|
||||
func StatusGT(v int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusGTE applies the GTE predicate on the "status" field.
|
||||
func StatusGTE(v int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLT applies the LT predicate on the "status" field.
|
||||
func StatusLT(v int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLTE applies the LTE predicate on the "status" field.
|
||||
func StatusLTE(v int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdateAtEQ applies the EQ predicate on the "update_at" field.
|
||||
func UpdateAtEQ(v time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldUpdateAt, v))
|
||||
}
|
||||
|
||||
// UpdateAtNEQ applies the NEQ predicate on the "update_at" field.
|
||||
func UpdateAtNEQ(v time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNEQ(FieldUpdateAt, v))
|
||||
}
|
||||
|
||||
// UpdateAtIn applies the In predicate on the "update_at" field.
|
||||
func UpdateAtIn(vs ...time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldIn(FieldUpdateAt, vs...))
|
||||
}
|
||||
|
||||
// UpdateAtNotIn applies the NotIn predicate on the "update_at" field.
|
||||
func UpdateAtNotIn(vs ...time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNotIn(FieldUpdateAt, vs...))
|
||||
}
|
||||
|
||||
// UpdateAtGT applies the GT predicate on the "update_at" field.
|
||||
func UpdateAtGT(v time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGT(FieldUpdateAt, v))
|
||||
}
|
||||
|
||||
// UpdateAtGTE applies the GTE predicate on the "update_at" field.
|
||||
func UpdateAtGTE(v time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGTE(FieldUpdateAt, v))
|
||||
}
|
||||
|
||||
// UpdateAtLT applies the LT predicate on the "update_at" field.
|
||||
func UpdateAtLT(v time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLT(FieldUpdateAt, v))
|
||||
}
|
||||
|
||||
// UpdateAtLTE applies the LTE predicate on the "update_at" field.
|
||||
func UpdateAtLTE(v time.Time) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLTE(FieldUpdateAt, v))
|
||||
}
|
||||
|
||||
// UpdateAtIsNil applies the IsNil predicate on the "update_at" field.
|
||||
func UpdateAtIsNil() predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldIsNull(FieldUpdateAt))
|
||||
}
|
||||
|
||||
// UpdateAtNotNil applies the NotNil predicate on the "update_at" field.
|
||||
func UpdateAtNotNil() predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNotNull(FieldUpdateAt))
|
||||
}
|
||||
|
||||
// DeletedEQ applies the EQ predicate on the "deleted" field.
|
||||
func DeletedEQ(v int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedNEQ applies the NEQ predicate on the "deleted" field.
|
||||
func DeletedNEQ(v int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedIn applies the In predicate on the "deleted" field.
|
||||
func DeletedIn(vs ...int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldIn(FieldDeleted, vs...))
|
||||
}
|
||||
|
||||
// DeletedNotIn applies the NotIn predicate on the "deleted" field.
|
||||
func DeletedNotIn(vs ...int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldNotIn(FieldDeleted, vs...))
|
||||
}
|
||||
|
||||
// DeletedGT applies the GT predicate on the "deleted" field.
|
||||
func DeletedGT(v int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGT(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedGTE applies the GTE predicate on the "deleted" field.
|
||||
func DeletedGTE(v int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldGTE(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedLT applies the LT predicate on the "deleted" field.
|
||||
func DeletedLT(v int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLT(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedLTE applies the LTE predicate on the "deleted" field.
|
||||
func DeletedLTE(v int) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.FieldLTE(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// HasScaAuthUser applies the HasEdge predicate on the "sca_auth_user" edge.
|
||||
func HasScaAuthUser() predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(func(s *sql.Selector) {
|
||||
step := sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.M2O, true, ScaAuthUserTable, ScaAuthUserColumn),
|
||||
)
|
||||
sqlgraph.HasNeighbors(s, step)
|
||||
})
|
||||
}
|
||||
|
||||
// HasScaAuthUserWith applies the HasEdge predicate on the "sca_auth_user" edge with a given conditions (other predicates).
|
||||
func HasScaAuthUserWith(preds ...predicate.ScaAuthUser) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(func(s *sql.Selector) {
|
||||
step := newScaAuthUserStep()
|
||||
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.ScaAuthUserSocial) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.ScaAuthUserSocial) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.ScaAuthUserSocial) predicate.ScaAuthUserSocial {
|
||||
return predicate.ScaAuthUserSocial(sql.NotPredicates(p))
|
||||
}
|
Reference in New Issue
Block a user