topfans/backend/pkg/models/minting_activity.go
2026-05-12 10:42:00 +08:00

19 lines
678 B
Go
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.

package models
// MintingActivity 铸造活动表运营banner
type MintingActivity struct {
ID int64 `json:"id" gorm:"primaryKey;autoIncrement"`
Title string `json:"title" gorm:"size:100;not null"`
Description string `json:"description" gorm:"type:text"`
CoverImage string `json:"cover_image" gorm:"size:500"`
StarID int64 `json:"star_id" gorm:"not null"`
Route string `json:"route" gorm:"size:200"`
IsActive bool `json:"is_active" gorm:"default:true"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
// TableName 表名
func (MintingActivity) TableName() string {
return "minting_activities"
}