fix ue game lv
This commit is contained in:
24
ent/ue/ue.go
24
ent/ue/ue.go
@@ -50,6 +50,12 @@ const (
|
||||
FieldLocationN = "location_n"
|
||||
// FieldAuthor holds the string denoting the author field in the database.
|
||||
FieldAuthor = "author"
|
||||
// FieldGameLv holds the string denoting the game_lv field in the database.
|
||||
FieldGameLv = "game_lv"
|
||||
// FieldGameExp holds the string denoting the game_exp field in the database.
|
||||
FieldGameExp = "game_exp"
|
||||
// FieldGameID holds the string denoting the game_id field in the database.
|
||||
FieldGameID = "game_id"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// EdgeOwner holds the string denoting the owner edge name in mutations.
|
||||
@@ -86,6 +92,9 @@ var Columns = []string{
|
||||
FieldLocationZ,
|
||||
FieldLocationN,
|
||||
FieldAuthor,
|
||||
FieldGameLv,
|
||||
FieldGameExp,
|
||||
FieldGameID,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
@@ -221,6 +230,21 @@ func ByAuthor(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldAuthor, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByGameLv orders the results by the game_lv field.
|
||||
func ByGameLv(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldGameLv, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByGameExp orders the results by the game_exp field.
|
||||
func ByGameExp(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldGameExp, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByGameID orders the results by the game_id field.
|
||||
func ByGameID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldGameID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
|
Reference in New Issue
Block a user