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