// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.

package model

import (
	"time"
)

const TableNameUserInventoryTransfers = "user_inventory_transfers"

// UserInventoryTransfers 资产转赠流水
type UserInventoryTransfers struct {
	ID          int64     `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"`                         // 主键ID
	CreatedAt   time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP(3);comment:创建时间" json:"created_at"` // 创建时间
	InventoryID int64     `gorm:"column:inventory_id;not null;comment:资产ID（user_inventory.id）" json:"inventory_id"`       // 资产ID（user_inventory.id）
	FromUserID  int64     `gorm:"column:from_user_id;not null;comment:转出用户ID" json:"from_user_id"`                        // 转出用户ID
	ToUserID    int64     `gorm:"column:to_user_id;not null;comment:转入用户ID" json:"to_user_id"`                            // 转入用户ID
	Remark      string    `gorm:"column:remark;comment:备注" json:"remark"`                                                 // 备注
}

// TableName UserInventoryTransfers's table name
func (*UserInventoryTransfers) TableName() string {
	return TableNameUserInventoryTransfers
}
