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

30 lines
2.1 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 TableNameUserTitleEffectClaims = "user_title_effect_claims"
// UserTitleEffectClaims 领取型权益限流表
type UserTitleEffectClaims struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:头衔领取型权益限流主键ID" json:"id"` // 头衔领取型权益限流主键ID
UserID int64 `gorm:"column:user_id;not null;comment:用户IDusers.id" json:"user_id"` // 用户IDusers.id
TitleID int64 `gorm:"column:title_id;not null;comment:头衔IDsystem_titles.id" json:"title_id"` // 头衔IDsystem_titles.id
EffectType int32 `gorm:"column:effect_type;not null;comment:效果类型与system_title_effects.effect_type一致" json:"effect_type"` // 效果类型与system_title_effects.effect_type一致
TargetTemplateID int64 `gorm:"column:target_template_id;comment:目标模板ID券模板/卡模板等)" json:"target_template_id"` // 目标模板ID券模板/卡模板等)
PeriodKey string `gorm:"column:period_key;not null;comment:周期键如每日YYYYMMDD、每周YYYYWW、每月YYYYMM" json:"period_key"` // 周期键如每日YYYYMMDD、每周YYYYWW、每月YYYYMM
ClaimCount int32 `gorm:"column:claim_count;not null;comment:当期已领取次数" json:"claim_count"` // 当期已领取次数
LastClaimAt time.Time `gorm:"column:last_claim_at;comment:最近领取时间" json:"last_claim_at"` // 最近领取时间
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP(3);comment:创建时间" json:"created_at"` // 创建时间
}
// TableName UserTitleEffectClaims's table name
func (*UserTitleEffectClaims) TableName() string {
return TableNameUserTitleEffectClaims
}