package model import "gorm.io/gorm" type Fans struct { gorm.Model UID uint `gorm:"index;not null"` Fans uint `gorm:"index;not null;default:0"` } func (Fans) TableName() string { return "fans" }