1
0

add egg_at

This commit is contained in:
2023-07-23 23:40:24 +09:00
parent 1615c253ba
commit 6116d5a076
22 changed files with 744 additions and 161 deletions

View File

@ -41,6 +41,8 @@ const (
FieldUpdatedAt = "updated_at"
// FieldRaidAt holds the string denoting the raid_at field in the database.
FieldRaidAt = "raid_at"
// FieldEggAt holds the string denoting the egg_at field in the database.
FieldEggAt = "egg_at"
// FieldLuck holds the string denoting the luck field in the database.
FieldLuck = "luck"
// FieldLuckAt holds the string denoting the luck_at field in the database.
@ -104,6 +106,7 @@ var Columns = []string{
FieldCreatedAt,
FieldUpdatedAt,
FieldRaidAt,
FieldEggAt,
FieldLuck,
FieldLuckAt,
FieldLike,
@ -170,6 +173,8 @@ var (
DefaultUpdatedAt func() time.Time
// DefaultRaidAt holds the default value on creation for the "raid_at" field.
DefaultRaidAt func() time.Time
// DefaultEggAt holds the default value on creation for the "egg_at" field.
DefaultEggAt func() time.Time
// DefaultLuckAt holds the default value on creation for the "luck_at" field.
DefaultLuckAt func() time.Time
// DefaultLikeAt holds the default value on creation for the "like_at" field.

View File

@ -130,6 +130,11 @@ func RaidAt(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldRaidAt, v))
}
// EggAt applies equality check predicate on the "egg_at" field. It's identical to EggAtEQ.
func EggAt(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldEggAt, v))
}
// Luck applies equality check predicate on the "luck" field. It's identical to LuckEQ.
func Luck(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldLuck, v))
@ -800,6 +805,56 @@ func RaidAtNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldRaidAt))
}
// EggAtEQ applies the EQ predicate on the "egg_at" field.
func EggAtEQ(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldEggAt, v))
}
// EggAtNEQ applies the NEQ predicate on the "egg_at" field.
func EggAtNEQ(v time.Time) predicate.User {
return predicate.User(sql.FieldNEQ(FieldEggAt, v))
}
// EggAtIn applies the In predicate on the "egg_at" field.
func EggAtIn(vs ...time.Time) predicate.User {
return predicate.User(sql.FieldIn(FieldEggAt, vs...))
}
// EggAtNotIn applies the NotIn predicate on the "egg_at" field.
func EggAtNotIn(vs ...time.Time) predicate.User {
return predicate.User(sql.FieldNotIn(FieldEggAt, vs...))
}
// EggAtGT applies the GT predicate on the "egg_at" field.
func EggAtGT(v time.Time) predicate.User {
return predicate.User(sql.FieldGT(FieldEggAt, v))
}
// EggAtGTE applies the GTE predicate on the "egg_at" field.
func EggAtGTE(v time.Time) predicate.User {
return predicate.User(sql.FieldGTE(FieldEggAt, v))
}
// EggAtLT applies the LT predicate on the "egg_at" field.
func EggAtLT(v time.Time) predicate.User {
return predicate.User(sql.FieldLT(FieldEggAt, v))
}
// EggAtLTE applies the LTE predicate on the "egg_at" field.
func EggAtLTE(v time.Time) predicate.User {
return predicate.User(sql.FieldLTE(FieldEggAt, v))
}
// EggAtIsNil applies the IsNil predicate on the "egg_at" field.
func EggAtIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldEggAt))
}
// EggAtNotNil applies the NotNil predicate on the "egg_at" field.
func EggAtNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldEggAt))
}
// LuckEQ applies the EQ predicate on the "luck" field.
func LuckEQ(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldLuck, v))