fix game story
This commit is contained in:
16
ent/ue/ue.go
16
ent/ue/ue.go
@@ -56,6 +56,10 @@ const (
|
||||
FieldGameExp = "game_exp"
|
||||
// FieldGameID holds the string denoting the game_id field in the database.
|
||||
FieldGameID = "game_id"
|
||||
// FieldGameStory holds the string denoting the game_story field in the database.
|
||||
FieldGameStory = "game_story"
|
||||
// FieldGameEp holds the string denoting the game_ep field in the database.
|
||||
FieldGameEp = "game_ep"
|
||||
// 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.
|
||||
@@ -95,6 +99,8 @@ var Columns = []string{
|
||||
FieldGameLv,
|
||||
FieldGameExp,
|
||||
FieldGameID,
|
||||
FieldGameStory,
|
||||
FieldGameEp,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
@@ -245,6 +251,16 @@ func ByGameID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldGameID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByGameStory orders the results by the game_story field.
|
||||
func ByGameStory(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldGameStory, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByGameEp orders the results by the game_ep field.
|
||||
func ByGameEp(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldGameEp, 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