1
0

fix ue game lv

This commit is contained in:
2024-06-01 23:35:34 +09:00
parent 2b479451c1
commit e508a50025
21 changed files with 2170 additions and 79 deletions

View File

@ -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()

View File

@ -145,6 +145,21 @@ func Author(v string) predicate.Ue {
return predicate.Ue(sql.FieldEQ(FieldAuthor, v))
}
// GameLv applies equality check predicate on the "game_lv" field. It's identical to GameLvEQ.
func GameLv(v string) predicate.Ue {
return predicate.Ue(sql.FieldEQ(FieldGameLv, v))
}
// GameExp applies equality check predicate on the "game_exp" field. It's identical to GameExpEQ.
func GameExp(v string) predicate.Ue {
return predicate.Ue(sql.FieldEQ(FieldGameExp, v))
}
// GameID applies equality check predicate on the "game_id" field. It's identical to GameIDEQ.
func GameID(v string) predicate.Ue {
return predicate.Ue(sql.FieldEQ(FieldGameID, 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))
@ -1050,6 +1065,231 @@ func AuthorContainsFold(v string) predicate.Ue {
return predicate.Ue(sql.FieldContainsFold(FieldAuthor, v))
}
// GameLvEQ applies the EQ predicate on the "game_lv" field.
func GameLvEQ(v string) predicate.Ue {
return predicate.Ue(sql.FieldEQ(FieldGameLv, v))
}
// GameLvNEQ applies the NEQ predicate on the "game_lv" field.
func GameLvNEQ(v string) predicate.Ue {
return predicate.Ue(sql.FieldNEQ(FieldGameLv, v))
}
// GameLvIn applies the In predicate on the "game_lv" field.
func GameLvIn(vs ...string) predicate.Ue {
return predicate.Ue(sql.FieldIn(FieldGameLv, vs...))
}
// GameLvNotIn applies the NotIn predicate on the "game_lv" field.
func GameLvNotIn(vs ...string) predicate.Ue {
return predicate.Ue(sql.FieldNotIn(FieldGameLv, vs...))
}
// GameLvGT applies the GT predicate on the "game_lv" field.
func GameLvGT(v string) predicate.Ue {
return predicate.Ue(sql.FieldGT(FieldGameLv, v))
}
// GameLvGTE applies the GTE predicate on the "game_lv" field.
func GameLvGTE(v string) predicate.Ue {
return predicate.Ue(sql.FieldGTE(FieldGameLv, v))
}
// GameLvLT applies the LT predicate on the "game_lv" field.
func GameLvLT(v string) predicate.Ue {
return predicate.Ue(sql.FieldLT(FieldGameLv, v))
}
// GameLvLTE applies the LTE predicate on the "game_lv" field.
func GameLvLTE(v string) predicate.Ue {
return predicate.Ue(sql.FieldLTE(FieldGameLv, v))
}
// GameLvContains applies the Contains predicate on the "game_lv" field.
func GameLvContains(v string) predicate.Ue {
return predicate.Ue(sql.FieldContains(FieldGameLv, v))
}
// GameLvHasPrefix applies the HasPrefix predicate on the "game_lv" field.
func GameLvHasPrefix(v string) predicate.Ue {
return predicate.Ue(sql.FieldHasPrefix(FieldGameLv, v))
}
// GameLvHasSuffix applies the HasSuffix predicate on the "game_lv" field.
func GameLvHasSuffix(v string) predicate.Ue {
return predicate.Ue(sql.FieldHasSuffix(FieldGameLv, v))
}
// GameLvIsNil applies the IsNil predicate on the "game_lv" field.
func GameLvIsNil() predicate.Ue {
return predicate.Ue(sql.FieldIsNull(FieldGameLv))
}
// GameLvNotNil applies the NotNil predicate on the "game_lv" field.
func GameLvNotNil() predicate.Ue {
return predicate.Ue(sql.FieldNotNull(FieldGameLv))
}
// GameLvEqualFold applies the EqualFold predicate on the "game_lv" field.
func GameLvEqualFold(v string) predicate.Ue {
return predicate.Ue(sql.FieldEqualFold(FieldGameLv, v))
}
// GameLvContainsFold applies the ContainsFold predicate on the "game_lv" field.
func GameLvContainsFold(v string) predicate.Ue {
return predicate.Ue(sql.FieldContainsFold(FieldGameLv, v))
}
// GameExpEQ applies the EQ predicate on the "game_exp" field.
func GameExpEQ(v string) predicate.Ue {
return predicate.Ue(sql.FieldEQ(FieldGameExp, v))
}
// GameExpNEQ applies the NEQ predicate on the "game_exp" field.
func GameExpNEQ(v string) predicate.Ue {
return predicate.Ue(sql.FieldNEQ(FieldGameExp, v))
}
// GameExpIn applies the In predicate on the "game_exp" field.
func GameExpIn(vs ...string) predicate.Ue {
return predicate.Ue(sql.FieldIn(FieldGameExp, vs...))
}
// GameExpNotIn applies the NotIn predicate on the "game_exp" field.
func GameExpNotIn(vs ...string) predicate.Ue {
return predicate.Ue(sql.FieldNotIn(FieldGameExp, vs...))
}
// GameExpGT applies the GT predicate on the "game_exp" field.
func GameExpGT(v string) predicate.Ue {
return predicate.Ue(sql.FieldGT(FieldGameExp, v))
}
// GameExpGTE applies the GTE predicate on the "game_exp" field.
func GameExpGTE(v string) predicate.Ue {
return predicate.Ue(sql.FieldGTE(FieldGameExp, v))
}
// GameExpLT applies the LT predicate on the "game_exp" field.
func GameExpLT(v string) predicate.Ue {
return predicate.Ue(sql.FieldLT(FieldGameExp, v))
}
// GameExpLTE applies the LTE predicate on the "game_exp" field.
func GameExpLTE(v string) predicate.Ue {
return predicate.Ue(sql.FieldLTE(FieldGameExp, v))
}
// GameExpContains applies the Contains predicate on the "game_exp" field.
func GameExpContains(v string) predicate.Ue {
return predicate.Ue(sql.FieldContains(FieldGameExp, v))
}
// GameExpHasPrefix applies the HasPrefix predicate on the "game_exp" field.
func GameExpHasPrefix(v string) predicate.Ue {
return predicate.Ue(sql.FieldHasPrefix(FieldGameExp, v))
}
// GameExpHasSuffix applies the HasSuffix predicate on the "game_exp" field.
func GameExpHasSuffix(v string) predicate.Ue {
return predicate.Ue(sql.FieldHasSuffix(FieldGameExp, v))
}
// GameExpIsNil applies the IsNil predicate on the "game_exp" field.
func GameExpIsNil() predicate.Ue {
return predicate.Ue(sql.FieldIsNull(FieldGameExp))
}
// GameExpNotNil applies the NotNil predicate on the "game_exp" field.
func GameExpNotNil() predicate.Ue {
return predicate.Ue(sql.FieldNotNull(FieldGameExp))
}
// GameExpEqualFold applies the EqualFold predicate on the "game_exp" field.
func GameExpEqualFold(v string) predicate.Ue {
return predicate.Ue(sql.FieldEqualFold(FieldGameExp, v))
}
// GameExpContainsFold applies the ContainsFold predicate on the "game_exp" field.
func GameExpContainsFold(v string) predicate.Ue {
return predicate.Ue(sql.FieldContainsFold(FieldGameExp, v))
}
// GameIDEQ applies the EQ predicate on the "game_id" field.
func GameIDEQ(v string) predicate.Ue {
return predicate.Ue(sql.FieldEQ(FieldGameID, v))
}
// GameIDNEQ applies the NEQ predicate on the "game_id" field.
func GameIDNEQ(v string) predicate.Ue {
return predicate.Ue(sql.FieldNEQ(FieldGameID, v))
}
// GameIDIn applies the In predicate on the "game_id" field.
func GameIDIn(vs ...string) predicate.Ue {
return predicate.Ue(sql.FieldIn(FieldGameID, vs...))
}
// GameIDNotIn applies the NotIn predicate on the "game_id" field.
func GameIDNotIn(vs ...string) predicate.Ue {
return predicate.Ue(sql.FieldNotIn(FieldGameID, vs...))
}
// GameIDGT applies the GT predicate on the "game_id" field.
func GameIDGT(v string) predicate.Ue {
return predicate.Ue(sql.FieldGT(FieldGameID, v))
}
// GameIDGTE applies the GTE predicate on the "game_id" field.
func GameIDGTE(v string) predicate.Ue {
return predicate.Ue(sql.FieldGTE(FieldGameID, v))
}
// GameIDLT applies the LT predicate on the "game_id" field.
func GameIDLT(v string) predicate.Ue {
return predicate.Ue(sql.FieldLT(FieldGameID, v))
}
// GameIDLTE applies the LTE predicate on the "game_id" field.
func GameIDLTE(v string) predicate.Ue {
return predicate.Ue(sql.FieldLTE(FieldGameID, v))
}
// GameIDContains applies the Contains predicate on the "game_id" field.
func GameIDContains(v string) predicate.Ue {
return predicate.Ue(sql.FieldContains(FieldGameID, v))
}
// GameIDHasPrefix applies the HasPrefix predicate on the "game_id" field.
func GameIDHasPrefix(v string) predicate.Ue {
return predicate.Ue(sql.FieldHasPrefix(FieldGameID, v))
}
// GameIDHasSuffix applies the HasSuffix predicate on the "game_id" field.
func GameIDHasSuffix(v string) predicate.Ue {
return predicate.Ue(sql.FieldHasSuffix(FieldGameID, v))
}
// GameIDIsNil applies the IsNil predicate on the "game_id" field.
func GameIDIsNil() predicate.Ue {
return predicate.Ue(sql.FieldIsNull(FieldGameID))
}
// GameIDNotNil applies the NotNil predicate on the "game_id" field.
func GameIDNotNil() predicate.Ue {
return predicate.Ue(sql.FieldNotNull(FieldGameID))
}
// GameIDEqualFold applies the EqualFold predicate on the "game_id" field.
func GameIDEqualFold(v string) predicate.Ue {
return predicate.Ue(sql.FieldEqualFold(FieldGameID, v))
}
// GameIDContainsFold applies the ContainsFold predicate on the "game_id" field.
func GameIDContainsFold(v string) predicate.Ue {
return predicate.Ue(sql.FieldContainsFold(FieldGameID, 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))