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) {