package model import "time" type Comment struct { ID uint `gorm:"primaryKey"` PageURL string `gorm:"index;size:255;not null"` AuthorName string `gorm:"size:100;not null"` Content string `gorm:"type:varchar(5000);not null"` UserIdentifier string `gorm:"size:255"` IsSpam bool `gorm:"default:false"` CreatedAt time.Time `gorm:"index"` }