package models

type Feed struct {
	Id             int64   `xorm:"id" json:"id"`
	PastureId      int64   `xorm:"pastureid" json:"pasture_id"`
	FeedCode       string  `xorm:"feedcode" json:"feed_code"`
	FName          string  `xorm:"fname" json:"f_name"`
	FClass         string  `xorm:"fclass" json:"f_class"`
	FClassId       int64   `xorm:"fclassid" json:"f_class_id"`
	AllowRatio     int64   `xorm:"allowratio" json:"allow_ratio"`
	PrintGroupId   int64   `xorm:"printgroupid" json:"print_group_id"`
	PrintGroup     string  `xorm:"printgroup" json:"print_group"`
	UnitWeight     int64   `xorm:"unitweight" json:"unit_weight"`
	UPrice         float64 `xorm:"uprice" json:"u_price"`
	Dry            float64 `xorm:"dry" json:"dry"`
	AutoZone       int64   `xorm:"autozone" json:"auto_zone"`
	AutoSecond     int64   `xorm:"autosecond" json:"auto_second"`
	AutoSecondName string  `xorm:"autosecondname" json:"auto_second_name"`
	ConfirmStart   int32   `xorm:"confirmstart" json:"confirm_start"`
	TrgAddress     int32   `xorm:"trgaddress" json:"trg_address"`
	SmtMrId        int64   `xorm:"smtmrid" json:"smt_mr_id"`
	SmtMrName      string  `xorm:"smtmrname" json:"smt_mr_name"`
	Sort           int32   `xorm:"sort" json:"sort"`
	Enable         int32   `xorm:"enable" json:"enable"`
	Jmp            int32   `xorm:"jmp" json:"jmp"`
	Source         string  `xorm:"source"`
	Backup1        string  `xorm:"backup1" json:"backup1"`
	Backup2        string  `xorm:"backup2" json:"backup2"`
	Backup3        string  `xorm:"backup3" json:"backup3"`
}

func (f *Feed) TableName() string {
	return "feed"
}