1
0

add planet

This commit is contained in:
2024-08-01 06:01:28 +09:00
parent a4cd0e0f9a
commit 4c0c396086
17 changed files with 5062 additions and 59 deletions

View File

@ -120,6 +120,22 @@ const (
FieldCoinOpen = "coin_open"
// FieldCoinAt holds the string denoting the coin_at field in the database.
FieldCoinAt = "coin_at"
// FieldPlanet holds the string denoting the planet field in the database.
FieldPlanet = "planet"
// FieldPlanetAt holds the string denoting the planet_at field in the database.
FieldPlanetAt = "planet_at"
// FieldLogin holds the string denoting the login field in the database.
FieldLogin = "login"
// FieldLoginAt holds the string denoting the login_at field in the database.
FieldLoginAt = "login_at"
// FieldLocationX holds the string denoting the location_x field in the database.
FieldLocationX = "location_x"
// FieldLocationY holds the string denoting the location_y field in the database.
FieldLocationY = "location_y"
// FieldLocationZ holds the string denoting the location_z field in the database.
FieldLocationZ = "location_z"
// FieldLocationN holds the string denoting the location_n field in the database.
FieldLocationN = "location_n"
// EdgeCard holds the string denoting the card edge name in mutations.
EdgeCard = "card"
// EdgeUe holds the string denoting the ue edge name in mutations.
@ -216,6 +232,14 @@ var Columns = []string{
FieldCoin,
FieldCoinOpen,
FieldCoinAt,
FieldPlanet,
FieldPlanetAt,
FieldLogin,
FieldLoginAt,
FieldLocationX,
FieldLocationY,
FieldLocationZ,
FieldLocationN,
}
// ForeignKeys holds the SQL foreign-keys that are owned by the "users"
@ -294,6 +318,12 @@ var (
DefaultCoinOpen bool
// DefaultCoinAt holds the default value on creation for the "coin_at" field.
DefaultCoinAt func() time.Time
// DefaultPlanetAt holds the default value on creation for the "planet_at" field.
DefaultPlanetAt func() time.Time
// DefaultLogin holds the default value on creation for the "login" field.
DefaultLogin bool
// DefaultLoginAt holds the default value on creation for the "login_at" field.
DefaultLoginAt func() time.Time
)
// OrderOption defines the ordering options for the User queries.
@ -569,6 +599,46 @@ func ByCoinAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCoinAt, opts...).ToFunc()
}
// ByPlanet orders the results by the planet field.
func ByPlanet(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldPlanet, opts...).ToFunc()
}
// ByPlanetAt orders the results by the planet_at field.
func ByPlanetAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldPlanetAt, opts...).ToFunc()
}
// ByLogin orders the results by the login field.
func ByLogin(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldLogin, opts...).ToFunc()
}
// ByLoginAt orders the results by the login_at field.
func ByLoginAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldLoginAt, opts...).ToFunc()
}
// ByLocationX orders the results by the location_x field.
func ByLocationX(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldLocationX, opts...).ToFunc()
}
// ByLocationY orders the results by the location_y field.
func ByLocationY(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldLocationY, opts...).ToFunc()
}
// ByLocationZ orders the results by the location_z field.
func ByLocationZ(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldLocationZ, opts...).ToFunc()
}
// ByLocationN orders the results by the location_n field.
func ByLocationN(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldLocationN, opts...).ToFunc()
}
// ByCardCount orders the results by card count.
func ByCardCount(opts ...sql.OrderTermOption) OrderOption {
return func(s *sql.Selector) {

View File

@ -320,6 +320,46 @@ func CoinAt(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldCoinAt, v))
}
// Planet applies equality check predicate on the "planet" field. It's identical to PlanetEQ.
func Planet(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldPlanet, v))
}
// PlanetAt applies equality check predicate on the "planet_at" field. It's identical to PlanetAtEQ.
func PlanetAt(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldPlanetAt, v))
}
// Login applies equality check predicate on the "login" field. It's identical to LoginEQ.
func Login(v bool) predicate.User {
return predicate.User(sql.FieldEQ(FieldLogin, v))
}
// LoginAt applies equality check predicate on the "login_at" field. It's identical to LoginAtEQ.
func LoginAt(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldLoginAt, v))
}
// LocationX applies equality check predicate on the "location_x" field. It's identical to LocationXEQ.
func LocationX(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldLocationX, v))
}
// LocationY applies equality check predicate on the "location_y" field. It's identical to LocationYEQ.
func LocationY(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldLocationY, v))
}
// LocationZ applies equality check predicate on the "location_z" field. It's identical to LocationZEQ.
func LocationZ(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldLocationZ, v))
}
// LocationN applies equality check predicate on the "location_n" field. It's identical to LocationNEQ.
func LocationN(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldLocationN, v))
}
// UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEQ(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldUsername, v))
@ -2695,6 +2735,376 @@ func CoinAtNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldCoinAt))
}
// PlanetEQ applies the EQ predicate on the "planet" field.
func PlanetEQ(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldPlanet, v))
}
// PlanetNEQ applies the NEQ predicate on the "planet" field.
func PlanetNEQ(v int) predicate.User {
return predicate.User(sql.FieldNEQ(FieldPlanet, v))
}
// PlanetIn applies the In predicate on the "planet" field.
func PlanetIn(vs ...int) predicate.User {
return predicate.User(sql.FieldIn(FieldPlanet, vs...))
}
// PlanetNotIn applies the NotIn predicate on the "planet" field.
func PlanetNotIn(vs ...int) predicate.User {
return predicate.User(sql.FieldNotIn(FieldPlanet, vs...))
}
// PlanetGT applies the GT predicate on the "planet" field.
func PlanetGT(v int) predicate.User {
return predicate.User(sql.FieldGT(FieldPlanet, v))
}
// PlanetGTE applies the GTE predicate on the "planet" field.
func PlanetGTE(v int) predicate.User {
return predicate.User(sql.FieldGTE(FieldPlanet, v))
}
// PlanetLT applies the LT predicate on the "planet" field.
func PlanetLT(v int) predicate.User {
return predicate.User(sql.FieldLT(FieldPlanet, v))
}
// PlanetLTE applies the LTE predicate on the "planet" field.
func PlanetLTE(v int) predicate.User {
return predicate.User(sql.FieldLTE(FieldPlanet, v))
}
// PlanetIsNil applies the IsNil predicate on the "planet" field.
func PlanetIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldPlanet))
}
// PlanetNotNil applies the NotNil predicate on the "planet" field.
func PlanetNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldPlanet))
}
// PlanetAtEQ applies the EQ predicate on the "planet_at" field.
func PlanetAtEQ(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldPlanetAt, v))
}
// PlanetAtNEQ applies the NEQ predicate on the "planet_at" field.
func PlanetAtNEQ(v time.Time) predicate.User {
return predicate.User(sql.FieldNEQ(FieldPlanetAt, v))
}
// PlanetAtIn applies the In predicate on the "planet_at" field.
func PlanetAtIn(vs ...time.Time) predicate.User {
return predicate.User(sql.FieldIn(FieldPlanetAt, vs...))
}
// PlanetAtNotIn applies the NotIn predicate on the "planet_at" field.
func PlanetAtNotIn(vs ...time.Time) predicate.User {
return predicate.User(sql.FieldNotIn(FieldPlanetAt, vs...))
}
// PlanetAtGT applies the GT predicate on the "planet_at" field.
func PlanetAtGT(v time.Time) predicate.User {
return predicate.User(sql.FieldGT(FieldPlanetAt, v))
}
// PlanetAtGTE applies the GTE predicate on the "planet_at" field.
func PlanetAtGTE(v time.Time) predicate.User {
return predicate.User(sql.FieldGTE(FieldPlanetAt, v))
}
// PlanetAtLT applies the LT predicate on the "planet_at" field.
func PlanetAtLT(v time.Time) predicate.User {
return predicate.User(sql.FieldLT(FieldPlanetAt, v))
}
// PlanetAtLTE applies the LTE predicate on the "planet_at" field.
func PlanetAtLTE(v time.Time) predicate.User {
return predicate.User(sql.FieldLTE(FieldPlanetAt, v))
}
// PlanetAtIsNil applies the IsNil predicate on the "planet_at" field.
func PlanetAtIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldPlanetAt))
}
// PlanetAtNotNil applies the NotNil predicate on the "planet_at" field.
func PlanetAtNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldPlanetAt))
}
// LoginEQ applies the EQ predicate on the "login" field.
func LoginEQ(v bool) predicate.User {
return predicate.User(sql.FieldEQ(FieldLogin, v))
}
// LoginNEQ applies the NEQ predicate on the "login" field.
func LoginNEQ(v bool) predicate.User {
return predicate.User(sql.FieldNEQ(FieldLogin, v))
}
// LoginIsNil applies the IsNil predicate on the "login" field.
func LoginIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldLogin))
}
// LoginNotNil applies the NotNil predicate on the "login" field.
func LoginNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldLogin))
}
// LoginAtEQ applies the EQ predicate on the "login_at" field.
func LoginAtEQ(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldLoginAt, v))
}
// LoginAtNEQ applies the NEQ predicate on the "login_at" field.
func LoginAtNEQ(v time.Time) predicate.User {
return predicate.User(sql.FieldNEQ(FieldLoginAt, v))
}
// LoginAtIn applies the In predicate on the "login_at" field.
func LoginAtIn(vs ...time.Time) predicate.User {
return predicate.User(sql.FieldIn(FieldLoginAt, vs...))
}
// LoginAtNotIn applies the NotIn predicate on the "login_at" field.
func LoginAtNotIn(vs ...time.Time) predicate.User {
return predicate.User(sql.FieldNotIn(FieldLoginAt, vs...))
}
// LoginAtGT applies the GT predicate on the "login_at" field.
func LoginAtGT(v time.Time) predicate.User {
return predicate.User(sql.FieldGT(FieldLoginAt, v))
}
// LoginAtGTE applies the GTE predicate on the "login_at" field.
func LoginAtGTE(v time.Time) predicate.User {
return predicate.User(sql.FieldGTE(FieldLoginAt, v))
}
// LoginAtLT applies the LT predicate on the "login_at" field.
func LoginAtLT(v time.Time) predicate.User {
return predicate.User(sql.FieldLT(FieldLoginAt, v))
}
// LoginAtLTE applies the LTE predicate on the "login_at" field.
func LoginAtLTE(v time.Time) predicate.User {
return predicate.User(sql.FieldLTE(FieldLoginAt, v))
}
// LoginAtIsNil applies the IsNil predicate on the "login_at" field.
func LoginAtIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldLoginAt))
}
// LoginAtNotNil applies the NotNil predicate on the "login_at" field.
func LoginAtNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldLoginAt))
}
// LocationXEQ applies the EQ predicate on the "location_x" field.
func LocationXEQ(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldLocationX, v))
}
// LocationXNEQ applies the NEQ predicate on the "location_x" field.
func LocationXNEQ(v int) predicate.User {
return predicate.User(sql.FieldNEQ(FieldLocationX, v))
}
// LocationXIn applies the In predicate on the "location_x" field.
func LocationXIn(vs ...int) predicate.User {
return predicate.User(sql.FieldIn(FieldLocationX, vs...))
}
// LocationXNotIn applies the NotIn predicate on the "location_x" field.
func LocationXNotIn(vs ...int) predicate.User {
return predicate.User(sql.FieldNotIn(FieldLocationX, vs...))
}
// LocationXGT applies the GT predicate on the "location_x" field.
func LocationXGT(v int) predicate.User {
return predicate.User(sql.FieldGT(FieldLocationX, v))
}
// LocationXGTE applies the GTE predicate on the "location_x" field.
func LocationXGTE(v int) predicate.User {
return predicate.User(sql.FieldGTE(FieldLocationX, v))
}
// LocationXLT applies the LT predicate on the "location_x" field.
func LocationXLT(v int) predicate.User {
return predicate.User(sql.FieldLT(FieldLocationX, v))
}
// LocationXLTE applies the LTE predicate on the "location_x" field.
func LocationXLTE(v int) predicate.User {
return predicate.User(sql.FieldLTE(FieldLocationX, v))
}
// LocationXIsNil applies the IsNil predicate on the "location_x" field.
func LocationXIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldLocationX))
}
// LocationXNotNil applies the NotNil predicate on the "location_x" field.
func LocationXNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldLocationX))
}
// LocationYEQ applies the EQ predicate on the "location_y" field.
func LocationYEQ(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldLocationY, v))
}
// LocationYNEQ applies the NEQ predicate on the "location_y" field.
func LocationYNEQ(v int) predicate.User {
return predicate.User(sql.FieldNEQ(FieldLocationY, v))
}
// LocationYIn applies the In predicate on the "location_y" field.
func LocationYIn(vs ...int) predicate.User {
return predicate.User(sql.FieldIn(FieldLocationY, vs...))
}
// LocationYNotIn applies the NotIn predicate on the "location_y" field.
func LocationYNotIn(vs ...int) predicate.User {
return predicate.User(sql.FieldNotIn(FieldLocationY, vs...))
}
// LocationYGT applies the GT predicate on the "location_y" field.
func LocationYGT(v int) predicate.User {
return predicate.User(sql.FieldGT(FieldLocationY, v))
}
// LocationYGTE applies the GTE predicate on the "location_y" field.
func LocationYGTE(v int) predicate.User {
return predicate.User(sql.FieldGTE(FieldLocationY, v))
}
// LocationYLT applies the LT predicate on the "location_y" field.
func LocationYLT(v int) predicate.User {
return predicate.User(sql.FieldLT(FieldLocationY, v))
}
// LocationYLTE applies the LTE predicate on the "location_y" field.
func LocationYLTE(v int) predicate.User {
return predicate.User(sql.FieldLTE(FieldLocationY, v))
}
// LocationYIsNil applies the IsNil predicate on the "location_y" field.
func LocationYIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldLocationY))
}
// LocationYNotNil applies the NotNil predicate on the "location_y" field.
func LocationYNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldLocationY))
}
// LocationZEQ applies the EQ predicate on the "location_z" field.
func LocationZEQ(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldLocationZ, v))
}
// LocationZNEQ applies the NEQ predicate on the "location_z" field.
func LocationZNEQ(v int) predicate.User {
return predicate.User(sql.FieldNEQ(FieldLocationZ, v))
}
// LocationZIn applies the In predicate on the "location_z" field.
func LocationZIn(vs ...int) predicate.User {
return predicate.User(sql.FieldIn(FieldLocationZ, vs...))
}
// LocationZNotIn applies the NotIn predicate on the "location_z" field.
func LocationZNotIn(vs ...int) predicate.User {
return predicate.User(sql.FieldNotIn(FieldLocationZ, vs...))
}
// LocationZGT applies the GT predicate on the "location_z" field.
func LocationZGT(v int) predicate.User {
return predicate.User(sql.FieldGT(FieldLocationZ, v))
}
// LocationZGTE applies the GTE predicate on the "location_z" field.
func LocationZGTE(v int) predicate.User {
return predicate.User(sql.FieldGTE(FieldLocationZ, v))
}
// LocationZLT applies the LT predicate on the "location_z" field.
func LocationZLT(v int) predicate.User {
return predicate.User(sql.FieldLT(FieldLocationZ, v))
}
// LocationZLTE applies the LTE predicate on the "location_z" field.
func LocationZLTE(v int) predicate.User {
return predicate.User(sql.FieldLTE(FieldLocationZ, v))
}
// LocationZIsNil applies the IsNil predicate on the "location_z" field.
func LocationZIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldLocationZ))
}
// LocationZNotNil applies the NotNil predicate on the "location_z" field.
func LocationZNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldLocationZ))
}
// LocationNEQ applies the EQ predicate on the "location_n" field.
func LocationNEQ(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldLocationN, v))
}
// LocationNNEQ applies the NEQ predicate on the "location_n" field.
func LocationNNEQ(v int) predicate.User {
return predicate.User(sql.FieldNEQ(FieldLocationN, v))
}
// LocationNIn applies the In predicate on the "location_n" field.
func LocationNIn(vs ...int) predicate.User {
return predicate.User(sql.FieldIn(FieldLocationN, vs...))
}
// LocationNNotIn applies the NotIn predicate on the "location_n" field.
func LocationNNotIn(vs ...int) predicate.User {
return predicate.User(sql.FieldNotIn(FieldLocationN, vs...))
}
// LocationNGT applies the GT predicate on the "location_n" field.
func LocationNGT(v int) predicate.User {
return predicate.User(sql.FieldGT(FieldLocationN, v))
}
// LocationNGTE applies the GTE predicate on the "location_n" field.
func LocationNGTE(v int) predicate.User {
return predicate.User(sql.FieldGTE(FieldLocationN, v))
}
// LocationNLT applies the LT predicate on the "location_n" field.
func LocationNLT(v int) predicate.User {
return predicate.User(sql.FieldLT(FieldLocationN, v))
}
// LocationNLTE applies the LTE predicate on the "location_n" field.
func LocationNLTE(v int) predicate.User {
return predicate.User(sql.FieldLTE(FieldLocationN, v))
}
// LocationNIsNil applies the IsNil predicate on the "location_n" field.
func LocationNIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldLocationN))
}
// LocationNNotNil applies the NotNil predicate on the "location_n" field.
func LocationNNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldLocationN))
}
// HasCard applies the HasEdge predicate on the "card" edge.
func HasCard() predicate.User {
return predicate.User(func(s *sql.Selector) {