✨ add i18n support
This commit is contained in:
@@ -14,6 +14,12 @@ const (
|
||||
Label = "sca_auth_user"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// FieldUpdatedAt holds the string denoting the updated_at field in the database.
|
||||
FieldUpdatedAt = "updated_at"
|
||||
// FieldDeleted holds the string denoting the deleted field in the database.
|
||||
FieldDeleted = "deleted"
|
||||
// FieldUID holds the string denoting the uid field in the database.
|
||||
FieldUID = "uid"
|
||||
// FieldUsername holds the string denoting the username field in the database.
|
||||
@@ -34,12 +40,6 @@ const (
|
||||
FieldStatus = "status"
|
||||
// FieldIntroduce holds the string denoting the introduce field in the database.
|
||||
FieldIntroduce = "introduce"
|
||||
// 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"
|
||||
// FieldBlog holds the string denoting the blog field in the database.
|
||||
FieldBlog = "blog"
|
||||
// FieldLocation holds the string denoting the location field in the database.
|
||||
@@ -51,19 +51,19 @@ const (
|
||||
// EdgeScaAuthUserDevice holds the string denoting the sca_auth_user_device edge name in mutations.
|
||||
EdgeScaAuthUserDevice = "sca_auth_user_device"
|
||||
// Table holds the table name of the scaauthuser in the database.
|
||||
Table = "sca_auth_users"
|
||||
Table = "sca_auth_user"
|
||||
// ScaAuthUserSocialTable is the table that holds the sca_auth_user_social relation/edge.
|
||||
ScaAuthUserSocialTable = "sca_auth_user_socials"
|
||||
ScaAuthUserSocialTable = "sca_auth_user_social"
|
||||
// ScaAuthUserSocialInverseTable is the table name for the ScaAuthUserSocial entity.
|
||||
// It exists in this package in order to avoid circular dependency with the "scaauthusersocial" package.
|
||||
ScaAuthUserSocialInverseTable = "sca_auth_user_socials"
|
||||
ScaAuthUserSocialInverseTable = "sca_auth_user_social"
|
||||
// ScaAuthUserSocialColumn is the table column denoting the sca_auth_user_social relation/edge.
|
||||
ScaAuthUserSocialColumn = "sca_auth_user_sca_auth_user_social"
|
||||
// ScaAuthUserDeviceTable is the table that holds the sca_auth_user_device relation/edge.
|
||||
ScaAuthUserDeviceTable = "sca_auth_user_devices"
|
||||
ScaAuthUserDeviceTable = "sca_auth_user_device"
|
||||
// ScaAuthUserDeviceInverseTable is the table name for the ScaAuthUserDevice entity.
|
||||
// It exists in this package in order to avoid circular dependency with the "scaauthuserdevice" package.
|
||||
ScaAuthUserDeviceInverseTable = "sca_auth_user_devices"
|
||||
ScaAuthUserDeviceInverseTable = "sca_auth_user_device"
|
||||
// ScaAuthUserDeviceColumn is the table column denoting the sca_auth_user_device relation/edge.
|
||||
ScaAuthUserDeviceColumn = "sca_auth_user_sca_auth_user_device"
|
||||
)
|
||||
@@ -71,6 +71,9 @@ const (
|
||||
// Columns holds all SQL columns for scaauthuser fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldCreatedAt,
|
||||
FieldUpdatedAt,
|
||||
FieldDeleted,
|
||||
FieldUID,
|
||||
FieldUsername,
|
||||
FieldNickname,
|
||||
@@ -81,9 +84,6 @@ var Columns = []string{
|
||||
FieldAvatar,
|
||||
FieldStatus,
|
||||
FieldIntroduce,
|
||||
FieldCreatedAt,
|
||||
FieldUpdateAt,
|
||||
FieldDeleted,
|
||||
FieldBlog,
|
||||
FieldLocation,
|
||||
FieldCompany,
|
||||
@@ -100,6 +100,16 @@ func ValidColumn(column string) bool {
|
||||
}
|
||||
|
||||
var (
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt func() time.Time
|
||||
// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
|
||||
DefaultUpdatedAt func() time.Time
|
||||
// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
|
||||
UpdateDefaultUpdatedAt func() time.Time
|
||||
// DefaultDeleted holds the default value on creation for the "deleted" field.
|
||||
DefaultDeleted int8
|
||||
// DeletedValidator is a validator for the "deleted" field. It is called by the builders before save.
|
||||
DeletedValidator func(int8) error
|
||||
// UIDValidator is a validator for the "uid" field. It is called by the builders before save.
|
||||
UIDValidator func(string) error
|
||||
// UsernameValidator is a validator for the "username" field. It is called by the builders before save.
|
||||
@@ -118,14 +128,6 @@ var (
|
||||
DefaultStatus int8
|
||||
// IntroduceValidator is a validator for the "introduce" field. It is called by the builders before save.
|
||||
IntroduceValidator func(string) error
|
||||
// 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 int8
|
||||
// BlogValidator is a validator for the "blog" field. It is called by the builders before save.
|
||||
BlogValidator func(string) error
|
||||
// LocationValidator is a validator for the "location" field. It is called by the builders before save.
|
||||
@@ -142,6 +144,21 @@ func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, 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()
|
||||
}
|
||||
|
||||
// ByDeleted orders the results by the deleted field.
|
||||
func ByDeleted(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDeleted, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUID orders the results by the uid field.
|
||||
func ByUID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUID, opts...).ToFunc()
|
||||
@@ -192,21 +209,6 @@ func ByIntroduce(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldIntroduce, 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()
|
||||
}
|
||||
|
||||
// ByBlog orders the results by the blog field.
|
||||
func ByBlog(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBlog, opts...).ToFunc()
|
||||
|
@@ -55,6 +55,21 @@ func IDLTE(id int64) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(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.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// Deleted applies equality check predicate on the "deleted" field. It's identical to DeletedEQ.
|
||||
func Deleted(v int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// UID applies equality check predicate on the "uid" field. It's identical to UIDEQ.
|
||||
func UID(v string) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldUID, v))
|
||||
@@ -105,21 +120,6 @@ func Introduce(v string) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldIntroduce, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(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.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldUpdateAt, v))
|
||||
}
|
||||
|
||||
// Deleted applies equality check predicate on the "deleted" field. It's identical to DeletedEQ.
|
||||
func Deleted(v int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// Blog applies equality check predicate on the "blog" field. It's identical to BlogEQ.
|
||||
func Blog(v string) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldBlog, v))
|
||||
@@ -135,6 +135,136 @@ func Company(v string) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldCompany, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
||||
func UpdatedAtEQ(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
||||
func UpdatedAtNEQ(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldNEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
||||
func UpdatedAtIn(vs ...time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
||||
func UpdatedAtNotIn(vs ...time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
||||
func UpdatedAtGT(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldGT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
||||
func UpdatedAtGTE(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldGTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
||||
func UpdatedAtLT(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldLT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
||||
func UpdatedAtLTE(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldLTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// DeletedEQ applies the EQ predicate on the "deleted" field.
|
||||
func DeletedEQ(v int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedNEQ applies the NEQ predicate on the "deleted" field.
|
||||
func DeletedNEQ(v int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldNEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedIn applies the In predicate on the "deleted" field.
|
||||
func DeletedIn(vs ...int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldIn(FieldDeleted, vs...))
|
||||
}
|
||||
|
||||
// DeletedNotIn applies the NotIn predicate on the "deleted" field.
|
||||
func DeletedNotIn(vs ...int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldNotIn(FieldDeleted, vs...))
|
||||
}
|
||||
|
||||
// DeletedGT applies the GT predicate on the "deleted" field.
|
||||
func DeletedGT(v int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldGT(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedGTE applies the GTE predicate on the "deleted" field.
|
||||
func DeletedGTE(v int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldGTE(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedLT applies the LT predicate on the "deleted" field.
|
||||
func DeletedLT(v int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldLT(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedLTE applies the LTE predicate on the "deleted" field.
|
||||
func DeletedLTE(v int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldLTE(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedIsNil applies the IsNil predicate on the "deleted" field.
|
||||
func DeletedIsNil() predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldIsNull(FieldDeleted))
|
||||
}
|
||||
|
||||
// DeletedNotNil applies the NotNil predicate on the "deleted" field.
|
||||
func DeletedNotNil() predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldNotNull(FieldDeleted))
|
||||
}
|
||||
|
||||
// UIDEQ applies the EQ predicate on the "uid" field.
|
||||
func UIDEQ(v string) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldUID, v))
|
||||
@@ -850,136 +980,6 @@ func IntroduceContainsFold(v string) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldContainsFold(FieldIntroduce, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdateAtEQ applies the EQ predicate on the "update_at" field.
|
||||
func UpdateAtEQ(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldUpdateAt, v))
|
||||
}
|
||||
|
||||
// UpdateAtNEQ applies the NEQ predicate on the "update_at" field.
|
||||
func UpdateAtNEQ(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldNEQ(FieldUpdateAt, v))
|
||||
}
|
||||
|
||||
// UpdateAtIn applies the In predicate on the "update_at" field.
|
||||
func UpdateAtIn(vs ...time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldIn(FieldUpdateAt, vs...))
|
||||
}
|
||||
|
||||
// UpdateAtNotIn applies the NotIn predicate on the "update_at" field.
|
||||
func UpdateAtNotIn(vs ...time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldNotIn(FieldUpdateAt, vs...))
|
||||
}
|
||||
|
||||
// UpdateAtGT applies the GT predicate on the "update_at" field.
|
||||
func UpdateAtGT(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldGT(FieldUpdateAt, v))
|
||||
}
|
||||
|
||||
// UpdateAtGTE applies the GTE predicate on the "update_at" field.
|
||||
func UpdateAtGTE(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldGTE(FieldUpdateAt, v))
|
||||
}
|
||||
|
||||
// UpdateAtLT applies the LT predicate on the "update_at" field.
|
||||
func UpdateAtLT(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldLT(FieldUpdateAt, v))
|
||||
}
|
||||
|
||||
// UpdateAtLTE applies the LTE predicate on the "update_at" field.
|
||||
func UpdateAtLTE(v time.Time) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldLTE(FieldUpdateAt, v))
|
||||
}
|
||||
|
||||
// UpdateAtIsNil applies the IsNil predicate on the "update_at" field.
|
||||
func UpdateAtIsNil() predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldIsNull(FieldUpdateAt))
|
||||
}
|
||||
|
||||
// UpdateAtNotNil applies the NotNil predicate on the "update_at" field.
|
||||
func UpdateAtNotNil() predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldNotNull(FieldUpdateAt))
|
||||
}
|
||||
|
||||
// DeletedEQ applies the EQ predicate on the "deleted" field.
|
||||
func DeletedEQ(v int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedNEQ applies the NEQ predicate on the "deleted" field.
|
||||
func DeletedNEQ(v int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldNEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedIn applies the In predicate on the "deleted" field.
|
||||
func DeletedIn(vs ...int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldIn(FieldDeleted, vs...))
|
||||
}
|
||||
|
||||
// DeletedNotIn applies the NotIn predicate on the "deleted" field.
|
||||
func DeletedNotIn(vs ...int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldNotIn(FieldDeleted, vs...))
|
||||
}
|
||||
|
||||
// DeletedGT applies the GT predicate on the "deleted" field.
|
||||
func DeletedGT(v int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldGT(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedGTE applies the GTE predicate on the "deleted" field.
|
||||
func DeletedGTE(v int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldGTE(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedLT applies the LT predicate on the "deleted" field.
|
||||
func DeletedLT(v int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldLT(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedLTE applies the LTE predicate on the "deleted" field.
|
||||
func DeletedLTE(v int8) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldLTE(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// BlogEQ applies the EQ predicate on the "blog" field.
|
||||
func BlogEQ(v string) predicate.ScaAuthUser {
|
||||
return predicate.ScaAuthUser(sql.FieldEQ(FieldBlog, v))
|
||||
|
Reference in New Issue
Block a user