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

27 lines
1.3 KiB
Go
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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:资产IDuser_inventory.id" json:"inventory_id"` // 资产IDuser_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
}