add fav
This commit is contained in:
@ -39,6 +39,8 @@ const (
|
||||
FieldLikeRank = "like_rank"
|
||||
// FieldLikeAt holds the string denoting the like_at field in the database.
|
||||
FieldLikeAt = "like_at"
|
||||
// FieldFav holds the string denoting the fav field in the database.
|
||||
FieldFav = "fav"
|
||||
// FieldTen holds the string denoting the ten field in the database.
|
||||
FieldTen = "ten"
|
||||
// FieldTenSu holds the string denoting the ten_su field in the database.
|
||||
@ -89,6 +91,7 @@ var Columns = []string{
|
||||
FieldLike,
|
||||
FieldLikeRank,
|
||||
FieldLikeAt,
|
||||
FieldFav,
|
||||
FieldTen,
|
||||
FieldTenSu,
|
||||
FieldTenKai,
|
||||
|
@ -125,6 +125,11 @@ func LikeAt(v time.Time) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldLikeAt, v))
|
||||
}
|
||||
|
||||
// Fav applies equality check predicate on the "fav" field. It's identical to FavEQ.
|
||||
func Fav(v int) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldFav, v))
|
||||
}
|
||||
|
||||
// Ten applies equality check predicate on the "ten" field. It's identical to TenEQ.
|
||||
func Ten(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldTen, v))
|
||||
@ -895,6 +900,56 @@ func LikeAtNotNil() predicate.User {
|
||||
return predicate.User(sql.FieldNotNull(FieldLikeAt))
|
||||
}
|
||||
|
||||
// FavEQ applies the EQ predicate on the "fav" field.
|
||||
func FavEQ(v int) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldFav, v))
|
||||
}
|
||||
|
||||
// FavNEQ applies the NEQ predicate on the "fav" field.
|
||||
func FavNEQ(v int) predicate.User {
|
||||
return predicate.User(sql.FieldNEQ(FieldFav, v))
|
||||
}
|
||||
|
||||
// FavIn applies the In predicate on the "fav" field.
|
||||
func FavIn(vs ...int) predicate.User {
|
||||
return predicate.User(sql.FieldIn(FieldFav, vs...))
|
||||
}
|
||||
|
||||
// FavNotIn applies the NotIn predicate on the "fav" field.
|
||||
func FavNotIn(vs ...int) predicate.User {
|
||||
return predicate.User(sql.FieldNotIn(FieldFav, vs...))
|
||||
}
|
||||
|
||||
// FavGT applies the GT predicate on the "fav" field.
|
||||
func FavGT(v int) predicate.User {
|
||||
return predicate.User(sql.FieldGT(FieldFav, v))
|
||||
}
|
||||
|
||||
// FavGTE applies the GTE predicate on the "fav" field.
|
||||
func FavGTE(v int) predicate.User {
|
||||
return predicate.User(sql.FieldGTE(FieldFav, v))
|
||||
}
|
||||
|
||||
// FavLT applies the LT predicate on the "fav" field.
|
||||
func FavLT(v int) predicate.User {
|
||||
return predicate.User(sql.FieldLT(FieldFav, v))
|
||||
}
|
||||
|
||||
// FavLTE applies the LTE predicate on the "fav" field.
|
||||
func FavLTE(v int) predicate.User {
|
||||
return predicate.User(sql.FieldLTE(FieldFav, v))
|
||||
}
|
||||
|
||||
// FavIsNil applies the IsNil predicate on the "fav" field.
|
||||
func FavIsNil() predicate.User {
|
||||
return predicate.User(sql.FieldIsNull(FieldFav))
|
||||
}
|
||||
|
||||
// FavNotNil applies the NotNil predicate on the "fav" field.
|
||||
func FavNotNil() predicate.User {
|
||||
return predicate.User(sql.FieldNotNull(FieldFav))
|
||||
}
|
||||
|
||||
// TenEQ applies the EQ predicate on the "ten" field.
|
||||
func TenEQ(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldTen, v))
|
||||
|
Reference in New Issue
Block a user