// Package entity 实体层
package entity

import "time"

// YxCalculationMajor 计算专业表实体
type YxCalculationMajor struct {
	ID                            string    `gorm:"column:id;primaryKey" json:"id"`
	ScoreID                       string    `gorm:"column:score_id" json:"scoreId"`
	SchoolCode                    string    `gorm:"column:school_code" json:"schoolCode"`
	MajorCode                     string    `gorm:"column:major_code" json:"majorCode"`
	MajorName                     string    `gorm:"column:major_name" json:"majorName"`
	EnrollmentCode                string    `gorm:"column:enrollment_code" json:"enrollmentCode"`
	Tuition                       string    `gorm:"column:tuition" json:"tuition"`
	Detail                        string    `gorm:"column:detail" json:"detail"`
	Category                      string    `gorm:"column:category" json:"category"`
	RulesEnrollProbability        string    `gorm:"column:rules_enroll_probability" json:"rulesEnrollProbability"`
	Batch                         string    `gorm:"column:batch" json:"batch"`
	StudentOldConvertedScore      float64   `gorm:"column:student_old_converted_score" json:"studentOldConvertedScore"`
	StudentConvertedScore         float64   `gorm:"column:student_converted_score" json:"studentConvertedScore"`
	EnrollProbability             float64   `gorm:"column:enroll_probability" json:"enrollProbability"`
	ProbabilityOperator           string    `gorm:"column:probability_operator" json:"probabilityOperator"`
	CreateTime                    time.Time `gorm:"column:create_time" json:"createTime"`
	MajorType                     string    `gorm:"column:major_type" json:"majorType"`
	MajorTypeChild                string    `gorm:"column:major_type_child" json:"majorTypeChild"`
	PlanNum                       int       `gorm:"column:plan_num" json:"planNum"`
	MainSubjects                  string    `gorm:"column:main_subjects" json:"mainSubjects"`
	Limitation                    string    `gorm:"column:limitation" json:"limitation"`
	OtherScoreLimitation          string    `gorm:"column:other_score_limitation" json:"otherScoreLimitation"`
	RulesEnrollProbabilitySx      string    `gorm:"column:rules_enroll_probability_sx" json:"rulesEnrollProbabilitySx"`
	Kslx                          string    `gorm:"column:kslx" json:"kslx"`
	PrivateStudentConvertedScore  float64   `gorm:"column:private_student_converted_score" json:"privateStudentConvertedScore"`
	PrivateRulesEnrollProbability string    `gorm:"column:private_rules_enroll_probability" json:"privateRulesEnrollProbability"`
	PrivateProbabilityOperator    string    `gorm:"column:private_probability_operator" json:"privateProbabilityOperator"`
	State                         string    `gorm:"column:state" json:"state"`
}

func (YxCalculationMajor) TableName() string {
	return "yx_calculation_major_2025_2"
}
