1
0
This commit is contained in:
2023-09-10 17:53:30 +09:00
parent 1124b851aa
commit a35e67d683
20 changed files with 1263 additions and 177 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"
// FieldServerAt holds the string denoting the server_at field in the database.
FieldServerAt = "server_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.
@ -75,6 +77,8 @@ const (
FieldTenAt = "ten_at"
// FieldNext holds the string denoting the next field in the database.
FieldNext = "next"
// FieldRoom holds the string denoting the room field in the database.
FieldRoom = "room"
// EdgeCard holds the string denoting the card edge name in mutations.
EdgeCard = "card"
// Table holds the table name of the user in the database.
@ -106,6 +110,7 @@ var Columns = []string{
FieldCreatedAt,
FieldUpdatedAt,
FieldRaidAt,
FieldServerAt,
FieldEggAt,
FieldLuck,
FieldLuckAt,
@ -123,6 +128,7 @@ var Columns = []string{
FieldTenGet,
FieldTenAt,
FieldNext,
FieldRoom,
}
// ForeignKeys holds the SQL foreign-keys that are owned by the "users"
@ -173,6 +179,8 @@ var (
DefaultUpdatedAt func() time.Time
// DefaultRaidAt holds the default value on creation for the "raid_at" field.
DefaultRaidAt func() time.Time
// DefaultServerAt holds the default value on creation for the "server_at" field.
DefaultServerAt 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.

View File

@ -130,6 +130,11 @@ func RaidAt(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldRaidAt, v))
}
// ServerAt applies equality check predicate on the "server_at" field. It's identical to ServerAtEQ.
func ServerAt(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldServerAt, 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))
@ -215,6 +220,11 @@ func Next(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldNext, v))
}
// Room applies equality check predicate on the "room" field. It's identical to RoomEQ.
func Room(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldRoom, v))
}
// UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEQ(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldUsername, v))
@ -805,6 +815,56 @@ func RaidAtNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldRaidAt))
}
// ServerAtEQ applies the EQ predicate on the "server_at" field.
func ServerAtEQ(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldServerAt, v))
}
// ServerAtNEQ applies the NEQ predicate on the "server_at" field.
func ServerAtNEQ(v time.Time) predicate.User {
return predicate.User(sql.FieldNEQ(FieldServerAt, v))
}
// ServerAtIn applies the In predicate on the "server_at" field.
func ServerAtIn(vs ...time.Time) predicate.User {
return predicate.User(sql.FieldIn(FieldServerAt, vs...))
}
// ServerAtNotIn applies the NotIn predicate on the "server_at" field.
func ServerAtNotIn(vs ...time.Time) predicate.User {
return predicate.User(sql.FieldNotIn(FieldServerAt, vs...))
}
// ServerAtGT applies the GT predicate on the "server_at" field.
func ServerAtGT(v time.Time) predicate.User {
return predicate.User(sql.FieldGT(FieldServerAt, v))
}
// ServerAtGTE applies the GTE predicate on the "server_at" field.
func ServerAtGTE(v time.Time) predicate.User {
return predicate.User(sql.FieldGTE(FieldServerAt, v))
}
// ServerAtLT applies the LT predicate on the "server_at" field.
func ServerAtLT(v time.Time) predicate.User {
return predicate.User(sql.FieldLT(FieldServerAt, v))
}
// ServerAtLTE applies the LTE predicate on the "server_at" field.
func ServerAtLTE(v time.Time) predicate.User {
return predicate.User(sql.FieldLTE(FieldServerAt, v))
}
// ServerAtIsNil applies the IsNil predicate on the "server_at" field.
func ServerAtIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldServerAt))
}
// ServerAtNotNil applies the NotNil predicate on the "server_at" field.
func ServerAtNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldServerAt))
}
// EggAtEQ applies the EQ predicate on the "egg_at" field.
func EggAtEQ(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldEggAt, v))
@ -1750,6 +1810,56 @@ func NextContainsFold(v string) predicate.User {
return predicate.User(sql.FieldContainsFold(FieldNext, v))
}
// RoomEQ applies the EQ predicate on the "room" field.
func RoomEQ(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldRoom, v))
}
// RoomNEQ applies the NEQ predicate on the "room" field.
func RoomNEQ(v int) predicate.User {
return predicate.User(sql.FieldNEQ(FieldRoom, v))
}
// RoomIn applies the In predicate on the "room" field.
func RoomIn(vs ...int) predicate.User {
return predicate.User(sql.FieldIn(FieldRoom, vs...))
}
// RoomNotIn applies the NotIn predicate on the "room" field.
func RoomNotIn(vs ...int) predicate.User {
return predicate.User(sql.FieldNotIn(FieldRoom, vs...))
}
// RoomGT applies the GT predicate on the "room" field.
func RoomGT(v int) predicate.User {
return predicate.User(sql.FieldGT(FieldRoom, v))
}
// RoomGTE applies the GTE predicate on the "room" field.
func RoomGTE(v int) predicate.User {
return predicate.User(sql.FieldGTE(FieldRoom, v))
}
// RoomLT applies the LT predicate on the "room" field.
func RoomLT(v int) predicate.User {
return predicate.User(sql.FieldLT(FieldRoom, v))
}
// RoomLTE applies the LTE predicate on the "room" field.
func RoomLTE(v int) predicate.User {
return predicate.User(sql.FieldLTE(FieldRoom, v))
}
// RoomIsNil applies the IsNil predicate on the "room" field.
func RoomIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldRoom))
}
// RoomNotNil applies the NotNil predicate on the "room" field.
func RoomNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldRoom))
}
// HasCard applies the HasEdge predicate on the "card" edge.
func HasCard() predicate.User {
return predicate.User(func(s *sql.Selector) {