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>
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
Click to show internal directories.
Click to hide internal directories.