bindbox-game/internal/repository/mysql/model/fragment_synthesis_recipe_materials.gen.go

20 lines
879 B
Go

package model
import (
"time"
)
const TableNameFragmentSynthesisRecipeMaterials = "fragment_synthesis_recipe_materials"
type FragmentSynthesisRecipeMaterials struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"`
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP(3);comment:创建时间" json:"created_at"`
RecipeID int64 `gorm:"column:recipe_id;not null;comment:配方ID" json:"recipe_id"`
FragmentProductID int64 `gorm:"column:fragment_product_id;not null;comment:碎片商品ID" json:"fragment_product_id"`
RequiredCount int32 `gorm:"column:required_count;not null;default:1;comment:该碎片所需数量" json:"required_count"`
}
func (*FragmentSynthesisRecipeMaterials) TableName() string {
return TableNameFragmentSynthesisRecipeMaterials
}