Files
epic-ent/internal/ent/migrate/schema.go

253 lines
11 KiB
Go

// Code generated by ent, DO NOT EDIT.
package migrate
import (
"entgo.io/ent/dialect/entsql"
"entgo.io/ent/dialect/sql/schema"
"entgo.io/ent/schema/field"
)
var (
// EpicArtifactInfoColumns holds the columns for the "epic_artifact_info" table.
EpicArtifactInfoColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt64, Increment: true},
{Name: "artifact_name", Type: field.TypeString, Size: 255},
{Name: "artifact_code", Type: field.TypeString, Size: 255},
{Name: "creator", Type: field.TypeString, Size: 255},
{Name: "create_time", Type: field.TypeTime, Nullable: true},
{Name: "updater", Type: field.TypeString, Size: 255},
{Name: "update_time", Type: field.TypeTime, Nullable: true},
{Name: "deleted", Type: field.TypeBool},
{Name: "stats_health", Type: field.TypeInt},
{Name: "stats_attack", Type: field.TypeInt},
{Name: "stats_defense", Type: field.TypeInt},
{Name: "rarity", Type: field.TypeString, Size: 255},
{Name: "role", Type: field.TypeString, Size: 255},
{Name: "artifact_name_en", Type: field.TypeString, Size: 255},
{Name: "image_url", Type: field.TypeString, Size: 255},
}
// EpicArtifactInfoTable holds the schema information for the "epic_artifact_info" table.
EpicArtifactInfoTable = &schema.Table{
Name: "epic_artifact_info",
Columns: EpicArtifactInfoColumns,
PrimaryKey: []*schema.Column{EpicArtifactInfoColumns[0]},
}
// EpicGvgAttackTeamsColumns holds the columns for the "epic_gvg_attack_teams" table.
EpicGvgAttackTeamsColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt64, Increment: true},
{Name: "attack_heroes", Type: field.TypeString, Size: 255},
{Name: "creator", Type: field.TypeString, Size: 255},
{Name: "create_time", Type: field.TypeTime, Nullable: true},
{Name: "updater", Type: field.TypeString, Size: 255},
{Name: "update_time", Type: field.TypeTime, Nullable: true},
{Name: "deleted", Type: field.TypeBool},
}
// EpicGvgAttackTeamsTable holds the schema information for the "epic_gvg_attack_teams" table.
EpicGvgAttackTeamsTable = &schema.Table{
Name: "epic_gvg_attack_teams",
Columns: EpicGvgAttackTeamsColumns,
PrimaryKey: []*schema.Column{EpicGvgAttackTeamsColumns[0]},
}
// EpicGvgDefenseAttackMappingColumns holds the columns for the "epic_gvg_defense_attack_mapping" table.
EpicGvgDefenseAttackMappingColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt64, Increment: true},
{Name: "defense_id", Type: field.TypeInt64},
{Name: "attack_id", Type: field.TypeInt64},
{Name: "equipment_info", Type: field.TypeString, Size: 255},
{Name: "artifacts", Type: field.TypeString, Size: 255},
{Name: "battle_strategy", Type: field.TypeString, Size: 255},
{Name: "prerequisites", Type: field.TypeString, Size: 255},
{Name: "important_notes", Type: field.TypeString, Size: 255},
{Name: "creator", Type: field.TypeString, Size: 255},
{Name: "create_time", Type: field.TypeTime, Nullable: true},
{Name: "updater", Type: field.TypeString, Size: 255},
{Name: "update_time", Type: field.TypeTime, Nullable: true},
{Name: "deleted", Type: field.TypeBool},
}
// EpicGvgDefenseAttackMappingTable holds the schema information for the "epic_gvg_defense_attack_mapping" table.
EpicGvgDefenseAttackMappingTable = &schema.Table{
Name: "epic_gvg_defense_attack_mapping",
Columns: EpicGvgDefenseAttackMappingColumns,
PrimaryKey: []*schema.Column{EpicGvgDefenseAttackMappingColumns[0]},
}
// EpicGvgDefenseTeamsColumns holds the columns for the "epic_gvg_defense_teams" table.
EpicGvgDefenseTeamsColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt64, Increment: true},
{Name: "defense_heroes", Type: field.TypeString, Size: 255},
{Name: "creator", Type: field.TypeString, Size: 255},
{Name: "create_time", Type: field.TypeTime, Nullable: true},
{Name: "updater", Type: field.TypeString, Size: 255},
{Name: "update_time", Type: field.TypeTime, Nullable: true},
{Name: "deleted", Type: field.TypeBool},
}
// EpicGvgDefenseTeamsTable holds the schema information for the "epic_gvg_defense_teams" table.
EpicGvgDefenseTeamsTable = &schema.Table{
Name: "epic_gvg_defense_teams",
Columns: EpicGvgDefenseTeamsColumns,
PrimaryKey: []*schema.Column{EpicGvgDefenseTeamsColumns[0]},
}
// EpicHeroInfoColumns holds the columns for the "epic_hero_info" table.
EpicHeroInfoColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt64, Increment: true},
{Name: "hero_name", Type: field.TypeString, Size: 255},
{Name: "hero_code", Type: field.TypeString, Size: 255},
{Name: "hero_attr_lv60", Type: field.TypeString, Size: 255},
{Name: "creator", Type: field.TypeString, Size: 255},
{Name: "create_time", Type: field.TypeTime, Nullable: true},
{Name: "updater", Type: field.TypeString, Size: 255},
{Name: "update_time", Type: field.TypeTime, Nullable: true},
{Name: "deleted", Type: field.TypeBool},
{Name: "nick_name", Type: field.TypeString, Size: 255},
{Name: "rarity", Type: field.TypeString, Size: 255},
{Name: "role", Type: field.TypeString, Size: 255},
{Name: "zodiac", Type: field.TypeString, Size: 255},
{Name: "head_img_url", Type: field.TypeString, Size: 255},
{Name: "attribute", Type: field.TypeString, Size: 255},
{Name: "remark", Type: field.TypeString, Size: 255},
{Name: "raw_json", Type: field.TypeString, Size: 255},
{Name: "content_json_set", Type: field.TypeString, Size: 255},
{Name: "update_time_set", Type: field.TypeTime, Nullable: true},
}
// EpicHeroInfoTable holds the schema information for the "epic_hero_info" table.
EpicHeroInfoTable = &schema.Table{
Name: "epic_hero_info",
Columns: EpicHeroInfoColumns,
PrimaryKey: []*schema.Column{EpicHeroInfoColumns[0]},
}
// EpicHeroUserBuildColumns holds the columns for the "epic_hero_user_build" table.
EpicHeroUserBuildColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt64, Increment: true},
{Name: "artifact_code", Type: field.TypeString, Size: 255},
{Name: "hero_code", Type: field.TypeString, Size: 255},
{Name: "hero_heath_build", Type: field.TypeFloat64},
{Name: "hero_attack_build", Type: field.TypeFloat64},
{Name: "hero_def_build", Type: field.TypeFloat64},
{Name: "creator", Type: field.TypeString, Size: 255},
{Name: "create_time", Type: field.TypeTime, Nullable: true},
{Name: "updater", Type: field.TypeString, Size: 255},
{Name: "update_time", Type: field.TypeTime, Nullable: true},
{Name: "deleted", Type: field.TypeBool},
}
// EpicHeroUserBuildTable holds the schema information for the "epic_hero_user_build" table.
EpicHeroUserBuildTable = &schema.Table{
Name: "epic_hero_user_build",
Columns: EpicHeroUserBuildColumns,
PrimaryKey: []*schema.Column{EpicHeroUserBuildColumns[0]},
}
// EpicI18nMappingsColumns holds the columns for the "epic_i18n_mappings" table.
EpicI18nMappingsColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt64, Increment: true},
{Name: "key_name", Type: field.TypeString, Size: 255},
{Name: "language", Type: field.TypeString, Size: 255},
{Name: "value", Type: field.TypeString, Size: 255},
{Name: "category", Type: field.TypeString, Size: 255},
{Name: "status", Type: field.TypeInt},
{Name: "creator", Type: field.TypeString, Size: 255},
{Name: "create_time", Type: field.TypeTime, Nullable: true},
{Name: "updater", Type: field.TypeString, Size: 255},
{Name: "update_time", Type: field.TypeTime, Nullable: true},
{Name: "deleted", Type: field.TypeInt},
{Name: "code", Type: field.TypeString, Size: 255},
}
// EpicI18nMappingsTable holds the schema information for the "epic_i18n_mappings" table.
EpicI18nMappingsTable = &schema.Table{
Name: "epic_i18n_mappings",
Columns: EpicI18nMappingsColumns,
PrimaryKey: []*schema.Column{EpicI18nMappingsColumns[0]},
}
// FribbleHeroSetColumns holds the columns for the "fribble_hero_set" table.
FribbleHeroSetColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt64, Increment: true},
{Name: "hero_code", Type: field.TypeString, Size: 255},
{Name: "json_content", Type: field.TypeString, Size: 255},
{Name: "hero_name", Type: field.TypeString, Size: 255},
{Name: "creator", Type: field.TypeString, Size: 255},
{Name: "create_time", Type: field.TypeTime, Nullable: true},
{Name: "updater", Type: field.TypeString, Size: 255},
{Name: "update_time", Type: field.TypeTime, Nullable: true},
{Name: "deleted", Type: field.TypeBool},
{Name: "success_get", Type: field.TypeInt},
}
// FribbleHeroSetTable holds the schema information for the "fribble_hero_set" table.
FribbleHeroSetTable = &schema.Table{
Name: "fribble_hero_set",
Columns: FribbleHeroSetColumns,
PrimaryKey: []*schema.Column{FribbleHeroSetColumns[0]},
}
// GearSetInfoColumns holds the columns for the "gear_set_info" table.
GearSetInfoColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt64, Increment: true},
{Name: "level", Type: field.TypeInt},
{Name: "gear_id", Type: field.TypeInt64},
{Name: "enhance", Type: field.TypeInt},
{Name: "gear_type", Type: field.TypeString, Size: 255},
{Name: "gear_set_type", Type: field.TypeString, Size: 255},
{Name: "main_stat_type", Type: field.TypeString, Size: 255},
{Name: "main_stat_value", Type: field.TypeInt},
{Name: "sub_stat_one_type", Type: field.TypeString, Size: 255},
{Name: "sub_stat_one_value", Type: field.TypeInt},
{Name: "sub_stat_two_type", Type: field.TypeString, Size: 255},
{Name: "sub_stat_two_value", Type: field.TypeInt},
{Name: "sub_stat_three_type", Type: field.TypeString, Size: 255},
{Name: "sub_stat_three_value", Type: field.TypeInt},
{Name: "sub_stat_four_type", Type: field.TypeString, Size: 255},
{Name: "sub_stat_four_value", Type: field.TypeInt},
{Name: "account_code", Type: field.TypeString, Size: 255},
{Name: "creator", Type: field.TypeString, Size: 255},
{Name: "create_time", Type: field.TypeTime, Nullable: true},
{Name: "updater", Type: field.TypeString, Size: 255},
{Name: "update_time", Type: field.TypeTime, Nullable: true},
{Name: "deleted", Type: field.TypeBool},
{Name: "tenant_id", Type: field.TypeInt64},
}
// GearSetInfoTable holds the schema information for the "gear_set_info" table.
GearSetInfoTable = &schema.Table{
Name: "gear_set_info",
Columns: GearSetInfoColumns,
PrimaryKey: []*schema.Column{GearSetInfoColumns[0]},
}
// Tables holds all the tables in the schema.
Tables = []*schema.Table{
EpicArtifactInfoTable,
EpicGvgAttackTeamsTable,
EpicGvgDefenseAttackMappingTable,
EpicGvgDefenseTeamsTable,
EpicHeroInfoTable,
EpicHeroUserBuildTable,
EpicI18nMappingsTable,
FribbleHeroSetTable,
GearSetInfoTable,
}
)
func init() {
EpicArtifactInfoTable.Annotation = &entsql.Annotation{
Table: "epic_artifact_info",
}
EpicGvgAttackTeamsTable.Annotation = &entsql.Annotation{
Table: "epic_gvg_attack_teams",
}
EpicGvgDefenseAttackMappingTable.Annotation = &entsql.Annotation{
Table: "epic_gvg_defense_attack_mapping",
}
EpicGvgDefenseTeamsTable.Annotation = &entsql.Annotation{
Table: "epic_gvg_defense_teams",
}
EpicHeroInfoTable.Annotation = &entsql.Annotation{
Table: "epic_hero_info",
}
EpicHeroUserBuildTable.Annotation = &entsql.Annotation{
Table: "epic_hero_user_build",
}
EpicI18nMappingsTable.Annotation = &entsql.Annotation{
Table: "epic_i18n_mappings",
}
FribbleHeroSetTable.Annotation = &entsql.Annotation{
Table: "fribble_hero_set",
}
GearSetInfoTable.Annotation = &entsql.Annotation{
Table: "gear_set_info",
}
}