model

package
v0.0.0-...-2b0c82f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameUserAsset = "user_asset"
View Source
const TableNameUserAssetRecord = "user_asset_record"

Variables

This section is empty.

Functions

This section is empty.

Types

type UserAsset

type UserAsset struct {
	UserID    int64     `gorm:"column:userId;type:bigint unsigned;primaryKey" json:"userId"`
	AssetCn   int64     `gorm:"column:assetCn;type:bigint unsigned;not null" json:"assetCn"`
	AssetType int32     `gorm:"column:assetType;type:tinyint unsigned;primaryKey" json:"assetType"`
	Version   int64     `gorm:"column:version;type:bigint unsigned;not null" json:"version"`
	CreatedAt time.Time `gorm:"column:createdAt;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"createdAt"`
	UpdatedAt time.Time `gorm:"column:updatedAt;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"updatedAt"`
}

UserAsset mapped from table <user_asset>

func (*UserAsset) TableName

func (*UserAsset) TableName() string

TableName UserAsset's table name

type UserAssetRecord

type UserAssetRecord struct {
	UserID     int64     `gorm:"column:userId;type:bigint unsigned;primaryKey" json:"userId"`
	OpUserType int32     `gorm:"column:opUserType;type:tinyint unsigned;primaryKey" json:"opUserType"`
	BizID      int64     `gorm:"column:bizId;type:bigint unsigned;not null" json:"bizId"`
	BizType    int32     `gorm:"column:bizType;type:tinyint unsigned;not null" json:"bizType"`
	ObjID      string    `gorm:"column:objId;type:varchar(128);not null" json:"objId"`
	EventID    string    `gorm:"column:eventId;type:varchar(128);primaryKey" json:"eventId"`
	EventType  string    `gorm:"column:eventType;type:varchar(128);not null" json:"eventType"`
	Record     string    `gorm:"column:record;type:varchar(256);not null" json:"record"`
	RecordOp   string    `gorm:"column:recordOp;type:varchar(64);not null" json:"recordOp"`
	CreatedAt  time.Time `gorm:"column:createdAt;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"createdAt"`
	UpdatedAt  time.Time `gorm:"column:updatedAt;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"updatedAt"`
}

UserAssetRecord mapped from table <user_asset_record>

func (*UserAssetRecord) TableName

func (*UserAssetRecord) TableName() string

TableName UserAssetRecord's table name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL