1
0

fix game story

This commit is contained in:
2024-06-08 01:02:15 +09:00
parent e508a50025
commit e707b1802e
21 changed files with 1804 additions and 82 deletions

View File

@ -56,6 +56,8 @@ 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"
// 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 +97,7 @@ var Columns = []string{
FieldGameLv,
FieldGameExp,
FieldGameID,
FieldGameStory,
FieldCreatedAt,
}
@ -245,6 +248,11 @@ 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()
}
// ByCreatedAt orders the results by the created_at field.
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()

View File

@ -160,6 +160,11 @@ func GameID(v string) predicate.Ue {
return predicate.Ue(sql.FieldEQ(FieldGameID, v))
}
// GameStory applies equality check predicate on the "game_story" field. It's identical to GameStoryEQ.
func GameStory(v int) predicate.Ue {
return predicate.Ue(sql.FieldEQ(FieldGameStory, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.Ue {
return predicate.Ue(sql.FieldEQ(FieldCreatedAt, v))
@ -1290,6 +1295,56 @@ func GameIDContainsFold(v string) predicate.Ue {
return predicate.Ue(sql.FieldContainsFold(FieldGameID, v))
}
// GameStoryEQ applies the EQ predicate on the "game_story" field.
func GameStoryEQ(v int) predicate.Ue {
return predicate.Ue(sql.FieldEQ(FieldGameStory, v))
}
// GameStoryNEQ applies the NEQ predicate on the "game_story" field.
func GameStoryNEQ(v int) predicate.Ue {
return predicate.Ue(sql.FieldNEQ(FieldGameStory, v))
}
// GameStoryIn applies the In predicate on the "game_story" field.
func GameStoryIn(vs ...int) predicate.Ue {
return predicate.Ue(sql.FieldIn(FieldGameStory, vs...))
}
// GameStoryNotIn applies the NotIn predicate on the "game_story" field.
func GameStoryNotIn(vs ...int) predicate.Ue {
return predicate.Ue(sql.FieldNotIn(FieldGameStory, vs...))
}
// GameStoryGT applies the GT predicate on the "game_story" field.
func GameStoryGT(v int) predicate.Ue {
return predicate.Ue(sql.FieldGT(FieldGameStory, v))
}
// GameStoryGTE applies the GTE predicate on the "game_story" field.
func GameStoryGTE(v int) predicate.Ue {
return predicate.Ue(sql.FieldGTE(FieldGameStory, v))
}
// GameStoryLT applies the LT predicate on the "game_story" field.
func GameStoryLT(v int) predicate.Ue {
return predicate.Ue(sql.FieldLT(FieldGameStory, v))
}
// GameStoryLTE applies the LTE predicate on the "game_story" field.
func GameStoryLTE(v int) predicate.Ue {
return predicate.Ue(sql.FieldLTE(FieldGameStory, v))
}
// GameStoryIsNil applies the IsNil predicate on the "game_story" field.
func GameStoryIsNil() predicate.Ue {
return predicate.Ue(sql.FieldIsNull(FieldGameStory))
}
// GameStoryNotNil applies the NotNil predicate on the "game_story" field.
func GameStoryNotNil() predicate.Ue {
return predicate.Ue(sql.FieldNotNull(FieldGameStory))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.Ue {
return predicate.Ue(sql.FieldEQ(FieldCreatedAt, v))