Files
epic-ent/internal/ent/gearsetinfo/gearsetinfo.go

239 lines
9.6 KiB
Go

// Code generated by ent, DO NOT EDIT.
package gearsetinfo
import (
"entgo.io/ent/dialect/sql"
)
const (
// Label holds the string label denoting the gearsetinfo type in the database.
Label = "gear_set_info"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldLevel holds the string denoting the level field in the database.
FieldLevel = "level"
// FieldGearID holds the string denoting the gear_id field in the database.
FieldGearID = "gear_id"
// FieldEnhance holds the string denoting the enhance field in the database.
FieldEnhance = "enhance"
// FieldGearType holds the string denoting the gear_type field in the database.
FieldGearType = "gear_type"
// FieldGearSetType holds the string denoting the gear_set_type field in the database.
FieldGearSetType = "gear_set_type"
// FieldMainStatType holds the string denoting the main_stat_type field in the database.
FieldMainStatType = "main_stat_type"
// FieldMainStatValue holds the string denoting the main_stat_value field in the database.
FieldMainStatValue = "main_stat_value"
// FieldSubStatOneType holds the string denoting the sub_stat_one_type field in the database.
FieldSubStatOneType = "sub_stat_one_type"
// FieldSubStatOneValue holds the string denoting the sub_stat_one_value field in the database.
FieldSubStatOneValue = "sub_stat_one_value"
// FieldSubStatTwoType holds the string denoting the sub_stat_two_type field in the database.
FieldSubStatTwoType = "sub_stat_two_type"
// FieldSubStatTwoValue holds the string denoting the sub_stat_two_value field in the database.
FieldSubStatTwoValue = "sub_stat_two_value"
// FieldSubStatThreeType holds the string denoting the sub_stat_three_type field in the database.
FieldSubStatThreeType = "sub_stat_three_type"
// FieldSubStatThreeValue holds the string denoting the sub_stat_three_value field in the database.
FieldSubStatThreeValue = "sub_stat_three_value"
// FieldSubStatFourType holds the string denoting the sub_stat_four_type field in the database.
FieldSubStatFourType = "sub_stat_four_type"
// FieldSubStatFourValue holds the string denoting the sub_stat_four_value field in the database.
FieldSubStatFourValue = "sub_stat_four_value"
// FieldAccountCode holds the string denoting the account_code field in the database.
FieldAccountCode = "account_code"
// FieldCreator holds the string denoting the creator field in the database.
FieldCreator = "creator"
// FieldCreateTime holds the string denoting the create_time field in the database.
FieldCreateTime = "create_time"
// FieldUpdater holds the string denoting the updater field in the database.
FieldUpdater = "updater"
// FieldUpdateTime holds the string denoting the update_time field in the database.
FieldUpdateTime = "update_time"
// FieldDeleted holds the string denoting the deleted field in the database.
FieldDeleted = "deleted"
// FieldTenantID holds the string denoting the tenant_id field in the database.
FieldTenantID = "tenant_id"
// Table holds the table name of the gearsetinfo in the database.
Table = "gear_set_infos"
)
// Columns holds all SQL columns for gearsetinfo fields.
var Columns = []string{
FieldID,
FieldLevel,
FieldGearID,
FieldEnhance,
FieldGearType,
FieldGearSetType,
FieldMainStatType,
FieldMainStatValue,
FieldSubStatOneType,
FieldSubStatOneValue,
FieldSubStatTwoType,
FieldSubStatTwoValue,
FieldSubStatThreeType,
FieldSubStatThreeValue,
FieldSubStatFourType,
FieldSubStatFourValue,
FieldAccountCode,
FieldCreator,
FieldCreateTime,
FieldUpdater,
FieldUpdateTime,
FieldDeleted,
FieldTenantID,
}
// ValidColumn reports if the column name is valid (part of the table columns).
func ValidColumn(column string) bool {
for i := range Columns {
if column == Columns[i] {
return true
}
}
return false
}
var (
// GearTypeValidator is a validator for the "gear_type" field. It is called by the builders before save.
GearTypeValidator func(string) error
// GearSetTypeValidator is a validator for the "gear_set_type" field. It is called by the builders before save.
GearSetTypeValidator func(string) error
// MainStatTypeValidator is a validator for the "main_stat_type" field. It is called by the builders before save.
MainStatTypeValidator func(string) error
// SubStatOneTypeValidator is a validator for the "sub_stat_one_type" field. It is called by the builders before save.
SubStatOneTypeValidator func(string) error
// SubStatTwoTypeValidator is a validator for the "sub_stat_two_type" field. It is called by the builders before save.
SubStatTwoTypeValidator func(string) error
// SubStatThreeTypeValidator is a validator for the "sub_stat_three_type" field. It is called by the builders before save.
SubStatThreeTypeValidator func(string) error
// SubStatFourTypeValidator is a validator for the "sub_stat_four_type" field. It is called by the builders before save.
SubStatFourTypeValidator func(string) error
// AccountCodeValidator is a validator for the "account_code" field. It is called by the builders before save.
AccountCodeValidator func(string) error
// CreatorValidator is a validator for the "creator" field. It is called by the builders before save.
CreatorValidator func(string) error
// UpdaterValidator is a validator for the "updater" field. It is called by the builders before save.
UpdaterValidator func(string) error
)
// OrderOption defines the ordering options for the GearSetInfo queries.
type OrderOption func(*sql.Selector)
// ByID orders the results by the id field.
func ByID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldID, opts...).ToFunc()
}
// ByLevel orders the results by the level field.
func ByLevel(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldLevel, opts...).ToFunc()
}
// ByGearID orders the results by the gear_id field.
func ByGearID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldGearID, opts...).ToFunc()
}
// ByEnhance orders the results by the enhance field.
func ByEnhance(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldEnhance, opts...).ToFunc()
}
// ByGearType orders the results by the gear_type field.
func ByGearType(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldGearType, opts...).ToFunc()
}
// ByGearSetType orders the results by the gear_set_type field.
func ByGearSetType(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldGearSetType, opts...).ToFunc()
}
// ByMainStatType orders the results by the main_stat_type field.
func ByMainStatType(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldMainStatType, opts...).ToFunc()
}
// ByMainStatValue orders the results by the main_stat_value field.
func ByMainStatValue(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldMainStatValue, opts...).ToFunc()
}
// BySubStatOneType orders the results by the sub_stat_one_type field.
func BySubStatOneType(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldSubStatOneType, opts...).ToFunc()
}
// BySubStatOneValue orders the results by the sub_stat_one_value field.
func BySubStatOneValue(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldSubStatOneValue, opts...).ToFunc()
}
// BySubStatTwoType orders the results by the sub_stat_two_type field.
func BySubStatTwoType(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldSubStatTwoType, opts...).ToFunc()
}
// BySubStatTwoValue orders the results by the sub_stat_two_value field.
func BySubStatTwoValue(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldSubStatTwoValue, opts...).ToFunc()
}
// BySubStatThreeType orders the results by the sub_stat_three_type field.
func BySubStatThreeType(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldSubStatThreeType, opts...).ToFunc()
}
// BySubStatThreeValue orders the results by the sub_stat_three_value field.
func BySubStatThreeValue(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldSubStatThreeValue, opts...).ToFunc()
}
// BySubStatFourType orders the results by the sub_stat_four_type field.
func BySubStatFourType(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldSubStatFourType, opts...).ToFunc()
}
// BySubStatFourValue orders the results by the sub_stat_four_value field.
func BySubStatFourValue(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldSubStatFourValue, opts...).ToFunc()
}
// ByAccountCode orders the results by the account_code field.
func ByAccountCode(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldAccountCode, opts...).ToFunc()
}
// ByCreator orders the results by the creator field.
func ByCreator(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreator, opts...).ToFunc()
}
// ByCreateTime orders the results by the create_time field.
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreateTime, opts...).ToFunc()
}
// ByUpdater orders the results by the updater field.
func ByUpdater(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldUpdater, opts...).ToFunc()
}
// ByUpdateTime orders the results by the update_time field.
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldUpdateTime, opts...).ToFunc()
}
// ByDeleted orders the results by the deleted field.
func ByDeleted(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDeleted, opts...).ToFunc()
}
// ByTenantID orders the results by the tenant_id field.
func ByTenantID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldTenantID, opts...).ToFunc()
}