21 lines
972 B
Go
21 lines
972 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const TableNameFragmentSynthesisLogs = "fragment_synthesis_logs"
|
|
|
|
type FragmentSynthesisLogs 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"`
|
|
UserID int64 `gorm:"column:user_id;not null;comment:用户ID" json:"user_id"`
|
|
RecipeID int64 `gorm:"column:recipe_id;not null;comment:配方ID" json:"recipe_id"`
|
|
ConsumedInventoryIDs string `gorm:"column:consumed_inventory_ids;type:json;not null;comment:消耗的碎片资产ID列表" json:"consumed_inventory_ids"`
|
|
ProducedInventoryID int64 `gorm:"column:produced_inventory_id;not null;comment:合成产出的资产ID" json:"produced_inventory_id"`
|
|
}
|
|
|
|
func (*FragmentSynthesisLogs) TableName() string {
|
|
return TableNameFragmentSynthesisLogs
|
|
}
|