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()
|
||||
|
135
ent/ue/where.go
135
ent/ue/where.go
@ -160,6 +160,16 @@ 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))
|
||||
}
|
||||
|
||||
// GameEp applies equality check predicate on the "game_ep" field. It's identical to GameEpEQ.
|
||||
func GameEp(v string) predicate.Ue {
|
||||
return predicate.Ue(sql.FieldEQ(FieldGameEp, 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 +1300,131 @@ 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))
|
||||
}
|
||||
|
||||
// GameEpEQ applies the EQ predicate on the "game_ep" field.
|
||||
func GameEpEQ(v string) predicate.Ue {
|
||||
return predicate.Ue(sql.FieldEQ(FieldGameEp, v))
|
||||
}
|
||||
|
||||
// GameEpNEQ applies the NEQ predicate on the "game_ep" field.
|
||||
func GameEpNEQ(v string) predicate.Ue {
|
||||
return predicate.Ue(sql.FieldNEQ(FieldGameEp, v))
|
||||
}
|
||||
|
||||
// GameEpIn applies the In predicate on the "game_ep" field.
|
||||
func GameEpIn(vs ...string) predicate.Ue {
|
||||
return predicate.Ue(sql.FieldIn(FieldGameEp, vs...))
|
||||
}
|
||||
|
||||
// GameEpNotIn applies the NotIn predicate on the "game_ep" field.
|
||||
func GameEpNotIn(vs ...string) predicate.Ue {
|
||||
return predicate.Ue(sql.FieldNotIn(FieldGameEp, vs...))
|
||||
}
|
||||
|
||||
// GameEpGT applies the GT predicate on the "game_ep" field.
|
||||
func GameEpGT(v string) predicate.Ue {
|
||||
return predicate.Ue(sql.FieldGT(FieldGameEp, v))
|
||||
}
|
||||
|
||||
// GameEpGTE applies the GTE predicate on the "game_ep" field.
|
||||
func GameEpGTE(v string) predicate.Ue {
|
||||
return predicate.Ue(sql.FieldGTE(FieldGameEp, v))
|
||||
}
|
||||
|
||||
// GameEpLT applies the LT predicate on the "game_ep" field.
|
||||
func GameEpLT(v string) predicate.Ue {
|
||||
return predicate.Ue(sql.FieldLT(FieldGameEp, v))
|
||||
}
|
||||
|
||||
// GameEpLTE applies the LTE predicate on the "game_ep" field.
|
||||
func GameEpLTE(v string) predicate.Ue {
|
||||
return predicate.Ue(sql.FieldLTE(FieldGameEp, v))
|
||||
}
|
||||
|
||||
// GameEpContains applies the Contains predicate on the "game_ep" field.
|
||||
func GameEpContains(v string) predicate.Ue {
|
||||
return predicate.Ue(sql.FieldContains(FieldGameEp, v))
|
||||
}
|
||||
|
||||
// GameEpHasPrefix applies the HasPrefix predicate on the "game_ep" field.
|
||||
func GameEpHasPrefix(v string) predicate.Ue {
|
||||
return predicate.Ue(sql.FieldHasPrefix(FieldGameEp, v))
|
||||
}
|
||||
|
||||
// GameEpHasSuffix applies the HasSuffix predicate on the "game_ep" field.
|
||||
func GameEpHasSuffix(v string) predicate.Ue {
|
||||
return predicate.Ue(sql.FieldHasSuffix(FieldGameEp, v))
|
||||
}
|
||||
|
||||
// GameEpIsNil applies the IsNil predicate on the "game_ep" field.
|
||||
func GameEpIsNil() predicate.Ue {
|
||||
return predicate.Ue(sql.FieldIsNull(FieldGameEp))
|
||||
}
|
||||
|
||||
// GameEpNotNil applies the NotNil predicate on the "game_ep" field.
|
||||
func GameEpNotNil() predicate.Ue {
|
||||
return predicate.Ue(sql.FieldNotNull(FieldGameEp))
|
||||
}
|
||||
|
||||
// GameEpEqualFold applies the EqualFold predicate on the "game_ep" field.
|
||||
func GameEpEqualFold(v string) predicate.Ue {
|
||||
return predicate.Ue(sql.FieldEqualFold(FieldGameEp, v))
|
||||
}
|
||||
|
||||
// GameEpContainsFold applies the ContainsFold predicate on the "game_ep" field.
|
||||
func GameEpContainsFold(v string) predicate.Ue {
|
||||
return predicate.Ue(sql.FieldContainsFold(FieldGameEp, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.Ue {
|
||||
return predicate.Ue(sql.FieldEQ(FieldCreatedAt, v))
|
||||
|
Reference in New Issue
Block a user